Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da289238b0 | ||
|
|
8289e181cc | ||
|
|
d06860861c | ||
|
|
1797d6b42c | ||
|
|
6a9a53c48c | ||
|
|
d680b3dd39 | ||
|
|
3b479879ca | ||
|
|
ea2c942ece | ||
|
|
df2039f54d | ||
|
|
501638b2d9 | ||
|
|
d163d91909 | ||
|
|
dc7f687563 | ||
|
|
ca4802326c | ||
|
|
f9b2d26381 | ||
|
|
28a5ac4279 | ||
|
|
feb652cef3 | ||
|
|
f87479f9da | ||
|
|
2be54afe24 | ||
|
|
24d9d053a1 | ||
|
|
3299292368 | ||
|
|
58b320a791 | ||
|
|
6998d9232b | ||
|
|
43e11d8f56 | ||
|
|
22d06b93a6 | ||
|
|
bc3f066c3b | ||
|
|
de30dd5bfe | ||
|
|
a64228c9b2 | ||
|
|
5374f8448f | ||
|
|
c5371c146b | ||
|
|
5de73b706e | ||
|
|
7fc736769a | ||
|
|
747855b161 | ||
|
|
3bdf49b042 | ||
|
|
93175f6a01 | ||
|
|
b4150d5dbf | ||
|
|
dfbbfa8a7d | ||
|
|
97116a3d8a |
@@ -11,6 +11,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: jacogr/action-approve@795afd1dd096a2071d7ec98740661af4e853b7da
|
- uses: jacogr/action-approve@795afd1dd096a2071d7ec98740661af4e853b7da
|
||||||
with:
|
with:
|
||||||
authors: jacogr
|
authors: jacogr, TarikGul
|
||||||
labels: -auto
|
labels: -auto
|
||||||
token: ${{ secrets.GH_PAT_BOT }}
|
token: ${{ secrets.GH_PAT_BOT }}
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
||||||
|
|||||||
+334
-334
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,4 +12,4 @@ logFilters:
|
|||||||
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.0.2.cjs
|
yarnPath: .yarn/releases/yarn-4.1.0.cjs
|
||||||
|
|||||||
@@ -1,5 +1,40 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 10.12.2 Mar 11, 2024
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- fix cache key (rpc-provider) (Thanks to https://github.com/ermalkaleci)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 10.12.1 Mar 4, 2024
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Ink! V5 Support (Thanks to https://github.com/peetzweg)
|
||||||
|
|
||||||
|
|
||||||
|
## 10.11.3 Feb 27, 2024
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Fix sorting of `Option` values and error on duplicates from BTreeSet/BTreeMap (Thanks to https://github.com/Neopallium)
|
||||||
|
- Fix BEEFY compact signed commitment in versioned finality proofs (Thanks to https://github.com/mfornos)
|
||||||
|
- Update @substrate/connect (Thanks to https://github.com/kratico)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Bump dev w/ packageDetect adjustments
|
||||||
|
- Update copyright year
|
||||||
|
- Bump nock, and dev deps
|
||||||
|
- Allow `cacheCapacity` option for the `WsProvider`
|
||||||
|
- Bump yarn
|
||||||
|
|
||||||
|
|
||||||
## 10.11.2 Dec 18, 2023
|
## 10.11.2 Dec 18, 2023
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|||||||
+7
-3
@@ -1,4 +1,4 @@
|
|||||||
3509 Jaco 10.11.2 (#5774)
|
3512 Jaco Bump deps (#5785)
|
||||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||||
37 Keith Ingram Update contract types and rpc (#4541)
|
37 Keith Ingram Update contract types and rpc (#4541)
|
||||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
14 Nikos Kontakis Bump substrate connect to 0.7.16 (#5307)
|
14 Nikos Kontakis Bump substrate connect to 0.7.16 (#5307)
|
||||||
11 Ian He HttpProvider support clone() (#3949)
|
11 Ian He HttpProvider support clone() (#3949)
|
||||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||||
|
10 Tarik Gul 10.12.2 (#5814)
|
||||||
6 Andreea Eftene Update check for contract instantiation (#5699)
|
6 Andreea Eftene Update check for contract instantiation (#5699)
|
||||||
5 Chevdor Fix metadata package link (#3458)
|
5 Chevdor Fix metadata package link (#3458)
|
||||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
3 Hamza Tokuchi more typos (#2532)
|
3 Hamza Tokuchi more typos (#2532)
|
||||||
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
|
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
|
||||||
3 KarishmaBothara Backward compatibility thing (#3511)
|
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||||
|
3 Matias Volpe chore: bump @substrate/connect to 0.8.7 (#5797)
|
||||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||||
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||||
3 YJ feat: Vote interface as U8a (#1061)
|
3 YJ feat: Vote interface as U8a (#1061)
|
||||||
@@ -44,6 +46,7 @@
|
|||||||
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
||||||
2 MOZGIII Follow-up fix after #4665 (#4666)
|
2 MOZGIII Follow-up fix after #4665 (#4666)
|
||||||
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
|
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
|
||||||
|
2 peetzweg/ feat: ink! v5 (#5791)
|
||||||
2 rob thijssen nimbus author mapping correction (#5590)
|
2 rob thijssen nimbus author mapping correction (#5590)
|
||||||
2 sung wu Update tx.md (#2485)
|
2 sung wu Update tx.md (#2485)
|
||||||
2 Veliko Abi constructor takes different parameters (#3347)
|
2 Veliko Abi constructor takes different parameters (#3347)
|
||||||
@@ -67,6 +70,7 @@
|
|||||||
1 djuanito.eth Update fees to current constants (#2320)
|
1 djuanito.eth Update fees to current constants (#2320)
|
||||||
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
||||||
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
|
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
|
||||||
|
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
|
||||||
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||||
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
||||||
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
|
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
|
||||||
@@ -88,6 +92,7 @@
|
|||||||
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
||||||
1 Lezek123 BTreeSet and BTreeMap - encoding and serialization fixes (#3789)
|
1 Lezek123 BTreeSet and BTreeMap - encoding and serialization fixes (#3789)
|
||||||
1 Lovesh Harchandani Fix name of "getBlock" in package "api-derive" and export it in "index.ts" (#2857)
|
1 Lovesh Harchandani Fix name of "getBlock" in package "api-derive" and export it in "index.ts" (#2857)
|
||||||
|
1 Marc Fornós add beefy compact signed commitment definition (#5781)
|
||||||
1 Mario Neises fix usage with typescript (#405)
|
1 Mario Neises fix usage with typescript (#405)
|
||||||
1 Mario Pino Add PolkaStats to API users (#1593)
|
1 Mario Pino Add PolkaStats to API users (#1593)
|
||||||
1 Mark Robert Henderson Update warnings.ts to have the latest URLs (#2720)
|
1 Mark Robert Henderson Update warnings.ts to have the latest URLs (#2720)
|
||||||
@@ -99,7 +104,6 @@
|
|||||||
1 Noah Corona Add rpc error fields (#4637)
|
1 Noah Corona Add rpc error fields (#4637)
|
||||||
1 Oleksandr Mykhailenko Add more complex namespaced contracts & test cases for them (#4472)
|
1 Oleksandr Mykhailenko Add more complex namespaced contracts & test cases for them (#4472)
|
||||||
1 Paul M Fox Basic BTreeMaps codec support (#1474)
|
1 Paul M Fox Basic BTreeMaps codec support (#1474)
|
||||||
1 peetzweg/ Adds tests cases for issue #5702 (#5703)
|
|
||||||
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
||||||
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
|
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
|
||||||
1 polymath-eric Allow unset external signer (#5649)
|
1 polymath-eric Allow unset external signer (#5649)
|
||||||
@@ -107,6 +111,7 @@
|
|||||||
1 qiuhao update DeriveCustom type (#2581)
|
1 qiuhao update DeriveCustom type (#2581)
|
||||||
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
||||||
1 Raphael Flechtner fix: typegen disconnect ws on success (#4901)
|
1 Raphael Flechtner fix: typegen disconnect ws on success (#4901)
|
||||||
|
1 Robert Gabriel Jakabosky Fix sorting of `Option` values and error on duplicates from BTreeSet/BTreeMap. (#5731)
|
||||||
1 Robert Hambrock update MMR API (#5479)
|
1 Robert Hambrock update MMR API (#5479)
|
||||||
1 Rocco Musolino remove broken link (#2671)
|
1 Rocco Musolino remove broken link (#2671)
|
||||||
1 sander2 fix: type generation for nested tuples (#5395)
|
1 sander2 fix: type generation for nested tuples (#5395)
|
||||||
@@ -119,7 +124,6 @@
|
|||||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||||
1 Shunji Zhan small polish (#5276)
|
1 Shunji Zhan small polish (#5276)
|
||||||
1 Stephen Shelton Add transaction-payment runtime API V3 (#5430)
|
1 Stephen Shelton Add transaction-payment runtime API V3 (#5430)
|
||||||
1 Tarik Gul Update .nvmrc (#5624)
|
|
||||||
1 Tim B added EthRTApiV5 ifaces (#5680)
|
1 Tim B added EthRTApiV5 ifaces (#5680)
|
||||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import baseConfig from '@polkadot/dev/config/eslint';
|
import baseConfig from '@polkadot/dev/config/eslint';
|
||||||
|
|||||||
+6
-6
@@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"packageManager": "yarn@3.2.0",
|
"packageManager": "yarn@4.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -14,10 +14,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.11.2",
|
"version": "10.12.2",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "10.11.2",
|
"git": "10.12.2",
|
||||||
"npm": "10.11.2"
|
"npm": "10.12.2"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -40,9 +40,9 @@
|
|||||||
"test:one": "polkadot-dev-run-test --env node"
|
"test:one": "polkadot-dev-run-test --env node"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.78.1",
|
"@polkadot/dev": "^0.78.9",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/node": "^20.10.5"
|
"@types/node": "^20.11.6"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
|
|||||||
@@ -14,18 +14,18 @@
|
|||||||
"url": "https://github.com/polkadot-js/api.git"
|
"url": "https://github.com/polkadot-js/api.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./detectPackage.js",
|
"./packageDetect.js",
|
||||||
"./detectPackage.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.11.2",
|
"version": "10.12.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api-base": "10.11.2",
|
"@polkadot/api-base": "10.12.2",
|
||||||
"@polkadot/rpc-augment": "10.11.2",
|
"@polkadot/rpc-augment": "10.12.2",
|
||||||
"@polkadot/types": "10.11.2",
|
"@polkadot/types": "10.12.2",
|
||||||
"@polkadot/types-augment": "10.11.2",
|
"@polkadot/types-augment": "10.12.2",
|
||||||
"@polkadot/types-codec": "10.11.2",
|
"@polkadot/types-codec": "10.12.2",
|
||||||
"@polkadot/util": "^12.6.2",
|
"@polkadot/util": "^12.6.2",
|
||||||
"tslib": "^2.6.2"
|
"tslib": "^2.6.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// for the API, we decorate not only the endpoints, but all types
|
// for the API, we decorate not only the endpoints, but all types
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './substrate/index.js';
|
import './substrate/index.js';
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
|
|
||||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
|
||||||
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
|
|
||||||
|
|
||||||
export default [baseInfo, typesInfo, codecInfo];
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
|
||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
|
||||||
|
|
||||||
import others from './detectOther.js';
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage.js';
|
import './packageDetect.js';
|
||||||
|
|
||||||
export * from './bundle.js';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base.js';
|
import '../base.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '@polkadot/types-augment/registry/substrate';
|
import '@polkadot/types-augment/registry/substrate';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
|
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
|
||||||
|
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||||
|
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, null, [baseInfo, codecInfo, typesInfo]);
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.11.2' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.12.2' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base.js';
|
import '../base.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '@polkadot/types-augment/registry/substrate';
|
import '@polkadot/types-augment/registry/substrate';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|||||||
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -52,10 +52,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
assetConversion: {
|
assetConversion: {
|
||||||
/**
|
|
||||||
* A setting to allow creating pools with both non-native assets.
|
|
||||||
**/
|
|
||||||
allowMultiAssetPools: bool & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* A fee to withdraw the liquidity.
|
* A fee to withdraw the liquidity.
|
||||||
**/
|
**/
|
||||||
@@ -80,6 +76,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* A one-time fee to setup the pool.
|
* A one-time fee to setup the pool.
|
||||||
**/
|
**/
|
||||||
poolSetupFee: u128 & AugmentedConst<ApiType>;
|
poolSetupFee: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
|
||||||
|
**/
|
||||||
|
poolSetupFeeAsset: FrameSupportTokensFungibleUnionOfNativeOrWithId & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -167,10 +167,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The maximum number of individual freeze locks that can exist on an account at any time.
|
* The maximum number of individual freeze locks that can exist on an account at any time.
|
||||||
**/
|
**/
|
||||||
maxFreezes: u32 & AugmentedConst<ApiType>;
|
maxFreezes: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
|
||||||
* The maximum number of holds that can exist on an account at any time.
|
|
||||||
**/
|
|
||||||
maxHolds: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The maximum number of locks that should exist on an account.
|
* The maximum number of locks that should exist on an account.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
* Not strictly enforced, but used for weight estimation.
|
||||||
@@ -185,6 +181,29 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
beefy: {
|
||||||
|
/**
|
||||||
|
* The maximum number of authorities that can be added.
|
||||||
|
**/
|
||||||
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of nominators for each validator.
|
||||||
|
**/
|
||||||
|
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of entries to keep in the set id to session index mapping.
|
||||||
|
*
|
||||||
|
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||||
|
* value should relate to the bonding duration of whatever staking system is
|
||||||
|
* being used (if any). If equivocation handling is not enabled then this value
|
||||||
|
* can be zero.
|
||||||
|
**/
|
||||||
|
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
bounties: {
|
bounties: {
|
||||||
/**
|
/**
|
||||||
* The amount held on deposit for placing a bounty proposal.
|
* The amount held on deposit for placing a bounty proposal.
|
||||||
@@ -269,9 +288,15 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
contracts: {
|
contracts: {
|
||||||
|
/**
|
||||||
|
* The version of the HostFn APIs that are available in the runtime.
|
||||||
|
*
|
||||||
|
* Only valid value is `()`.
|
||||||
|
**/
|
||||||
|
apiVersion: u16 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The percentage of the storage deposit that should be held for using a code hash.
|
* The percentage of the storage deposit that should be held for using a code hash.
|
||||||
* Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
|
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
||||||
* protects the code from being removed. In order to prevent abuse these actions are
|
* protects the code from being removed. In order to prevent abuse these actions are
|
||||||
* protected with a percentage of the code deposit.
|
* protected with a percentage of the code deposit.
|
||||||
**/
|
**/
|
||||||
@@ -317,7 +342,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
|
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of delegate_dependencies that a contract can lock with
|
* The maximum number of delegate_dependencies that a contract can lock with
|
||||||
* [`chain_extension::Ext::add_delegate_dependency`].
|
* [`chain_extension::Ext::lock_delegate_dependency`].
|
||||||
**/
|
**/
|
||||||
maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
|
maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -457,11 +482,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* "better" in the Signed phase.
|
* "better" in the Signed phase.
|
||||||
**/
|
**/
|
||||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||||
/**
|
|
||||||
* The minimum amount of improvement to the solution score that defines a solution as
|
|
||||||
* "better" in the Unsigned phase.
|
|
||||||
**/
|
|
||||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The maximum number of winners that can be elected by this `ElectionProvider`
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||||
* implementation.
|
* implementation.
|
||||||
@@ -631,7 +651,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
};
|
};
|
||||||
identity: {
|
identity: {
|
||||||
/**
|
/**
|
||||||
* The amount held on deposit for a registered identity
|
* The amount held on deposit for a registered identity.
|
||||||
**/
|
**/
|
||||||
basicDeposit: u128 & AugmentedConst<ApiType>;
|
basicDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -647,6 +667,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The maximum number of sub-accounts allowed per identified account.
|
* The maximum number of sub-accounts allowed per identified account.
|
||||||
**/
|
**/
|
||||||
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of a suffix.
|
||||||
|
**/
|
||||||
|
maxSuffixLength: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of a username, including its suffix and any system-added delimiters.
|
||||||
|
**/
|
||||||
|
maxUsernameLength: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of blocks within which a username grant must be accepted.
|
||||||
|
**/
|
||||||
|
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The amount held on deposit for a registered subaccount. This should account for the fact
|
* The amount held on deposit for a registered subaccount. This should account for the fact
|
||||||
* that one storage item's value will increase by the size of an account ID, and there will
|
* that one storage item's value will increase by the size of an account ID, and there will
|
||||||
@@ -1418,7 +1450,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
||||||
*
|
*
|
||||||
* For more info see
|
* For more info see
|
||||||
* <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
|
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
||||||
**/
|
**/
|
||||||
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1509,7 +1541,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The amount held on deposit for placing a tip report.
|
* The non-zero amount held on deposit for placing a tip report.
|
||||||
**/
|
**/
|
||||||
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -196,27 +196,21 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError<ApiType>;
|
AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Unable to find an element in an array/vec that should have one-to-one correspondence
|
* The destination account cannot exist with the swapped funds.
|
||||||
* with another. For example, an array of assets constituting a `path` should have a
|
|
||||||
* corresponding array of `amounts` along the path.
|
|
||||||
**/
|
**/
|
||||||
CorrespondenceError: AugmentedError<ApiType>;
|
BelowMinimum: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Provided assets are equal.
|
|
||||||
**/
|
|
||||||
EqualAssets: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* It was not possible to get or increment the Id of the pool.
|
* It was not possible to get or increment the Id of the pool.
|
||||||
**/
|
**/
|
||||||
IncorrectPoolAssetId: AugmentedError<ApiType>;
|
IncorrectPoolAssetId: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Insufficient liquidity in the pool.
|
|
||||||
**/
|
|
||||||
InsufficientLiquidity: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Insufficient liquidity minted.
|
* Insufficient liquidity minted.
|
||||||
**/
|
**/
|
||||||
InsufficientLiquidityMinted: AugmentedError<ApiType>;
|
InsufficientLiquidityMinted: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Provided asset pair is not supported for pool.
|
||||||
|
**/
|
||||||
|
InvalidAssetPair: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The provided path must consists of 2 assets at least.
|
* The provided path must consists of 2 assets at least.
|
||||||
**/
|
**/
|
||||||
@@ -233,18 +227,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* An overflow happened.
|
* An overflow happened.
|
||||||
**/
|
**/
|
||||||
Overflow: AugmentedError<ApiType>;
|
Overflow: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* It was not possible to calculate path data.
|
|
||||||
**/
|
|
||||||
PathError: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Pool already exists.
|
* Pool already exists.
|
||||||
**/
|
**/
|
||||||
PoolExists: AugmentedError<ApiType>;
|
PoolExists: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Only pools with native on one side are valid.
|
|
||||||
**/
|
|
||||||
PoolMustContainNativeCurrency: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The pool doesn't exist.
|
* The pool doesn't exist.
|
||||||
**/
|
**/
|
||||||
@@ -262,10 +248,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* minimal amount.
|
* minimal amount.
|
||||||
**/
|
**/
|
||||||
ReserveLeftLessThanMinimal: AugmentedError<ApiType>;
|
ReserveLeftLessThanMinimal: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Provided asset is not supported for pool.
|
|
||||||
**/
|
|
||||||
UnsupportedAsset: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Desired amount can't be zero.
|
* Desired amount can't be zero.
|
||||||
**/
|
**/
|
||||||
@@ -288,6 +270,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
||||||
**/
|
**/
|
||||||
AlreadyExists: AugmentedError<ApiType>;
|
AlreadyExists: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Overflow ocurred when calculating the inverse rate.
|
||||||
|
**/
|
||||||
|
Overflow: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The given asset ID is unknown.
|
* The given asset ID is unknown.
|
||||||
**/
|
**/
|
||||||
@@ -413,6 +399,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Beneficiary account must pre-exist.
|
* Beneficiary account must pre-exist.
|
||||||
**/
|
**/
|
||||||
DeadAccount: AugmentedError<ApiType>;
|
DeadAccount: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The delta cannot be zero.
|
||||||
|
**/
|
||||||
|
DeltaZero: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Value too low to create account due to existential deposit.
|
* Value too low to create account due to existential deposit.
|
||||||
**/
|
**/
|
||||||
@@ -429,6 +419,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Balance too low to send value.
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The issuance cannot be modified since it is already deactivated.
|
||||||
|
**/
|
||||||
|
IssuanceDeactivated: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Account liquidity restrictions prevent withdrawal.
|
* Account liquidity restrictions prevent withdrawal.
|
||||||
**/
|
**/
|
||||||
@@ -438,7 +432,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
TooManyFreezes: AugmentedError<ApiType>;
|
TooManyFreezes: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Number of holds exceed `MaxHolds`.
|
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
|
||||||
**/
|
**/
|
||||||
TooManyHolds: AugmentedError<ApiType>;
|
TooManyHolds: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -454,6 +448,28 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
beefy: {
|
||||||
|
/**
|
||||||
|
* A given equivocation report is valid but already previously reported.
|
||||||
|
**/
|
||||||
|
DuplicateOffenceReport: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Submitted configuration is invalid.
|
||||||
|
**/
|
||||||
|
InvalidConfiguration: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* An equivocation proof provided as part of an equivocation report is invalid.
|
||||||
|
**/
|
||||||
|
InvalidEquivocationProof: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A key ownership proof provided as part of an equivocation report is invalid.
|
||||||
|
**/
|
||||||
|
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
bounties: {
|
bounties: {
|
||||||
/**
|
/**
|
||||||
* The bounty cannot be closed because it has active child bounties.
|
* The bounty cannot be closed because it has active child bounties.
|
||||||
@@ -818,7 +834,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
AlreadyDelegating: AugmentedError<ApiType>;
|
AlreadyDelegating: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The account currently has votes attached to it and the operation cannot succeed until
|
* The account currently has votes attached to it and the operation cannot succeed until
|
||||||
* these are removed, either through `unvote` or `reap_vote`.
|
* these are removed through `remove_vote`.
|
||||||
**/
|
**/
|
||||||
AlreadyVoting: AugmentedError<ApiType>;
|
AlreadyVoting: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1088,6 +1104,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* OCW submitted solution for wrong round
|
* OCW submitted solution for wrong round
|
||||||
**/
|
**/
|
||||||
OcwCallWrongEra: AugmentedError<ApiType>;
|
OcwCallWrongEra: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Sumission was prepared for a different round.
|
||||||
|
**/
|
||||||
|
PreDispatchDifferentRound: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Submission was too early.
|
* Submission was too early.
|
||||||
**/
|
**/
|
||||||
@@ -1304,10 +1324,22 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Invalid judgement.
|
* Invalid judgement.
|
||||||
**/
|
**/
|
||||||
InvalidJudgement: AugmentedError<ApiType>;
|
InvalidJudgement: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The signature on a username was not valid.
|
||||||
|
**/
|
||||||
|
InvalidSignature: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided suffix is too long.
|
||||||
|
**/
|
||||||
|
InvalidSuffix: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The target is invalid.
|
* The target is invalid.
|
||||||
**/
|
**/
|
||||||
InvalidTarget: AugmentedError<ApiType>;
|
InvalidTarget: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The username does not meet the requirements.
|
||||||
|
**/
|
||||||
|
InvalidUsername: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The provided judgement was for a different identity.
|
* The provided judgement was for a different identity.
|
||||||
**/
|
**/
|
||||||
@@ -1320,10 +1352,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Error that occurs when there is an issue paying for judgement.
|
* Error that occurs when there is an issue paying for judgement.
|
||||||
**/
|
**/
|
||||||
JudgementPaymentFailed: AugmentedError<ApiType>;
|
JudgementPaymentFailed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The authority cannot allocate any more usernames.
|
||||||
|
**/
|
||||||
|
NoAllocation: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* No identity found.
|
* No identity found.
|
||||||
**/
|
**/
|
||||||
NoIdentity: AugmentedError<ApiType>;
|
NoIdentity: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The username cannot be forcefully removed because it can still be accepted.
|
||||||
|
**/
|
||||||
|
NotExpired: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Account isn't found.
|
* Account isn't found.
|
||||||
**/
|
**/
|
||||||
@@ -1340,6 +1380,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Sender is not a sub-account.
|
* Sender is not a sub-account.
|
||||||
**/
|
**/
|
||||||
NotSub: AugmentedError<ApiType>;
|
NotSub: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The sender does not have permission to issue a username.
|
||||||
|
**/
|
||||||
|
NotUsernameAuthority: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The requested username does not exist.
|
||||||
|
**/
|
||||||
|
NoUsername: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Setting this username requires a signature, but none was provided.
|
||||||
|
**/
|
||||||
|
RequiresSignature: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Sticky judgement.
|
* Sticky judgement.
|
||||||
**/
|
**/
|
||||||
@@ -1352,6 +1404,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Too many subs-accounts.
|
* Too many subs-accounts.
|
||||||
**/
|
**/
|
||||||
TooManySubAccounts: AugmentedError<ApiType>;
|
TooManySubAccounts: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The username is already taken.
|
||||||
|
**/
|
||||||
|
UsernameTaken: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -2160,6 +2216,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The member's rank is too low to vote.
|
* The member's rank is too low to vote.
|
||||||
**/
|
**/
|
||||||
RankTooLow: AugmentedError<ApiType>;
|
RankTooLow: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The new member to exchange is the same as the old member
|
||||||
|
**/
|
||||||
|
SameMember: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -2813,10 +2873,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The origin filter prevent the call to be dispatched.
|
* The origin filter prevent the call to be dispatched.
|
||||||
**/
|
**/
|
||||||
CallFiltered: AugmentedError<ApiType>;
|
CallFiltered: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The specified [`Task`] failed during execution.
|
|
||||||
**/
|
|
||||||
FailedTask: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Failed to extract the runtime version from the new runtime.
|
* Failed to extract the runtime version from the new runtime.
|
||||||
*
|
*
|
||||||
@@ -2828,10 +2884,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* and the new runtime.
|
* and the new runtime.
|
||||||
**/
|
**/
|
||||||
InvalidSpecName: AugmentedError<ApiType>;
|
InvalidSpecName: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The specified [`Task`] is not valid.
|
|
||||||
**/
|
|
||||||
InvalidTask: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Suicide called when the account has non-default composite data.
|
* Suicide called when the account has non-default composite data.
|
||||||
**/
|
**/
|
||||||
@@ -2840,11 +2892,19 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* There is a non-zero reference count preventing the account from being purged.
|
* There is a non-zero reference count preventing the account from being purged.
|
||||||
**/
|
**/
|
||||||
NonZeroRefCount: AugmentedError<ApiType>;
|
NonZeroRefCount: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* No upgrade authorized.
|
||||||
|
**/
|
||||||
|
NothingAuthorized: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The specification version is not allowed to decrease between the current runtime
|
* The specification version is not allowed to decrease between the current runtime
|
||||||
* and the new runtime.
|
* and the new runtime.
|
||||||
**/
|
**/
|
||||||
SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
|
SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The submitted code is not authorized.
|
||||||
|
**/
|
||||||
|
Unauthorized: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|||||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeTask, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -113,24 +113,24 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A successful call of the `AddLiquidity` extrinsic will create this event.
|
* A successful call of the `AddLiquidity` extrinsic will create this event.
|
||||||
**/
|
**/
|
||||||
LiquidityAdded: AugmentedEvent<ApiType, [who: AccountId32, mintTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], { who: AccountId32, mintTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128 }>;
|
LiquidityAdded: AugmentedEvent<ApiType, [who: AccountId32, mintTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], { who: AccountId32, mintTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128 }>;
|
||||||
/**
|
/**
|
||||||
* A successful call of the `RemoveLiquidity` extrinsic will create this event.
|
* A successful call of the `RemoveLiquidity` extrinsic will create this event.
|
||||||
**/
|
**/
|
||||||
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>;
|
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>;
|
||||||
/**
|
/**
|
||||||
* A successful call of the `CretaPool` extrinsic will create this event.
|
* A successful call of the `CretaPool` extrinsic will create this event.
|
||||||
**/
|
**/
|
||||||
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>, poolAccount: AccountId32, lpToken: u32 }>;
|
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32 }>;
|
||||||
|
/**
|
||||||
|
* Assets have been converted from one to another.
|
||||||
|
**/
|
||||||
|
SwapCreditExecuted: AugmentedEvent<ApiType, [amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
|
||||||
/**
|
/**
|
||||||
* Assets have been converted from one to another. Both `SwapExactTokenForToken`
|
* Assets have been converted from one to another. Both `SwapExactTokenForToken`
|
||||||
* and `SwapTokenForExactToken` will generate this event.
|
* and `SwapTokenForExactToken` will generate this event.
|
||||||
**/
|
**/
|
||||||
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, path: Vec<PalletAssetConversionNativeOrAssetId>, amountIn: u128, amountOut: u128], { who: AccountId32, sendTo: AccountId32, path: Vec<PalletAssetConversionNativeOrAssetId>, amountIn: u128, amountOut: u128 }>;
|
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
|
||||||
/**
|
|
||||||
* An amount has been transferred from one account to another.
|
|
||||||
**/
|
|
||||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, asset: PalletAssetConversionNativeOrAssetId, amount: u128], { from: AccountId32, to: AccountId32, asset: PalletAssetConversionNativeOrAssetId, amount: u128 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -341,6 +341,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Some balance was thawed.
|
* Some balance was thawed.
|
||||||
**/
|
**/
|
||||||
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* The `TotalIssuance` was forcefully changed.
|
||||||
|
**/
|
||||||
|
TotalIssuanceForced: AugmentedEvent<ApiType, [old: u128, new_: u128], { old: u128, new_: u128 }>;
|
||||||
/**
|
/**
|
||||||
* Transfer succeeded.
|
* Transfer succeeded.
|
||||||
**/
|
**/
|
||||||
@@ -677,6 +681,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Member has stated evidence of their efforts their request for rank.
|
* Member has stated evidence of their efforts their request for rank.
|
||||||
**/
|
**/
|
||||||
Requested: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish], { who: AccountId32, wish: PalletCoreFellowshipWish }>;
|
Requested: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish], { who: AccountId32, wish: PalletCoreFellowshipWish }>;
|
||||||
|
/**
|
||||||
|
* A member had its AccountId swapped.
|
||||||
|
**/
|
||||||
|
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -939,6 +947,19 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
identity: {
|
identity: {
|
||||||
|
/**
|
||||||
|
* A username authority was added.
|
||||||
|
**/
|
||||||
|
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A username authority was removed.
|
||||||
|
**/
|
||||||
|
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A dangling username (as in, a username corresponding to an account that has removed its
|
||||||
|
* identity) has been removed.
|
||||||
|
**/
|
||||||
|
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||||
/**
|
/**
|
||||||
* A name was cleared, and the given balance returned.
|
* A name was cleared, and the given balance returned.
|
||||||
**/
|
**/
|
||||||
@@ -963,6 +984,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A judgement request was retracted.
|
* A judgement request was retracted.
|
||||||
**/
|
**/
|
||||||
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
|
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
|
||||||
|
/**
|
||||||
|
* A queued username passed its expiration without being claimed and was removed.
|
||||||
|
**/
|
||||||
|
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], { whose: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* A username was set as a primary and can be looked up from `who`.
|
||||||
|
**/
|
||||||
|
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||||
/**
|
/**
|
||||||
* A registrar was added.
|
* A registrar was added.
|
||||||
**/
|
**/
|
||||||
@@ -980,6 +1009,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* main identity account to the sub-identity account.
|
* main identity account to the sub-identity account.
|
||||||
**/
|
**/
|
||||||
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||||
|
/**
|
||||||
|
* A username was queued, but `who` must accept it prior to `expiration`.
|
||||||
|
**/
|
||||||
|
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], { who: AccountId32, username: Bytes, expiration: u32 }>;
|
||||||
|
/**
|
||||||
|
* A username was set for `who`.
|
||||||
|
**/
|
||||||
|
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1404,6 +1441,18 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
parameters: {
|
||||||
|
/**
|
||||||
|
* A Parameter was set.
|
||||||
|
*
|
||||||
|
* Is also emitted when the value was not changed.
|
||||||
|
**/
|
||||||
|
Updated: AugmentedEvent<ApiType, [key: KitchensinkRuntimeRuntimeParametersKey, oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>, newValue: Option<KitchensinkRuntimeRuntimeParametersValue>], { key: KitchensinkRuntimeRuntimeParametersKey, oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>, newValue: Option<KitchensinkRuntimeRuntimeParametersValue> }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
poolAssets: {
|
poolAssets: {
|
||||||
/**
|
/**
|
||||||
* Accounts were destroyed for given asset.
|
* Accounts were destroyed for given asset.
|
||||||
@@ -1564,6 +1613,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A member `who` has been added.
|
* A member `who` has been added.
|
||||||
**/
|
**/
|
||||||
MemberAdded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
MemberAdded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* The member `who` had their `AccountId` changed to `new_who`.
|
||||||
|
**/
|
||||||
|
MemberExchanged: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* The member `who` of given `rank` has been removed from the collective.
|
* The member `who` of given `rank` has been removed from the collective.
|
||||||
**/
|
**/
|
||||||
@@ -1819,6 +1872,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A member registered for a payout.
|
* A member registered for a payout.
|
||||||
**/
|
**/
|
||||||
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||||
|
/**
|
||||||
|
* A member swapped their account.
|
||||||
|
**/
|
||||||
|
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1845,6 +1902,19 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The given task can never be executed since it is overweight.
|
* The given task can never be executed since it is overweight.
|
||||||
**/
|
**/
|
||||||
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
|
/**
|
||||||
|
* Cancel a retry configuration for some task.
|
||||||
|
**/
|
||||||
|
RetryCancelled: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
|
/**
|
||||||
|
* The given task was unable to be retried since the agenda is full at that block or there
|
||||||
|
* was not enough weight to reschedule it.
|
||||||
|
**/
|
||||||
|
RetryFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
|
/**
|
||||||
|
* Set a retry configuration for some task.
|
||||||
|
**/
|
||||||
|
RetrySet: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8 }>;
|
||||||
/**
|
/**
|
||||||
* Scheduled some task.
|
* Scheduled some task.
|
||||||
**/
|
**/
|
||||||
@@ -2114,17 +2184,9 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
|
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
|
||||||
/**
|
/**
|
||||||
* A [`Task`] has finished executing.
|
* An upgrade was authorized.
|
||||||
**/
|
**/
|
||||||
TaskCompleted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], { task: KitchensinkRuntimeRuntimeTask }>;
|
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256, checkVersion: bool], { codeHash: H256, checkVersion: bool }>;
|
||||||
/**
|
|
||||||
* A [`Task`] failed during execution.
|
|
||||||
**/
|
|
||||||
TaskFailed: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask, err: SpRuntimeDispatchError], { task: KitchensinkRuntimeRuntimeTask, err: SpRuntimeDispatchError }>;
|
|
||||||
/**
|
|
||||||
* A [`Task`] has started executing
|
|
||||||
**/
|
|
||||||
TaskStarted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], { task: KitchensinkRuntimeRuntimeTask }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '../base.js';
|
import '../base.js';
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionNativeOrAssetId, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -95,7 +95,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
||||||
* created rather than people sending tokens directly to a pool's public account.
|
* created rather than people sending tokens directly to a pool's public account.
|
||||||
**/
|
**/
|
||||||
pools: AugmentedQuery<ApiType, (arg: ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]> | [PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array, PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>]> & QueryableStorageEntry<ApiType, [ITuple<[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>]>;
|
pools: AugmentedQuery<ApiType, (arg: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]> | [FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]> & QueryableStorageEntry<ApiType, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -332,6 +332,43 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
beefy: {
|
||||||
|
/**
|
||||||
|
* The current authorities set
|
||||||
|
**/
|
||||||
|
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Block number where BEEFY consensus is enabled/started.
|
||||||
|
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
|
||||||
|
* restarted from the newly set block number.
|
||||||
|
**/
|
||||||
|
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Authorities set scheduled to be used with the next session
|
||||||
|
**/
|
||||||
|
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
|
||||||
|
* members were responsible.
|
||||||
|
*
|
||||||
|
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||||
|
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||||
|
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
|
||||||
|
* was the owner of a given key on a given session, and what the active set ID was
|
||||||
|
* during that session.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: `ValidatorSetId` is not under user control.
|
||||||
|
**/
|
||||||
|
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||||
|
/**
|
||||||
|
* The current validator set id
|
||||||
|
**/
|
||||||
|
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
bounties: {
|
bounties: {
|
||||||
/**
|
/**
|
||||||
* Bounties that have been made.
|
* Bounties that have been made.
|
||||||
@@ -363,6 +400,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The current configuration of this pallet.
|
* The current configuration of this pallet.
|
||||||
**/
|
**/
|
||||||
configuration: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerConfigRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
configuration: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerConfigRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Received core count change from the relay chain.
|
||||||
|
**/
|
||||||
|
coreCountInbox: AugmentedQuery<ApiType, () => Observable<Option<u16>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Record of a single contribution to the Instantaneous Coretime Pool.
|
* Record of a single contribution to the Instantaneous Coretime Pool.
|
||||||
**/
|
**/
|
||||||
@@ -643,6 +684,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Desired number of targets to elect for this round.
|
* Desired number of targets to elect for this round.
|
||||||
*
|
*
|
||||||
* Only exists when [`Snapshot`] is present.
|
* Only exists when [`Snapshot`] is present.
|
||||||
|
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
||||||
**/
|
**/
|
||||||
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -702,12 +744,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Snapshot data of the round.
|
* Snapshot data of the round.
|
||||||
*
|
*
|
||||||
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
||||||
|
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
||||||
**/
|
**/
|
||||||
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The metadata of the [`RoundSnapshot`]
|
* The metadata of the [`RoundSnapshot`]
|
||||||
*
|
*
|
||||||
* Only exists when [`Snapshot`] is present.
|
* Only exists when [`Snapshot`] is present.
|
||||||
|
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
||||||
**/
|
**/
|
||||||
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
|
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -865,13 +909,45 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
historical: {
|
||||||
|
/**
|
||||||
|
* Mapping from historical session indices to session-data root hash and validator count.
|
||||||
|
**/
|
||||||
|
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The range of historical sessions we store. [first, last)
|
||||||
|
**/
|
||||||
|
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
identity: {
|
identity: {
|
||||||
/**
|
/**
|
||||||
* Information that is pertinent to identify the entity behind an account.
|
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
||||||
|
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
||||||
|
*
|
||||||
|
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
||||||
|
* primary username.
|
||||||
|
**/
|
||||||
|
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||||
|
/**
|
||||||
|
* Information that is pertinent to identify the entity behind an account. First item is the
|
||||||
|
* registration, second is the account's primary username.
|
||||||
*
|
*
|
||||||
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Usernames that an authority has granted, but that the account controller has not confirmed
|
||||||
|
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
||||||
|
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
||||||
|
* [`Call::accept_username`].
|
||||||
|
*
|
||||||
|
* First tuple item is the account and second is the acceptance deadline.
|
||||||
|
**/
|
||||||
|
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
* The set of registrars. Not expected to get very big as can only be added through a
|
* The set of registrars. Not expected to get very big as can only be added through a
|
||||||
* special origin (likely a council motion).
|
* special origin (likely a council motion).
|
||||||
@@ -892,6 +968,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* context. If the account is not some other account's sub-identity, then just `None`.
|
* context. If the account is not some other account's sub-identity, then just `None`.
|
||||||
**/
|
**/
|
||||||
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* A map of the accounts who are authorized to grant usernames.
|
||||||
|
**/
|
||||||
|
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1038,6 +1118,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
mmrLeaf: {
|
||||||
|
/**
|
||||||
|
* Details of current BEEFY authority set.
|
||||||
|
**/
|
||||||
|
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Details of next BEEFY authority set.
|
||||||
|
*
|
||||||
|
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
|
||||||
|
**/
|
||||||
|
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
/**
|
/**
|
||||||
* The set of open multisig operations.
|
* The set of open multisig operations.
|
||||||
@@ -1239,13 +1335,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* A reverse lookup from the pool's account id to its id.
|
* A reverse lookup from the pool's account id to its id.
|
||||||
*
|
*
|
||||||
* This is only used for slashing. In all other instances, the pool id is used, and the
|
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
||||||
* accounts are deterministically derived from it.
|
* pool id is used, and the accounts are deterministically derived from it.
|
||||||
**/
|
**/
|
||||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||||
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
||||||
**/
|
**/
|
||||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1280,6 +1376,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
parameters: {
|
||||||
|
/**
|
||||||
|
* Stored parameters.
|
||||||
|
**/
|
||||||
|
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Contract: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
poolAssets: {
|
poolAssets: {
|
||||||
/**
|
/**
|
||||||
* The holdings of a specific account for a specific asset.
|
* The holdings of a specific account for a specific asset.
|
||||||
@@ -1547,6 +1653,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* identities.
|
* identities.
|
||||||
**/
|
**/
|
||||||
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||||
|
/**
|
||||||
|
* Retry configurations for items to be executed, indexed by task address.
|
||||||
|
**/
|
||||||
|
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1849,6 +1959,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* When this value is not set, no limits are enforced.
|
* When this value is not set, no limits are enforced.
|
||||||
**/
|
**/
|
||||||
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
||||||
|
* is used for stake rewards.
|
||||||
|
* See [Era payout](./index.html#era-payout).
|
||||||
|
**/
|
||||||
|
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The maximum validator count before we stop allowing new validators to join.
|
* The maximum validator count before we stop allowing new validators to join.
|
||||||
*
|
*
|
||||||
@@ -1920,7 +2036,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
*
|
*
|
||||||
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Slashing spans for stash accounts.
|
* Slashing spans for stash accounts.
|
||||||
**/
|
**/
|
||||||
@@ -2004,6 +2120,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Total length (in bytes) for all extrinsics put together, for the current block.
|
* Total length (in bytes) for all extrinsics put together, for the current block.
|
||||||
**/
|
**/
|
||||||
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* `Some` if a code upgrade has been authorized.
|
||||||
|
**/
|
||||||
|
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Map of block numbers to block hashes.
|
* Map of block numbers to block hashes.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '@polkadot/types-augment/registry/substrate';
|
import '@polkadot/types-augment/registry/substrate';
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from '@polkado
|
|||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
|
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
@@ -116,6 +117,29 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
|
/** 0x49eaaf1b548a0cb0/3 */
|
||||||
|
beefyApi: {
|
||||||
|
/**
|
||||||
|
* Return the block number where BEEFY consensus is enabled/started
|
||||||
|
**/
|
||||||
|
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||||
|
/**
|
||||||
|
* Generates a proof of key ownership for the given authority in the given set.
|
||||||
|
**/
|
||||||
|
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||||
|
/**
|
||||||
|
* Submits an unsigned extrinsic to report an equivocation.
|
||||||
|
**/
|
||||||
|
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||||
|
/**
|
||||||
|
* Return the current active BEEFY validator set
|
||||||
|
**/
|
||||||
|
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
|
||||||
|
/**
|
||||||
|
* Generic call
|
||||||
|
**/
|
||||||
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
|
};
|
||||||
/** 0x40fe3ad401f8959a/6 */
|
/** 0x40fe3ad401f8959a/6 */
|
||||||
blockBuilder: {
|
blockBuilder: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeTask, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -126,23 +126,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* See [`Pallet::add_liquidity`].
|
* See [`Pallet::add_liquidity`].
|
||||||
**/
|
**/
|
||||||
addLiquidity: AugmentedSubmittable<(asset1: PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array, asset2: PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array, amount1Desired: u128 | AnyNumber | Uint8Array, amount2Desired: u128 | AnyNumber | Uint8Array, amount1Min: u128 | AnyNumber | Uint8Array, amount2Min: u128 | AnyNumber | Uint8Array, mintTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId, u128, u128, u128, u128, AccountId32]>;
|
addLiquidity: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, amount1Desired: u128 | AnyNumber | Uint8Array, amount2Desired: u128 | AnyNumber | Uint8Array, amount1Min: u128 | AnyNumber | Uint8Array, amount2Min: u128 | AnyNumber | Uint8Array, mintTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId, u128, u128, u128, u128, AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::create_pool`].
|
* See [`Pallet::create_pool`].
|
||||||
**/
|
**/
|
||||||
createPool: AugmentedSubmittable<(asset1: PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array, asset2: PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]>;
|
createPool: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::remove_liquidity`].
|
* See [`Pallet::remove_liquidity`].
|
||||||
**/
|
**/
|
||||||
removeLiquidity: AugmentedSubmittable<(asset1: PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array, asset2: PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array, lpTokenBurn: u128 | AnyNumber | Uint8Array, amount1MinReceive: u128 | AnyNumber | Uint8Array, amount2MinReceive: u128 | AnyNumber | Uint8Array, withdrawTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId, u128, u128, u128, AccountId32]>;
|
removeLiquidity: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, lpTokenBurn: u128 | AnyNumber | Uint8Array, amount1MinReceive: u128 | AnyNumber | Uint8Array, amount2MinReceive: u128 | AnyNumber | Uint8Array, withdrawTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId, u128, u128, u128, AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::swap_exact_tokens_for_tokens`].
|
* See [`Pallet::swap_exact_tokens_for_tokens`].
|
||||||
**/
|
**/
|
||||||
swapExactTokensForTokens: AugmentedSubmittable<(path: Vec<PalletAssetConversionNativeOrAssetId> | (PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array)[], amountIn: u128 | AnyNumber | Uint8Array, amountOutMin: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<PalletAssetConversionNativeOrAssetId>, u128, u128, AccountId32, bool]>;
|
swapExactTokensForTokens: AugmentedSubmittable<(path: Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId> | (FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array)[], amountIn: u128 | AnyNumber | Uint8Array, amountOutMin: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId>, u128, u128, AccountId32, bool]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::swap_tokens_for_exact_tokens`].
|
* See [`Pallet::swap_tokens_for_exact_tokens`].
|
||||||
**/
|
**/
|
||||||
swapTokensForExactTokens: AugmentedSubmittable<(path: Vec<PalletAssetConversionNativeOrAssetId> | (PalletAssetConversionNativeOrAssetId | { Native: any } | { Asset: any } | string | Uint8Array)[], amountOut: u128 | AnyNumber | Uint8Array, amountInMax: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<PalletAssetConversionNativeOrAssetId>, u128, u128, AccountId32, bool]>;
|
swapTokensForExactTokens: AugmentedSubmittable<(path: Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId> | (FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array)[], amountOut: u128 | AnyNumber | Uint8Array, amountInMax: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId>, u128, u128, AccountId32, bool]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -319,6 +319,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
|
/**
|
||||||
|
* See [`Pallet::force_adjust_total_issuance`].
|
||||||
|
**/
|
||||||
|
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::force_set_balance`].
|
* See [`Pallet::force_set_balance`].
|
||||||
**/
|
**/
|
||||||
@@ -352,6 +356,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
beefy: {
|
||||||
|
/**
|
||||||
|
* See [`Pallet::report_equivocation`].
|
||||||
|
**/
|
||||||
|
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::report_equivocation_unsigned`].
|
||||||
|
**/
|
||||||
|
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::set_new_genesis`].
|
||||||
|
**/
|
||||||
|
setNewGenesis: AugmentedSubmittable<(delayInBlocks: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
bounties: {
|
bounties: {
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::accept_curator`].
|
* See [`Pallet::accept_curator`].
|
||||||
@@ -427,6 +449,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::interlace`].
|
* See [`Pallet::interlace`].
|
||||||
**/
|
**/
|
||||||
interlace: AugmentedSubmittable<(regionId: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array, pivot: PalletBrokerCoreMask | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId, PalletBrokerCoreMask]>;
|
interlace: AugmentedSubmittable<(regionId: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array, pivot: PalletBrokerCoreMask | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId, PalletBrokerCoreMask]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::notify_core_count`].
|
||||||
|
**/
|
||||||
|
notifyCoreCount: AugmentedSubmittable<(coreCount: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::partition`].
|
* See [`Pallet::partition`].
|
||||||
**/
|
**/
|
||||||
@@ -851,6 +877,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
identity: {
|
identity: {
|
||||||
|
/**
|
||||||
|
* See [`Pallet::accept_username`].
|
||||||
|
**/
|
||||||
|
acceptUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::add_registrar`].
|
* See [`Pallet::add_registrar`].
|
||||||
**/
|
**/
|
||||||
@@ -859,6 +889,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::add_sub`].
|
* See [`Pallet::add_sub`].
|
||||||
**/
|
**/
|
||||||
addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::add_username_authority`].
|
||||||
|
**/
|
||||||
|
addUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, suffix: Bytes | string | Uint8Array, allocation: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, u32]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::cancel_request`].
|
* See [`Pallet::cancel_request`].
|
||||||
**/
|
**/
|
||||||
@@ -879,10 +913,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::quit_sub`].
|
* See [`Pallet::quit_sub`].
|
||||||
**/
|
**/
|
||||||
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::remove_dangling_username`].
|
||||||
|
**/
|
||||||
|
removeDanglingUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::remove_expired_approval`].
|
||||||
|
**/
|
||||||
|
removeExpiredApproval: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::remove_sub`].
|
* See [`Pallet::remove_sub`].
|
||||||
**/
|
**/
|
||||||
removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::remove_username_authority`].
|
||||||
|
**/
|
||||||
|
removeUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::rename_sub`].
|
* See [`Pallet::rename_sub`].
|
||||||
**/
|
**/
|
||||||
@@ -907,10 +953,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::set_identity`].
|
* See [`Pallet::set_identity`].
|
||||||
**/
|
**/
|
||||||
setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
|
setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::set_primary_username`].
|
||||||
|
**/
|
||||||
|
setPrimaryUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::set_subs`].
|
* See [`Pallet::set_subs`].
|
||||||
**/
|
**/
|
||||||
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
|
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::set_username_for`].
|
||||||
|
**/
|
||||||
|
setUsernameFor: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, username: Bytes | string | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, Option<SpRuntimeMultiSignature>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1182,7 +1236,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* See [`Pallet::transfer_ownership`].
|
* See [`Pallet::transfer_ownership`].
|
||||||
**/
|
**/
|
||||||
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::unlock_item_transfer`].
|
* See [`Pallet::unlock_item_transfer`].
|
||||||
**/
|
**/
|
||||||
@@ -1328,6 +1382,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
parameters: {
|
||||||
|
/**
|
||||||
|
* See [`Pallet::set_parameter`].
|
||||||
|
**/
|
||||||
|
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | { Contract: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
poolAssets: {
|
poolAssets: {
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::approve_transfer`].
|
* See [`Pallet::approve_transfer`].
|
||||||
@@ -1561,6 +1625,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::demote_member`].
|
* See [`Pallet::demote_member`].
|
||||||
**/
|
**/
|
||||||
demoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
demoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::exchange_member`].
|
||||||
|
**/
|
||||||
|
exchangeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newWho: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::promote_member`].
|
* See [`Pallet::promote_member`].
|
||||||
**/
|
**/
|
||||||
@@ -1809,6 +1877,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::cancel_named`].
|
* See [`Pallet::cancel_named`].
|
||||||
**/
|
**/
|
||||||
cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
|
cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::cancel_retry`].
|
||||||
|
**/
|
||||||
|
cancelRetry: AugmentedSubmittable<(task: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => SubmittableExtrinsic<ApiType>, [ITuple<[u32, u32]>]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::cancel_retry_named`].
|
||||||
|
**/
|
||||||
|
cancelRetryNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::schedule`].
|
* See [`Pallet::schedule`].
|
||||||
**/
|
**/
|
||||||
@@ -1825,6 +1901,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::schedule_named_after`].
|
* See [`Pallet::schedule_named_after`].
|
||||||
**/
|
**/
|
||||||
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::set_retry`].
|
||||||
|
**/
|
||||||
|
setRetry: AugmentedSubmittable<(task: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ITuple<[u32, u32]>, u8, u32]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::set_retry_named`].
|
||||||
|
**/
|
||||||
|
setRetryNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u8, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1838,7 +1922,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* See [`Pallet::set_keys`].
|
* See [`Pallet::set_keys`].
|
||||||
**/
|
**/
|
||||||
setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; authorityDiscovery?: any; mixnet?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeSessionKeys, Bytes]>;
|
setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; authorityDiscovery?: any; mixnet?: any; beefy?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeSessionKeys, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1951,6 +2035,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* See [`Pallet::chill_other`].
|
* See [`Pallet::chill_other`].
|
||||||
**/
|
**/
|
||||||
chillOther: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
chillOther: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::deprecate_controller_batch`].
|
||||||
|
**/
|
||||||
|
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::force_apply_min_commission`].
|
* See [`Pallet::force_apply_min_commission`].
|
||||||
**/
|
**/
|
||||||
@@ -2022,7 +2110,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* See [`Pallet::set_staking_configs`].
|
* See [`Pallet::set_staking_configs`].
|
||||||
**/
|
**/
|
||||||
setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill]>;
|
setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxStakedRewards: PalletStakingPalletConfigOpPercent | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::set_validator_count`].
|
* See [`Pallet::set_validator_count`].
|
||||||
**/
|
**/
|
||||||
@@ -2106,9 +2194,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
};
|
};
|
||||||
system: {
|
system: {
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::do_task`].
|
* See [`Pallet::apply_authorized_upgrade`].
|
||||||
**/
|
**/
|
||||||
doTask: AugmentedSubmittable<(task: KitchensinkRuntimeRuntimeTask | { TasksExample: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeTask]>;
|
applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::authorize_upgrade`].
|
||||||
|
**/
|
||||||
|
authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
|
/**
|
||||||
|
* See [`Pallet::authorize_upgrade_without_checks`].
|
||||||
|
**/
|
||||||
|
authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
/**
|
/**
|
||||||
* See [`Pallet::kill_prefix`].
|
* See [`Pallet::kill_prefix`].
|
||||||
**/
|
**/
|
||||||
@@ -2428,7 +2524,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* See [`Pallet::transfer_ownership`].
|
* See [`Pallet::transfer_ownership`].
|
||||||
**/
|
**/
|
||||||
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -14,15 +14,15 @@
|
|||||||
"url": "https://github.com/polkadot-js/api.git"
|
"url": "https://github.com/polkadot-js/api.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./detectPackage.js",
|
"./packageDetect.js",
|
||||||
"./detectPackage.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.11.2",
|
"version": "10.12.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-core": "10.11.2",
|
"@polkadot/rpc-core": "10.12.2",
|
||||||
"@polkadot/types": "10.11.2",
|
"@polkadot/types": "10.12.2",
|
||||||
"@polkadot/util": "^12.6.2",
|
"@polkadot/util": "^12.6.2",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"tslib": "^2.6.2"
|
"tslib": "^2.6.2"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { packageInfo } from './packageInfo.js';
|
export { packageInfo } from './packageInfo.js';
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
|
||||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
|
||||||
|
|
||||||
export default [rpcInfo, typesInfo];
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
|
||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
|
||||||
|
|
||||||
import others from './detectOther.js';
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage.js';
|
import './packageDetect.js';
|
||||||
|
|
||||||
export * from './bundle.js';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
|
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
||||||
|
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, null, [rpcInfo, typesInfo]);
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.11.2' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.12.2' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { IsError } from '@polkadot/types/metadata/decorate/types';
|
import type { IsError } from '@polkadot/types/metadata/decorate/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
|
import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// These are augmented, do an augmentation export
|
// These are augmented, do an augmentation export
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -14,25 +14,26 @@
|
|||||||
"url": "https://github.com/polkadot-js/api.git"
|
"url": "https://github.com/polkadot-js/api.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./detectPackage.js",
|
"./packageDetect.js",
|
||||||
"./detectPackage.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.11.2",
|
"version": "10.12.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "10.11.2",
|
"@polkadot/api": "10.12.2",
|
||||||
"@polkadot/api-augment": "10.11.2",
|
"@polkadot/api-augment": "10.12.2",
|
||||||
"@polkadot/types": "10.11.2",
|
"@polkadot/types": "10.12.2",
|
||||||
"@polkadot/types-codec": "10.11.2",
|
"@polkadot/types-codec": "10.12.2",
|
||||||
"@polkadot/types-create": "10.11.2",
|
"@polkadot/types-create": "10.12.2",
|
||||||
"@polkadot/util": "^12.6.2",
|
"@polkadot/util": "^12.6.2",
|
||||||
"@polkadot/util-crypto": "^12.6.2",
|
"@polkadot/util-crypto": "^12.6.2",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"tslib": "^2.6.2"
|
"tslib": "^2.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "10.11.2",
|
"@polkadot/api-augment": "10.12.2",
|
||||||
"@polkadot/keyring": "^12.6.2"
|
"@polkadot/keyring": "^12.6.2",
|
||||||
|
"@polkadot/types-support": "10.12.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||||
@@ -9,8 +9,10 @@ import fs from 'node:fs';
|
|||||||
import process from 'node:process';
|
import process from 'node:process';
|
||||||
|
|
||||||
import { TypeDefInfo } from '@polkadot/types/types';
|
import { TypeDefInfo } from '@polkadot/types/types';
|
||||||
|
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate-contracts-node';
|
||||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
|
import { Metadata, TypeRegistry } from '../../../types/src/bundle.js';
|
||||||
import abis from '../test/contracts/index.js';
|
import abis from '../test/contracts/index.js';
|
||||||
import { Abi } from './index.js';
|
import { Abi } from './index.js';
|
||||||
|
|
||||||
@@ -122,4 +124,112 @@ describe('Abi', (): void => {
|
|||||||
// the hash as per the actual Abi
|
// the hash as per the actual Abi
|
||||||
expect(bundle.source.hash).toEqual(abi.info.source.wasmHash.toHex());
|
expect(bundle.source.hash).toEqual(abi.info.source.wasmHash.toHex());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('Events', (): void => {
|
||||||
|
const registry = new TypeRegistry();
|
||||||
|
|
||||||
|
beforeAll((): void => {
|
||||||
|
const metadata = new Metadata(registry, rpcMetadata);
|
||||||
|
|
||||||
|
registry.setMetadata(metadata);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('decoding <=ink!v4 event', (): void => {
|
||||||
|
const abiJson = abis['ink_v4_erc20Metadata'];
|
||||||
|
|
||||||
|
expect(abiJson).toBeDefined();
|
||||||
|
const abi = new Abi(abiJson);
|
||||||
|
|
||||||
|
const eventRecordHex =
|
||||||
|
'0x0001000000080360951b8baf569bca905a279c12d6ce17db7cdce23a42563870ef585129ce5dc64d010001d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d018eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4800505a4f7e9f4eb106000000000000000c0045726332303a3a5472616e7366657200000000000000000000000000000000da2d695d3b5a304e0039e7fc4419c34fa0c1f239189c99bb72a6484f1634782b2b00c7d40fe6d84d660f3e6bed90f218e022a0909f7e1a7ea35ada8b6e003564';
|
||||||
|
const record = registry.createType('EventRecord', eventRecordHex);
|
||||||
|
|
||||||
|
const decodedEvent = abi.decodeEvent(record);
|
||||||
|
|
||||||
|
expect(decodedEvent.event.args.length).toEqual(3);
|
||||||
|
expect(decodedEvent.args.length).toEqual(3);
|
||||||
|
expect(decodedEvent.event.identifier).toEqual('Transfer');
|
||||||
|
|
||||||
|
const decodedEventHuman = decodedEvent.event.args.reduce((prev, cur, index) => {
|
||||||
|
return {
|
||||||
|
...prev,
|
||||||
|
[cur.name]: decodedEvent.args[index].toHuman()
|
||||||
|
};
|
||||||
|
}, {});
|
||||||
|
|
||||||
|
const expectedEvent = {
|
||||||
|
from: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
|
||||||
|
to: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',
|
||||||
|
value: '123.4567 MUnit'
|
||||||
|
};
|
||||||
|
|
||||||
|
expect(decodedEventHuman).toEqual(expectedEvent);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('decoding >=ink!v5 event', (): void => {
|
||||||
|
const abiJson = abis['ink_v5_erc20Metadata'];
|
||||||
|
|
||||||
|
expect(abiJson).toBeDefined();
|
||||||
|
const abi = new Abi(abiJson);
|
||||||
|
|
||||||
|
const eventRecordHex =
|
||||||
|
'0x00010000000803da17150e96b3955a4db6ad35ddeb495f722f9c1d84683113bfb096bf3faa30f2490101d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d018eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4800505a4f7e9f4eb106000000000000000cb5b61a3e6a21a16be4f044b517c28ac692492f73c5bfd3f60178ad98c767f4cbd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48';
|
||||||
|
const record = registry.createType('EventRecord', eventRecordHex);
|
||||||
|
|
||||||
|
const decodedEvent = abi.decodeEvent(record);
|
||||||
|
|
||||||
|
expect(decodedEvent.event.args.length).toEqual(3);
|
||||||
|
expect(decodedEvent.args.length).toEqual(3);
|
||||||
|
expect(decodedEvent.event.identifier).toEqual('erc20::erc20::Transfer');
|
||||||
|
|
||||||
|
const decodedEventHuman = decodedEvent.event.args.reduce((prev, cur, index) => {
|
||||||
|
return {
|
||||||
|
...prev,
|
||||||
|
[cur.name]: decodedEvent.args[index].toHuman()
|
||||||
|
};
|
||||||
|
}, {});
|
||||||
|
|
||||||
|
const expectedEvent = {
|
||||||
|
from: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
|
||||||
|
to: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',
|
||||||
|
value: '123.4567 MUnit'
|
||||||
|
};
|
||||||
|
|
||||||
|
expect(decodedEventHuman).toEqual(expectedEvent);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('decoding >=ink!v5 anonymous event', (): void => {
|
||||||
|
const abiJson = abis['ink_v5_erc20AnonymousTransferMetadata'];
|
||||||
|
|
||||||
|
expect(abiJson).toBeDefined();
|
||||||
|
const abi = new Abi(abiJson);
|
||||||
|
|
||||||
|
expect(abi.events[0].identifier).toEqual('erc20::erc20::Transfer');
|
||||||
|
expect(abi.events[0].signatureTopic).toEqual(null);
|
||||||
|
|
||||||
|
const eventRecordWithAnonymousEventHex = '0x00010000000803538e726248a9c155911e7d99f4f474c3408630a2f6275dd501d4471c7067ad2c490101d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d018eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4800505a4f7e9f4eb1060000000000000008d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48';
|
||||||
|
const record = registry.createType('EventRecord', eventRecordWithAnonymousEventHex);
|
||||||
|
|
||||||
|
const decodedEvent = abi.decodeEvent(record);
|
||||||
|
|
||||||
|
expect(decodedEvent.event.args.length).toEqual(3);
|
||||||
|
expect(decodedEvent.args.length).toEqual(3);
|
||||||
|
expect(decodedEvent.event.identifier).toEqual('erc20::erc20::Transfer');
|
||||||
|
|
||||||
|
const decodedEventHuman = decodedEvent.event.args.reduce((prev, cur, index) => {
|
||||||
|
return {
|
||||||
|
...prev,
|
||||||
|
[cur.name]: decodedEvent.args[index].toHuman()
|
||||||
|
};
|
||||||
|
}, {});
|
||||||
|
|
||||||
|
const expectedEvent = {
|
||||||
|
from: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
|
||||||
|
to: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',
|
||||||
|
value: '123.4567 MUnit'
|
||||||
|
};
|
||||||
|
|
||||||
|
expect(decodedEventHuman).toEqual(expectedEvent);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Bytes } from '@polkadot/types';
|
import type { Bytes, Vec } from '@polkadot/types';
|
||||||
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataLatest, ContractProjectInfo, ContractTypeSpec } from '@polkadot/types/interfaces';
|
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventParamSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataV4, ContractMetadataV5, ContractProjectInfo, ContractTypeSpec, EventRecord } from '@polkadot/types/interfaces';
|
||||||
import type { Codec, Registry, TypeDef } from '@polkadot/types/types';
|
import type { Codec, Registry, TypeDef } from '@polkadot/types/types';
|
||||||
import type { AbiConstructor, AbiEvent, AbiMessage, AbiParam, DecodedEvent, DecodedMessage } from '../types.js';
|
import type { AbiConstructor, AbiEvent, AbiEventParam, AbiMessage, AbiMessageParam, AbiParam, DecodedEvent, DecodedMessage } from '../types.js';
|
||||||
|
|
||||||
import { Option, TypeRegistry } from '@polkadot/types';
|
import { Option, TypeRegistry } from '@polkadot/types';
|
||||||
import { TypeDefInfo } from '@polkadot/types-create';
|
import { TypeDefInfo } from '@polkadot/types-create';
|
||||||
import { assertReturn, compactAddLength, compactStripLength, isBn, isNumber, isObject, isString, isUndefined, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
import { assertReturn, compactAddLength, compactStripLength, isBn, isNumber, isObject, isString, isUndefined, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
import { convertVersions, enumVersions } from './toLatest.js';
|
import { convertVersions, enumVersions } from './toLatestCompatible.js';
|
||||||
|
|
||||||
interface AbiJson {
|
interface AbiJson {
|
||||||
version?: string;
|
version?: string;
|
||||||
@@ -18,6 +18,10 @@ interface AbiJson {
|
|||||||
[key: string]: unknown;
|
[key: string]: unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type EventOf<M> = M extends {spec: { events: Vec<infer E>}} ? E : never
|
||||||
|
export type ContractMetadataSupported = ContractMetadataV4 | ContractMetadataV5;
|
||||||
|
type ContractEventSupported = EventOf<ContractMetadataSupported>;
|
||||||
|
|
||||||
const l = logger('Abi');
|
const l = logger('Abi');
|
||||||
|
|
||||||
const PRIMITIVE_ALWAYS = ['AccountId', 'AccountIndex', 'Address', 'Balance'];
|
const PRIMITIVE_ALWAYS = ['AccountId', 'AccountIndex', 'Address', 'Balance'];
|
||||||
@@ -32,7 +36,7 @@ function findMessage <T extends AbiMessage> (list: T[], messageOrId: T | string
|
|||||||
return assertReturn(message, () => `Attempted to call an invalid contract interface, ${stringify(messageOrId)}`);
|
return assertReturn(message, () => `Attempted to call an invalid contract interface, ${stringify(messageOrId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLatestMeta (registry: Registry, json: AbiJson): ContractMetadataLatest {
|
function getMetadata (registry: Registry, json: AbiJson): ContractMetadataSupported {
|
||||||
// this is for V1, V2, V3
|
// this is for V1, V2, V3
|
||||||
const vx = enumVersions.find((v) => isObject(json[v]));
|
const vx = enumVersions.find((v) => isObject(json[v]));
|
||||||
|
|
||||||
@@ -50,20 +54,23 @@ function getLatestMeta (registry: Registry, json: AbiJson): ContractMetadataLate
|
|||||||
? { [`V${jsonVersion}`]: json }
|
? { [`V${jsonVersion}`]: json }
|
||||||
: { V0: json }
|
: { V0: json }
|
||||||
);
|
);
|
||||||
|
|
||||||
const converter = convertVersions.find(([v]) => metadata[`is${v}`]);
|
const converter = convertVersions.find(([v]) => metadata[`is${v}`]);
|
||||||
|
|
||||||
if (!converter) {
|
if (!converter) {
|
||||||
throw new Error(`Unable to convert ABI with version ${metadata.type} to latest`);
|
throw new Error(`Unable to convert ABI with version ${metadata.type} to a supported version`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return converter[1](registry, metadata[`as${converter[0]}`]);
|
const upgradedMetadata = converter[1](registry, metadata[`as${converter[0]}`]);
|
||||||
|
|
||||||
|
return upgradedMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseJson (json: Record<string, unknown>, chainProperties?: ChainProperties): [Record<string, unknown>, Registry, ContractMetadataLatest, ContractProjectInfo] {
|
function parseJson (json: Record<string, unknown>, chainProperties?: ChainProperties): [Record<string, unknown>, Registry, ContractMetadataSupported, ContractProjectInfo] {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const info = registry.createType('ContractProjectInfo', json) as unknown as ContractProjectInfo;
|
const info = registry.createType('ContractProjectInfo', json) as unknown as ContractProjectInfo;
|
||||||
const latest = getLatestMeta(registry, json as unknown as AbiJson);
|
const metadata = getMetadata(registry, json as unknown as AbiJson);
|
||||||
const lookup = registry.createType('PortableRegistry', { types: latest.types }, true);
|
const lookup = registry.createType('PortableRegistry', { types: metadata.types }, true);
|
||||||
|
|
||||||
// attach the lookup to the registry - now the types are known
|
// attach the lookup to the registry - now the types are known
|
||||||
registry.setLookup(lookup);
|
registry.setLookup(lookup);
|
||||||
@@ -77,7 +84,7 @@ function parseJson (json: Record<string, unknown>, chainProperties?: ChainProper
|
|||||||
lookup.getTypeDef(id)
|
lookup.getTypeDef(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
return [json, registry, latest, info];
|
return [json, registry, metadata, info];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -102,7 +109,7 @@ export class Abi {
|
|||||||
readonly info: ContractProjectInfo;
|
readonly info: ContractProjectInfo;
|
||||||
readonly json: Record<string, unknown>;
|
readonly json: Record<string, unknown>;
|
||||||
readonly messages: AbiMessage[];
|
readonly messages: AbiMessage[];
|
||||||
readonly metadata: ContractMetadataLatest;
|
readonly metadata: ContractMetadataSupported;
|
||||||
readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
readonly environment = new Map<string, TypeDef | Codec>();
|
readonly environment = new Map<string, TypeDef | Codec>();
|
||||||
|
|
||||||
@@ -123,8 +130,8 @@ export class Abi {
|
|||||||
: null
|
: null
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
this.events = this.metadata.spec.events.map((spec: ContractEventSpecLatest, index) =>
|
this.events = this.metadata.spec.events.map((_: ContractEventSupported, index: number) =>
|
||||||
this.#createEvent(spec, index)
|
this.#createEvent(index)
|
||||||
);
|
);
|
||||||
this.messages = this.metadata.spec.messages.map((spec: ContractMessageSpecLatest, index): AbiMessage =>
|
this.messages = this.metadata.spec.messages.map((spec: ContractMessageSpecLatest, index): AbiMessage =>
|
||||||
this.#createMessage(spec, index, {
|
this.#createMessage(spec, index, {
|
||||||
@@ -162,7 +169,59 @@ export class Abi {
|
|||||||
/**
|
/**
|
||||||
* Warning: Unstable API, bound to change
|
* Warning: Unstable API, bound to change
|
||||||
*/
|
*/
|
||||||
public decodeEvent (data: Bytes | Uint8Array): DecodedEvent {
|
public decodeEvent (record: EventRecord): DecodedEvent {
|
||||||
|
switch (this.metadata.version.toString()) {
|
||||||
|
// earlier version are hoisted to v4
|
||||||
|
case '4':
|
||||||
|
return this.#decodeEventV4(record);
|
||||||
|
// Latest
|
||||||
|
default:
|
||||||
|
return this.#decodeEventV5(record);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#decodeEventV5 = (record: EventRecord): DecodedEvent => {
|
||||||
|
// Find event by first topic, which potentially is the signature_topic
|
||||||
|
const signatureTopic = record.topics[0];
|
||||||
|
const data = record.event.data[1] as Bytes;
|
||||||
|
|
||||||
|
if (signatureTopic) {
|
||||||
|
const event = this.events.find((e) => e.signatureTopic !== undefined && e.signatureTopic !== null && e.signatureTopic === signatureTopic.toHex());
|
||||||
|
|
||||||
|
// Early return if event found by signature topic
|
||||||
|
if (event) {
|
||||||
|
return event.fromU8a(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// If no event returned yet, it might be anonymous
|
||||||
|
const amountOfTopics = record.topics.length;
|
||||||
|
const potentialEvents = this.events.filter((e) => {
|
||||||
|
// event can't have a signature topic
|
||||||
|
if (e.signatureTopic !== null && e.signatureTopic !== undefined) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// event should have same amount of indexed fields as emitted topics
|
||||||
|
const amountIndexed = e.args.filter((a) => a.indexed).length;
|
||||||
|
|
||||||
|
if (amountIndexed !== amountOfTopics) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If all conditions met, it's a potential event
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (potentialEvents.length === 1) {
|
||||||
|
return potentialEvents[0].fromU8a(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Error('Unable to determine event');
|
||||||
|
};
|
||||||
|
|
||||||
|
#decodeEventV4 = (record: EventRecord): DecodedEvent => {
|
||||||
|
const data = record.event.data[1] as Bytes;
|
||||||
const index = data[0];
|
const index = data[0];
|
||||||
const event = this.events[index];
|
const event = this.events[index];
|
||||||
|
|
||||||
@@ -171,7 +230,7 @@ export class Abi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return event.fromU8a(data.subarray(1));
|
return event.fromU8a(data.subarray(1));
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Warning: Unstable API, bound to change
|
* Warning: Unstable API, bound to change
|
||||||
@@ -195,7 +254,7 @@ export class Abi {
|
|||||||
return findMessage(this.messages, messageOrId);
|
return findMessage(this.messages, messageOrId);
|
||||||
}
|
}
|
||||||
|
|
||||||
#createArgs = (args: ContractMessageParamSpecLatest[], spec: unknown): AbiParam[] => {
|
#createArgs = (args: ContractMessageParamSpecLatest[] | ContractEventParamSpecLatest[], spec: unknown): AbiParam[] => {
|
||||||
return args.map(({ label, type }, index): AbiParam => {
|
return args.map(({ label, type }, index): AbiParam => {
|
||||||
try {
|
try {
|
||||||
if (!isObject(type)) {
|
if (!isObject(type)) {
|
||||||
@@ -233,8 +292,47 @@ export class Abi {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
#createEvent = (spec: ContractEventSpecLatest, index: number): AbiEvent => {
|
#createMessageParams = (args: ContractMessageParamSpecLatest[], spec: unknown): AbiMessageParam[] => {
|
||||||
const args = this.#createArgs(spec.args, spec);
|
return this.#createArgs(args, spec);
|
||||||
|
};
|
||||||
|
|
||||||
|
#createEventParams = (args: ContractEventParamSpecLatest[], spec: unknown): AbiEventParam[] => {
|
||||||
|
const params = this.#createArgs(args, spec);
|
||||||
|
|
||||||
|
return params.map((p, index): AbiEventParam => ({ ...p, indexed: args[index].indexed.toPrimitive() }));
|
||||||
|
};
|
||||||
|
|
||||||
|
#createEvent = (index: number): AbiEvent => {
|
||||||
|
// TODO TypeScript would narrow this type to the correct version,
|
||||||
|
// but version is `Text` so I need to call `toString()` here,
|
||||||
|
// which breaks the type inference.
|
||||||
|
switch (this.metadata.version.toString()) {
|
||||||
|
case '4':
|
||||||
|
return this.#createEventV4((this.metadata as ContractMetadataV4).spec.events[index], index);
|
||||||
|
default:
|
||||||
|
return this.#createEventV5((this.metadata as ContractMetadataV5).spec.events[index], index);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
#createEventV5 = (spec: EventOf<ContractMetadataV5>, index: number): AbiEvent => {
|
||||||
|
const args = this.#createEventParams(spec.args, spec);
|
||||||
|
const event = {
|
||||||
|
args,
|
||||||
|
docs: spec.docs.map((d) => d.toString()),
|
||||||
|
fromU8a: (data: Uint8Array): DecodedEvent => ({
|
||||||
|
args: this.#decodeArgs(args, data),
|
||||||
|
event
|
||||||
|
}),
|
||||||
|
identifier: [spec.module_path, spec.label].join('::'),
|
||||||
|
index,
|
||||||
|
signatureTopic: spec.signature_topic.isSome ? spec.signature_topic.unwrap().toHex() : null
|
||||||
|
};
|
||||||
|
|
||||||
|
return event;
|
||||||
|
};
|
||||||
|
|
||||||
|
#createEventV4 = (spec: EventOf<ContractMetadataV4>, index: number): AbiEvent => {
|
||||||
|
const args = this.#createEventParams(spec.args, spec);
|
||||||
const event = {
|
const event = {
|
||||||
args,
|
args,
|
||||||
docs: spec.docs.map((d) => d.toString()),
|
docs: spec.docs.map((d) => d.toString()),
|
||||||
@@ -250,7 +348,7 @@ export class Abi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#createMessage = (spec: ContractMessageSpecLatest | ContractConstructorSpecLatest, index: number, add: Partial<AbiMessage> = {}): AbiMessage => {
|
#createMessage = (spec: ContractMessageSpecLatest | ContractConstructorSpecLatest, index: number, add: Partial<AbiMessage> = {}): AbiMessage => {
|
||||||
const args = this.#createArgs(spec.args, spec);
|
const args = this.#createMessageParams(spec.args, spec);
|
||||||
const identifier = spec.label.toString();
|
const identifier = spec.label.toString();
|
||||||
const message = {
|
const message = {
|
||||||
...add,
|
...add,
|
||||||
@@ -267,7 +365,7 @@ export class Abi {
|
|||||||
path: identifier.split('::').map((s) => stringCamelCase(s)),
|
path: identifier.split('::').map((s) => stringCamelCase(s)),
|
||||||
selector: spec.selector,
|
selector: spec.selector,
|
||||||
toU8a: (params: unknown[]) =>
|
toU8a: (params: unknown[]) =>
|
||||||
this.#encodeArgs(spec, args, params)
|
this.#encodeMessageArgs(spec, args, params)
|
||||||
};
|
};
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
@@ -299,7 +397,7 @@ export class Abi {
|
|||||||
return message.fromU8a(trimmed.subarray(4));
|
return message.fromU8a(trimmed.subarray(4));
|
||||||
};
|
};
|
||||||
|
|
||||||
#encodeArgs = ({ label, selector }: ContractMessageSpecLatest | ContractConstructorSpecLatest, args: AbiParam[], data: unknown[]): Uint8Array => {
|
#encodeMessageArgs = ({ label, selector }: ContractMessageSpecLatest | ContractConstructorSpecLatest, args: AbiMessageParam[], data: unknown[]): Uint8Array => {
|
||||||
if (data.length !== args.length) {
|
if (data.length !== args.length) {
|
||||||
throw new Error(`Expected ${args.length} arguments to contract message '${label.toString()}', found ${data.length}`);
|
throw new Error(`Expected ${args.length} arguments to contract message '${label.toString()}', found ${data.length}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import type { ContractMetadataLatest, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
|
||||||
import type { Registry } from '@polkadot/types/types';
|
|
||||||
|
|
||||||
import { v0ToV1 } from './toV1.js';
|
|
||||||
import { v1ToV2 } from './toV2.js';
|
|
||||||
import { v2ToV3 } from './toV3.js';
|
|
||||||
import { v3ToV4 } from './toV4.js';
|
|
||||||
|
|
||||||
// The versions where an enum is used, aka V0 is missing
|
|
||||||
// (Order from newest, i.e. we expect more on newest vs oldest)
|
|
||||||
export const enumVersions = ['V4', 'V3', 'V2', 'V1'] as const;
|
|
||||||
|
|
||||||
type Versions = typeof enumVersions[number] | 'V0';
|
|
||||||
|
|
||||||
type Converter = (registry: Registry, vx: any) => ContractMetadataLatest;
|
|
||||||
|
|
||||||
// Helper to convert metadata from one step to the next
|
|
||||||
function createConverter <I, O> (next: (registry: Registry, input: O) => ContractMetadataLatest, step: (registry: Registry, input: I) => O): (registry: Registry, input: I) => ContractMetadataLatest {
|
|
||||||
return (registry: Registry, input: I): ContractMetadataLatest =>
|
|
||||||
next(registry, step(registry, input));
|
|
||||||
}
|
|
||||||
|
|
||||||
export function v4ToLatest (_registry: Registry, v4: ContractMetadataV4): ContractMetadataLatest {
|
|
||||||
return v4;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const v3ToLatest = /*#__PURE__*/ createConverter(v4ToLatest, v3ToV4);
|
|
||||||
export const v2ToLatest = /*#__PURE__*/ createConverter(v3ToLatest, v2ToV3);
|
|
||||||
export const v1ToLatest = /*#__PURE__*/ createConverter(v2ToLatest, v1ToV2);
|
|
||||||
export const v0ToLatest = /*#__PURE__*/ createConverter(v1ToLatest, v0ToV1);
|
|
||||||
|
|
||||||
export const convertVersions: [Versions, Converter][] = [
|
|
||||||
['V4', v4ToLatest],
|
|
||||||
['V3', v3ToLatest],
|
|
||||||
['V2', v2ToLatest],
|
|
||||||
['V1', v1ToLatest],
|
|
||||||
['V0', v0ToLatest]
|
|
||||||
];
|
|
||||||
+68
-14
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||||
@@ -6,12 +6,12 @@
|
|||||||
import { TypeRegistry } from '@polkadot/types';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
|
|
||||||
import abis from '../test/contracts/index.js';
|
import abis from '../test/contracts/index.js';
|
||||||
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './toLatest.js';
|
import { v0ToLatestCompatible, v1ToLatestCompatible, v2ToLatestCompatible, v3ToLatestCompatible, v4ToLatestCompatible, v5ToLatestCompatible } from './toLatestCompatible.js';
|
||||||
|
|
||||||
describe('v0ToLatest', (): void => {
|
describe('v0ToLatestCompatible', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const contract = registry.createType('ContractMetadata', { V0: abis['ink_v0_erc20'] });
|
const contract = registry.createType('ContractMetadata', { V0: abis['ink_v0_erc20'] });
|
||||||
const latest = v0ToLatest(registry, contract.asV0);
|
const latest = v0ToLatestCompatible(registry, contract.asV0);
|
||||||
|
|
||||||
it('has the correct constructors', (): void => {
|
it('has the correct constructors', (): void => {
|
||||||
expect(
|
expect(
|
||||||
@@ -48,12 +48,16 @@ describe('v0ToLatest', (): void => {
|
|||||||
latest.spec.events[0].args.map(({ label }) => label.toString())
|
latest.spec.events[0].args.map(({ label }) => label.toString())
|
||||||
).toEqual(['from', 'to', 'value']);
|
).toEqual(['from', 'to', 'value']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('has the latest compatible version number', (): void => {
|
||||||
|
expect(latest.version.toString()).toEqual('4');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('v1ToLatest', (): void => {
|
describe('v1ToLatestCompatible', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const contract = registry.createType('ContractMetadata', { V1: abis['ink_v1_flipper']['V1'] });
|
const contract = registry.createType('ContractMetadata', { V1: abis['ink_v1_flipper']['V1'] });
|
||||||
const latest = v1ToLatest(registry, contract.asV1);
|
const latest = v1ToLatestCompatible(registry, contract.asV1);
|
||||||
|
|
||||||
it('has the correct constructors', (): void => {
|
it('has the correct constructors', (): void => {
|
||||||
expect(
|
expect(
|
||||||
@@ -69,7 +73,7 @@ describe('v1ToLatest', (): void => {
|
|||||||
|
|
||||||
it('has the correct messages with namespaced method name', (): void => {
|
it('has the correct messages with namespaced method name', (): void => {
|
||||||
const contract = registry.createType('ContractMetadata', { V1: abis['ink_v1_psp22']['V1'] });
|
const contract = registry.createType('ContractMetadata', { V1: abis['ink_v1_psp22']['V1'] });
|
||||||
const latest = v1ToLatest(registry, contract.asV1);
|
const latest = v1ToLatestCompatible(registry, contract.asV1);
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
latest.spec.messages.map(({ label }) => label.toString())
|
latest.spec.messages.map(({ label }) => label.toString())
|
||||||
@@ -83,24 +87,32 @@ describe('v1ToLatest', (): void => {
|
|||||||
latest.spec.constructors[0].args.map(({ label }) => label.toString())
|
latest.spec.constructors[0].args.map(({ label }) => label.toString())
|
||||||
).toEqual(['init_value']);
|
).toEqual(['init_value']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('has the latest compatible version number', (): void => {
|
||||||
|
expect(latest.version.toString()).toEqual('4');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('v2ToLatest', (): void => {
|
describe('v2ToLatestCompatible', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const contract = registry.createType('ContractMetadata', { V2: abis['ink_v2_flipper']['V2'] });
|
const contract = registry.createType('ContractMetadata', { V2: abis['ink_v2_flipper']['V2'] });
|
||||||
const latest = v2ToLatest(registry, contract.asV2);
|
const latest = v2ToLatestCompatible(registry, contract.asV2);
|
||||||
|
|
||||||
it('has the correct constructor flag', (): void => {
|
it('has the correct constructor flag', (): void => {
|
||||||
expect(
|
expect(
|
||||||
latest.spec.constructors[0].payable.isTrue
|
latest.spec.constructors[0].payable.isTrue
|
||||||
).toEqual(true);
|
).toEqual(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('has the latest compatible version number', (): void => {
|
||||||
|
expect(latest.version.toString()).toEqual('4');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('v3ToLatest', (): void => {
|
describe('v3ToLatestCompatible', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const contract = registry.createType('ContractMetadata', { V3: abis['ink_v3_flipper']['V3'] });
|
const contract = registry.createType('ContractMetadata', { V3: abis['ink_v3_flipper']['V3'] });
|
||||||
const latest = v3ToLatest(registry, contract.asV3);
|
const latest = v3ToLatestCompatible(registry, contract.asV3);
|
||||||
|
|
||||||
it('has the correct constructor flags', (): void => {
|
it('has the correct constructor flags', (): void => {
|
||||||
expect(
|
expect(
|
||||||
@@ -113,7 +125,7 @@ describe('v3ToLatest', (): void => {
|
|||||||
|
|
||||||
it('has the correct messages', (): void => {
|
it('has the correct messages', (): void => {
|
||||||
const contract = registry.createType('ContractMetadata', { V3: abis['ink_v3_traitErc20']['V3'] });
|
const contract = registry.createType('ContractMetadata', { V3: abis['ink_v3_traitErc20']['V3'] });
|
||||||
const latest = v3ToLatest(registry, contract.asV3);
|
const latest = v3ToLatestCompatible(registry, contract.asV3);
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
latest.spec.messages.map(({ label }) => label.toString())
|
latest.spec.messages.map(({ label }) => label.toString())
|
||||||
@@ -121,12 +133,16 @@ describe('v3ToLatest', (): void => {
|
|||||||
'BaseErc20::total_supply', 'BaseErc20::balance_of', 'BaseErc20::allowance', 'BaseErc20::transfer', 'BaseErc20::approve', 'BaseErc20::transfer_from'
|
'BaseErc20::total_supply', 'BaseErc20::balance_of', 'BaseErc20::allowance', 'BaseErc20::transfer', 'BaseErc20::approve', 'BaseErc20::transfer_from'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('has the latest compatible version number', (): void => {
|
||||||
|
expect(latest.version.toString()).toEqual('4');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('v4ToLatest', (): void => {
|
describe('v4ToLatestCompatible', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const contract = registry.createType('ContractMetadata', { V4: abis['ink_v4_flipperContract'] });
|
const contract = registry.createType('ContractMetadata', { V4: abis['ink_v4_flipperContract'] });
|
||||||
const latest = v4ToLatest(registry, contract.asV4);
|
const latest = v4ToLatestCompatible(registry, contract.asV4);
|
||||||
|
|
||||||
it('has the correct constructor flags', (): void => {
|
it('has the correct constructor flags', (): void => {
|
||||||
expect(
|
expect(
|
||||||
@@ -136,4 +152,42 @@ describe('v4ToLatest', (): void => {
|
|||||||
latest.spec.constructors[1].payable.isTrue
|
latest.spec.constructors[1].payable.isTrue
|
||||||
).toEqual(false);
|
).toEqual(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('has the latest compatible version number', (): void => {
|
||||||
|
expect(latest.version.toString()).toEqual('4');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('v5ToLatestCompatible', (): void => {
|
||||||
|
const registry = new TypeRegistry();
|
||||||
|
const contract = registry.createType('ContractMetadata', { V5: abis['ink_v5_erc20Metadata'] });
|
||||||
|
const latest = v5ToLatestCompatible(registry, contract.asV5);
|
||||||
|
|
||||||
|
it('has the correct messages', (): void => {
|
||||||
|
expect(
|
||||||
|
latest.spec.messages.map(({ label }) => label.toString())
|
||||||
|
).toEqual(['total_supply', 'balance_of', 'allowance', 'transfer', 'approve', 'transfer_from']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('has new event fields', (): void => {
|
||||||
|
expect(
|
||||||
|
latest.spec.events.length
|
||||||
|
).toEqual(2);
|
||||||
|
|
||||||
|
expect(
|
||||||
|
latest.spec.events.every((e) => e.has('module_path'))
|
||||||
|
).toEqual(true);
|
||||||
|
|
||||||
|
expect(latest.spec.events[0].module_path.toString()).toEqual('erc20::erc20');
|
||||||
|
|
||||||
|
expect(
|
||||||
|
latest.spec.events.every((e) => e.has('signature_topic'))
|
||||||
|
).toEqual(true);
|
||||||
|
|
||||||
|
expect(latest.spec.events[0].signature_topic.toHex()).toEqual('0xb5b61a3e6a21a16be4f044b517c28ac692492f73c5bfd3f60178ad98c767f4cb');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('has the latest compatible version number', (): void => {
|
||||||
|
expect(latest.version.toString()).toEqual('5');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { ContractMetadataV4, ContractMetadataV5 } from '@polkadot/types/interfaces';
|
||||||
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
import type { ContractMetadataSupported } from './index.js';
|
||||||
|
|
||||||
|
import { v0ToV1 } from './toV1.js';
|
||||||
|
import { v1ToV2 } from './toV2.js';
|
||||||
|
import { v2ToV3 } from './toV3.js';
|
||||||
|
import { v3ToV4 } from './toV4.js';
|
||||||
|
|
||||||
|
// The versions where an enum is used, aka V0 is missing
|
||||||
|
// (Order from newest, i.e. we expect more on newest vs oldest)
|
||||||
|
export const enumVersions = ['V5', 'V4', 'V3', 'V2', 'V1'] as const;
|
||||||
|
|
||||||
|
type Versions = typeof enumVersions[number] | 'V0';
|
||||||
|
|
||||||
|
type Converter = (registry: Registry, vx: any) => ContractMetadataSupported;
|
||||||
|
|
||||||
|
// Helper to convert metadata from one step to the next
|
||||||
|
function createConverter <I, O> (next: (registry: Registry, input: O) => ContractMetadataSupported, step: (registry: Registry, input: I) => O): (registry: Registry, input: I) => ContractMetadataSupported {
|
||||||
|
return (registry: Registry, input: I): ContractMetadataSupported =>
|
||||||
|
next(registry, step(registry, input));
|
||||||
|
}
|
||||||
|
|
||||||
|
export function v5ToLatestCompatible (_registry: Registry, v5: ContractMetadataV5): ContractMetadataV5 {
|
||||||
|
return v5;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function v4ToLatestCompatible (_registry: Registry, v4: ContractMetadataV4): ContractMetadataV4 {
|
||||||
|
return v4;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const v3ToLatestCompatible = /*#__PURE__*/ createConverter(v4ToLatestCompatible, v3ToV4);
|
||||||
|
export const v2ToLatestCompatible = /*#__PURE__*/ createConverter(v3ToLatestCompatible, v2ToV3);
|
||||||
|
export const v1ToLatestCompatible = /*#__PURE__*/ createConverter(v2ToLatestCompatible, v1ToV2);
|
||||||
|
export const v0ToLatestCompatible = /*#__PURE__*/ createConverter(v1ToLatestCompatible, v0ToV1);
|
||||||
|
|
||||||
|
export const convertVersions: [Versions, Converter][] = [
|
||||||
|
['V5', v5ToLatestCompatible],
|
||||||
|
['V4', v4ToLatestCompatible],
|
||||||
|
['V3', v3ToLatestCompatible],
|
||||||
|
['V2', v2ToLatestCompatible],
|
||||||
|
['V1', v1ToLatestCompatible],
|
||||||
|
['V0', v0ToLatestCompatible]
|
||||||
|
];
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ContractMetadataV0, ContractMetadataV1 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataV0, ContractMetadataV1 } from '@polkadot/types/interfaces';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Text } from '@polkadot/types';
|
import type { Text } from '@polkadot/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ContractMetadataV2, ContractMetadataV3 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataV2, ContractMetadataV3 } from '@polkadot/types/interfaces';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||||
@@ -15,6 +15,7 @@ export function v3ToV4 (registry: Registry, v3: ContractMetadataV3): ContractMet
|
|||||||
messages: v3.spec.messages.map((m) =>
|
messages: v3.spec.messages.map((m) =>
|
||||||
registry.createType('ContractMessageSpecV3', objectSpread({}, m))
|
registry.createType('ContractMessageSpecV3', objectSpread({}, m))
|
||||||
)
|
)
|
||||||
})
|
}),
|
||||||
|
version: registry.createType('Text', '4')
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import '@polkadot/api-augment';
|
import '@polkadot/api-augment';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiBase } from '@polkadot/api/base';
|
import type { ApiBase } from '@polkadot/api/base';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiBase } from '@polkadot/api/base';
|
import type { ApiBase } from '@polkadot/api/base';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiBase } from '@polkadot/api/base';
|
import type { ApiBase } from '@polkadot/api/base';
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiBase } from '@polkadot/api/base';
|
import type { ApiBase } from '@polkadot/api/base';
|
||||||
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||||
import type { Bytes } from '@polkadot/types';
|
|
||||||
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { Abi } from '../Abi/index.js';
|
import type { Abi } from '../Abi/index.js';
|
||||||
@@ -115,9 +114,9 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
// ContractEmitted is the current generation, ContractExecution is the previous generation
|
// ContractEmitted is the current generation, ContractExecution is the previous generation
|
||||||
new ContractSubmittableResult(result, applyOnEvent(result, ['ContractEmitted', 'ContractExecution'], (records: EventRecord[]) =>
|
new ContractSubmittableResult(result, applyOnEvent(result, ['ContractEmitted', 'ContractExecution'], (records: EventRecord[]) =>
|
||||||
records
|
records
|
||||||
.map(({ event: { data: [, data] } }): DecodedEvent | null => {
|
.map((record): DecodedEvent | null => {
|
||||||
try {
|
try {
|
||||||
return this.abi.decodeEvent(data as Bytes);
|
return this.abi.decodeEvent(record);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
l.error(`Unable to decode contract event: ${(error as Error).message}`);
|
l.error(`Unable to decode contract event: ${(error as Error).message}`);
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { Blueprint, BlueprintSubmittableResult, extendBlueprint } from './Blueprint.js';
|
export { Blueprint, BlueprintSubmittableResult, extendBlueprint } from './Blueprint.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiBase } from '@polkadot/api/base';
|
import type { ApiBase } from '@polkadot/api/base';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { SubmittableResult } from '@polkadot/api';
|
import type { SubmittableResult } from '@polkadot/api';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// all named
|
// all named
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Simple non-runnable checks to test type definitions in the editor itself
|
// Simple non-runnable checks to test type definitions in the editor itself
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
|
|
||||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
|
||||||
|
|
||||||
export default [apiInfo, typesInfo];
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
|
||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
|
||||||
|
|
||||||
import others from './detectOther.js';
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
|
||||||
|
|
||||||
detectPackage(packageInfo, null, others);
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage.js';
|
import './packageDetect.js';
|
||||||
|
|
||||||
export * from './bundle.js';
|
export * from './bundle.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
|
import { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
|
||||||
|
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, null, [apiInfo, typesInfo]);
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.11.2' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.12.2' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiPromise } from '@polkadot/api';
|
import type { ApiPromise } from '@polkadot/api';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiRx } from '@polkadot/api';
|
import type { ApiRx } from '@polkadot/api';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.js';
|
||||||
|
|||||||
@@ -0,0 +1,253 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "Result<u128, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup10"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup10"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 14,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,253 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "Result<u128, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup10"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup10"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 14,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,370 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"lookupName": "InkStorageTraitsImplsAutoKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::AutoKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "(AccountId,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"lookupName": "InkStorageTraitsImplsResolverKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"lookupName": "Erc20",
|
||||||
|
"type": "{\"totalSupply\":\"u128\",\"balances\":\"Null\",\"allowances\":\"InkStorageLazyMapping\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Erc20",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "totalSupply",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "balances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "allowances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 14,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 16,
|
||||||
|
"type": "Result<u128, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 17,
|
||||||
|
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 20,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 21,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 22,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 23,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 24,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
+370
@@ -0,0 +1,370 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"lookupName": "InkStorageTraitsImplsAutoKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::AutoKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "(AccountId,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"lookupName": "InkStorageTraitsImplsResolverKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"lookupName": "Erc20",
|
||||||
|
"type": "{\"totalSupply\":\"u128\",\"balances\":\"Null\",\"allowances\":\"InkStorageLazyMapping\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Erc20",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "totalSupply",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "balances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "allowances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 14,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 16,
|
||||||
|
"type": "Result<u128, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 17,
|
||||||
|
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 20,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 21,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 22,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 23,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 24,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,370 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"lookupName": "InkStorageTraitsImplsAutoKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::AutoKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "(AccountId,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"lookupName": "InkStorageTraitsImplsResolverKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"lookupName": "Erc20",
|
||||||
|
"type": "{\"totalSupply\":\"u128\",\"balances\":\"Null\",\"allowances\":\"InkStorageLazyMapping\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Erc20",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "totalSupply",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "balances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "allowances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 14,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 16,
|
||||||
|
"type": "Result<u128, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 17,
|
||||||
|
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 20,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 21,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 22,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 23,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 24,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,370 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"lookupName": "InkStorageTraitsImplsAutoKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::AutoKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "(AccountId,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"lookupName": "InkStorageTraitsImplsResolverKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ResolverKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"lookupName": "InkStorageTraitsImplsManualKey",
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage_traits::impls::ManualKey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"lookupName": "Erc20",
|
||||||
|
"type": "{\"totalSupply\":\"u128\",\"balances\":\"Null\",\"allowances\":\"InkStorageLazyMapping\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Erc20",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "totalSupply",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "balances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "allowances",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"lookupName": "InkStorageLazyMapping",
|
||||||
|
"type": "Null",
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"typeName": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 14,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 16,
|
||||||
|
"type": "Result<u128, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 17,
|
||||||
|
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup15"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Result<Null, Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "Lookup19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"lookupName": "Erc20Error",
|
||||||
|
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "erc20::erc20::Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 20,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 21,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 22,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 23,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 24,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,174 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"lookupName": "Flipper",
|
||||||
|
"type": "{\"value\":\"bool\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "flipper::flipper::Flipper",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "value",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup4"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "Result<bool, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup4"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,174 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"lookupName": "Flipper",
|
||||||
|
"type": "{\"value\":\"bool\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "flipper::flipper::Flipper",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"name": "value",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "Result<Null, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup4"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::LangError",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"info": "Null",
|
||||||
|
"name": "__Unused0",
|
||||||
|
"type": "Null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "Result<bool, InkPrimitivesLangError>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"lookupName": "InkPrimitivesLangError",
|
||||||
|
"type": "Lookup4"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkPrimitivesAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "Hash",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_primitives::types::Hash",
|
||||||
|
"lookupNameRoot": "InkPrimitivesHash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "u64",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"type": "NoChainExtension",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::NoChainExtension",
|
||||||
|
"lookupNameRoot": "InkEnvNoChainExtension"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import ink from './ink/index.js';
|
import ink from './ink/index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createVersionedExport } from '../util.js';
|
import { createVersionedExport } from '../util.js';
|
||||||
@@ -7,5 +7,6 @@ import * as v1 from './v1/index.js';
|
|||||||
import * as v2 from './v2/index.js';
|
import * as v2 from './v2/index.js';
|
||||||
import * as v3 from './v3/index.js';
|
import * as v3 from './v3/index.js';
|
||||||
import * as v4 from './v4/index.js';
|
import * as v4 from './v4/index.js';
|
||||||
|
import * as v5 from './v5/index.js';
|
||||||
|
|
||||||
export default createVersionedExport({ v0, v1, v2, v3, v4 });
|
export default createVersionedExport({ v0, v1, v2, v3, v4, v5 });
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { default as delegator } from './delegator.json' assert { type: 'json' };
|
export { default as delegator } from './delegator.json' assert { type: 'json' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { default as erc20 } from './erc20.contract.json' assert { type: 'json' };
|
export { default as erc20 } from './erc20.contract.json' assert { type: 'json' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,821 @@
|
|||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"hash": "0x114f55289bcdfd0d28e0bbd1c63452b4e45901a022b1011d298fa2eb12d1711d",
|
||||||
|
"language": "ink! 4.3.0",
|
||||||
|
"compiler": "rustc 1.75.0",
|
||||||
|
"build_info": {
|
||||||
|
"build_mode": "Debug",
|
||||||
|
"cargo_contract_version": "3.2.0",
|
||||||
|
"rust_toolchain": "stable-aarch64-apple-darwin",
|
||||||
|
"wasm_opt_settings": {
|
||||||
|
"keep_debug_symbols": false,
|
||||||
|
"optimization_passes": "Z"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contract": {
|
||||||
|
"name": "erc20",
|
||||||
|
"version": "4.3.0",
|
||||||
|
"authors": [
|
||||||
|
"Parity Technologies <admin@parity.io>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"constructors": [
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "total_supply",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Balance"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": false,
|
||||||
|
"docs": [
|
||||||
|
"Creates a new ERC-20 contract with the specified initial supply."
|
||||||
|
],
|
||||||
|
"label": "new",
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"ink_primitives",
|
||||||
|
"ConstructorResult"
|
||||||
|
],
|
||||||
|
"type": 1
|
||||||
|
},
|
||||||
|
"selector": "0x9bae9d5e"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [],
|
||||||
|
"environment": {
|
||||||
|
"accountId": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
},
|
||||||
|
"balance": {
|
||||||
|
"displayName": [
|
||||||
|
"Balance"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
},
|
||||||
|
"blockNumber": {
|
||||||
|
"displayName": [
|
||||||
|
"BlockNumber"
|
||||||
|
],
|
||||||
|
"type": 14
|
||||||
|
},
|
||||||
|
"chainExtension": {
|
||||||
|
"displayName": [
|
||||||
|
"ChainExtension"
|
||||||
|
],
|
||||||
|
"type": 15
|
||||||
|
},
|
||||||
|
"hash": {
|
||||||
|
"displayName": [
|
||||||
|
"Hash"
|
||||||
|
],
|
||||||
|
"type": 12
|
||||||
|
},
|
||||||
|
"maxEventTopics": 4,
|
||||||
|
"timestamp": {
|
||||||
|
"displayName": [
|
||||||
|
"Timestamp"
|
||||||
|
],
|
||||||
|
"type": 13
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"indexed": true,
|
||||||
|
"label": "from",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Option"
|
||||||
|
],
|
||||||
|
"type": 11
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"indexed": true,
|
||||||
|
"label": "to",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Option"
|
||||||
|
],
|
||||||
|
"type": 11
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"indexed": false,
|
||||||
|
"label": "value",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Balance"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [
|
||||||
|
"Event emitted when a token transfer occurs."
|
||||||
|
],
|
||||||
|
"label": "Transfer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"indexed": true,
|
||||||
|
"label": "owner",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"indexed": true,
|
||||||
|
"label": "spender",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"indexed": false,
|
||||||
|
"label": "value",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Balance"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [
|
||||||
|
"Event emitted when an approval occurs that `spender` is allowed to withdraw",
|
||||||
|
"up to the amount of `value` tokens from `owner`."
|
||||||
|
],
|
||||||
|
"label": "Approval"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"lang_error": {
|
||||||
|
"displayName": [
|
||||||
|
"ink",
|
||||||
|
"LangError"
|
||||||
|
],
|
||||||
|
"type": 3
|
||||||
|
},
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"default": false,
|
||||||
|
"docs": [
|
||||||
|
" Returns the total token supply."
|
||||||
|
],
|
||||||
|
"label": "total_supply",
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"ink",
|
||||||
|
"MessageResult"
|
||||||
|
],
|
||||||
|
"type": 4
|
||||||
|
},
|
||||||
|
"selector": "0xdb6375a8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "owner",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": false,
|
||||||
|
"docs": [
|
||||||
|
" Returns the account balance for the specified `owner`.",
|
||||||
|
"",
|
||||||
|
" Returns `0` if the account is non-existent."
|
||||||
|
],
|
||||||
|
"label": "balance_of",
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"ink",
|
||||||
|
"MessageResult"
|
||||||
|
],
|
||||||
|
"type": 4
|
||||||
|
},
|
||||||
|
"selector": "0x0f755a56"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "owner",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "spender",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": false,
|
||||||
|
"docs": [
|
||||||
|
" Returns the amount which `spender` is still allowed to withdraw from `owner`.",
|
||||||
|
"",
|
||||||
|
" Returns `0` if no allowance has been set."
|
||||||
|
],
|
||||||
|
"label": "allowance",
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"ink",
|
||||||
|
"MessageResult"
|
||||||
|
],
|
||||||
|
"type": 4
|
||||||
|
},
|
||||||
|
"selector": "0x6a00165e"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "to",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "value",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Balance"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": false,
|
||||||
|
"docs": [
|
||||||
|
" Transfers `value` amount of tokens from the caller's account to account `to`.",
|
||||||
|
"",
|
||||||
|
" On success a `Transfer` event is emitted.",
|
||||||
|
"",
|
||||||
|
" # Errors",
|
||||||
|
"",
|
||||||
|
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||||
|
" the caller's account balance."
|
||||||
|
],
|
||||||
|
"label": "transfer",
|
||||||
|
"mutates": true,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"ink",
|
||||||
|
"MessageResult"
|
||||||
|
],
|
||||||
|
"type": 8
|
||||||
|
},
|
||||||
|
"selector": "0x84a15da1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "spender",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "value",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Balance"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": false,
|
||||||
|
"docs": [
|
||||||
|
" Allows `spender` to withdraw from the caller's account multiple times, up to",
|
||||||
|
" the `value` amount.",
|
||||||
|
"",
|
||||||
|
" If this function is called again it overwrites the current allowance with",
|
||||||
|
" `value`.",
|
||||||
|
"",
|
||||||
|
" An `Approval` event is emitted."
|
||||||
|
],
|
||||||
|
"label": "approve",
|
||||||
|
"mutates": true,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"ink",
|
||||||
|
"MessageResult"
|
||||||
|
],
|
||||||
|
"type": 8
|
||||||
|
},
|
||||||
|
"selector": "0x681266a0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "from",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "to",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"AccountId"
|
||||||
|
],
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "value",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"Balance"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": false,
|
||||||
|
"docs": [
|
||||||
|
" Transfers `value` tokens on the behalf of `from` to the account `to`.",
|
||||||
|
"",
|
||||||
|
" This can be used to allow a contract to transfer tokens on ones behalf and/or",
|
||||||
|
" to charge fees in sub-currencies, for example.",
|
||||||
|
"",
|
||||||
|
" On success a `Transfer` event is emitted.",
|
||||||
|
"",
|
||||||
|
" # Errors",
|
||||||
|
"",
|
||||||
|
" Returns `InsufficientAllowance` error if there are not enough tokens allowed",
|
||||||
|
" for the caller to withdraw from `from`.",
|
||||||
|
"",
|
||||||
|
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||||
|
" the account balance of `from`."
|
||||||
|
],
|
||||||
|
"label": "transfer_from",
|
||||||
|
"mutates": true,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"ink",
|
||||||
|
"MessageResult"
|
||||||
|
],
|
||||||
|
"type": 8
|
||||||
|
},
|
||||||
|
"selector": "0x0b396f18"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"root": {
|
||||||
|
"layout": {
|
||||||
|
"struct": {
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"layout": {
|
||||||
|
"leaf": {
|
||||||
|
"key": "0x00000000",
|
||||||
|
"ty": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "total_supply"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"layout": {
|
||||||
|
"root": {
|
||||||
|
"layout": {
|
||||||
|
"leaf": {
|
||||||
|
"key": "0x2623dce7",
|
||||||
|
"ty": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root_key": "0x2623dce7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "balances"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"layout": {
|
||||||
|
"root": {
|
||||||
|
"layout": {
|
||||||
|
"leaf": {
|
||||||
|
"key": "0xeca021b7",
|
||||||
|
"ty": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root_key": "0xeca021b7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "allowances"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "Erc20"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root_key": "0x00000000"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "u128"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 0,
|
||||||
|
"name": "Ok"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 1,
|
||||||
|
"name": "Err"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "T",
|
||||||
|
"type": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "E",
|
||||||
|
"type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"Result"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"tuple": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"index": 1,
|
||||||
|
"name": "CouldNotReadInput"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path": [
|
||||||
|
"ink_primitives",
|
||||||
|
"LangError"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 0,
|
||||||
|
"name": "Ok"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 1,
|
||||||
|
"name": "Err"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "T",
|
||||||
|
"type": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "E",
|
||||||
|
"type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"Result"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"composite": {
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 6,
|
||||||
|
"typeName": "[u8; 32]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path": [
|
||||||
|
"ink_primitives",
|
||||||
|
"types",
|
||||||
|
"AccountId"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"array": {
|
||||||
|
"len": 32,
|
||||||
|
"type": 7
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "u8"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 9
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 0,
|
||||||
|
"name": "Ok"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 1,
|
||||||
|
"name": "Err"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "T",
|
||||||
|
"type": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "E",
|
||||||
|
"type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"Result"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 0,
|
||||||
|
"name": "Ok"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 1,
|
||||||
|
"name": "Err"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "T",
|
||||||
|
"type": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "E",
|
||||||
|
"type": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"Result"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path": [
|
||||||
|
"erc20",
|
||||||
|
"erc20",
|
||||||
|
"Error"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {
|
||||||
|
"variants": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"name": "None"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"index": 1,
|
||||||
|
"name": "Some"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "T",
|
||||||
|
"type": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"Option"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"composite": {
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": 6,
|
||||||
|
"typeName": "[u8; 32]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path": [
|
||||||
|
"ink_primitives",
|
||||||
|
"types",
|
||||||
|
"Hash"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "u64"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 14,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "u32"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 15,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"variant": {}
|
||||||
|
},
|
||||||
|
"path": [
|
||||||
|
"ink_env",
|
||||||
|
"types",
|
||||||
|
"NoChainExtension"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": "4"
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -1,5 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
|
||||||
|
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
|
||||||
export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
|
export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
|
||||||
export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
|
export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user