@webb-tools/tangle-substrate-types 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/interfaces/augment-api-consts.d.ts +44 -1
- package/build/interfaces/augment-api-errors.d.ts +38 -0
- package/build/interfaces/augment-api-events.d.ts +50 -2
- package/build/interfaces/augment-api-query.d.ts +20 -1
- package/build/interfaces/augment-api-tx.d.ts +137 -1
- package/build/interfaces/lookup.d.ts +378 -260
- package/build/interfaces/lookup.js +381 -263
- package/build/interfaces/registry.d.ts +7 -1
- package/build/interfaces/types-lookup.d.ts +390 -260
- package/build/metadata/static-latest.d.ts +1 -1
- package/build/metadata/static-latest.js +1 -1
- package/build/package.json +1 -1
- package/package.json +1 -1
- package/playground.ts +86 -0
- package/src/interfaces/augment-api-consts.ts +44 -8
- package/src/interfaces/augment-api-errors.ts +38 -0
- package/src/interfaces/augment-api-events.ts +29 -30
- package/src/interfaces/augment-api-query.ts +20 -86
- package/src/interfaces/augment-api-tx.ts +47 -54
- package/src/interfaces/lookup.ts +381 -263
- package/src/interfaces/registry.ts +7 -1
- package/src/interfaces/types-lookup.ts +396 -260
- package/src/metadata/metadata.json +1 -1
- package/src/metadata/static-latest.ts +1 -1
- package/ts-types/playground.d.ts +1 -0
- package/ts-types/src/interfaces/augment-api-consts.d.ts +44 -1
- package/ts-types/src/interfaces/augment-api-errors.d.ts +38 -0
- package/ts-types/src/interfaces/augment-api-events.d.ts +50 -2
- package/ts-types/src/interfaces/augment-api-query.d.ts +20 -1
- package/ts-types/src/interfaces/augment-api-tx.d.ts +137 -1
- package/ts-types/src/interfaces/lookup.d.ts +378 -260
- package/ts-types/src/interfaces/registry.d.ts +7 -1
- package/ts-types/src/interfaces/types-lookup.d.ts +390 -260
- package/ts-types/src/metadata/static-latest.d.ts +1 -1
- package/ts-types/tsconfig.tsbuildinfo +1 -1
package/build/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@webb-tools/tangle-substrate-types","version":"0.5.
|
1
|
+
{"name":"@webb-tools/tangle-substrate-types","version":"0.5.5","description":"Polkadot.js type definitions required for interacting with Webb's tangle network","main":"./index.js","types":"./index.d.ts","typings":"./index.d.ts","author":"Webb Developers <drew@webb.tools>","license":"Apache-2.0","type":"commonjs","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"repository":"https://github.com/webb-tools/tangle.git","bugs":{"url":"https://github.com/webb-tools/tangle/issues"},"homepage":"https://github.com/webb-tools/tangle","dependencies":{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.18.6","@babel/plugin-proposal-numeric-separator":"^7.18.6","@babel/plugin-proposal-optional-chaining":"^7.20.7","@babel/plugin-syntax-bigint":"^7.8.3","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-syntax-import-assertions":"^7.23.3","@babel/plugin-syntax-import-meta":"^7.10.4","@babel/plugin-syntax-top-level-await":"^7.14.5","@babel/plugin-transform-regenerator":"^7.23.3","@babel/plugin-transform-runtime":"^7.24.0","@babel/preset-env":"^7.24.0","@babel/preset-react":"^7.23.3","@babel/preset-typescript":"^7.23.3","@babel/register":"^7.23.7","@babel/runtime":"^7.24.0","@open-web3/orml-types":"^2.0.1","@polkadot/api-derive":"10.12.2","@polkadot/dev":"^0.78.11","@polkadot/typegen":"10.12.2","@polkadot/types":"10.12.2","babel-jest":"^29.7.0","babel-plugin-module-extension-resolver":"^1.0.0","babel-plugin-module-resolver":"^5.0.0","babel-plugin-styled-components":"^2.1.4","ecpair":"^2.1.0","elliptic":"^6.5.5","fs-extra":"^11.2.0","glob2base":"^0.0.12","minimatch":"^9.0.3","mkdirp":"^3.0.1","tiny-secp256k1":"^2.2.3"},"devDependencies":{"@types/websocket":"^1.0.10","rimraf":"5.0.5","ts-node":"10.9.2","tsconfig-paths":"^4.2.0","typescript":"5.4.2","websocket":"^1.0.34"},"scripts":{"build":"node ./scripts/build.js","build:interfaces":"yarn build:interfaces:defs && yarn build:interfaces:chain && rm ./src/interfaces/index.ts && rm ./src/interfaces/types.ts","build:interfaces:defs":"npx ts-node node_modules/.bin/polkadot-types-from-defs --input ./src/interfaces --package @webb-tools/tangle-substrate-types --endpoint ./src/metadata/metadata.json","build:interfaces:chain":"npx ts-node node_modules/.bin/polkadot-types-from-chain --endpoint ./src/metadata/metadata.json --output ./src/interfaces","clean":"rm -rf build && rm -rf ts-types","publish-types":"node ./scripts/publish-types.js","update:metadata":"npx ts-node ./scripts/updateMetadata.ts"}}
|
package/package.json
CHANGED
package/playground.ts
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
import { ApiPromise, WsProvider } from "@polkadot/api";
|
2
|
+
import { Keyring } from "@polkadot/keyring";
|
3
|
+
import { u128 } from "@polkadot/types";
|
4
|
+
(async () => {
|
5
|
+
const provider = new WsProvider('ws://127.0.0.1:9944');
|
6
|
+
const api = await ApiPromise.create({ provider });
|
7
|
+
|
8
|
+
await api.isReady;
|
9
|
+
const registry = api.registry;
|
10
|
+
|
11
|
+
const sr25519Keyring = new Keyring({ type: 'sr25519' });
|
12
|
+
|
13
|
+
const ALICE = sr25519Keyring.addFromUri('//Alice');
|
14
|
+
const BOB = sr25519Keyring.addFromUri('//Bob');
|
15
|
+
const CHARLIE = sr25519Keyring.addFromUri('//Charlie');
|
16
|
+
const creatingProfileTx = api.tx.roles.createProfile({
|
17
|
+
Shared: {
|
18
|
+
records: [
|
19
|
+
{
|
20
|
+
role: {
|
21
|
+
Tss: {
|
22
|
+
DfnsCGGMP21Secp256k1: {},
|
23
|
+
},
|
24
|
+
},
|
25
|
+
},
|
26
|
+
],
|
27
|
+
amount: new u128(registry, 100_000_000_000_000),
|
28
|
+
},
|
29
|
+
//@ts-ignore
|
30
|
+
}, null);
|
31
|
+
|
32
|
+
for (const signer of [ALICE, BOB, CHARLIE]) {
|
33
|
+
await new Promise(async (resolve) => {
|
34
|
+
console.log('Creating profile for:', signer.address);
|
35
|
+
const unsub = await creatingProfileTx.signAndSend(signer, async ({ events = [], status }) => {
|
36
|
+
if (status.isInBlock) {
|
37
|
+
console.log(
|
38
|
+
'[creatingProfileTx] Included at block hash',
|
39
|
+
status.asInBlock.toHex()
|
40
|
+
);
|
41
|
+
console.log('[creatingProfileTx] Events:');
|
42
|
+
events.forEach(({ event: { data, method, section } }) => {
|
43
|
+
console.log(`\t${section}.${method}:: ${data}`);
|
44
|
+
});
|
45
|
+
unsub();
|
46
|
+
resolve(void 0);
|
47
|
+
}
|
48
|
+
});
|
49
|
+
});
|
50
|
+
}
|
51
|
+
|
52
|
+
const submittingJobTx = api.tx.jobs.submitJob({
|
53
|
+
expiry: 100_000_000,
|
54
|
+
ttl: 100_000_000,
|
55
|
+
jobType: {
|
56
|
+
DkgtssPhaseOne: {
|
57
|
+
participants: [ALICE.address, BOB.address, CHARLIE.address],
|
58
|
+
threshold: 2,
|
59
|
+
permittedCaller: null,
|
60
|
+
roleType: {
|
61
|
+
DfnsCGGMP21Secp256k1: {},
|
62
|
+
},
|
63
|
+
},
|
64
|
+
},
|
65
|
+
});
|
66
|
+
|
67
|
+
// Sign and send the transaction and wait for it to be included.
|
68
|
+
await new Promise(async (resolve) => {
|
69
|
+
const unsub = await submittingJobTx.signAndSend(ALICE, async ({ events = [], status }) => {
|
70
|
+
if (status.isFinalized) {
|
71
|
+
console.log(
|
72
|
+
'[submittingJobTx] Included at block hash',
|
73
|
+
status.asFinalized.toHex()
|
74
|
+
);
|
75
|
+
console.log('[submittingJobTx] Events:');
|
76
|
+
events.forEach(({ event: { data, method, section } }) => {
|
77
|
+
console.log(`\t${section}.${method}:: ${data}`);
|
78
|
+
});
|
79
|
+
unsub();
|
80
|
+
resolve(void 0);
|
81
|
+
}
|
82
|
+
});
|
83
|
+
});
|
84
|
+
|
85
|
+
process.exit(0);
|
86
|
+
})();
|
@@ -9,14 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
9
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
10
10
|
import type { Codec } from '@polkadot/types-codec/types';
|
11
11
|
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
|
12
|
-
import {
|
13
|
-
FrameSupportPalletId,
|
14
|
-
FrameSystemLimitsBlockLength,
|
15
|
-
FrameSystemLimitsBlockWeights,
|
16
|
-
SpVersionRuntimeVersion,
|
17
|
-
SpWeightsRuntimeDbWeight,
|
18
|
-
SpWeightsWeightV2Weight,
|
19
|
-
} from '@polkadot/types/lookup'
|
12
|
+
import { SpWeightsWeightV2Weight, FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpWeightsRuntimeDbWeight, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
20
13
|
|
21
14
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
22
15
|
|
@@ -566,6 +559,49 @@ declare module '@polkadot/api-base/types/consts' {
|
|
566
559
|
**/
|
567
560
|
[key: string]: Codec;
|
568
561
|
};
|
562
|
+
proxy: {
|
563
|
+
/**
|
564
|
+
* The base amount of currency needed to reserve for creating an announcement.
|
565
|
+
*
|
566
|
+
* This is held when a new storage item holding a `Balance` is created (typically 16
|
567
|
+
* bytes).
|
568
|
+
**/
|
569
|
+
announcementDepositBase: u128 & AugmentedConst<ApiType>;
|
570
|
+
/**
|
571
|
+
* The amount of currency needed per announcement made.
|
572
|
+
*
|
573
|
+
* This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
|
574
|
+
* into a pre-existing storage value.
|
575
|
+
**/
|
576
|
+
announcementDepositFactor: u128 & AugmentedConst<ApiType>;
|
577
|
+
/**
|
578
|
+
* The maximum amount of time-delayed announcements that are allowed to be pending.
|
579
|
+
**/
|
580
|
+
maxPending: u32 & AugmentedConst<ApiType>;
|
581
|
+
/**
|
582
|
+
* The maximum amount of proxies allowed for a single account.
|
583
|
+
**/
|
584
|
+
maxProxies: u32 & AugmentedConst<ApiType>;
|
585
|
+
/**
|
586
|
+
* The base amount of currency needed to reserve for creating a proxy.
|
587
|
+
*
|
588
|
+
* This is held for an additional storage item whose value size is
|
589
|
+
* `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
|
590
|
+
**/
|
591
|
+
proxyDepositBase: u128 & AugmentedConst<ApiType>;
|
592
|
+
/**
|
593
|
+
* The amount of currency needed per proxy added.
|
594
|
+
*
|
595
|
+
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a
|
596
|
+
* pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
|
597
|
+
* into account `32 + proxy_type.encode().len()` bytes of data.
|
598
|
+
**/
|
599
|
+
proxyDepositFactor: u128 & AugmentedConst<ApiType>;
|
600
|
+
/**
|
601
|
+
* Generic const
|
602
|
+
**/
|
603
|
+
[key: string]: Codec;
|
604
|
+
};
|
569
605
|
roles: {
|
570
606
|
/**
|
571
607
|
* Max roles per account.
|
@@ -1306,6 +1306,44 @@ declare module '@polkadot/api-base/types/errors' {
|
|
1306
1306
|
**/
|
1307
1307
|
[key: string]: AugmentedError<ApiType>;
|
1308
1308
|
};
|
1309
|
+
proxy: {
|
1310
|
+
/**
|
1311
|
+
* Account is already a proxy.
|
1312
|
+
**/
|
1313
|
+
Duplicate: AugmentedError<ApiType>;
|
1314
|
+
/**
|
1315
|
+
* Call may not be made by proxy because it may escalate its privileges.
|
1316
|
+
**/
|
1317
|
+
NoPermission: AugmentedError<ApiType>;
|
1318
|
+
/**
|
1319
|
+
* Cannot add self as proxy.
|
1320
|
+
**/
|
1321
|
+
NoSelfProxy: AugmentedError<ApiType>;
|
1322
|
+
/**
|
1323
|
+
* Proxy registration not found.
|
1324
|
+
**/
|
1325
|
+
NotFound: AugmentedError<ApiType>;
|
1326
|
+
/**
|
1327
|
+
* Sender is not a proxy of the account to be proxied.
|
1328
|
+
**/
|
1329
|
+
NotProxy: AugmentedError<ApiType>;
|
1330
|
+
/**
|
1331
|
+
* There are too many proxies registered or too many announcements pending.
|
1332
|
+
**/
|
1333
|
+
TooMany: AugmentedError<ApiType>;
|
1334
|
+
/**
|
1335
|
+
* Announcement, if made at all, was made too recently.
|
1336
|
+
**/
|
1337
|
+
Unannounced: AugmentedError<ApiType>;
|
1338
|
+
/**
|
1339
|
+
* A call which is incompatible with the proxy type's filter was attempted.
|
1340
|
+
**/
|
1341
|
+
Unproxyable: AugmentedError<ApiType>;
|
1342
|
+
/**
|
1343
|
+
* Generic error
|
1344
|
+
**/
|
1345
|
+
[key: string]: AugmentedError<ApiType>;
|
1346
|
+
};
|
1309
1347
|
roles: {
|
1310
1348
|
/**
|
1311
1349
|
* Rewards already claimed
|
@@ -6,38 +6,10 @@
|
|
6
6
|
import '@polkadot/api-base/types/events';
|
7
7
|
|
8
8
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
9
|
-
import type { Bytes, Null, Option, Result, U256, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
9
|
+
import type { Bytes, Null, Option, Result, U256, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
10
10
|
import type { ITuple } from '@polkadot/types-codec/types';
|
11
11
|
import type { AccountId32, H160, H256, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
|
12
|
-
import {
|
13
|
-
EthereumLog,
|
14
|
-
EvmCoreErrorExitReason,
|
15
|
-
FrameSupportDispatchDispatchInfo,
|
16
|
-
FrameSupportTokensMiscBalanceStatus,
|
17
|
-
PalletAirdropClaimsUtilsMultiAddress,
|
18
|
-
PalletDemocracyMetadataOwner,
|
19
|
-
PalletDemocracyVoteAccountVote,
|
20
|
-
PalletDemocracyVoteThreshold,
|
21
|
-
PalletDkgFeeInfo,
|
22
|
-
PalletElectionProviderMultiPhaseElectionCompute,
|
23
|
-
PalletElectionProviderMultiPhasePhase,
|
24
|
-
PalletImOnlineSr25519AppSr25519Public,
|
25
|
-
PalletMultisigTimepoint,
|
26
|
-
PalletNominationPoolsCommissionChangeRate,
|
27
|
-
PalletNominationPoolsCommissionClaimPermission,
|
28
|
-
PalletNominationPoolsPoolState,
|
29
|
-
PalletStakingForcing,
|
30
|
-
PalletStakingRewardDestination,
|
31
|
-
PalletStakingValidatorPrefs,
|
32
|
-
PalletZksaasFeeInfo,
|
33
|
-
SpConsensusGrandpaAppPublic,
|
34
|
-
SpNposElectionsElectionScore,
|
35
|
-
SpRuntimeDispatchError,
|
36
|
-
SpStakingExposure,
|
37
|
-
TanglePrimitivesJobsJobInfo,
|
38
|
-
TanglePrimitivesJobsJobSubmission,
|
39
|
-
TanglePrimitivesRolesRoleType,
|
40
|
-
} from '@polkadot/types/lookup'
|
12
|
+
import { FrameSupportTokensMiscBalanceStatus, PalletAirdropClaimsUtilsMultiAddress, SpRuntimeDispatchError, PalletDemocracyMetadataOwner, PalletDemocracyVoteThreshold, PalletDemocracyVoteAccountVote, PalletDkgFeeInfo, PalletElectionProviderMultiPhaseElectionCompute, SpNposElectionsElectionScore, PalletElectionProviderMultiPhasePhase, EvmCoreErrorExitReason, EthereumLog, SpConsensusGrandpaAppPublic, PalletImOnlineSr25519AppSr25519Public, SpStakingExposure, TanglePrimitivesRolesRoleType, TanglePrimitivesJobsJobInfo, TanglePrimitivesJobsJobSubmission, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, TangleTestnetRuntimeProxyType, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, FrameSupportDispatchDispatchInfo, PalletZksaasFeeInfo } from '@polkadot/types/lookup';
|
41
13
|
|
42
14
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
43
15
|
|
@@ -798,6 +770,33 @@ declare module '@polkadot/api-base/types/events' {
|
|
798
770
|
**/
|
799
771
|
[key: string]: AugmentedEvent<ApiType>;
|
800
772
|
};
|
773
|
+
proxy: {
|
774
|
+
/**
|
775
|
+
* An announcement was placed to make a call in the future.
|
776
|
+
**/
|
777
|
+
Announced: AugmentedEvent<ApiType, [real: AccountId32, proxy: AccountId32, callHash: H256], { real: AccountId32, proxy: AccountId32, callHash: H256 }>;
|
778
|
+
/**
|
779
|
+
* A proxy was added.
|
780
|
+
**/
|
781
|
+
ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: TangleTestnetRuntimeProxyType, delay: u64], { delegator: AccountId32, delegatee: AccountId32, proxyType: TangleTestnetRuntimeProxyType, delay: u64 }>;
|
782
|
+
/**
|
783
|
+
* A proxy was executed correctly, with the given.
|
784
|
+
**/
|
785
|
+
ProxyExecuted: AugmentedEvent<ApiType, [result: Result<Null, SpRuntimeDispatchError>], { result: Result<Null, SpRuntimeDispatchError> }>;
|
786
|
+
/**
|
787
|
+
* A proxy was removed.
|
788
|
+
**/
|
789
|
+
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: TangleTestnetRuntimeProxyType, delay: u64], { delegator: AccountId32, delegatee: AccountId32, proxyType: TangleTestnetRuntimeProxyType, delay: u64 }>;
|
790
|
+
/**
|
791
|
+
* A pure account has been created by new proxy with given
|
792
|
+
* disambiguation index and proxy type.
|
793
|
+
**/
|
794
|
+
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: TangleTestnetRuntimeProxyType, disambiguationIndex: u16], { pure: AccountId32, who: AccountId32, proxyType: TangleTestnetRuntimeProxyType, disambiguationIndex: u16 }>;
|
795
|
+
/**
|
796
|
+
* Generic event
|
797
|
+
**/
|
798
|
+
[key: string]: AugmentedEvent<ApiType>;
|
799
|
+
};
|
801
800
|
roles: {
|
802
801
|
/**
|
803
802
|
* The min restaking bond amount has been updated
|
@@ -11,92 +11,7 @@ import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u3
|
|
11
11
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
12
12
|
import type { AccountId32, Call, H160, H256, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
13
13
|
import type { Observable } from '@polkadot/types/types';
|
14
|
-
import {
|
15
|
-
EthereumBlock,
|
16
|
-
EthereumReceiptReceiptV3,
|
17
|
-
EthereumTransactionTransactionV2,
|
18
|
-
FpRpcTransactionStatus,
|
19
|
-
FrameSupportDispatchPerDispatchClassWeight,
|
20
|
-
FrameSupportPreimagesBounded,
|
21
|
-
FrameSystemAccountInfo,
|
22
|
-
FrameSystemCodeUpgradeAuthorization,
|
23
|
-
FrameSystemEventRecord,
|
24
|
-
FrameSystemLastRuntimeUpgradeInfo,
|
25
|
-
FrameSystemPhase,
|
26
|
-
PalletAirdropClaimsStatementKind,
|
27
|
-
PalletAirdropClaimsUtilsMultiAddress,
|
28
|
-
PalletBagsListListBag,
|
29
|
-
PalletBagsListListNode,
|
30
|
-
PalletBalancesAccountData,
|
31
|
-
PalletBalancesBalanceLock,
|
32
|
-
PalletBalancesIdAmountRuntimeFreezeReason,
|
33
|
-
PalletBalancesIdAmountRuntimeHoldReason,
|
34
|
-
PalletBalancesReserveData,
|
35
|
-
PalletBountiesBounty,
|
36
|
-
PalletChildBountiesChildBounty,
|
37
|
-
PalletCollectiveVotes,
|
38
|
-
PalletDemocracyMetadataOwner,
|
39
|
-
PalletDemocracyReferendumInfo,
|
40
|
-
PalletDemocracyVoteThreshold,
|
41
|
-
PalletDemocracyVoteVoting,
|
42
|
-
PalletDkgFeeInfo,
|
43
|
-
PalletElectionProviderMultiPhasePhase,
|
44
|
-
PalletElectionProviderMultiPhaseReadySolution,
|
45
|
-
PalletElectionProviderMultiPhaseRoundSnapshot,
|
46
|
-
PalletElectionProviderMultiPhaseSignedSignedSubmission,
|
47
|
-
PalletElectionProviderMultiPhaseSolutionOrSnapshotSize,
|
48
|
-
PalletElectionsPhragmenSeatHolder,
|
49
|
-
PalletElectionsPhragmenVoter,
|
50
|
-
PalletEvmCodeMetadata,
|
51
|
-
PalletGrandpaStoredPendingChange,
|
52
|
-
PalletGrandpaStoredState,
|
53
|
-
PalletIdentityAuthorityProperties,
|
54
|
-
PalletIdentityRegistrarInfo,
|
55
|
-
PalletIdentityRegistration,
|
56
|
-
PalletImOnlineSr25519AppSr25519Public,
|
57
|
-
PalletMultisigMultisig,
|
58
|
-
PalletNominationPoolsBondedPoolInner,
|
59
|
-
PalletNominationPoolsClaimPermission,
|
60
|
-
PalletNominationPoolsPoolMember,
|
61
|
-
PalletNominationPoolsRewardPool,
|
62
|
-
PalletNominationPoolsSubPools,
|
63
|
-
PalletPreimageOldRequestStatus,
|
64
|
-
PalletPreimageRequestStatus,
|
65
|
-
PalletRolesRestakingLedger,
|
66
|
-
PalletSchedulerScheduled,
|
67
|
-
PalletStakingActiveEraInfo,
|
68
|
-
PalletStakingEraRewardPoints,
|
69
|
-
PalletStakingForcing,
|
70
|
-
PalletStakingNominations,
|
71
|
-
PalletStakingRewardDestination,
|
72
|
-
PalletStakingSlashingSlashingSpans,
|
73
|
-
PalletStakingSlashingSpanRecord,
|
74
|
-
PalletStakingStakingLedger,
|
75
|
-
PalletStakingUnappliedSlash,
|
76
|
-
PalletStakingValidatorPrefs,
|
77
|
-
PalletTransactionPaymentReleases,
|
78
|
-
PalletTreasuryProposal,
|
79
|
-
PalletTreasurySpendStatus,
|
80
|
-
PalletVestingReleases,
|
81
|
-
PalletVestingVestingInfo,
|
82
|
-
PalletZksaasFeeInfo,
|
83
|
-
SpConsensusBabeAppPublic,
|
84
|
-
SpConsensusBabeBabeEpochConfiguration,
|
85
|
-
SpConsensusBabeDigestsNextConfigDescriptor,
|
86
|
-
SpConsensusBabeDigestsPreDigest,
|
87
|
-
SpConsensusGrandpaAppPublic,
|
88
|
-
SpCoreCryptoKeyTypeId,
|
89
|
-
SpNposElectionsElectionScore,
|
90
|
-
SpRuntimeDigest,
|
91
|
-
SpStakingExposure,
|
92
|
-
SpStakingExposurePage,
|
93
|
-
SpStakingOffenceOffenceDetails,
|
94
|
-
SpStakingPagedExposureMetadata,
|
95
|
-
TanglePrimitivesJobsJobInfo,
|
96
|
-
TanglePrimitivesJobsPhaseResult,
|
97
|
-
TanglePrimitivesRolesRoleType,
|
98
|
-
TangleTestnetRuntimeOpaqueSessionKeys,
|
99
|
-
} from '@polkadot/types/lookup'
|
14
|
+
import { SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsPreDigest, SpConsensusBabeDigestsNextConfigDescriptor, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletAirdropClaimsUtilsMultiAddress, PalletAirdropClaimsStatementKind, PalletCollectiveVotes, PalletDemocracyMetadataOwner, FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold, PalletDemocracyReferendumInfo, PalletDemocracyVoteVoting, PalletDkgFeeInfo, PalletElectionProviderMultiPhasePhase, SpNposElectionsElectionScore, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, EthereumBlock, EthereumReceiptReceiptV3, FpRpcTransactionStatus, EthereumTransactionTransactionV2, PalletEvmCodeMetadata, SpConsensusGrandpaAppPublic, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletIdentityAuthorityProperties, PalletImOnlineSr25519AppSr25519Public, TanglePrimitivesRolesRoleType, TanglePrimitivesJobsPhaseResult, TanglePrimitivesJobsJobInfo, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, SpStakingOffenceOffenceDetails, PalletPreimageRequestStatus, PalletPreimageOldRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletRolesRestakingLedger, PalletSchedulerScheduled, SpCoreCryptoKeyTypeId, TangleTestnetRuntimeOpaqueSessionKeys, SpStakingExposure, SpStakingPagedExposureMetadata, SpStakingExposurePage, PalletStakingValidatorPrefs, PalletStakingForcing, PalletStakingStakingLedger, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingUnappliedSlash, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSupportDispatchPerDispatchClassWeight, SpRuntimeDigest, FrameSystemEventRecord, FrameSystemPhase, FrameSystemLastRuntimeUpgradeInfo, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletZksaasFeeInfo } from '@polkadot/types/lookup';
|
100
15
|
|
101
16
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
102
17
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
@@ -990,6 +905,21 @@ declare module '@polkadot/api-base/types/storage' {
|
|
990
905
|
**/
|
991
906
|
[key: string]: QueryableStorageEntry<ApiType>;
|
992
907
|
};
|
908
|
+
proxy: {
|
909
|
+
/**
|
910
|
+
* The announcements made by the proxy (key).
|
911
|
+
**/
|
912
|
+
announcements: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
913
|
+
/**
|
914
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
915
|
+
* which are being delegated to, together with the amount held on deposit.
|
916
|
+
**/
|
917
|
+
proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
918
|
+
/**
|
919
|
+
* Generic query
|
920
|
+
**/
|
921
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
922
|
+
};
|
993
923
|
randomnessCollectiveFlip: {
|
994
924
|
/**
|
995
925
|
* Series of block headers from the last 81 blocks that acts as random seed material. This
|
@@ -1026,6 +956,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
1026
956
|
* The minimum re staking bond to become and maintain the role.
|
1027
957
|
**/
|
1028
958
|
minRestakingBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
959
|
+
/**
|
960
|
+
* The total restake amount in the system
|
961
|
+
**/
|
962
|
+
totalRestake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
1029
963
|
/**
|
1030
964
|
* The number of jobs completed by a validator in era
|
1031
965
|
**/
|
@@ -10,60 +10,7 @@ import type { Data } from '@polkadot/types';
|
|
10
10
|
import type { Bytes, Compact, Null, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
11
11
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
12
12
|
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
13
|
-
import {
|
14
|
-
SpConsensusBabeDigestsNextConfigDescriptor,
|
15
|
-
SpConsensusSlotsEquivocationProof,
|
16
|
-
SpSessionMembershipProof,
|
17
|
-
PalletBalancesAdjustmentDirection,
|
18
|
-
PalletAirdropClaimsUtilsMultiAddress,
|
19
|
-
PalletAirdropClaimsUtilsMultiAddressSignature,
|
20
|
-
PalletAirdropClaimsStatementKind,
|
21
|
-
SpWeightsWeightV2Weight,
|
22
|
-
PalletDemocracyConviction,
|
23
|
-
FrameSupportPreimagesBounded,
|
24
|
-
PalletDemocracyMetadataOwner,
|
25
|
-
PalletDemocracyVoteAccountVote,
|
26
|
-
PalletDkgFeeInfo,
|
27
|
-
SpNposElectionsSupport,
|
28
|
-
SpNposElectionsElectionScore,
|
29
|
-
PalletElectionProviderMultiPhaseRawSolution,
|
30
|
-
PalletElectionProviderMultiPhaseSolutionOrSnapshotSize,
|
31
|
-
PalletElectionsPhragmenRenouncing,
|
32
|
-
EthereumTransactionTransactionV2,
|
33
|
-
SpConsensusGrandpaEquivocationProof,
|
34
|
-
SpCoreVoid,
|
35
|
-
PalletIdentityJudgement,
|
36
|
-
PalletIdentityLegacyIdentityInfo,
|
37
|
-
SpRuntimeMultiSignature,
|
38
|
-
PalletImOnlineHeartbeat,
|
39
|
-
PalletImOnlineSr25519AppSr25519Signature,
|
40
|
-
TanglePrimitivesRolesRoleType,
|
41
|
-
TanglePrimitivesJobsValidatorOffenceType,
|
42
|
-
TanglePrimitivesJobsJobSubmission,
|
43
|
-
TanglePrimitivesJobsJobResult,
|
44
|
-
TanglePrimitivesMisbehaviorMisbehaviorSubmission,
|
45
|
-
PalletMultisigTimepoint,
|
46
|
-
PalletNominationPoolsBondExtra,
|
47
|
-
PalletNominationPoolsClaimPermission,
|
48
|
-
PalletNominationPoolsCommissionChangeRate,
|
49
|
-
PalletNominationPoolsCommissionClaimPermission,
|
50
|
-
PalletNominationPoolsConfigOpU128,
|
51
|
-
PalletNominationPoolsConfigOpU32,
|
52
|
-
PalletNominationPoolsConfigOpPerbill,
|
53
|
-
PalletNominationPoolsPoolState,
|
54
|
-
PalletNominationPoolsConfigOpAccountId32,
|
55
|
-
PalletRolesProfile,
|
56
|
-
TangleTestnetRuntimeOpaqueSessionKeys,
|
57
|
-
PalletStakingRewardDestination,
|
58
|
-
PalletStakingPalletConfigOpU128,
|
59
|
-
PalletStakingPalletConfigOpU32,
|
60
|
-
PalletStakingPalletConfigOpPercent,
|
61
|
-
PalletStakingPalletConfigOpPerbill,
|
62
|
-
PalletStakingValidatorPrefs,
|
63
|
-
TangleTestnetRuntimeOriginCaller,
|
64
|
-
PalletVestingVestingInfo,
|
65
|
-
PalletZksaasFeeInfo,
|
66
|
-
} from '@polkadot/types/lookup'
|
13
|
+
import { SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpSessionMembershipProof, PalletBalancesAdjustmentDirection, PalletAirdropClaimsUtilsMultiAddress, PalletAirdropClaimsUtilsMultiAddressSignature, PalletAirdropClaimsStatementKind, SpWeightsWeightV2Weight, PalletDemocracyConviction, FrameSupportPreimagesBounded, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDkgFeeInfo, SpNposElectionsSupport, SpNposElectionsElectionScore, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, EthereumTransactionTransactionV2, SpConsensusGrandpaEquivocationProof, SpCoreVoid, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, SpRuntimeMultiSignature, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, TanglePrimitivesRolesRoleType, TanglePrimitivesJobsValidatorOffenceType, TanglePrimitivesJobsJobSubmission, TanglePrimitivesJobsJobResult, TanglePrimitivesMisbehaviorMisbehaviorSubmission, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsPoolState, PalletNominationPoolsConfigOpAccountId32, TangleTestnetRuntimeProxyType, PalletRolesProfile, TangleTestnetRuntimeOpaqueSessionKeys, PalletStakingRewardDestination, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill, PalletStakingValidatorPrefs, TangleTestnetRuntimeOriginCaller, PalletVestingVestingInfo, PalletZksaasFeeInfo } from '@polkadot/types/lookup';
|
67
14
|
|
68
15
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
69
16
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
@@ -823,6 +770,52 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
823
770
|
**/
|
824
771
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
825
772
|
};
|
773
|
+
proxy: {
|
774
|
+
/**
|
775
|
+
* See [`Pallet::add_proxy`].
|
776
|
+
**/
|
777
|
+
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: TangleTestnetRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, TangleTestnetRuntimeProxyType, u64]>;
|
778
|
+
/**
|
779
|
+
* See [`Pallet::announce`].
|
780
|
+
**/
|
781
|
+
announce: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
782
|
+
/**
|
783
|
+
* See [`Pallet::create_pure`].
|
784
|
+
**/
|
785
|
+
createPure: AugmentedSubmittable<(proxyType: TangleTestnetRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u64 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [TangleTestnetRuntimeProxyType, u64, u16]>;
|
786
|
+
/**
|
787
|
+
* See [`Pallet::kill_pure`].
|
788
|
+
**/
|
789
|
+
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: TangleTestnetRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u64> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, TangleTestnetRuntimeProxyType, u16, Compact<u64>, Compact<u32>]>;
|
790
|
+
/**
|
791
|
+
* See [`Pallet::proxy`].
|
792
|
+
**/
|
793
|
+
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<TangleTestnetRuntimeProxyType> | null | Uint8Array | TangleTestnetRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<TangleTestnetRuntimeProxyType>, Call]>;
|
794
|
+
/**
|
795
|
+
* See [`Pallet::proxy_announced`].
|
796
|
+
**/
|
797
|
+
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<TangleTestnetRuntimeProxyType> | null | Uint8Array | TangleTestnetRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<TangleTestnetRuntimeProxyType>, Call]>;
|
798
|
+
/**
|
799
|
+
* See [`Pallet::reject_announcement`].
|
800
|
+
**/
|
801
|
+
rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
802
|
+
/**
|
803
|
+
* See [`Pallet::remove_announcement`].
|
804
|
+
**/
|
805
|
+
removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
806
|
+
/**
|
807
|
+
* See [`Pallet::remove_proxies`].
|
808
|
+
**/
|
809
|
+
removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
810
|
+
/**
|
811
|
+
* See [`Pallet::remove_proxy`].
|
812
|
+
**/
|
813
|
+
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: TangleTestnetRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, TangleTestnetRuntimeProxyType, u64]>;
|
814
|
+
/**
|
815
|
+
* Generic tx
|
816
|
+
**/
|
817
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
818
|
+
};
|
826
819
|
roles: {
|
827
820
|
/**
|
828
821
|
* See [`Pallet::chill`].
|