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.14 to 0.2.15

1137

dist/index.d.ts

@@ -0,6 +1,4 @@

import phalaDev from './phala-dev';
import khala from './khala';
import khalaDev from './khala-dev';
import poc3 from './phala-poc3';
import poc4 from './phala-poc4';
import dev from './phala-dev';
export declare const typesChain: {

@@ -27,2 +25,5 @@ Khala: {

};
ProxyType: {
_enum: string[];
};
};

@@ -49,2 +50,5 @@ 'Khala Testnet': {

};
ProxyType: {
_enum: string[];
};
Sr25519PublicKey: string;

@@ -230,2 +234,5 @@ MasterPublicKey: string;

};
ProxyType: {
_enum: string[];
};
Sr25519PublicKey: string;

@@ -391,147 +398,221 @@ MasterPublicKey: string;

};
'Phala PoC-3': {
'Phala PoC-Next': {
Address: string;
LookupSource: string;
EthereumAddress: string;
EcdsaSignature: string;
EthereumTxHash: string;
WorkerStateEnum: {
RawSolution: string;
BridgeChainId: string;
ResourceId: string;
TokenId: string;
DepositNonce: string;
ProposalStatus: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
Initiated: null;
Approved: null;
Rejected: null;
};
};
WorkerInfo: {
machineId: string;
pubkey: string;
lastUpdated: string;
state: string;
score: string;
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Score: {
overallScore: string;
features: string;
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {
_enum: {
Pallet: string;
Contract: string;
Worker: string;
AccountId: string;
MultiLocation: string;
Gatekeeper: null;
};
};
PayoutPrefs: {
commission: string;
target: string;
Attestation: {
_enum: {
SgxIas: string;
};
};
BlockRewardInfo: {
seed: string;
onlineTarget: string;
computeTarget: string;
AttestationSgxIas: {
raReport: string;
signature: string;
rawSigningCert: string;
};
RoundInfo: {
round: string;
startBlock: string;
SenderId: string;
Path: string;
Topic: string;
Message: {
sender: string;
destination: string;
payload: string;
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
SignedMessage: {
message: string;
sequence: string;
signature: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
MachineId: string;
WorkerRegistrationInfo: {
version: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
genesisBlockHash: string;
features: string;
operator: string;
};
PayoutReason: {
_enum: {
OnlineReward: null;
ComputeReward: null;
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
rewardAcc: string;
totalShares: string;
totalStake: string;
freeStake: string;
releasingStake: string;
workers: string;
withdrawQueue: string;
};
};
'Phala PoC-4': {
Address: string;
LookupSource: string;
EthereumAddress: string;
EcdsaSignature: string;
EthereumTxHash: string;
RawSolution: string;
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
WithdrawInfo: {
user: string;
shares: string;
startTime: string;
};
WorkerInfo: {
machineId: string;
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
state: string;
score: string;
operator: string;
confidenceLevel: string;
runtimeVersion: string;
};
Score: {
overallScore: string;
initialScore: string;
features: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
benchmark: string;
coolDownStart: string;
stats: string;
};
PayoutPrefs: {
commission: string;
target: string;
Benchmark: {
pInstant: string;
pInit: string;
iterations: string;
miningStartTime: string;
updatedAt: string;
};
BlockRewardInfo: {
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCoolingDown: null;
};
};
MinerStats: {
totalReward: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
computeTarget: string;
};
RoundInfo: {
round: string;
startBlock: string;
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
MasterPubkeyAvailable: null;
NewRandomNumber: string;
TokenomicParametersChanged: string;
};
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
StashWorkerStats: {
slash: string;
computeReceived: string;
onlineReceived: string;
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
PayoutReason: {
_enum: {
OnlineReward: null;
ComputeReward: null;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerBlock: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
treasuryRatio: string;
heartbeatWindow: string;
rigK: string;
rigB: string;
re: string;
k: string;
kappa: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
locked: string;
shares: string;
availableRewards: string;
rewardDebt: string;
};
};
'Phala PoC-Next': {
'Phala Local Testnet': {
Address: string;
LookupSource: string;
ChainId: string;
RawSolution: string;
BridgeChainId: string;
ResourceId: string;
TokenId: string;
DepositNonce: string;
RawSolution: string;
EcdsaPublicKey: string;
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {

@@ -544,2 +625,3 @@ _enum: {

MultiLocation: string;
Gatekeeper: null;
};

@@ -555,2 +637,3 @@ };

signature: string;
rawSigningCert: string;
};

@@ -571,174 +654,122 @@ SenderId: string;

MachineId: string;
PRuntimeInfo: {
WorkerRegistrationInfo: {
version: string;
machine_id: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
genesisBlockHash: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
commission: string;
state: string;
total_raised: string;
rewardAcc: string;
totalShares: string;
totalStake: string;
freeStake: string;
releasingStake: string;
workers: string;
withdrawQueue: string;
};
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
WithdrawInfo: {
user: string;
shares: string;
startTime: string;
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
machineId: string;
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
state: string;
score: string;
operator: string;
confidenceLevel: string;
runtimeVersion: string;
};
Score: {
overallScore: string;
initialScore: string;
features: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
benchmark: string;
coolDownStart: string;
stats: string;
};
PayoutPrefs: {
commission: string;
target: string;
Benchmark: {
pInstant: string;
pInit: string;
iterations: string;
miningStartTime: string;
updatedAt: string;
};
BlockRewardInfo: {
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCoolingDown: null;
};
};
MinerStats: {
totalReward: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
computeTarget: string;
};
RoundInfo: {
round: string;
startBlock: string;
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
};
StashWorkerStats: {
slash: string;
computeReceived: string;
onlineReceived: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
};
PayoutReason: {
GatekeeperEvent: {
_enum: {
OnlineReward: null;
ComputeReward: null;
Registered: string;
DispatchMasterKey: string;
MasterPubkeyAvailable: null;
NewRandomNumber: string;
TokenomicParametersChanged: string;
};
};
};
'Phala Local Testnet': {
Address: string;
LookupSource: string;
EthereumAddress: string;
EcdsaSignature: string;
EthereumTxHash: string;
RawSolution: string;
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
machineId: string;
NewGatekeeperEvent: {
pubkey: string;
lastUpdated: string;
state: string;
score: string;
confidenceLevel: string;
runtimeVersion: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
Score: {
overallScore: string;
features: string;
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
PayoutPrefs: {
commission: string;
target: string;
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerBlock: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
treasuryRatio: string;
heartbeatWindow: string;
rigK: string;
rigB: string;
re: string;
k: string;
kappa: string;
};
BlockRewardInfo: {
seed: string;
onlineTarget: string;
computeTarget: string;
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
locked: string;
shares: string;
availableRewards: string;
rewardDebt: string;
};
RoundInfo: {
round: string;
startBlock: string;
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
};
StashWorkerStats: {
slash: string;
computeReceived: string;
onlineReceived: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
};
PayoutReason: {
_enum: {
OnlineReward: null;
ComputeReward: null;
};
};
};

@@ -748,10 +779,31 @@ 'Phala Integration Test': {

LookupSource: string;
ChainId: string;
RawSolution: string;
BridgeChainId: string;
ResourceId: string;
TokenId: string;
DepositNonce: string;
RawSolution: string;
EcdsaPublicKey: string;
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {

@@ -764,2 +816,3 @@ _enum: {

MultiLocation: string;
Gatekeeper: null;
};

@@ -775,2 +828,3 @@ };

signature: string;
rawSigningCert: string;
};

@@ -791,103 +845,122 @@ SenderId: string;

MachineId: string;
PRuntimeInfo: {
WorkerRegistrationInfo: {
version: string;
machine_id: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
genesisBlockHash: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
commission: string;
state: string;
total_raised: string;
rewardAcc: string;
totalShares: string;
totalStake: string;
freeStake: string;
releasingStake: string;
workers: string;
withdrawQueue: string;
};
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
WithdrawInfo: {
user: string;
shares: string;
startTime: string;
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
machineId: string;
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
state: string;
score: string;
operator: string;
confidenceLevel: string;
runtimeVersion: string;
};
Score: {
overallScore: string;
initialScore: string;
features: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
benchmark: string;
coolDownStart: string;
stats: string;
};
PayoutPrefs: {
commission: string;
target: string;
Benchmark: {
pInstant: string;
pInit: string;
iterations: string;
miningStartTime: string;
updatedAt: string;
};
BlockRewardInfo: {
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCoolingDown: null;
};
};
MinerStats: {
totalReward: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
computeTarget: string;
};
RoundInfo: {
round: string;
startBlock: string;
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
MasterPubkeyAvailable: null;
NewRandomNumber: string;
TokenomicParametersChanged: string;
};
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
StashWorkerStats: {
slash: string;
computeReceived: string;
onlineReceived: string;
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
PayoutReason: {
_enum: {
OnlineReward: null;
ComputeReward: null;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerBlock: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
treasuryRatio: string;
heartbeatWindow: string;
rigK: string;
rigB: string;
re: string;
k: string;
kappa: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
locked: string;
shares: string;
availableRewards: string;
rewardDebt: string;
};
};

@@ -897,10 +970,31 @@ 'Phala Staging Testnet': {

LookupSource: string;
ChainId: string;
RawSolution: string;
BridgeChainId: string;
ResourceId: string;
TokenId: string;
DepositNonce: string;
RawSolution: string;
EcdsaPublicKey: string;
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {

@@ -913,2 +1007,3 @@ _enum: {

MultiLocation: string;
Gatekeeper: null;
};

@@ -924,2 +1019,3 @@ };

signature: string;
rawSigningCert: string;
};

@@ -940,103 +1036,122 @@ SenderId: string;

MachineId: string;
PRuntimeInfo: {
WorkerRegistrationInfo: {
version: string;
machine_id: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
genesisBlockHash: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
commission: string;
state: string;
total_raised: string;
rewardAcc: string;
totalShares: string;
totalStake: string;
freeStake: string;
releasingStake: string;
workers: string;
withdrawQueue: string;
};
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
WithdrawInfo: {
user: string;
shares: string;
startTime: string;
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
machineId: string;
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
state: string;
score: string;
operator: string;
confidenceLevel: string;
runtimeVersion: string;
};
Score: {
overallScore: string;
initialScore: string;
features: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
benchmark: string;
coolDownStart: string;
stats: string;
};
PayoutPrefs: {
commission: string;
target: string;
Benchmark: {
pInstant: string;
pInit: string;
iterations: string;
miningStartTime: string;
updatedAt: string;
};
BlockRewardInfo: {
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCoolingDown: null;
};
};
MinerStats: {
totalReward: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
computeTarget: string;
};
RoundInfo: {
round: string;
startBlock: string;
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
MasterPubkeyAvailable: null;
NewRandomNumber: string;
TokenomicParametersChanged: string;
};
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
StashWorkerStats: {
slash: string;
computeReceived: string;
onlineReceived: string;
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
PayoutReason: {
_enum: {
OnlineReward: null;
ComputeReward: null;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerBlock: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
treasuryRatio: string;
heartbeatWindow: string;
rigK: string;
rigB: string;
re: string;
k: string;
kappa: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
locked: string;
shares: string;
availableRewards: string;
rewardDebt: string;
};
};

@@ -1046,10 +1161,31 @@ 'Phala Development': {

LookupSource: string;
ChainId: string;
RawSolution: string;
BridgeChainId: string;
ResourceId: string;
TokenId: string;
DepositNonce: string;
RawSolution: string;
EcdsaPublicKey: string;
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {

@@ -1062,2 +1198,3 @@ _enum: {

MultiLocation: string;
Gatekeeper: null;
};

@@ -1073,2 +1210,3 @@ };

signature: string;
rawSigningCert: string;
};

@@ -1089,106 +1227,125 @@ SenderId: string;

MachineId: string;
PRuntimeInfo: {
WorkerRegistrationInfo: {
version: string;
machine_id: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
genesisBlockHash: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
commission: string;
state: string;
total_raised: string;
rewardAcc: string;
totalShares: string;
totalStake: string;
freeStake: string;
releasingStake: string;
workers: string;
withdrawQueue: string;
};
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
WithdrawInfo: {
user: string;
shares: string;
startTime: string;
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
machineId: string;
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
state: string;
score: string;
operator: string;
confidenceLevel: string;
runtimeVersion: string;
};
Score: {
overallScore: string;
initialScore: string;
features: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
benchmark: string;
coolDownStart: string;
stats: string;
};
PayoutPrefs: {
commission: string;
target: string;
Benchmark: {
pInstant: string;
pInit: string;
iterations: string;
miningStartTime: string;
updatedAt: string;
};
BlockRewardInfo: {
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCoolingDown: null;
};
};
MinerStats: {
totalReward: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
computeTarget: string;
};
RoundInfo: {
round: string;
startBlock: string;
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
MasterPubkeyAvailable: null;
NewRandomNumber: string;
TokenomicParametersChanged: string;
};
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
StashWorkerStats: {
slash: string;
computeReceived: string;
onlineReceived: string;
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
PayoutReason: {
_enum: {
OnlineReward: null;
ComputeReward: null;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerBlock: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
treasuryRatio: string;
heartbeatWindow: string;
rigK: string;
rigB: string;
re: string;
k: string;
kappa: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
locked: string;
shares: string;
availableRewards: string;
rewardDebt: string;
};
};
};
export { poc3, poc3 as Poc3, poc4, poc4 as Poc4, dev, dev as Dev, dev as latest, dev as Latest, khala, khalaDev };
export { phalaDev, khala, khalaDev };
//# sourceMappingURL=index.d.ts.map

@@ -8,3 +8,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.khalaDev = exports.khala = exports.Latest = exports.latest = exports.Dev = exports.dev = exports.Poc4 = exports.poc4 = exports.Poc3 = exports.poc3 = exports.typesChain = void 0;
exports.khalaDev = exports.khala = exports.phalaDev = exports.typesChain = void 0;
var phala_dev_1 = __importDefault(require("./phala-dev"));
exports.phalaDev = phala_dev_1.default;
var khala_1 = __importDefault(require("./khala"));

@@ -14,13 +16,2 @@ exports.khala = khala_1.default;

exports.khalaDev = khala_dev_1.default;
var phala_poc3_1 = __importDefault(require("./phala-poc3"));
exports.poc3 = phala_poc3_1.default;
exports.Poc3 = phala_poc3_1.default;
var phala_poc4_1 = __importDefault(require("./phala-poc4"));
exports.poc4 = phala_poc4_1.default;
exports.Poc4 = phala_poc4_1.default;
var phala_dev_1 = __importDefault(require("./phala-dev"));
exports.dev = phala_dev_1.default;
exports.Dev = phala_dev_1.default;
exports.latest = phala_dev_1.default;
exports.Latest = phala_dev_1.default;
// alphabetical

@@ -31,6 +22,4 @@ exports.typesChain = {

'Khala Local Testnet': khala_dev_1.default,
'Phala PoC-3': phala_poc3_1.default,
'Phala PoC-4': phala_poc4_1.default,
'Phala PoC-Next': phala_dev_1.default,
'Phala Local Testnet': phala_poc4_1.default,
'Phala Local Testnet': phala_dev_1.default,
'Phala Integration Test': phala_dev_1.default,

@@ -37,0 +26,0 @@ 'Phala Staging Testnet': phala_dev_1.default,

@@ -21,2 +21,5 @@ declare const _default: {

};
ProxyType: {
_enum: string[];
};
Sr25519PublicKey: string;

@@ -23,0 +26,0 @@ MasterPublicKey: string;

@@ -24,2 +24,11 @@ "use strict";

},
"ProxyType": {
"_enum": [
'Any',
'NonTransfer',
'CancelProxy',
'Governance',
'Collator'
]
},
"Sr25519PublicKey": "[u8; 32]",

@@ -26,0 +35,0 @@ "MasterPublicKey": "Sr25519PublicKey",

@@ -21,4 +21,7 @@ declare const _default: {

};
ProxyType: {
_enum: string[];
};
};
export default _default;
//# sourceMappingURL=khala.d.ts.map

@@ -23,4 +23,13 @@ "use strict";

"expiry": "BlockNumber"
},
"ProxyType": {
"_enum": [
'Any',
'NonTransfer',
'CancelProxy',
'Governance',
'Collator'
]
}
};
//# sourceMappingURL=khala.js.map
declare const _default: {
Address: string;
LookupSource: string;
ChainId: string;
RawSolution: string;
BridgeChainId: string;
ResourceId: string;
TokenId: string;
DepositNonce: string;
RawSolution: string;
EcdsaPublicKey: string;
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
Sr25519PublicKey: string;
MasterPublicKey: string;
WorkerPublicKey: string;
ContractPublicKey: string;
EcdhPublicKey: string;
MessageOrigin: {

@@ -19,2 +40,3 @@ _enum: {

MultiLocation: string;
Gatekeeper: null;
};

@@ -30,2 +52,3 @@ };

signature: string;
rawSigningCert: string;
};

@@ -46,105 +69,124 @@ SenderId: string;

MachineId: string;
PRuntimeInfo: {
WorkerRegistrationInfo: {
version: string;
machine_id: string;
machineId: string;
pubkey: string;
ecdhPubkey: string;
genesisBlockHash: string;
features: string;
operator: string;
};
PoolState: {
_enum: {
Ready: null;
Mining: null;
};
};
PoolInfo: {
pid: string;
owner: string;
payoutCommission: string;
ownerReward: string;
cap: string;
commission: string;
state: string;
total_raised: string;
rewardAcc: string;
totalShares: string;
totalStake: string;
freeStake: string;
releasingStake: string;
workers: string;
withdrawQueue: string;
};
ProposalStatus: {
_enum: {
Initiated: null;
Approved: null;
Rejected: null;
};
WithdrawInfo: {
user: string;
shares: string;
startTime: string;
};
ProposalVotes: {
votes_for: string;
votes_against: string;
status: string;
expiry: string;
};
Kitty: {
id: string;
dna: string;
price: string;
gen: string;
};
WorkerStateEnum: {
_enum: {
Empty: null;
Free: null;
Gatekeeper: null;
MiningPending: null;
Mining: string;
MiningStopping: null;
};
};
WorkerInfo: {
machineId: string;
pubkey: string;
ecdhPubkey: string;
runtimeVersion: string;
lastUpdated: string;
state: string;
score: string;
operator: string;
confidenceLevel: string;
runtimeVersion: string;
};
Score: {
overallScore: string;
initialScore: string;
features: string;
};
StashInfo: {
controller: string;
payoutPrefs: string;
MinerInfo: {
state: string;
ve: string;
v: string;
vUpdatedAt: string;
benchmark: string;
coolDownStart: string;
stats: string;
};
PayoutPrefs: {
commission: string;
target: string;
Benchmark: {
pInstant: string;
pInit: string;
iterations: string;
miningStartTime: string;
updatedAt: string;
};
BlockRewardInfo: {
MinerState: {
_enum: {
Ready: null;
MiningIdle: null;
MiningActive: null;
MiningUnresponsive: null;
MiningCoolingDown: null;
};
};
MinerStats: {
totalReward: string;
};
HeartbeatChallenge: {
seed: string;
onlineTarget: string;
computeTarget: string;
};
RoundInfo: {
round: string;
startBlock: string;
GatekeeperEvent: {
_enum: {
Registered: string;
DispatchMasterKey: string;
MasterPubkeyAvailable: null;
NewRandomNumber: string;
TokenomicParametersChanged: string;
};
};
RoundStats: {
round: string;
onlineWorkers: string;
computeWorkers: string;
fracTargetOnlineReward: string;
totalPower: string;
fracTargetComputeReward: string;
NewGatekeeperEvent: {
pubkey: string;
ecdhPubkey: string;
gatekeeperCount: string;
};
StashWorkerStats: {
slash: string;
computeReceived: string;
onlineReceived: string;
DispatchMasterKeyEvent: {
dest: string;
ecdhPubkey: string;
encryptedMasterKey: string;
iv: string;
};
MinerStatsDelta: {
numWorker: string;
numPower: string;
RandomNumberEvent: {
blockNumber: string;
randomNumber: string;
lastRandomNumber: string;
};
PayoutReason: {
_enum: {
OnlineReward: null;
ComputeReward: null;
};
TokenomicParameters: {
phaRate: string;
rho: string;
budgetPerBlock: string;
vMax: string;
costK: string;
costB: string;
slashRate: string;
treasuryRatio: string;
heartbeatWindow: string;
rigK: string;
rigB: string;
re: string;
k: string;
kappa: string;
};
TokenomicParams: string;
U64F64Bits: string;
UserStakeInfo: {
user: string;
locked: string;
shares: string;
availableRewards: string;
rewardDebt: string;
};
};
export default _default;
//# sourceMappingURL=phala-dev.d.ts.map

@@ -7,10 +7,31 @@ "use strict";

"LookupSource": "MultiAddress",
"ChainId": "u8",
"RawSolution": "RawSolutionWith24",
"BridgeChainId": "u8",
"ResourceId": "[u8; 32]",
"TokenId": "u256",
"DepositNonce": "u64",
"RawSolution": "RawSolutionWith24",
"EcdsaPublicKey": "[u8; 33]",
"WorkerPublicKey": "EcdsaPublicKey",
"ContractPublicKey": "EcdsaPublicKey",
"ProposalStatus": {
"_enum": {
"Initiated": null,
"Approved": null,
"Rejected": null
}
},
"ProposalVotes": {
"votes_for": "Vec<AccountId>",
"votes_against": "Vec<AccountId>",
"status": "ProposalStatus",
"expiry": "BlockNumber"
},
"Kitty": {
"id": "Hash",
"dna": "Hash",
"price": "Balance",
"gen": "u64"
},
"Sr25519PublicKey": "[u8; 32]",
"MasterPublicKey": "Sr25519PublicKey",
"WorkerPublicKey": "Sr25519PublicKey",
"ContractPublicKey": "Sr25519PublicKey",
"EcdhPublicKey": "[u8; 32]",
"MessageOrigin": {

@@ -20,5 +41,6 @@ "_enum": {

"Contract": "H256",
"Worker": "EcdsaPublicKey",
"Worker": "Sr25519PublicKey",
"AccountId": "H256",
"MultiLocation": "Vec<u8>"
"MultiLocation": "Vec<u8>",
"Gatekeeper": null
}

@@ -33,3 +55,4 @@ },

"raReport": "Vec<u8>",
"signature": "Vec<u8>"
"signature": "Vec<u8>",
"rawSigningCert": "Vec<u8>"
},

@@ -50,104 +73,123 @@ "SenderId": "MessageOrigin",

"MachineId": "[u8; 16]",
"PRuntimeInfo": {
"WorkerRegistrationInfo": {
"version": "u32",
"machine_id": "MachineId",
"machineId": "MachineId",
"pubkey": "WorkerPublicKey",
"features": "Vec<u32>"
"ecdhPubkey": "EcdhPublicKey",
"genesisBlockHash": "H256",
"features": "Vec<u32>",
"operator": "Option<AccountId>"
},
"PoolState": {
"_enum": {
"Ready": null,
"Mining": null
}
},
"PoolInfo": {
"pid": "u64",
"owner": "AccountId",
"payoutCommission": "Option<Permill>",
"ownerReward": "Balance",
"cap": "Option<Balance>",
"commission": "Permill",
"state": "PoolState",
"total_raised": "Balance"
"rewardAcc": "u128",
"totalShares": "Balance",
"totalStake": "Balance",
"freeStake": "Balance",
"releasingStake": "Balance",
"workers": "Vec<WorkerPublicKey>",
"withdrawQueue": "Vec<WithdrawInfo>"
},
"ProposalStatus": {
"_enum": {
"Initiated": null,
"Approved": null,
"Rejected": null
}
"WithdrawInfo": {
"user": "AccountId",
"shares": "Balance",
"startTime": "u64"
},
"ProposalVotes": {
"votes_for": "Vec<AccountId>",
"votes_against": "Vec<AccountId>",
"status": "ProposalStatus",
"expiry": "BlockNumber"
},
"Kitty": {
"id": "Hash",
"dna": "Hash",
"price": "Balance",
"gen": "u64"
},
"WorkerStateEnum": {
"_enum": {
"Empty": null,
"Free": null,
"Gatekeeper": null,
"MiningPending": null,
"Mining": "BlockNumber",
"MiningStopping": null
}
},
"WorkerInfo": {
"machineId": "Vec<u8>",
"pubkey": "Vec<u8>",
"pubkey": "WorkerPublicKey",
"ecdhPubkey": "EcdhPublicKey",
"runtimeVersion": "u32",
"lastUpdated": "u64",
"state": "WorkerStateEnum",
"score": "Option<Score>",
"operator": "Option<AccountId>",
"confidenceLevel": "u8",
"runtimeVersion": "u32"
},
"Score": {
"overallScore": "u32",
"initialScore": "Option<u32>",
"features": "Vec<u32>"
},
"StashInfo": {
"controller": "AccountId",
"payoutPrefs": "PayoutPrefs"
"MinerInfo": {
"state": "MinerState",
"ve": "u128",
"v": "u128",
"vUpdatedAt": "u64",
"benchmark": "Benchmark",
"coolDownStart": "u64",
"stats": "MinerStats"
},
"PayoutPrefs": {
"commission": "u32",
"target": "AccountId"
"Benchmark": {
"pInstant": "u32",
"pInit": "u32",
"iterations": "u64",
"miningStartTime": "u64",
"updatedAt": "u64"
},
"BlockRewardInfo": {
"MinerState": {
"_enum": {
"Ready": null,
"MiningIdle": null,
"MiningActive": null,
"MiningUnresponsive": null,
"MiningCoolingDown": null
}
},
"MinerStats": {
"totalReward": "Balance"
},
"HeartbeatChallenge": {
"seed": "U256",
"onlineTarget": "U256",
"computeTarget": "U256"
"onlineTarget": "U256"
},
"RoundInfo": {
"round": "u32",
"startBlock": "BlockNumber"
"GatekeeperEvent": {
"_enum": {
"Registered": "NewGatekeeperEvent",
"DispatchMasterKey": "DispatchMasterKeyEvent",
"MasterPubkeyAvailable": null,
"NewRandomNumber": "RandomNumberEvent",
"TokenomicParametersChanged": "TokenomicParameters"
}
},
"RoundStats": {
"round": "u32",
"onlineWorkers": "u32",
"computeWorkers": "u32",
"fracTargetOnlineReward": "u32",
"totalPower": "u32",
"fracTargetComputeReward": "u32"
"NewGatekeeperEvent": {
"pubkey": "WorkerPublicKey",
"ecdhPubkey": "EcdhPublicKey",
"gatekeeperCount": "u32"
},
"StashWorkerStats": {
"slash": "Balance",
"computeReceived": "Balance",
"onlineReceived": "Balance"
"DispatchMasterKeyEvent": {
"dest": "WorkerPublicKey",
"ecdhPubkey": "EcdhPublicKey",
"encryptedMasterKey": "Vec<u8>",
"iv": "[u8; 12]"
},
"MinerStatsDelta": {
"numWorker": "i32",
"numPower": "i32"
"RandomNumberEvent": {
"blockNumber": "u32",
"randomNumber": "[u8; 32]",
"lastRandomNumber": "[u8; 32]"
},
"PayoutReason": {
"_enum": {
"OnlineReward": null,
"ComputeReward": null
}
"TokenomicParameters": {
"phaRate": "U64F64Bits",
"rho": "U64F64Bits",
"budgetPerBlock": "U64F64Bits",
"vMax": "U64F64Bits",
"costK": "U64F64Bits",
"costB": "U64F64Bits",
"slashRate": "U64F64Bits",
"treasuryRatio": "U64F64Bits",
"heartbeatWindow": "u32",
"rigK": "U64F64Bits",
"rigB": "U64F64Bits",
"re": "U64F64Bits",
"k": "U64F64Bits",
"kappa": "U64F64Bits"
},
"TokenomicParams": "TokenomicParameters",
"U64F64Bits": "u128",
"UserStakeInfo": {
"user": "AccountId",
"locked": "Balance",
"shares": "Balance",
"availableRewards": "Balance",
"rewardDebt": "Balance"
}
};
//# sourceMappingURL=phala-dev.js.map
{
"name": "@phala/typedefs",
"version": "0.2.14",
"version": "0.2.15",
"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

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

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