diff --git a/packages/apps-config/package.json b/packages/apps-config/package.json index 0db5963e1b..482ef8bf55 100644 --- a/packages/apps-config/package.json +++ b/packages/apps-config/package.json @@ -30,7 +30,7 @@ "@interlay/interbtc-types": "1.12.0", "@kiltprotocol/type-definitions": "0.32.1", "@laminar/type-definitions": "0.3.1", - "@logion/node-api": "0.9.0-3", + "@logion/node-api": "0.16.0-1", "@metaverse-network-sdk/type-definitions": "0.0.1-16", "@parallel-finance/type-definitions": "1.7.17", "@phala/typedefs": "0.2.33", diff --git a/packages/apps-config/src/api/spec/logion.ts b/packages/apps-config/src/api/spec/logion.ts index 3022fc2e0c..a274b6b276 100644 --- a/packages/apps-config/src/api/spec/logion.ts +++ b/packages/apps-config/src/api/spec/logion.ts @@ -6,7 +6,7 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types'; -import logionDefault, { session as logionSession } from '@logion/node-api/dist/interfaces/definitions.js'; +import logionDefault, { runtime as logionRuntime, session as logionSession } from '@logion/node-api/interfaces/definitions'; const defaultTypesUpTo109 = { Address: 'MultiAddress', @@ -327,6 +327,7 @@ const definitions: OverrideBundleDefinition = { minmax: [117, undefined], types: { ...logionDefault.types, + ...logionRuntime.types, ...logionSession.types } } diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index ce8ab8a0b0..0a4a8a6855 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -59345,12 +59345,19 @@ export const typesBundle = { "collection_last_block_submission": "Option", "collection_max_size": "Option", "collection_can_upload": "bool", - "seal": "Option" + "seal": "Option", + "sponsorship_id": "Option" + }, + "MetadataItemParams": { + "name": "Vec", + "value": "Vec", + "submitter": "SupportedAccountId" }, "MetadataItem": { "name": "Vec", "value": "Vec", - "submitter": "AccountId" + "submitter": "SupportedAccountId", + "acknowledged": "bool" }, "LocType": { "_enum": [ @@ -59363,10 +59370,16 @@ export const typesBundle = { "id": "LocId", "nature": "Vec" }, + "FileParams": { + "hash": "Hash", + "nature": "Vec", + "submitter": "SupportedAccountId" + }, "File": { "hash": "Hash", "nature": "Vec", - "submitter": "AccountId" + "submitter": "SupportedAccountId", + "acknowledged": "bool" }, "LocVoidInfo": { "replacer": "Option" @@ -59388,7 +59401,8 @@ export const typesBundle = { "_enum": { "None": null, "Account": "AccountId", - "Loc": "LocId" + "Loc": "LocId", + "OtherAccount": "OtherAccountId" } }, "CollectionSize": "u32", @@ -59432,6 +59446,269 @@ export const typesBundle = { "tcLoc": "LocId", "details": "Vec" }, + "LogionVote": { + "locId": "LocId", + "ballots": "Vec" + }, + "Ballot": { + "voter": "LocId", + "status": "AccountId" + }, + "BallotStatus": { + "_enum": [ + "NotVoted", + "VotedYes", + "VotedNo" + ] + }, + "VoteId": "u64", + "VoteClosed": "bool", + "VoteApproved": "bool", + "LegalOfficerCaseSummary": { + "owner": "AccountId", + "requester": "Option" + }, + "TokensRecord": { + "description": "Vec", + "files": "Vec", + "submitter": "AccountId" + }, + "TokensRecordFile": { + "name": "Vec", + "contentType": "Vec", + "file_size": "u32", + "hash": "Hash" + }, + "UnboundedTokensRecordFile": "TokensRecordFile", + "UnboundedTokensRecordFileOf": "TokensRecordFile", + "VerifiedIssuer": { + "identityLoc": "LocId" + }, + "OtherAccountId": { + "_enum": { + "Ethereum": "H160" + } + }, + "SupportedAccountId": { + "_enum": { + "None": null, + "Polkadot": "AccountId", + "Other": "OtherAccountId" + } + }, + "SponsorshipId": "u128", + "Sponsorship": { + "sponsor": "AccountId", + "sponsored_account": "SupportedAccountId", + "legal_officer": "AccountId", + "loc_id": "Option" + }, + "Beneficiary": { + "_enum": { + "Treasury": null, + "LegalOfficer": "AccountId" + } + }, + "Fixed64": "Int<64, Fixed64>", + "FixedI64": "Int<64, FixedI64>", + "FixedU64": "UInt<64, FixedU64>", + "Fixed128": "Int<128, Fixed128>", + "FixedI128": "Int<128, FixedI128>", + "FixedU128": "UInt<128, FixedU128>", + "I32F32": "Int<64, I32F32>", + "U32F32": "UInt<64, U32F32>", + "PerU16": "UInt<16, PerU16>", + "Perbill": "UInt<32, Perbill>", + "Percent": "UInt<8, Percent>", + "Permill": "UInt<32, Permill>", + "Perquintill": "UInt<64, Perquintill>", + "AccountId": "AccountId32", + "AccountId20": "GenericEthereumAccountId", + "AccountId32": "GenericAccountId32", + "AccountId33": "GenericAccountId33", + "AccountIdOf": "AccountId", + "AccountIndex": "GenericAccountIndex", + "Address": "MultiAddress", + "AssetId": "u64", + "Balance": "UInt<128, Balance>", + "BalanceOf": "Balance", + "Block": "GenericBlock", + "BlockNumber": "u32", + "BlockNumberFor": "BlockNumber", + "BlockNumberOf": "BlockNumber", + "Call": "GenericCall", + "CallHash": "Hash", + "CallHashOf": "CallHash", + "ChangesTrieConfiguration": { + "digestInterval": "u32", + "digestLevels": "u32" + }, + "ChangesTrieSignal": { + "_enum": { + "NewConfiguration": "Option" + } + }, + "ConsensusEngineId": "GenericConsensusEngineId", + "CodecHash": "Hash", + "CrateVersion": { + "major": "u16", + "minor": "u8", + "patch": "u8" + }, + "Digest": { + "logs": "Vec" + }, + "DigestItem": { + "_enum": { + "Other": "Bytes", + "AuthoritiesChange": "Vec", + "ChangesTrieRoot": "Hash", + "SealV0": "SealV0", + "Consensus": "Consensus", + "Seal": "Seal", + "PreRuntime": "PreRuntime", + "ChangesTrieSignal": "ChangesTrieSignal", + "RuntimeEnvironmentUpdated": "Null" + } + }, + "ExtrinsicsWeight": { + "normal": "Weight", + "operational": "Weight" + }, + "H32": "[u8; 4; H32]", + "H64": "[u8; 8; H64]", + "H128": "[u8; 16; H128]", + "H160": "[u8; 20; H160]", + "H256": "[u8; 32; H256]", + "H512": "[u8; 64; H512]", + "H1024": "[u8; 128; H1024]", + "H2048": "[u8; 256; H2048]", + "Hash": "H256", + "Header": { + "parentHash": "Hash", + "number": "Compact", + "stateRoot": "Hash", + "extrinsicsRoot": "Hash", + "digest": "Digest" + }, + "HeaderPartial": { + "parentHash": "Hash", + "number": "BlockNumber" + }, + "IndicesLookupSource": "GenericLookupSource", + "Index": "u32", + "Justification": "(ConsensusEngineId, EncodedJustification)", + "EncodedJustification": "Bytes", + "Justifications": "Vec", + "KeyValue": "(StorageKey, StorageData)", + "KeyTypeId": "u32", + "LockIdentifier": "[u8; 8]", + "LookupSource": "MultiAddress", + "LookupTarget": "AccountId", + "ModuleId": "LockIdentifier", + "MultiAddress": "GenericMultiAddress", + "MultiSigner": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Ecdsa": "[u8; 33]" + } + }, + "Moment": "UInt<64, Moment>", + "OpaqueCall": "Bytes", + "Origin": "DoNotConstruct", + "OriginCaller": { + "_enum": { + "System": "SystemOrigin" + } + }, + "PalletId": "LockIdentifier", + "PalletsOrigin": "OriginCaller", + "PalletVersion": { + "major": "u16", + "minor": "u8", + "patch": "u8" + }, + "Pays": { + "_enum": [ + "Yes", + "No" + ] + }, + "Phantom": "Null", + "PhantomData": "Null", + "Releases": { + "_enum": [ + "V1", + "V2", + "V3", + "V4", + "V5", + "V6", + "V7", + "V8", + "V9", + "V10" + ] + }, + "RuntimeCall": "Call", + "RuntimeEvent": "Event", + "RuntimeDbWeight": { + "read": "Weight", + "write": "Weight" + }, + "SignedBlock": "SignedBlockWithJustifications", + "SignedBlockWithJustification": { + "block": "Block", + "justification": "Option" + }, + "SignedBlockWithJustifications": { + "block": "Block", + "justifications": "Option" + }, + "Slot": "u64", + "SlotDuration": "u64", + "StorageData": "Bytes", + "StorageInfo": { + "palletName": "Bytes", + "storage_name": "Bytes", + "prefix": "Bytes", + "maxValues": "Option", + "maxSize": "Option" + }, + "StorageProof": { + "trieNodes": "Vec" + }, + "TransactionPriority": "u64", + "TransactionLongevity": "u64", + "TransactionTag": "Bytes", + "TransactionInfo": { + "_alias": { + "dataSize": "size" + }, + "chunkRoot": "H256", + "contentHash": "H256", + "dataSize": "u32", + "blockChunks": "u32" + }, + "TransactionStorageProof": { + "chunk": "Vec", + "proof": "Vec>" + }, + "ValidatorId": "AccountId", + "ValidatorIdOf": "ValidatorId", + "WeightV0": "u32", + "WeightV1": "u64", + "WeightV2": { + "refTime": "Compact", + "proofSize": "Compact" + }, + "Weight": "WeightV2", + "WeightMultiplier": "Fixed64", + "PreRuntime": "(ConsensusEngineId, Bytes)", + "SealV0": "(u64, Signature)", + "Seal": "(ConsensusEngineId, Bytes)", + "Consensus": "(ConsensusEngineId, Bytes)", "BeefyKey": "[u8; 33]", "Keys": "SessionKeys2", "SessionKeys1": "(AccountId)", diff --git a/yarn.lock b/yarn.lock index dcfd5c4ceb..1a267fb817 100644 --- a/yarn.lock +++ b/yarn.lock @@ -932,17 +932,17 @@ __metadata: languageName: node linkType: hard -"@logion/node-api@npm:0.9.0-3": - version: 0.9.0-3 - resolution: "@logion/node-api@npm:0.9.0-3" +"@logion/node-api@npm:0.16.0-1": + version: 0.16.0-1 + resolution: "@logion/node-api@npm:0.16.0-1" dependencies: - "@polkadot/api": ^9.10.1 - "@polkadot/util": ^10.2.1 - "@polkadot/util-crypto": ^10.2.1 + "@polkadot/api": ^10.4.1 + "@polkadot/util": ^12.0.1 + "@polkadot/util-crypto": ^12.0.1 "@types/uuid": ^8.3.4 fast-sha256: ^1.3.0 uuid: ^8.3.2 - checksum: 393e3c6f82b3457cb100b5818d9c0462dcb85ce4739dfa11df347413b4540ebf87a6c0c4e16c781b91d525f8a0cfaddfb104253ab31c645d1c3fb53a067f9f44 + checksum: c9e5ac2cc09c4909be1d32f026a9ac4842a9d312ad4a03f38ca2b228255ef6778a4e5389ddf5cf6f0316040c4bbdcacfa6f9287de6a40ca4605e43203d5c2777 languageName: node linkType: hard @@ -1843,7 +1843,7 @@ __metadata: "@interlay/interbtc-types": 1.12.0 "@kiltprotocol/type-definitions": 0.32.1 "@laminar/type-definitions": 0.3.1 - "@logion/node-api": 0.9.0-3 + "@logion/node-api": 0.16.0-1 "@metaverse-network-sdk/type-definitions": 0.0.1-16 "@parallel-finance/type-definitions": 1.7.17 "@phala/typedefs": 0.2.33