@kiltprotocol/type-definitions
Advanced tools
Comparing version 0.1.5 to 0.1.6
import type { OverrideBundleDefinition, RegistryTypes } from "@polkadot/types/types"; | ||
export declare const types8: RegistryTypes; | ||
export declare const types9: RegistryTypes; | ||
export declare const types10: RegistryTypes; | ||
export declare const typeBundleForPolkadot: OverrideBundleDefinition; |
229
lib/index.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.typeBundleForPolkadot = exports.types9 = exports.types8 = void 0; | ||
exports.typeBundleForPolkadot = exports.types10 = exports.types9 = exports.types8 = void 0; | ||
exports.types8 = { | ||
@@ -253,2 +253,223 @@ AccountInfo: "AccountInfoWithDualRefCount", | ||
}; | ||
exports.types10 = { | ||
// Runtime | ||
AccountInfo: "AccountInfoWithTripleRefCount", | ||
Address: "MultiAddress", | ||
AmountOf: "i128", | ||
Balance: "u128", | ||
BlockNumber: "u64", | ||
Index: "u64", | ||
LookupSource: "MultiAddress", | ||
// Ctypes | ||
CtypeCreatorOf: "DidIdentifierOf", | ||
CtypeHashOf: "Hash", | ||
ClaimHashOf: "Hash", | ||
// Attestations | ||
AttesterOf: "DidIdentifierOf", | ||
AttestationDetails: { | ||
ctypeHash: "CtypeHashOf", | ||
attester: "AttesterOf", | ||
delegationId: "Option<DelegationNodeIdOf>", | ||
revoked: "bool", | ||
}, | ||
// Delegations | ||
Permissions: "u32", | ||
DelegationNodeIdOf: "Hash", | ||
DelegatorIdOf: "DidIdentifierOf", | ||
DelegationSignature: "DidSignature", | ||
DelegationRoot: { | ||
ctypeHash: "CtypeHashOf", | ||
owner: "DelegatorIdOf", | ||
revoked: "bool", | ||
}, | ||
DelegationNode: { | ||
rootId: "DelegationNodeIdOf", | ||
parent: "Option<DelegationNodeIdOf>", | ||
owner: "DelegatorIdOf", | ||
permissions: "Permissions", | ||
revoked: "bool", | ||
}, | ||
// DIDs | ||
KeyIdOf: "Hash", | ||
DidIdentifierOf: "AccountId", | ||
AccountIdentifierOf: "AccountId", | ||
BlockNumberOf: "BlockNumber", | ||
DidCallableOf: "Call", | ||
DidVerificationKey: { | ||
_enum: { | ||
Ed25519: "[u8; 32]", | ||
Sr25519: "[u8; 32]", | ||
}, | ||
}, | ||
DidEncryptionKey: { | ||
_enum: { | ||
X25519: "[u8; 32]", | ||
}, | ||
}, | ||
DidPublicKey: { | ||
_enum: { | ||
PublicVerificationKey: "DidVerificationKey", | ||
PublicEncryptionKey: "DidEncryptionKey", | ||
}, | ||
}, | ||
DidVerificationKeyRelationship: { | ||
_enum: [ | ||
"Authentication", | ||
"CapabilityDelegation", | ||
"CapabilityInvocation", | ||
"AssertionMethod", | ||
], | ||
}, | ||
DidSignature: { | ||
_enum: { | ||
Ed25519: "Ed25519Signature", | ||
Sr25519: "Sr25519Signature", | ||
}, | ||
}, | ||
DidError: { | ||
_enum: { | ||
StorageError: "StorageError", | ||
SignatureError: "SignatureError", | ||
UrlError: "UrlError", | ||
InternalError: "Null", | ||
}, | ||
}, | ||
StorageError: { | ||
_enum: { | ||
DidAlreadyPresent: "Null", | ||
DidNotPresent: "Null", | ||
DidKeyNotPresent: "DidVerificationKeyRelationship", | ||
VerificationKeyNotPresent: "Null", | ||
CurrentlyActiveKey: "Null", | ||
MaxTxCounterValue: "Null", | ||
}, | ||
}, | ||
SignatureError: { | ||
_enum: ["InvalidSignatureFormat", "InvalidSignature", "InvalidNonce"], | ||
}, | ||
KeyError: { | ||
_enum: ["InvalidVerificationKeyFormat", "InvalidEncryptionKeyFormat"], | ||
}, | ||
UrlError: { | ||
_enum: ["InvalidUrlEncoding", "InvalidUrlScheme"], | ||
}, | ||
DidPublicKeyDetails: { | ||
key: "DidPublicKey", | ||
blockNumber: "BlockNumberOf", | ||
}, | ||
DidDetails: { | ||
authenticationKey: "KeyIdOf", | ||
keyAgreementKeys: "BTreeSet<KeyIdOf>", | ||
delegationKey: "Option<KeyIdOf>", | ||
attestationKey: "Option<KeyIdOf>", | ||
publicKeys: "BTreeMap<KeyIdOf, DidPublicKeyDetails>", | ||
endpointUrl: "Option<Url>", | ||
lastTxCounter: "u64", | ||
}, | ||
DidCreationOperation: { | ||
did: "DidIdentifierOf", | ||
newAuthenticationKey: "DidVerificationKey", | ||
newKeyAgreementKeys: "BTreeSet<DidEncryptionKey>", | ||
newAttestationKey: "Option<DidVerificationKey>", | ||
newDelegationKey: "Option<DidVerificationKey>", | ||
newEndpointUrl: "Option<Url>", | ||
}, | ||
DidUpdateOperation: { | ||
did: "DidIdentifierOf", | ||
newAuthenticationKey: "Option<DidVerificationKey>", | ||
newKeyAgreementKeys: "BTreeSet<DidEncryptionKey>", | ||
attestationKeyUpdate: "DidVerificationKeyUpdateAction", | ||
delegationKeyUpdate: "DidVerificationKeyUpdateAction", | ||
publicKeysToRemove: "BTreeSet<KeyIdOf>", | ||
newEndpointUrl: "Option<Url>", | ||
txCounter: "u64", | ||
}, | ||
DidVerificationKeyUpdateAction: { | ||
_enum: { | ||
Ignore: "Null", | ||
Change: "DidVerificationKey", | ||
Delete: "Null", | ||
}, | ||
}, | ||
DidDeletionOperation: { | ||
did: "DidIdentifierOf", | ||
txCounter: "u64", | ||
}, | ||
DidAuthorizedCallOperation: { | ||
did: "DidIdentifierOf", | ||
txCounter: "u64", | ||
call: "DidCallableOf", | ||
}, | ||
HttpUrl: { | ||
payload: "Text", | ||
}, | ||
FtpUrl: { | ||
payload: "Text", | ||
}, | ||
IpfsUrl: { | ||
payload: "Text", | ||
}, | ||
Url: { | ||
_enum: { | ||
Http: "HttpUrl", | ||
Ftp: "FtpUrl", | ||
Ipfs: "IpfsUrl", | ||
}, | ||
}, | ||
// LaunchPallet | ||
LockedBalance: { | ||
block: "BlockNumber", | ||
amount: "Balance", | ||
}, | ||
// Staking | ||
BalanceOf: "Balance", | ||
RoundInfo: { | ||
current: "SessionIndex", | ||
first: "BlockNumber", | ||
length: "BlockNumber", | ||
}, | ||
OrderedSet: "Vec<Stake>", | ||
Stake: { | ||
owner: "AccountId", | ||
amount: "Balance", | ||
}, | ||
TotalStake: { | ||
collators: "Balance", | ||
delegators: "Balance", | ||
}, | ||
InflationInfo: { | ||
collator: "StakingInfo", | ||
delegator: "StakingInfo", | ||
}, | ||
StakingInfo: { | ||
maxRate: "Perquintill", | ||
rewardRate: "RewardRate", | ||
}, | ||
RewardRate: { | ||
annual: "Perquintill", | ||
perBlock: "Perquintill", | ||
}, | ||
Delegator: { | ||
delegations: "Vec<Stake>", | ||
total: "Balance", | ||
}, | ||
CollatorSnapshot: { | ||
stake: "Balance", | ||
delegators: "Vec<Stake>", | ||
total: "Balance", | ||
}, | ||
Collator: { | ||
id: "AccountId", | ||
stake: "Balance", | ||
delegators: "Vec<Stake>", | ||
total: "Balance", | ||
state: "CollatorStatus", | ||
}, | ||
CollatorStatus: { | ||
_enum: { | ||
Active: "Null", | ||
Leaving: "SessionIndex", | ||
}, | ||
}, | ||
}; | ||
exports.typeBundleForPolkadot = { | ||
@@ -261,6 +482,10 @@ types: [ | ||
{ | ||
minmax: [9, undefined], | ||
minmax: [9, 9], | ||
types: exports.types9, | ||
}, | ||
{ | ||
minmax: [10, undefined], | ||
types: exports.types10, | ||
}, | ||
], | ||
}; |
@@ -22,3 +22,3 @@ { | ||
}, | ||
"version": "0.1.5" | ||
"version": "0.1.6" | ||
} |
15570
494