Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@phala/typedefs

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phala/typedefs - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

330

dist/index.d.ts

@@ -9,2 +9,4 @@ import khala from './khala';

'Khala Testnet': {
Address: string;
LookupSource: string;
ChainId: string;

@@ -27,4 +29,169 @@ ResourceId: string;

};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {
_enum: {
Pallet: string;
Contract: string;
Worker: string;
AccountId: string;
MultiLocation: string;
};
};
Attestation: {
_enum: {
SgxIas: string;
};
};
AttestationSgxIas: {
raReport: string;
signature: string;
};
SenderId: string;
Path: string;
Topic: string;
Message: {
sender: string;
destination: string;
payload: string;
};
SignedMessage: {
message: string;
sequence: string;
signature: string;
};
MachineId: string;
WorkerRegistrationInfo: {
version: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
poolAcc: string;
totalStake: string;
freeStake: string;
workers: string;
withdrawQueue: string;
};
WithdrawInfo: {
user: string;
amount: string;
startTime: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
operator: string;
confidenceLevel: string;
intialScore: string;
features: string;
};
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
pInstant: string;
benchmark: string;
coolDownStart: string;
};
Benchmark: {
iterations: string;
miningStartTime: string;
};
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCollingDown: null;
};
};
WorkerStat: {
totalReward: string;
};
PayoutPrefs: {
commission: string;
target: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
};
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
NewRandomNumber: string;
UpdateTokenomic: string;
};
};
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerSec: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
heartbeatWindow: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
amount: string;
availableRewards: string;
userDebt: string;
};
};
'Khala Local Testnet': {
Address: string;
LookupSource: string;
ChainId: string;

@@ -47,2 +214,165 @@ ResourceId: string;

};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {
_enum: {
Pallet: string;
Contract: string;
Worker: string;
AccountId: string;
MultiLocation: string;
};
};
Attestation: {
_enum: {
SgxIas: string;
};
};
AttestationSgxIas: {
raReport: string;
signature: string;
};
SenderId: string;
Path: string;
Topic: string;
Message: {
sender: string;
destination: string;
payload: string;
};
SignedMessage: {
message: string;
sequence: string;
signature: string;
};
MachineId: string;
WorkerRegistrationInfo: {
version: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
poolAcc: string;
totalStake: string;
freeStake: string;
workers: string;
withdrawQueue: string;
};
WithdrawInfo: {
user: string;
amount: string;
startTime: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
operator: string;
confidenceLevel: string;
intialScore: string;
features: string;
};
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
pInstant: string;
benchmark: string;
coolDownStart: string;
};
Benchmark: {
iterations: string;
miningStartTime: string;
};
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCollingDown: null;
};
};
WorkerStat: {
totalReward: string;
};
PayoutPrefs: {
commission: string;
target: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
};
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
NewRandomNumber: string;
UpdateTokenomic: string;
};
};
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerSec: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
heartbeatWindow: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
amount: string;
availableRewards: string;
userDebt: string;
};
};

@@ -49,0 +379,0 @@ 'Phala PoC-3': {

declare const _default: {
Address: string;
LookupSource: string;
ChainId: string;

@@ -19,4 +21,167 @@ ResourceId: string;

};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {
_enum: {
Pallet: string;
Contract: string;
Worker: string;
AccountId: string;
MultiLocation: string;
};
};
Attestation: {
_enum: {
SgxIas: string;
};
};
AttestationSgxIas: {
raReport: string;
signature: string;
};
SenderId: string;
Path: string;
Topic: string;
Message: {
sender: string;
destination: string;
payload: string;
};
SignedMessage: {
message: string;
sequence: string;
signature: string;
};
MachineId: string;
WorkerRegistrationInfo: {
version: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
poolAcc: string;
totalStake: string;
freeStake: string;
workers: string;
withdrawQueue: string;
};
WithdrawInfo: {
user: string;
amount: string;
startTime: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
operator: string;
confidenceLevel: string;
intialScore: string;
features: string;
};
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
pInstant: string;
benchmark: string;
coolDownStart: string;
};
Benchmark: {
iterations: string;
miningStartTime: string;
};
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCollingDown: null;
};
};
WorkerStat: {
totalReward: string;
};
PayoutPrefs: {
commission: string;
target: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
};
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
NewRandomNumber: string;
UpdateTokenomic: string;
};
};
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerSec: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
heartbeatWindow: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
amount: string;
availableRewards: string;
userDebt: string;
};
};
export default _default;
//# sourceMappingURL=khala-dev.d.ts.map

@@ -5,2 +5,4 @@ "use strict";

