diff --git a/packages/apps-config/package.json b/packages/apps-config/package.json index c79373abd3..8727e4dea7 100644 --- a/packages/apps-config/package.json +++ b/packages/apps-config/package.json @@ -30,7 +30,7 @@ "@mangata-finance/types": "^0.8.0", "@metaverse-network-sdk/type-definitions": "^0.0.1-13", "@parallel-finance/type-definitions": "1.7.13", - "@phala/typedefs": "0.2.31", + "@phala/typedefs": "0.2.32", "@polkadot/api": "^9.6.1", "@polkadot/api-derive": "^9.6.1", "@polkadot/networks": "^10.1.11", diff --git a/packages/apps-config/src/api/spec/khala.ts b/packages/apps-config/src/api/spec/khala.ts index f556a9ddd4..53838c744e 100644 --- a/packages/apps-config/src/api/spec/khala.ts +++ b/packages/apps-config/src/api/spec/khala.ts @@ -3,6 +3,6 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types'; -import { versionedKhala } from '@phala/typedefs'; +import { typesBundle } from '@phala/typedefs'; -export default versionedKhala as OverrideBundleDefinition; +export default typesBundle as OverrideBundleDefinition; diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 95795bb27d..436046e791 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -36949,489 +36949,491 @@ export const typesBundle = { } }, "khala": { - "0": { - "minmax": [ - 0, - 10 - ], - "types": { - "ChainId": "u8", - "Address": "MultiAddress", - "LookupSource": "MultiAddress", - "DispatchErrorModule": "DispatchErrorModuleU8", - "Keys": "AccountId", - "BridgeChainId": "u8", - "BridgeEvent": { - "_enum": { - "FungibleTransfer": "FungibleTransfer", - "NonFungibleTransfer": "NonFungibleTransfer", - "GenericTransfer": "GenericTransfer" - } - }, - "FungibleTransfer": { - "destId": "BridgeChainId", - "nonce": "DepositNonce", - "resourceId": "ResourceId", - "amount": "U256", - "recipient": "Vec" - }, - "NonFungibleTransfer": { - "destId": "BridgeChainId", - "nonce": "DepositNonce", - "resourceId": "ResourceId", - "tokenId": "Vec", - "recipient": "Vec", - "metadata": "Vec" - }, - "GenericTransfer": { - "destId": "BridgeChainId", - "nonce": "DepositNonce", - "resourceId": "ResourceId", - "metadata": "Vec" - }, - "ResourceId": "[u8; 32]", - "TokenId": "U256", - "DepositNonce": "u64", - "ProposalStatus": { - "_enum": { - "Initiated": null, - "Approved": null, - "Rejected": null - } - }, - "ProposalVotes": { - "votesFor": "Vec", - "votesAgainst": "Vec", - "status": "ProposalStatus", - "expiry": "BlockNumber" - }, - "AssetInfo": { - "destId": "BridgeChainId", - "assetIdentity": "Vec" - }, - "ProxyType": { - "_enum": [ - "Any", - "NonTransfer", - "CancelProxy", - "Governance", - "Collator", - "StakePoolManager" - ] - }, - "Sr25519PublicKey": "[u8; 32]", - "MasterPublicKey": "Sr25519PublicKey", - "WorkerPublicKey": "Sr25519PublicKey", - "ContractPublicKey": "Sr25519PublicKey", - "EcdhPublicKey": "[u8; 32]", - "MessageOrigin": { - "_enum": { - "Pallet": "Vec", - "Contract": "H256", - "Worker": "Sr25519PublicKey", - "AccountId": "H256", - "MultiLocation": "Vec", - "Gatekeeper": null - } - }, - "Attestation": { - "_enum": { - "SgxIas": "AttestationSgxIas" - } - }, - "AttestationSgxIas": { - "raReport": "Vec", - "signature": "Vec", - "rawSigningCert": "Vec" - }, - "SenderId": "MessageOrigin", - "Path": "Vec", - "Topic": "Path", - "Message": { - "sender": "SenderId", - "destination": "Topic", - "payload": "Vec" - }, - "SignedMessage": { - "message": "Message", - "sequence": "u64", - "signature": "Vec" - }, - "WorkerRegistrationInfo": { - "version": "u32", - "machineId": "Vec", - "pubkey": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey", - "genesisBlockHash": "H256", - "features": "Vec", - "operator": "Option" - }, - "PoolInfo": { - "pid": "u64", - "owner": "AccountId", - "payoutCommission": "Option", - "ownerReward": "Balance", - "cap": "Option", - "rewardAcc": "u128", - "totalShares": "Balance", - "totalStake": "Balance", - "freeStake": "Balance", - "releasingStake": "Balance", - "workers": "Vec", - "withdrawQueue": "Vec" - }, - "WithdrawInfo": { - "user": "AccountId", - "shares": "Balance", - "startTime": "u64" - }, - "WorkerInfo": { - "pubkey": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey", - "runtimeVersion": "u32", - "lastUpdated": "u64", - "operator": "Option", - "confidenceLevel": "u8", - "initialScore": "Option", - "features": "Vec" - }, - "MinerInfo": { - "state": "MinerState", - "ve": "u128", - "v": "u128", - "vUpdatedAt": "u64", - "benchmark": "Benchmark", - "coolDownStart": "u64", - "stats": "MinerStats" - }, - "Benchmark": { - "pInit": "u32", - "pInstant": "u32", - "iterations": "u64", - "miningStartTime": "u64", - "challengeTimeLast": "u64" - }, - "MinerState": { - "_enum": { - "Ready": null, - "MiningIdle": null, - "MiningActive": null, - "MiningUnresponsive": null, - "MiningCoolingDown": null - } - }, - "MinerStats": { - "totalReward": "Balance" - }, - "HeartbeatChallenge": { - "seed": "U256", - "onlineTarget": "U256" - }, - "KeyDistribution": { - "_enum": { - "MasterKeyDistribution": "DispatchMasterKeyEvent" - } - }, - "GatekeeperLaunch": { - "_enum": { - "FirstGatekeeper": "NewGatekeeperEvent", - "MasterPubkeyOnChain": null - } - }, - "GatekeeperChange": { - "_enum": { - "GatekeeperRegistered": "NewGatekeeperEvent" - } - }, - "GatekeeperEvent": { - "_enum": { - "NewRandomNumber": "RandomNumberEvent", - "TokenomicParametersChanged": "TokenomicParameters" + "types": [ + { + "minmax": [ + 0, + 10 + ], + "types": { + "ChainId": "u8", + "Address": "MultiAddress", + "LookupSource": "MultiAddress", + "DispatchErrorModule": "DispatchErrorModuleU8", + "Keys": "AccountId", + "BridgeChainId": "u8", + "BridgeEvent": { + "_enum": { + "FungibleTransfer": "FungibleTransfer", + "NonFungibleTransfer": "NonFungibleTransfer", + "GenericTransfer": "GenericTransfer" + } + }, + "FungibleTransfer": { + "destId": "BridgeChainId", + "nonce": "DepositNonce", + "resourceId": "ResourceId", + "amount": "U256", + "recipient": "Vec" + }, + "NonFungibleTransfer": { + "destId": "BridgeChainId", + "nonce": "DepositNonce", + "resourceId": "ResourceId", + "tokenId": "Vec", + "recipient": "Vec", + "metadata": "Vec" + }, + "GenericTransfer": { + "destId": "BridgeChainId", + "nonce": "DepositNonce", + "resourceId": "ResourceId", + "metadata": "Vec" + }, + "ResourceId": "[u8; 32]", + "TokenId": "U256", + "DepositNonce": "u64", + "ProposalStatus": { + "_enum": { + "Initiated": null, + "Approved": null, + "Rejected": null + } + }, + "ProposalVotes": { + "votesFor": "Vec", + "votesAgainst": "Vec", + "status": "ProposalStatus", + "expiry": "BlockNumber" + }, + "AssetInfo": { + "destId": "BridgeChainId", + "assetIdentity": "Vec" + }, + "ProxyType": { + "_enum": [ + "Any", + "NonTransfer", + "CancelProxy", + "Governance", + "Collator", + "StakePoolManager" + ] + }, + "Sr25519PublicKey": "[u8; 32]", + "MasterPublicKey": "Sr25519PublicKey", + "WorkerPublicKey": "Sr25519PublicKey", + "ContractPublicKey": "Sr25519PublicKey", + "EcdhPublicKey": "[u8; 32]", + "MessageOrigin": { + "_enum": { + "Pallet": "Vec", + "Contract": "H256", + "Worker": "Sr25519PublicKey", + "AccountId": "H256", + "MultiLocation": "Vec", + "Gatekeeper": null + } + }, + "Attestation": { + "_enum": { + "SgxIas": "AttestationSgxIas" + } + }, + "AttestationSgxIas": { + "raReport": "Vec", + "signature": "Vec", + "rawSigningCert": "Vec" + }, + "SenderId": "MessageOrigin", + "Path": "Vec", + "Topic": "Path", + "Message": { + "sender": "SenderId", + "destination": "Topic", + "payload": "Vec" + }, + "SignedMessage": { + "message": "Message", + "sequence": "u64", + "signature": "Vec" + }, + "WorkerRegistrationInfo": { + "version": "u32", + "machineId": "Vec", + "pubkey": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey", + "genesisBlockHash": "H256", + "features": "Vec", + "operator": "Option" + }, + "PoolInfo": { + "pid": "u64", + "owner": "AccountId", + "payoutCommission": "Option", + "ownerReward": "Balance", + "cap": "Option", + "rewardAcc": "u128", + "totalShares": "Balance", + "totalStake": "Balance", + "freeStake": "Balance", + "releasingStake": "Balance", + "workers": "Vec", + "withdrawQueue": "Vec" + }, + "WithdrawInfo": { + "user": "AccountId", + "shares": "Balance", + "startTime": "u64" + }, + "WorkerInfo": { + "pubkey": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey", + "runtimeVersion": "u32", + "lastUpdated": "u64", + "operator": "Option", + "confidenceLevel": "u8", + "initialScore": "Option", + "features": "Vec" + }, + "MinerInfo": { + "state": "MinerState", + "ve": "u128", + "v": "u128", + "vUpdatedAt": "u64", + "benchmark": "Benchmark", + "coolDownStart": "u64", + "stats": "MinerStats" + }, + "Benchmark": { + "pInit": "u32", + "pInstant": "u32", + "iterations": "u64", + "miningStartTime": "u64", + "challengeTimeLast": "u64" + }, + "MinerState": { + "_enum": { + "Ready": null, + "MiningIdle": null, + "MiningActive": null, + "MiningUnresponsive": null, + "MiningCoolingDown": null + } + }, + "MinerStats": { + "totalReward": "Balance" + }, + "HeartbeatChallenge": { + "seed": "U256", + "onlineTarget": "U256" + }, + "KeyDistribution": { + "_enum": { + "MasterKeyDistribution": "DispatchMasterKeyEvent" + } + }, + "GatekeeperLaunch": { + "_enum": { + "FirstGatekeeper": "NewGatekeeperEvent", + "MasterPubkeyOnChain": null + } + }, + "GatekeeperChange": { + "_enum": { + "GatekeeperRegistered": "NewGatekeeperEvent" + } + }, + "GatekeeperEvent": { + "_enum": { + "NewRandomNumber": "RandomNumberEvent", + "TokenomicParametersChanged": "TokenomicParameters" + } + }, + "NewGatekeeperEvent": { + "pubkey": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey" + }, + "DispatchMasterKeyEvent": { + "dest": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey", + "encryptedMasterKey": "Vec", + "iv": "[u8; 12]" + }, + "RandomNumberEvent": { + "blockNumber": "u32", + "randomNumber": "[u8; 32]", + "lastRandomNumber": "[u8; 32]" + }, + "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" } - }, - "NewGatekeeperEvent": { - "pubkey": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey" - }, - "DispatchMasterKeyEvent": { - "dest": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey", - "encryptedMasterKey": "Vec", - "iv": "[u8; 12]" - }, - "RandomNumberEvent": { - "blockNumber": "u32", - "randomNumber": "[u8; 32]", - "lastRandomNumber": "[u8; 32]" - }, - "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" } - } - }, - "1": { - "minmax": [ - 11, - null - ], - "types": { - "Address": "MultiAddress", - "LookupSource": "MultiAddress", - "DispatchErrorModule": "DispatchErrorModuleU8", - "Keys": "AccountId", - "BridgeChainId": "u8", - "BridgeEvent": { - "_enum": { - "FungibleTransfer": "FungibleTransfer", - "NonFungibleTransfer": "NonFungibleTransfer", - "GenericTransfer": "GenericTransfer" - } - }, - "FungibleTransfer": { - "destId": "BridgeChainId", - "nonce": "DepositNonce", - "resourceId": "ResourceId", - "amount": "U256", - "recipient": "Vec" - }, - "NonFungibleTransfer": { - "destId": "BridgeChainId", - "nonce": "DepositNonce", - "resourceId": "ResourceId", - "tokenId": "Vec", - "recipient": "Vec", - "metadata": "Vec" - }, - "GenericTransfer": { - "destId": "BridgeChainId", - "nonce": "DepositNonce", - "resourceId": "ResourceId", - "metadata": "Vec" - }, - "ResourceId": "[u8; 32]", - "TokenId": "U256", - "DepositNonce": "u64", - "ProposalStatus": { - "_enum": { - "Initiated": null, - "Approved": null, - "Rejected": null - } - }, - "ProposalVotes": { - "votesFor": "Vec", - "votesAgainst": "Vec", - "status": "ProposalStatus", - "expiry": "BlockNumber" - }, - "AssetInfo": { - "destId": "BridgeChainId", - "assetIdentity": "Vec" - }, - "ProxyType": { - "_enum": [ - "Any", - "NonTransfer", - "CancelProxy", - "Governance", - "Collator", - "StakePoolManager" - ] - }, - "Sr25519PublicKey": "[u8; 32]", - "MasterPublicKey": "Sr25519PublicKey", - "WorkerPublicKey": "Sr25519PublicKey", - "ContractPublicKey": "Sr25519PublicKey", - "EcdhPublicKey": "[u8; 32]", - "MessageOrigin": { - "_enum": { - "Pallet": "Vec", - "Contract": "H256", - "Worker": "Sr25519PublicKey", - "AccountId": "H256", - "MultiLocation": "Vec", - "Gatekeeper": null - } - }, - "Attestation": { - "_enum": { - "SgxIas": "AttestationSgxIas" - } - }, - "AttestationSgxIas": { - "raReport": "Vec", - "signature": "Vec", - "rawSigningCert": "Vec" - }, - "SenderId": "MessageOrigin", - "Path": "Vec", - "Topic": "Path", - "Message": { - "sender": "SenderId", - "destination": "Topic", - "payload": "Vec" - }, - "SignedMessage": { - "message": "Message", - "sequence": "u64", - "signature": "Vec" - }, - "WorkerRegistrationInfo": { - "version": "u32", - "machineId": "Vec", - "pubkey": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey", - "genesisBlockHash": "H256", - "features": "Vec", - "operator": "Option" - }, - "PoolInfo": { - "pid": "u64", - "owner": "AccountId", - "payoutCommission": "Option", - "ownerReward": "Balance", - "cap": "Option", - "rewardAcc": "u128", - "totalShares": "Balance", - "totalStake": "Balance", - "freeStake": "Balance", - "releasingStake": "Balance", - "workers": "Vec", - "withdrawQueue": "Vec" - }, - "WithdrawInfo": { - "user": "AccountId", - "shares": "Balance", - "startTime": "u64" - }, - "WorkerInfo": { - "pubkey": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey", - "runtimeVersion": "u32", - "lastUpdated": "u64", - "operator": "Option", - "confidenceLevel": "u8", - "initialScore": "Option", - "features": "Vec" - }, - "MinerInfo": { - "state": "MinerState", - "ve": "u128", - "v": "u128", - "vUpdatedAt": "u64", - "benchmark": "Benchmark", - "coolDownStart": "u64", - "stats": "MinerStats" - }, - "Benchmark": { - "pInit": "u32", - "pInstant": "u32", - "iterations": "u64", - "miningStartTime": "u64", - "challengeTimeLast": "u64" - }, - "MinerState": { - "_enum": { - "Ready": null, - "MiningIdle": null, - "MiningActive": null, - "MiningUnresponsive": null, - "MiningCoolingDown": null - } - }, - "MinerStats": { - "totalReward": "Balance" - }, - "HeartbeatChallenge": { - "seed": "U256", - "onlineTarget": "U256" - }, - "KeyDistribution": { - "_enum": { - "MasterKeyDistribution": "DispatchMasterKeyEvent" - } - }, - "GatekeeperLaunch": { - "_enum": { - "FirstGatekeeper": "NewGatekeeperEvent", - "MasterPubkeyOnChain": null - } - }, - "GatekeeperChange": { - "_enum": { - "GatekeeperRegistered": "NewGatekeeperEvent" - } - }, - "GatekeeperEvent": { - "_enum": { - "NewRandomNumber": "RandomNumberEvent", - "TokenomicParametersChanged": "TokenomicParameters" + }, + { + "minmax": [ + 11, + null + ], + "types": { + "Address": "MultiAddress", + "LookupSource": "MultiAddress", + "DispatchErrorModule": "DispatchErrorModuleU8", + "Keys": "AccountId", + "BridgeChainId": "u8", + "BridgeEvent": { + "_enum": { + "FungibleTransfer": "FungibleTransfer", + "NonFungibleTransfer": "NonFungibleTransfer", + "GenericTransfer": "GenericTransfer" + } + }, + "FungibleTransfer": { + "destId": "BridgeChainId", + "nonce": "DepositNonce", + "resourceId": "ResourceId", + "amount": "U256", + "recipient": "Vec" + }, + "NonFungibleTransfer": { + "destId": "BridgeChainId", + "nonce": "DepositNonce", + "resourceId": "ResourceId", + "tokenId": "Vec", + "recipient": "Vec", + "metadata": "Vec" + }, + "GenericTransfer": { + "destId": "BridgeChainId", + "nonce": "DepositNonce", + "resourceId": "ResourceId", + "metadata": "Vec" + }, + "ResourceId": "[u8; 32]", + "TokenId": "U256", + "DepositNonce": "u64", + "ProposalStatus": { + "_enum": { + "Initiated": null, + "Approved": null, + "Rejected": null + } + }, + "ProposalVotes": { + "votesFor": "Vec", + "votesAgainst": "Vec", + "status": "ProposalStatus", + "expiry": "BlockNumber" + }, + "AssetInfo": { + "destId": "BridgeChainId", + "assetIdentity": "Vec" + }, + "ProxyType": { + "_enum": [ + "Any", + "NonTransfer", + "CancelProxy", + "Governance", + "Collator", + "StakePoolManager" + ] + }, + "Sr25519PublicKey": "[u8; 32]", + "MasterPublicKey": "Sr25519PublicKey", + "WorkerPublicKey": "Sr25519PublicKey", + "ContractPublicKey": "Sr25519PublicKey", + "EcdhPublicKey": "[u8; 32]", + "MessageOrigin": { + "_enum": { + "Pallet": "Vec", + "Contract": "H256", + "Worker": "Sr25519PublicKey", + "AccountId": "H256", + "MultiLocation": "Vec", + "Gatekeeper": null + } + }, + "Attestation": { + "_enum": { + "SgxIas": "AttestationSgxIas" + } + }, + "AttestationSgxIas": { + "raReport": "Vec", + "signature": "Vec", + "rawSigningCert": "Vec" + }, + "SenderId": "MessageOrigin", + "Path": "Vec", + "Topic": "Path", + "Message": { + "sender": "SenderId", + "destination": "Topic", + "payload": "Vec" + }, + "SignedMessage": { + "message": "Message", + "sequence": "u64", + "signature": "Vec" + }, + "WorkerRegistrationInfo": { + "version": "u32", + "machineId": "Vec", + "pubkey": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey", + "genesisBlockHash": "H256", + "features": "Vec", + "operator": "Option" + }, + "PoolInfo": { + "pid": "u64", + "owner": "AccountId", + "payoutCommission": "Option", + "ownerReward": "Balance", + "cap": "Option", + "rewardAcc": "u128", + "totalShares": "Balance", + "totalStake": "Balance", + "freeStake": "Balance", + "releasingStake": "Balance", + "workers": "Vec", + "withdrawQueue": "Vec" + }, + "WithdrawInfo": { + "user": "AccountId", + "shares": "Balance", + "startTime": "u64" + }, + "WorkerInfo": { + "pubkey": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey", + "runtimeVersion": "u32", + "lastUpdated": "u64", + "operator": "Option", + "confidenceLevel": "u8", + "initialScore": "Option", + "features": "Vec" + }, + "MinerInfo": { + "state": "MinerState", + "ve": "u128", + "v": "u128", + "vUpdatedAt": "u64", + "benchmark": "Benchmark", + "coolDownStart": "u64", + "stats": "MinerStats" + }, + "Benchmark": { + "pInit": "u32", + "pInstant": "u32", + "iterations": "u64", + "miningStartTime": "u64", + "challengeTimeLast": "u64" + }, + "MinerState": { + "_enum": { + "Ready": null, + "MiningIdle": null, + "MiningActive": null, + "MiningUnresponsive": null, + "MiningCoolingDown": null + } + }, + "MinerStats": { + "totalReward": "Balance" + }, + "HeartbeatChallenge": { + "seed": "U256", + "onlineTarget": "U256" + }, + "KeyDistribution": { + "_enum": { + "MasterKeyDistribution": "DispatchMasterKeyEvent" + } + }, + "GatekeeperLaunch": { + "_enum": { + "FirstGatekeeper": "NewGatekeeperEvent", + "MasterPubkeyOnChain": null + } + }, + "GatekeeperChange": { + "_enum": { + "GatekeeperRegistered": "NewGatekeeperEvent" + } + }, + "GatekeeperEvent": { + "_enum": { + "NewRandomNumber": "RandomNumberEvent", + "TokenomicParametersChanged": "TokenomicParameters" + } + }, + "NewGatekeeperEvent": { + "pubkey": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey" + }, + "DispatchMasterKeyEvent": { + "dest": "WorkerPublicKey", + "ecdhPubkey": "EcdhPublicKey", + "encryptedMasterKey": "Vec", + "iv": "[u8; 12]" + }, + "RandomNumberEvent": { + "blockNumber": "u32", + "randomNumber": "[u8; 32]", + "lastRandomNumber": "[u8; 32]" + }, + "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" } - }, - "NewGatekeeperEvent": { - "pubkey": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey" - }, - "DispatchMasterKeyEvent": { - "dest": "WorkerPublicKey", - "ecdhPubkey": "EcdhPublicKey", - "encryptedMasterKey": "Vec", - "iv": "[u8; 12]" - }, - "RandomNumberEvent": { - "blockNumber": "u32", - "randomNumber": "[u8; 32]", - "lastRandomNumber": "[u8; 32]" - }, - "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" } } - } + ] }, "kilt-parachain": { "types": [ diff --git a/yarn.lock b/yarn.lock index a318c3262b..9e092e3bd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2686,10 +2686,10 @@ __metadata: languageName: node linkType: hard -"@phala/typedefs@npm:0.2.31": - version: 0.2.31 - resolution: "@phala/typedefs@npm:0.2.31" - checksum: 53aa61bc1c4397e26020ed100e3333fdc410af4cf11e7d848dc65b77dfa6064da5c8f93d6edb6dfc49d800a5c99f2f5fa5ed04e456973bf9c694d180f6ed71fd +"@phala/typedefs@npm:0.2.32": + version: 0.2.32 + resolution: "@phala/typedefs@npm:0.2.32" + checksum: e8bc5f355dc5d0bc118e2621da479566266adfb7305634a1bbb1cd2b6566c56d9e482f8cd21112b7365a33d3b0ec9bc6ede8fbf904e7f7d6fe97d242c6b36a50 languageName: node linkType: hard @@ -3158,7 +3158,7 @@ __metadata: "@mangata-finance/types": ^0.8.0 "@metaverse-network-sdk/type-definitions": ^0.0.1-13 "@parallel-finance/type-definitions": 1.7.13 - "@phala/typedefs": 0.2.31 + "@phala/typedefs": 0.2.32 "@polkadot/api": ^9.6.1 "@polkadot/api-derive": ^9.6.1 "@polkadot/networks": ^10.1.11