exports.default = {
"Address": "MultiAddress",
"LookupSource": "MultiAddress",
"ChainId": "u8",

@@ -23,3 +25,166 @@ "ResourceId": "[u8; 32]",

},
"Sr25519PublicKey": "[u8; 32]",
"MasterPublicKey": "Sr25519PublicKey",
"WorkerPublicKey": "Sr25519PublicKey",
"ContractPublicKey": "Sr25519PublicKey",
"EcdhPublicKey": "[u8; 32]",
"MessageOrigin": {
"_enum": {
"Pallet": "Vec<u8>",
"Contract": "H256",
"Worker": "Sr25519PublicKey",
"AccountId": "H256",
"MultiLocation": "Vec<u8>"
}
},
"Attestation": {
"_enum": {
"SgxIas": "AttestationSgxIas"
}
},
"AttestationSgxIas": {
"raReport": "Vec<u8>",
"signature": "Vec<u8>"
},
"SenderId": "MessageOrigin",
"Path": "Vec<u8>",
"Topic": "Path",
"Message": {
"sender": "SenderId",
"destination": "Topic",
"payload": "Vec<u8>"
},
"SignedMessage": {
"message": "Message",
"sequence": "u64",
"signature": "Vec<u8>"
},
"MachineId": "[u8; 16]",
"WorkerRegistrationInfo": {
"version": "u32",
"machineId": "MachineId",
"pubkey": "WorkerPublicKey",
"ecdhPubkey": "EcdhPublicKey",
"features": "Vec<u32>",
"operator": "Option<AccountId>"
},
"PoolState": {
"_enum": {
"Ready": null,
"Mining": null
}
},
"PoolInfo": {
"pid": "u64",
"owner": "AccountId",
"payoutCommission": "u16",
"ownerReward": "Balance",
"cap": "Option<Balance>",
"poolAcc": "Balance",
"totalStake": "Balance",
"freeStake": "Balance",
"workers": "Vec<WorkerPublicKey>",
"withdrawQueue": "Vec<WithdrawInfo>"
},
"WithdrawInfo": {
"user": "AccountId",
"amount": "Balance",
"startTime": "u64"
},
"WorkerStateEnum": {
"_enum": {
"Empty": null,
"Free": null,
"Gatekeeper": null,
"MiningPending": null,
"Mining": "BlockNumber",
"MiningStopping": null
}
},
"WorkerInfo": {
"pubkey": "WorkerPublicKey",
"ecdhPubkey": "EcdhPublicKey",
"runtimeVersion": "u32",
"lastUpdated": "u64",
"operator": "Option<AccountId>",
"confidenceLevel": "u8",
"intialScore": "Option<u32>",
"features": "Vec<u32>"
},
"MinerInfo": {
"state": "MinerState",
"ve": "u64",
"v": "u64",
"vUpdatedAt": "u64",
"pInstant": "u64",
"benchmark": "Benchmark",
"coolDownStart": "u64"
},
"Benchmark": {
"iterations": "u64",
"miningStartTime": "u64"
},
"MinerState": {
"_enum": {
"Ready": null,
"MiningIdle": null,
"MiningActive": null,
"MiningUnresponsive": null,
"MiningCollingDown": null
}
},
"WorkerStat": {
"totalReward": "Balance"
},
"PayoutPrefs": {
"commission": "u32",
"target": "AccountId"
},
"HeartbeatChallenge": {
"seed": "U256",
"onlineTarget": "U256",
},
"GatekeeperEvent": {
"_enum": {
"Registered": "NewGatekeeperEvent",
"DispatchMasterKey": "DispatchMasterKeyEvent",
"NewRandomNumber": "RandomNumberEvent",
"UpdateTokenomic": "TokenomicParameters"
}
},
"NewGatekeeperEvent": {
"pubkey": "WorkerPublicKey",
"ecdhPubkey": "EcdhPublicKey",
"gatekeeperCount": "u32"
},
"DispatchMasterKeyEvent": {
"dest": "WorkerPublicKey",
"ecdhPubkey": "EcdhPublicKey",
"encryptedMasterKey": "Vec<u8>",
"iv": "[u8; 12]"
},
"RandomNumberEvent": {
"blockNumber": "u32",
"randomNumber": "[u8; 32]",
"lastRandomNumber": "[u8; 32]"
},
"TokenomicParameters": {
"phaRate": "U64F64Bits",
"rho": "U64F64Bits",
"budgetPerSec": "U64F64Bits",
"vMax": "U64F64Bits",
"costK": "U64F64Bits",
"costB": "U64F64Bits",
"slashRate": "U64F64Bits",
"heartbeatWindow": "u32"
},
"TokenomicParams": "TokenomicParameters",
"U64F64Bits": "u128",
"UserStakeInfo": {
"user": "AccountId",
"amount": "Balance",
"availableRewards": "Balance",
"userDebt": "Balance",
}
};
//# sourceMappingURL=khala-dev.js.map

2

package.json
{
"name": "@phala/typedefs",
"version": "0.2.3",
"version": "0.2.4",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc