Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94d2fd0147 | ||
|
|
e745d802df | ||
|
|
cd1dca9bfa | ||
|
|
b0ec03bdd5 | ||
|
|
becccf6323 | ||
|
|
10cb508783 | ||
|
|
cf9d2d6049 | ||
|
|
3e490736fd | ||
|
|
95e7edd48f | ||
|
|
6f8ca717c8 | ||
|
|
f480cdc1ca | ||
|
|
beca267b66 | ||
|
|
f270fe693b | ||
|
|
a7f96a19ca | ||
|
|
e759d32bcf | ||
|
|
7ee4f7aaf8 | ||
|
|
dd6826fadd | ||
|
|
abc68bf2e2 | ||
|
|
ccab89304b | ||
|
|
044465eee4 | ||
|
|
42af205546 | ||
|
|
545ad50097 | ||
|
|
6f19084a4d | ||
|
|
4688291ecf | ||
|
|
da1cf9d64e | ||
|
|
96a3ef51f0 | ||
|
|
2eb453c4ce | ||
|
|
12bf338e40 | ||
|
|
923f569d77 | ||
|
|
263fce1e7d | ||
|
|
f780c017e2 | ||
|
|
87a1ae7d44 | ||
|
|
3cdd608e6e | ||
|
|
394d4aee96 | ||
|
|
732dd26bd9 | ||
|
|
ebb9f055c1 | ||
|
|
2f34c0c6e8 | ||
|
|
41617c1dfb | ||
|
|
6ff3577853 |
@@ -1,5 +1,31 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 9.12.1 Jan 22, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Add `isStorageFallback` on the `Codec` interface. (`true` if entry was created from a metadata fallback value from an empty storage item)
|
||||||
|
- Ensure `api.queryMulti` returns empty result when no keys are provided
|
||||||
|
- Add explicit Array checks on `Vec/Tuple` inputs
|
||||||
|
- Align `Struct.{toU8a/toPrimitive/toHuman/toJSON}` population of results
|
||||||
|
- Apply memoization to batched API queries
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.11.3 Jan 15, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.11.2 Jan 13, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Ensure `derive.democracy.preimages` retrieves correctly from (current-gen) `preimage`
|
||||||
|
|
||||||
|
|
||||||
## 9.11.1 Jan 8, 2023
|
## 9.11.1 Jan 8, 2023
|
||||||
|
|
||||||
- **Breaking change** For users of `ScProvider` you now need to explicitly pass `@substrate/connect` as a parameter. This means the code needs to be adjusted as follows -
|
- **Breaking change** For users of `ScProvider` you now need to explicitly pass `@substrate/connect` as a parameter. This means the code needs to be adjusted as follows -
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
3316 Jaco 9.11.1 (#5407)
|
3336 Jaco 9.12.1 (#5438)
|
||||||
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)
|
||||||
|
|||||||
+6
-6
@@ -11,10 +11,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "9.11.1",
|
"git": "9.12.1",
|
||||||
"npm": "9.11.1"
|
"npm": "9.12.1"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.12",
|
"@babel/core": "^7.20.12",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/dev": "^0.67.177",
|
"@polkadot/dev": "^0.67.184",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^29.2.5",
|
"@types/jest": "^29.2.6",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,18 +20,15 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api-base": "9.11.1",
|
"@polkadot/api-base": "9.12.1",
|
||||||
"@polkadot/rpc-augment": "9.11.1",
|
"@polkadot/rpc-augment": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-augment": "9.11.1",
|
"@polkadot/types-augment": "9.12.1",
|
||||||
"@polkadot/types-codec": "9.11.1",
|
"@polkadot/types-codec": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3"
|
"@polkadot/util": "^10.2.6"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@polkadot/types-support": "9.11.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -540,6 +540,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this value multiplied by `Period`.
|
* this value multiplied by `Period`.
|
||||||
**/
|
**/
|
||||||
queueCount: u32 & AugmentedConst<ApiType>;
|
queueCount: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The name for the reserve ID.
|
||||||
|
**/
|
||||||
|
reserveId: U8aFixed & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum proportion which may be thawed and the period over which it is reset.
|
* The maximum proportion which may be thawed and the period over which it is reset.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1036,6 +1036,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
nis: {
|
nis: {
|
||||||
|
/**
|
||||||
|
* The receipt is already communal.
|
||||||
|
**/
|
||||||
|
AlreadyCommunal: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There are enough funds for what is required.
|
||||||
|
**/
|
||||||
|
AlreadyFunded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The receipt is already private.
|
||||||
|
**/
|
||||||
|
AlreadyPrivate: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The amount of the bid is less than the minimum allowed.
|
* The amount of the bid is less than the minimum allowed.
|
||||||
**/
|
**/
|
||||||
@@ -1053,10 +1065,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The duration of the bid is less than one.
|
* The duration of the bid is less than one.
|
||||||
**/
|
**/
|
||||||
DurationTooSmall: AugmentedError<ApiType>;
|
DurationTooSmall: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* There are enough funds for what is required.
|
|
||||||
**/
|
|
||||||
Funded: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The operation would result in a receipt worth an insignficant value.
|
* The operation would result in a receipt worth an insignficant value.
|
||||||
**/
|
**/
|
||||||
@@ -1065,30 +1073,30 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Bond not yet at expiry date.
|
* Bond not yet at expiry date.
|
||||||
**/
|
**/
|
||||||
NotExpired: AugmentedError<ApiType>;
|
NotExpired: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The given bid for retraction is not found.
|
|
||||||
**/
|
|
||||||
NotFound: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Not the owner of the receipt.
|
* Not the owner of the receipt.
|
||||||
**/
|
**/
|
||||||
NotOwner: AugmentedError<ApiType>;
|
NotOwner: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The portion supplied is beyond the value of the receipt.
|
||||||
|
**/
|
||||||
|
PortionTooBig: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The thaw throttle has been reached for this period.
|
* The thaw throttle has been reached for this period.
|
||||||
**/
|
**/
|
||||||
Throttled: AugmentedError<ApiType>;
|
Throttled: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The portion supplied is beyond the value of the receipt.
|
|
||||||
**/
|
|
||||||
TooMuch: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Not enough funds are held to pay out.
|
* Not enough funds are held to pay out.
|
||||||
**/
|
**/
|
||||||
Unfunded: AugmentedError<ApiType>;
|
Unfunded: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Bond index is unknown.
|
* The given bid for retraction is not found.
|
||||||
**/
|
**/
|
||||||
Unknown: AugmentedError<ApiType>;
|
UnknownBid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Receipt index is unknown.
|
||||||
|
**/
|
||||||
|
UnknownReceipt: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1470,14 +1478,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Invalid signature on statement.
|
* Invalid signature on statement.
|
||||||
**/
|
**/
|
||||||
InvalidSignature: AugmentedError<ApiType>;
|
InvalidSignature: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Too many spam slots used by some specific validator.
|
|
||||||
**/
|
|
||||||
PotentialSpam: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* A dispute where there are only votes on one side.
|
* A dispute where there are only votes on one side.
|
||||||
**/
|
**/
|
||||||
SingleSidedDispute: AugmentedError<ApiType>;
|
SingleSidedDispute: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Unconfirmed dispute statement sets provided
|
||||||
|
**/
|
||||||
|
UnconfirmedDispute: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Validator index on statement is out of bounds for session.
|
* Validator index on statement is out of bounds for session.
|
||||||
**/
|
**/
|
||||||
@@ -2313,6 +2321,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
|
/**
|
||||||
|
* The given account is not an identifiable sovereign account for any location.
|
||||||
|
**/
|
||||||
|
AccountNotSovereign: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The location is invalid since it already has a subscription from us.
|
* The location is invalid since it already has a subscription from us.
|
||||||
**/
|
**/
|
||||||
@@ -2338,14 +2350,34 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The assets to be sent are empty.
|
* The assets to be sent are empty.
|
||||||
**/
|
**/
|
||||||
Empty: AugmentedError<ApiType>;
|
Empty: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The operation required fees to be paid which the initiator could not meet.
|
||||||
|
**/
|
||||||
|
FeesNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The message execution fails the filter.
|
* The message execution fails the filter.
|
||||||
**/
|
**/
|
||||||
Filtered: AugmentedError<ApiType>;
|
Filtered: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The unlock operation cannot succeed because there are still users of the lock.
|
||||||
|
**/
|
||||||
|
InUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Invalid asset for the operation.
|
||||||
|
**/
|
||||||
|
InvalidAsset: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Origin is invalid for sending.
|
* Origin is invalid for sending.
|
||||||
**/
|
**/
|
||||||
InvalidOrigin: AugmentedError<ApiType>;
|
InvalidOrigin: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A remote lock with the corresponding data could not be found.
|
||||||
|
**/
|
||||||
|
LockNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The owner does not own (all) of the asset that they wish to do the operation on.
|
||||||
|
**/
|
||||||
|
LowBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The referenced subscription could not be found.
|
* The referenced subscription could not be found.
|
||||||
**/
|
**/
|
||||||
@@ -2359,6 +2391,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Too many assets have been attempted for transfer.
|
* Too many assets have been attempted for transfer.
|
||||||
**/
|
**/
|
||||||
TooManyAssets: AugmentedError<ApiType>;
|
TooManyAssets: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset owner has too many locks on the asset.
|
||||||
|
**/
|
||||||
|
TooManyLocks: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The desired destination was unreachable, generally because there is a no way of routing
|
* The desired destination was unreachable, generally because there is a no way of routing
|
||||||
* to it.
|
* to it.
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import '@polkadot/api-augment/kusama';
|
|
||||||
|
|
||||||
import type { PolkadotRuntimeParachainsUmpPalletEvent, XcmV2TraitsOutcome } from '@polkadot/types/lookup';
|
|
||||||
|
|
||||||
import { Metadata, TypeRegistry } from '@polkadot/types';
|
|
||||||
import metadataStatic from '@polkadot/types-support/metadata/static-kusama';
|
|
||||||
|
|
||||||
const registry = new TypeRegistry();
|
|
||||||
const metadata = new Metadata(registry, metadataStatic);
|
|
||||||
|
|
||||||
registry.setMetadata(metadata);
|
|
||||||
|
|
||||||
describe('correct types', (): void => {
|
|
||||||
it('correctly creates XcmV2TraitsOutcome', (): void => {
|
|
||||||
const test = registry.createType<XcmV2TraitsOutcome>('XcmV2TraitsOutcome', {
|
|
||||||
Incomplete: [3_000_000_000, 'BadOrigin']
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(test.toHuman()).toEqual({
|
|
||||||
Incomplete: [
|
|
||||||
'3,000,000,000',
|
|
||||||
'BadOrigin'
|
|
||||||
]
|
|
||||||
});
|
|
||||||
expect(test.isIncomplete).toEqual(true);
|
|
||||||
expect(test.asIncomplete.toHuman()).toEqual([
|
|
||||||
'3,000,000,000',
|
|
||||||
'BadOrigin'
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('correctly creates PolkadotRuntimeParachainsUmpPalletEvent', (): void => {
|
|
||||||
const test = registry.createType<PolkadotRuntimeParachainsUmpPalletEvent>('PolkadotRuntimeParachainsUmpPalletEvent', '0x02112233445566778811223344556677881122334455667788112233445566778801005ed0b20000000006');
|
|
||||||
|
|
||||||
expect(test.asExecutedUpward[1].asIncomplete.toHuman()).toEqual([
|
|
||||||
'3,000,000,000',
|
|
||||||
'BadOrigin'
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -337,14 +337,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The election has been finalized, with the given computation and score.
|
* The election has been finalized, with the given computation and score.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
|
/**
|
||||||
|
* There was a phase transition in a given round.
|
||||||
|
**/
|
||||||
|
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], { from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
||||||
/**
|
|
||||||
* The signed phase of the given round has started.
|
|
||||||
**/
|
|
||||||
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An account has been slashed for submitting an invalid signed submission.
|
* An account has been slashed for submitting an invalid signed submission.
|
||||||
**/
|
**/
|
||||||
@@ -352,16 +352,13 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A solution was stored with the given compute.
|
* A solution was stored with the given compute.
|
||||||
*
|
*
|
||||||
* If the solution is signed, this means that it hasn't yet been processed. If the
|
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||||
* solution is unsigned, this means that it has also been processed.
|
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||||
*
|
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||||
|
* room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool }>;
|
||||||
/**
|
|
||||||
* The unsigned phase of the given round has started.
|
|
||||||
**/
|
|
||||||
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1205,6 +1202,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* the remainder from the maximum amount of reward.
|
* the remainder from the maximum amount of reward.
|
||||||
**/
|
**/
|
||||||
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
||||||
|
/**
|
||||||
|
* A new force era mode was set.
|
||||||
|
**/
|
||||||
|
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], { mode: PalletStakingForcing }>;
|
||||||
/**
|
/**
|
||||||
* A nominator has been kicked from a validator.
|
* A nominator has been kicked from a validator.
|
||||||
**/
|
**/
|
||||||
@@ -1437,7 +1438,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Upward message executed with the given outcome.
|
* Upward message executed with the given outcome.
|
||||||
* \[ id, outcome \]
|
* \[ id, outcome \]
|
||||||
**/
|
**/
|
||||||
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;
|
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is invalid XCM.
|
* Upward message is invalid XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1554,19 +1555,45 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Some assets have been placed in an asset trap.
|
* Some assets have been placed in an asset trap.
|
||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Execution of an XCM message was attempted.
|
* Execution of an XCM message was attempted.
|
||||||
*
|
*
|
||||||
* \[ outcome \]
|
* \[ outcome \]
|
||||||
**/
|
**/
|
||||||
Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;
|
Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
|
||||||
|
/**
|
||||||
|
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
||||||
|
*
|
||||||
|
* \[ paying location, fees \]
|
||||||
|
**/
|
||||||
|
FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the querier location of the response does
|
||||||
|
* not match the expected. The query remains registered for a later, valid, response to
|
||||||
|
* be received and acted upon.
|
||||||
|
*
|
||||||
|
* \[ origin location, id, expected querier, maybe actual querier \]
|
||||||
|
**/
|
||||||
|
InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the expected querier location placed in
|
||||||
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
|
*
|
||||||
|
* This is unexpected (since a location placed in storage in a previously executing
|
||||||
|
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||||
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||||
|
* needed.
|
||||||
|
*
|
||||||
|
* \[ origin location, id \]
|
||||||
|
**/
|
||||||
|
InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the origin location of the response does
|
* Expected query response has been received but the origin location of the response does
|
||||||
* not match that expected. The query remains registered for a later, valid, response to
|
* not match that expected. The query remains registered for a later, valid, response to
|
||||||
@@ -1574,7 +1601,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id, expected location \]
|
* \[ origin location, id, expected location \]
|
||||||
**/
|
**/
|
||||||
InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
|
InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the expected origin location placed in
|
* Expected query response has been received but the expected origin location placed in
|
||||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
@@ -1586,7 +1613,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and query is removed. The registered notification has
|
* Query response has been received and query is removed. The registered notification has
|
||||||
* been dispatched and executed successfully.
|
* been dispatched and executed successfully.
|
||||||
@@ -1630,14 +1657,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ location, query ID, error \]
|
* \[ location, query ID, error \]
|
||||||
**/
|
**/
|
||||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;
|
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and is ready for taking with `take_response`. There is
|
* Query response has been received and is ready for taking with `take_response`. There is
|
||||||
* no registered notification call.
|
* no registered notification call.
|
||||||
*
|
*
|
||||||
* \[ id, response \]
|
* \[ id, response \]
|
||||||
**/
|
**/
|
||||||
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;
|
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
|
||||||
/**
|
/**
|
||||||
* Received query response has been read and removed.
|
* Received query response has been read and removed.
|
||||||
*
|
*
|
||||||
@@ -1649,14 +1676,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin, destination, message \]
|
* \[ origin, destination, message \]
|
||||||
**/
|
**/
|
||||||
Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
|
Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
|
||||||
/**
|
/**
|
||||||
* The supported version of a location has been changed. This might be through an
|
* The supported version of a location has been changed. This might be through an
|
||||||
* automatic notification or a manual intervention.
|
* automatic notification or a manual intervention.
|
||||||
*
|
*
|
||||||
* \[ location, XCM version \]
|
* \[ location, XCM version \]
|
||||||
**/
|
**/
|
||||||
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
|
||||||
/**
|
/**
|
||||||
* Query response received which does not match a registered query. This may be because a
|
* Query response received which does not match a registered query. This may be because a
|
||||||
* matching query was never registered, it may be because it is a duplicate response, or
|
* matching query was never registered, it may be because it is a duplicate response, or
|
||||||
@@ -1664,13 +1691,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* An XCM version change notification message has been attempted to be sent.
|
* An XCM version change notification message has been attempted to be sent.
|
||||||
*
|
*
|
||||||
* \[ destination, result \]
|
* The cost of sending it (borne by the chain) is included.
|
||||||
|
*
|
||||||
|
* \[ destination, result, cost \]
|
||||||
**/
|
**/
|
||||||
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain sends us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* A remote has requested XCM version change notification from us and we have honored it.
|
||||||
|
* A version information message is sent to them and its cost is included.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain stops sending us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
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, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } 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>;
|
||||||
@@ -569,6 +569,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The map of all accounts wishing to be unstaked.
|
* The map of all accounts wishing to be unstaked.
|
||||||
*
|
*
|
||||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1003,6 +1005,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Active members.
|
* Active members.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1297,14 +1301,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* references sessions.
|
* references sessions.
|
||||||
**/
|
**/
|
||||||
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Maps session indices to a vector indicating the number of potentially-spam disputes
|
|
||||||
* each validator is participating in. Potentially-spam disputes are remote disputes which have
|
|
||||||
* fewer than `byzantine_threshold + 1` validators.
|
|
||||||
*
|
|
||||||
* The i'th entry of the vector corresponds to the i'th validator in the session.
|
|
||||||
**/
|
|
||||||
spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1653,6 +1649,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Map from all locked "stash" accounts to the controller account.
|
* Map from all locked "stash" accounts to the controller account.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1813,6 +1811,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
*
|
*
|
||||||
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
* [`Call::chill_other`] dispatchable by anyone.
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1833,6 +1833,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Where the reward payment should be made. Keyed by stash.
|
* Where the reward payment should be made. Keyed by stash.
|
||||||
|
*
|
||||||
|
* 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<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1860,6 +1862,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from (wannabe) validator stash key to the preferences of that validator.
|
* The map from (wannabe) validator stash key to the preferences of that validator.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -2064,6 +2068,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
ump: {
|
ump: {
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForOverweight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
||||||
*
|
*
|
||||||
@@ -2176,6 +2184,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The current migration's stage, if any.
|
* The current migration's stage, if any.
|
||||||
**/
|
**/
|
||||||
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on this chain.
|
||||||
|
**/
|
||||||
|
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedMultiLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The ongoing queries.
|
* The ongoing queries.
|
||||||
**/
|
**/
|
||||||
@@ -2184,6 +2196,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The latest available query index.
|
* The latest available query index.
|
||||||
**/
|
**/
|
||||||
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on a remote chain.
|
||||||
|
**/
|
||||||
|
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
||||||
/**
|
/**
|
||||||
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
||||||
* then the destinations whose XCM version is unknown are considered unreachable.
|
* then the destinations whose XCM version is unknown are considered unreachable.
|
||||||
@@ -2192,7 +2208,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The Latest versions that we know various locations support.
|
* The Latest versions that we know various locations support.
|
||||||
**/
|
**/
|
||||||
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
||||||
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
||||||
@@ -2202,12 +2218,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* All locations that we have requested version notifications from.
|
* All locations that we have requested version notifications from.
|
||||||
**/
|
**/
|
||||||
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* The target locations that are subscribed to our version changes, as well as the most recent
|
* The target locations that are subscribed to our version changes, as well as the most recent
|
||||||
* of our versions we informed them of.
|
* of our versions we informed them of.
|
||||||
**/
|
**/
|
||||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, u64, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ 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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } 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>;
|
||||||
@@ -602,10 +602,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the dispute conclusion by time out period.
|
* Set the dispute conclusion by time out period.
|
||||||
**/
|
**/
|
||||||
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
|
||||||
* Set the maximum number of dispute spam slots.
|
|
||||||
**/
|
|
||||||
setDisputeMaxSpamSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Set the dispute period, in number of sessions to keep for disputes.
|
* Set the dispute period, in number of sessions to keep for disputes.
|
||||||
**/
|
**/
|
||||||
@@ -2364,6 +2360,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
nis: {
|
nis: {
|
||||||
|
/**
|
||||||
|
* Make a private receipt communal and create fungible counterparts for its owner.
|
||||||
|
**/
|
||||||
|
communify: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Ensure we have sufficient funding for all potential payouts.
|
* Ensure we have sufficient funding for all potential payouts.
|
||||||
*
|
*
|
||||||
@@ -2384,6 +2384,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `Queues[duration].len()` (just take max).
|
* - `Queues[duration].len()` (just take max).
|
||||||
**/
|
**/
|
||||||
placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
||||||
|
/**
|
||||||
|
* Make a communal receipt private and burn fungible counterparts from its owner.
|
||||||
|
**/
|
||||||
|
privatize: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Retract a previously placed bid.
|
* Retract a previously placed bid.
|
||||||
*
|
*
|
||||||
@@ -2394,6 +2398,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `duration`: The duration of the previous bid.
|
* - `duration`: The duration of the previous bid.
|
||||||
**/
|
**/
|
||||||
retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
||||||
|
/**
|
||||||
|
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
||||||
|
* the account of the owner.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be Signed and the account must be the owner of the fungible counterpart
|
||||||
|
* for receipt `index`.
|
||||||
|
* - `index`: The index of the receipt.
|
||||||
|
**/
|
||||||
|
thawCommunal: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
||||||
* the account of the owner.
|
* the account of the owner.
|
||||||
@@ -2404,7 +2417,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
|
* - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
|
||||||
* `None`, then all of it should be.
|
* `None`, then all of it should be.
|
||||||
**/
|
**/
|
||||||
thaw: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, portion: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u128>]>;
|
thawPrivate: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, maybeProportion: Option<Perquintill> | null | Uint8Array | Perquintill | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<Perquintill>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -5026,7 +5039,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
||||||
* to completion; only that *some* of it was executed.
|
* to completion; only that *some* of it was executed.
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||||
* version a destination can accept is unknown).
|
* version a destination can accept is unknown).
|
||||||
@@ -5041,7 +5054,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `origin`: Must be Root.
|
* - `origin`: Must be Root.
|
||||||
* - `location`: The location to which we should subscribe for XCM version notifications.
|
* - `location`: The location to which we should subscribe for XCM version notifications.
|
||||||
**/
|
**/
|
||||||
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Require that a particular destination should no longer notify us regarding any XCM
|
* Require that a particular destination should no longer notify us regarding any XCM
|
||||||
* version changes.
|
* version changes.
|
||||||
@@ -5050,7 +5063,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `location`: The location to which we are currently subscribed for XCM version
|
* - `location`: The location to which we are currently subscribed for XCM version
|
||||||
* notifications which we no longer desire.
|
* notifications which we no longer desire.
|
||||||
**/
|
**/
|
||||||
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Extoll that a particular destination can be communicated with through a particular
|
* Extoll that a particular destination can be communicated with through a particular
|
||||||
* version of XCM.
|
* version of XCM.
|
||||||
@@ -5059,7 +5072,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `location`: The destination that is being described.
|
* - `location`: The destination that is being described.
|
||||||
* - `xcm_version`: The latest version of XCM that `location` supports.
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
||||||
**/
|
**/
|
||||||
forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;
|
forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV3MultiLocation, u32]>;
|
||||||
/**
|
/**
|
||||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||||
* chain and forward a notification XCM.
|
* chain and forward a notification XCM.
|
||||||
@@ -5080,7 +5093,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* fees.
|
* fees.
|
||||||
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
||||||
**/
|
**/
|
||||||
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
|
||||||
/**
|
/**
|
||||||
* Teleport some assets from the local chain to some destination chain.
|
* Teleport some assets from the local chain to some destination chain.
|
||||||
*
|
*
|
||||||
@@ -5100,7 +5113,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* fees.
|
* fees.
|
||||||
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
||||||
**/
|
**/
|
||||||
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
|
||||||
/**
|
/**
|
||||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||||
* chain and forward a notification XCM.
|
* chain and forward a notification XCM.
|
||||||
@@ -5119,8 +5132,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
||||||
* fees.
|
* fees.
|
||||||
**/
|
**/
|
||||||
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
||||||
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
|
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
|
||||||
/**
|
/**
|
||||||
* Teleport some assets from the local chain to some destination chain.
|
* Teleport some assets from the local chain to some destination chain.
|
||||||
*
|
*
|
||||||
@@ -5138,7 +5151,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
||||||
* fees.
|
* fees.
|
||||||
**/
|
**/
|
||||||
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// 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: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -1222,14 +1222,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Invalid signature on statement.
|
* Invalid signature on statement.
|
||||||
**/
|
**/
|
||||||
InvalidSignature: AugmentedError<ApiType>;
|
InvalidSignature: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Too many spam slots used by some specific validator.
|
|
||||||
**/
|
|
||||||
PotentialSpam: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* A dispute where there are only votes on one side.
|
* A dispute where there are only votes on one side.
|
||||||
**/
|
**/
|
||||||
SingleSidedDispute: AugmentedError<ApiType>;
|
SingleSidedDispute: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Unconfirmed dispute statement sets provided
|
||||||
|
**/
|
||||||
|
UnconfirmedDispute: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Validator index on statement is out of bounds for session.
|
* Validator index on statement is out of bounds for session.
|
||||||
**/
|
**/
|
||||||
@@ -1837,6 +1837,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
|
/**
|
||||||
|
* The given account is not an identifiable sovereign account for any location.
|
||||||
|
**/
|
||||||
|
AccountNotSovereign: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The location is invalid since it already has a subscription from us.
|
* The location is invalid since it already has a subscription from us.
|
||||||
**/
|
**/
|
||||||
@@ -1862,14 +1866,34 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The assets to be sent are empty.
|
* The assets to be sent are empty.
|
||||||
**/
|
**/
|
||||||
Empty: AugmentedError<ApiType>;
|
Empty: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The operation required fees to be paid which the initiator could not meet.
|
||||||
|
**/
|
||||||
|
FeesNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The message execution fails the filter.
|
* The message execution fails the filter.
|
||||||
**/
|
**/
|
||||||
Filtered: AugmentedError<ApiType>;
|
Filtered: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The unlock operation cannot succeed because there are still users of the lock.
|
||||||
|
**/
|
||||||
|
InUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Invalid asset for the operation.
|
||||||
|
**/
|
||||||
|
InvalidAsset: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Origin is invalid for sending.
|
* Origin is invalid for sending.
|
||||||
**/
|
**/
|
||||||
InvalidOrigin: AugmentedError<ApiType>;
|
InvalidOrigin: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A remote lock with the corresponding data could not be found.
|
||||||
|
**/
|
||||||
|
LockNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The owner does not own (all) of the asset that they wish to do the operation on.
|
||||||
|
**/
|
||||||
|
LowBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The referenced subscription could not be found.
|
* The referenced subscription could not be found.
|
||||||
**/
|
**/
|
||||||
@@ -1883,6 +1907,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Too many assets have been attempted for transfer.
|
* Too many assets have been attempted for transfer.
|
||||||
**/
|
**/
|
||||||
TooManyAssets: AugmentedError<ApiType>;
|
TooManyAssets: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset owner has too many locks on the asset.
|
||||||
|
**/
|
||||||
|
TooManyLocks: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The desired destination was unreachable, generally because there is a no way of routing
|
* The desired destination was unreachable, generally because there is a no way of routing
|
||||||
* to it.
|
* to it.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|||||||
import type { ITuple } from '@polkadot/types-codec/types';
|
import type { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -323,14 +323,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The election has been finalized, with the given computation and score.
|
* The election has been finalized, with the given computation and score.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
|
/**
|
||||||
|
* There was a phase transition in a given round.
|
||||||
|
**/
|
||||||
|
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], { from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
||||||
/**
|
|
||||||
* The signed phase of the given round has started.
|
|
||||||
**/
|
|
||||||
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An account has been slashed for submitting an invalid signed submission.
|
* An account has been slashed for submitting an invalid signed submission.
|
||||||
**/
|
**/
|
||||||
@@ -338,16 +338,13 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A solution was stored with the given compute.
|
* A solution was stored with the given compute.
|
||||||
*
|
*
|
||||||
* If the solution is signed, this means that it hasn't yet been processed. If the
|
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||||
* solution is unsigned, this means that it has also been processed.
|
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||||
*
|
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||||
|
* room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool }>;
|
||||||
/**
|
|
||||||
* The unsigned phase of the given round has started.
|
|
||||||
**/
|
|
||||||
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -871,6 +868,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* the remainder from the maximum amount of reward.
|
* the remainder from the maximum amount of reward.
|
||||||
**/
|
**/
|
||||||
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
||||||
|
/**
|
||||||
|
* A new force era mode was set.
|
||||||
|
**/
|
||||||
|
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], { mode: PalletStakingForcing }>;
|
||||||
/**
|
/**
|
||||||
* A nominator has been kicked from a validator.
|
* A nominator has been kicked from a validator.
|
||||||
**/
|
**/
|
||||||
@@ -1103,7 +1104,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Upward message executed with the given outcome.
|
* Upward message executed with the given outcome.
|
||||||
* \[ id, outcome \]
|
* \[ id, outcome \]
|
||||||
**/
|
**/
|
||||||
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;
|
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is invalid XCM.
|
* Upward message is invalid XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1211,19 +1212,45 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Some assets have been placed in an asset trap.
|
* Some assets have been placed in an asset trap.
|
||||||
*
|
*
|
||||||
* \[ hash, origin, assets \]
|
* \[ hash, origin, assets \]
|
||||||
**/
|
**/
|
||||||
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Execution of an XCM message was attempted.
|
* Execution of an XCM message was attempted.
|
||||||
*
|
*
|
||||||
* \[ outcome \]
|
* \[ outcome \]
|
||||||
**/
|
**/
|
||||||
Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;
|
Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
|
||||||
|
/**
|
||||||
|
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
||||||
|
*
|
||||||
|
* \[ paying location, fees \]
|
||||||
|
**/
|
||||||
|
FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the querier location of the response does
|
||||||
|
* not match the expected. The query remains registered for a later, valid, response to
|
||||||
|
* be received and acted upon.
|
||||||
|
*
|
||||||
|
* \[ origin location, id, expected querier, maybe actual querier \]
|
||||||
|
**/
|
||||||
|
InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
|
||||||
|
/**
|
||||||
|
* Expected query response has been received but the expected querier location placed in
|
||||||
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
|
*
|
||||||
|
* This is unexpected (since a location placed in storage in a previously executing
|
||||||
|
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||||
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||||
|
* needed.
|
||||||
|
*
|
||||||
|
* \[ origin location, id \]
|
||||||
|
**/
|
||||||
|
InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the origin location of the response does
|
* Expected query response has been received but the origin location of the response does
|
||||||
* not match that expected. The query remains registered for a later, valid, response to
|
* not match that expected. The query remains registered for a later, valid, response to
|
||||||
@@ -1231,7 +1258,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id, expected location \]
|
* \[ origin location, id, expected location \]
|
||||||
**/
|
**/
|
||||||
InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
|
InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
|
||||||
/**
|
/**
|
||||||
* Expected query response has been received but the expected origin location placed in
|
* Expected query response has been received but the expected origin location placed in
|
||||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||||
@@ -1243,7 +1270,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and query is removed. The registered notification has
|
* Query response has been received and query is removed. The registered notification has
|
||||||
* been dispatched and executed successfully.
|
* been dispatched and executed successfully.
|
||||||
@@ -1287,14 +1314,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ location, query ID, error \]
|
* \[ location, query ID, error \]
|
||||||
**/
|
**/
|
||||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;
|
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
|
||||||
/**
|
/**
|
||||||
* Query response has been received and is ready for taking with `take_response`. There is
|
* Query response has been received and is ready for taking with `take_response`. There is
|
||||||
* no registered notification call.
|
* no registered notification call.
|
||||||
*
|
*
|
||||||
* \[ id, response \]
|
* \[ id, response \]
|
||||||
**/
|
**/
|
||||||
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;
|
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
|
||||||
/**
|
/**
|
||||||
* Received query response has been read and removed.
|
* Received query response has been read and removed.
|
||||||
*
|
*
|
||||||
@@ -1306,14 +1333,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin, destination, message \]
|
* \[ origin, destination, message \]
|
||||||
**/
|
**/
|
||||||
Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
|
Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
|
||||||
/**
|
/**
|
||||||
* The supported version of a location has been changed. This might be through an
|
* The supported version of a location has been changed. This might be through an
|
||||||
* automatic notification or a manual intervention.
|
* automatic notification or a manual intervention.
|
||||||
*
|
*
|
||||||
* \[ location, XCM version \]
|
* \[ location, XCM version \]
|
||||||
**/
|
**/
|
||||||
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
|
||||||
/**
|
/**
|
||||||
* Query response received which does not match a registered query. This may be because a
|
* Query response received which does not match a registered query. This may be because a
|
||||||
* matching query was never registered, it may be because it is a duplicate response, or
|
* matching query was never registered, it may be because it is a duplicate response, or
|
||||||
@@ -1321,13 +1348,34 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ origin location, id \]
|
* \[ origin location, id \]
|
||||||
**/
|
**/
|
||||||
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;
|
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||||
/**
|
/**
|
||||||
* An XCM version change notification message has been attempted to be sent.
|
* An XCM version change notification message has been attempted to be sent.
|
||||||
*
|
*
|
||||||
* \[ destination, result \]
|
* The cost of sending it (borne by the chain) is included.
|
||||||
|
*
|
||||||
|
* \[ destination, result, cost \]
|
||||||
**/
|
**/
|
||||||
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;
|
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain sends us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* A remote has requested XCM version change notification from us and we have honored it.
|
||||||
|
* A version information message is sent to them and its cost is included.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
|
/**
|
||||||
|
* We have requested that a remote chain stops sending us XCM version change notifications.
|
||||||
|
*
|
||||||
|
* \[ destination location, cost \]
|
||||||
|
**/
|
||||||
|
VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
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, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } 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>;
|
||||||
@@ -552,6 +552,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The map of all accounts wishing to be unstaked.
|
* The map of all accounts wishing to be unstaked.
|
||||||
*
|
*
|
||||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -856,6 +858,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Active members.
|
* Active members.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1150,14 +1154,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* references sessions.
|
* references sessions.
|
||||||
**/
|
**/
|
||||||
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Maps session indices to a vector indicating the number of potentially-spam disputes
|
|
||||||
* each validator is participating in. Potentially-spam disputes are remote disputes which have
|
|
||||||
* fewer than `byzantine_threshold + 1` validators.
|
|
||||||
*
|
|
||||||
* The i'th entry of the vector corresponds to the i'th validator in the session.
|
|
||||||
**/
|
|
||||||
spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1387,6 +1383,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Map from all locked "stash" accounts to the controller account.
|
* Map from all locked "stash" accounts to the controller account.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1547,6 +1545,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
*
|
*
|
||||||
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
* [`Call::chill_other`] dispatchable by anyone.
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1567,6 +1567,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Where the reward payment should be made. Keyed by stash.
|
* Where the reward payment should be made. Keyed by stash.
|
||||||
|
*
|
||||||
|
* 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<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1594,6 +1596,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from (wannabe) validator stash key to the preferences of that validator.
|
* The map from (wannabe) validator stash key to the preferences of that validator.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1798,6 +1802,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
ump: {
|
ump: {
|
||||||
|
/**
|
||||||
|
* Counter for the related counted storage map
|
||||||
|
**/
|
||||||
|
counterForOverweight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
||||||
*
|
*
|
||||||
@@ -1903,6 +1911,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The current migration's stage, if any.
|
* The current migration's stage, if any.
|
||||||
**/
|
**/
|
||||||
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on this chain.
|
||||||
|
**/
|
||||||
|
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedMultiLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The ongoing queries.
|
* The ongoing queries.
|
||||||
**/
|
**/
|
||||||
@@ -1911,6 +1923,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The latest available query index.
|
* The latest available query index.
|
||||||
**/
|
**/
|
||||||
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Fungible assets which we know are locked on a remote chain.
|
||||||
|
**/
|
||||||
|
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
||||||
/**
|
/**
|
||||||
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
||||||
* then the destinations whose XCM version is unknown are considered unreachable.
|
* then the destinations whose XCM version is unknown are considered unreachable.
|
||||||
@@ -1919,7 +1935,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* The Latest versions that we know various locations support.
|
* The Latest versions that we know various locations support.
|
||||||
**/
|
**/
|
||||||
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
||||||
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
||||||
@@ -1929,12 +1945,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* All locations that we have requested version notifications from.
|
* All locations that we have requested version notifications from.
|
||||||
**/
|
**/
|
||||||
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* The target locations that are subscribed to our version changes, as well as the most recent
|
* The target locations that are subscribed to our version changes, as well as the most recent
|
||||||
* of our versions we informed them of.
|
* of our versions we informed them of.
|
||||||
**/
|
**/
|
||||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, u64, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } 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>;
|
||||||
@@ -602,10 +602,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the dispute conclusion by time out period.
|
* Set the dispute conclusion by time out period.
|
||||||
**/
|
**/
|
||||||
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
|
||||||
* Set the maximum number of dispute spam slots.
|
|
||||||
**/
|
|
||||||
setDisputeMaxSpamSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Set the dispute period, in number of sessions to keep for disputes.
|
* Set the dispute period, in number of sessions to keep for disputes.
|
||||||
**/
|
**/
|
||||||
@@ -4059,7 +4055,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
||||||
* to completion; only that *some* of it was executed.
|
* to completion; only that *some* of it was executed.
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||||
* version a destination can accept is unknown).
|
* version a destination can accept is unknown).
|
||||||
@@ -4074,7 +4070,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `origin`: Must be Root.
|
* - `origin`: Must be Root.
|
||||||
* - `location`: The location to which we should subscribe for XCM version notifications.
|
* - `location`: The location to which we should subscribe for XCM version notifications.
|
||||||
**/
|
**/
|
||||||
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Require that a particular destination should no longer notify us regarding any XCM
|
* Require that a particular destination should no longer notify us regarding any XCM
|
||||||
* version changes.
|
* version changes.
|
||||||
@@ -4083,7 +4079,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `location`: The location to which we are currently subscribed for XCM version
|
* - `location`: The location to which we are currently subscribed for XCM version
|
||||||
* notifications which we no longer desire.
|
* notifications which we no longer desire.
|
||||||
**/
|
**/
|
||||||
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
||||||
/**
|
/**
|
||||||
* Extoll that a particular destination can be communicated with through a particular
|
* Extoll that a particular destination can be communicated with through a particular
|
||||||
* version of XCM.
|
* version of XCM.
|
||||||
@@ -4092,7 +4088,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `location`: The destination that is being described.
|
* - `location`: The destination that is being described.
|
||||||
* - `xcm_version`: The latest version of XCM that `location` supports.
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
||||||
**/
|
**/
|
||||||
forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;
|
forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV3MultiLocation, u32]>;
|
||||||
/**
|
/**
|
||||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||||
* chain and forward a notification XCM.
|
* chain and forward a notification XCM.
|
||||||
@@ -4113,7 +4109,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* fees.
|
* fees.
|
||||||
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
||||||
**/
|
**/
|
||||||
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
|
||||||
/**
|
/**
|
||||||
* Teleport some assets from the local chain to some destination chain.
|
* Teleport some assets from the local chain to some destination chain.
|
||||||
*
|
*
|
||||||
@@ -4133,7 +4129,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* fees.
|
* fees.
|
||||||
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
||||||
**/
|
**/
|
||||||
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;
|
||||||
/**
|
/**
|
||||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||||
* chain and forward a notification XCM.
|
* chain and forward a notification XCM.
|
||||||
@@ -4152,8 +4148,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
||||||
* fees.
|
* fees.
|
||||||
**/
|
**/
|
||||||
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
||||||
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
|
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
|
||||||
/**
|
/**
|
||||||
* Teleport some assets from the local chain to some destination chain.
|
* Teleport some assets from the local chain to some destination chain.
|
||||||
*
|
*
|
||||||
@@ -4171,7 +4167,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
||||||
* fees.
|
* fees.
|
||||||
**/
|
**/
|
||||||
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -243,6 +243,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
||||||
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
||||||
* a wasm binary below this maximum size.
|
* a wasm binary below this maximum size.
|
||||||
|
*
|
||||||
|
* The value should be chosen carefully taking into the account the overall memory limit
|
||||||
|
* your runtime has, as well as the [maximum allowed callstack
|
||||||
|
* depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights.
|
||||||
**/
|
**/
|
||||||
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -771,6 +775,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this value multiplied by `Period`.
|
* this value multiplied by `Period`.
|
||||||
**/
|
**/
|
||||||
queueCount: u32 & AugmentedConst<ApiType>;
|
queueCount: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The name for the reserve ID.
|
||||||
|
**/
|
||||||
|
reserveId: U8aFixed & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum proportion which may be thawed and the period over which it is reset.
|
* The maximum proportion which may be thawed and the period over which it is reset.
|
||||||
**/
|
**/
|
||||||
@@ -805,20 +813,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
preimage: {
|
|
||||||
/**
|
|
||||||
* The base deposit for placing a preimage on chain.
|
|
||||||
**/
|
|
||||||
baseDeposit: u128 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* The per-byte deposit for placing a preimage on chain.
|
|
||||||
**/
|
|
||||||
byteDeposit: u128 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
|
||||||
* Generic const
|
|
||||||
**/
|
|
||||||
[key: string]: Codec;
|
|
||||||
};
|
|
||||||
proxy: {
|
proxy: {
|
||||||
/**
|
/**
|
||||||
* The base amount of currency needed to reserve for creating an announcement.
|
* The base amount of currency needed to reserve for creating an announcement.
|
||||||
|
|||||||
@@ -468,10 +468,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* A contract with the same AccountId already exists.
|
* A contract with the same AccountId already exists.
|
||||||
**/
|
**/
|
||||||
DuplicateContract: AugmentedError<ApiType>;
|
DuplicateContract: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The topics passed to `seal_deposit_events` contains at least one duplicate.
|
|
||||||
**/
|
|
||||||
DuplicateTopics: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* An indetermistic code was used in a context where this is not permitted.
|
* An indetermistic code was used in a context where this is not permitted.
|
||||||
**/
|
**/
|
||||||
@@ -1218,6 +1214,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The approval had a deadline that expired, so the approval isn't valid anymore.
|
* The approval had a deadline that expired, so the approval isn't valid anymore.
|
||||||
**/
|
**/
|
||||||
ApprovalExpired: AugmentedError<ApiType>;
|
ApprovalExpired: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided attribute can't be found.
|
||||||
|
**/
|
||||||
|
AttributeNotFound: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The witness data given does not match the current state of the chain.
|
* The witness data given does not match the current state of the chain.
|
||||||
**/
|
**/
|
||||||
@@ -1278,6 +1278,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The provided max supply is less than the number of items a collection already has.
|
* The provided max supply is less than the number of items a collection already has.
|
||||||
**/
|
**/
|
||||||
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given item has no metadata set.
|
||||||
|
**/
|
||||||
|
MetadataNotFound: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The method is disabled by system settings.
|
* The method is disabled by system settings.
|
||||||
**/
|
**/
|
||||||
@@ -1356,6 +1360,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
nis: {
|
nis: {
|
||||||
|
/**
|
||||||
|
* The receipt is already communal.
|
||||||
|
**/
|
||||||
|
AlreadyCommunal: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There are enough funds for what is required.
|
||||||
|
**/
|
||||||
|
AlreadyFunded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The receipt is already private.
|
||||||
|
**/
|
||||||
|
AlreadyPrivate: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The amount of the bid is less than the minimum allowed.
|
* The amount of the bid is less than the minimum allowed.
|
||||||
**/
|
**/
|
||||||
@@ -1373,10 +1389,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The duration of the bid is less than one.
|
* The duration of the bid is less than one.
|
||||||
**/
|
**/
|
||||||
DurationTooSmall: AugmentedError<ApiType>;
|
DurationTooSmall: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* There are enough funds for what is required.
|
|
||||||
**/
|
|
||||||
Funded: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The operation would result in a receipt worth an insignficant value.
|
* The operation would result in a receipt worth an insignficant value.
|
||||||
**/
|
**/
|
||||||
@@ -1385,30 +1397,30 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Bond not yet at expiry date.
|
* Bond not yet at expiry date.
|
||||||
**/
|
**/
|
||||||
NotExpired: AugmentedError<ApiType>;
|
NotExpired: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The given bid for retraction is not found.
|
|
||||||
**/
|
|
||||||
NotFound: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Not the owner of the receipt.
|
* Not the owner of the receipt.
|
||||||
**/
|
**/
|
||||||
NotOwner: AugmentedError<ApiType>;
|
NotOwner: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The portion supplied is beyond the value of the receipt.
|
||||||
|
**/
|
||||||
|
PortionTooBig: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The thaw throttle has been reached for this period.
|
* The thaw throttle has been reached for this period.
|
||||||
**/
|
**/
|
||||||
Throttled: AugmentedError<ApiType>;
|
Throttled: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The portion supplied is beyond the value of the receipt.
|
|
||||||
**/
|
|
||||||
TooMuch: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Not enough funds are held to pay out.
|
* Not enough funds are held to pay out.
|
||||||
**/
|
**/
|
||||||
Unfunded: AugmentedError<ApiType>;
|
Unfunded: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Bond index is unknown.
|
* The given bid for retraction is not found.
|
||||||
**/
|
**/
|
||||||
Unknown: AugmentedError<ApiType>;
|
UnknownBid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Receipt index is unknown.
|
||||||
|
**/
|
||||||
|
UnknownReceipt: 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, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -493,14 +493,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The election has been finalized, with the given computation and score.
|
* The election has been finalized, with the given computation and score.
|
||||||
**/
|
**/
|
||||||
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
|
||||||
|
/**
|
||||||
|
* There was a phase transition in a given round.
|
||||||
|
**/
|
||||||
|
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], { from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An account has been rewarded for their signed submission being finalized.
|
* An account has been rewarded for their signed submission being finalized.
|
||||||
**/
|
**/
|
||||||
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
|
||||||
/**
|
|
||||||
* The signed phase of the given round has started.
|
|
||||||
**/
|
|
||||||
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* An account has been slashed for submitting an invalid signed submission.
|
* An account has been slashed for submitting an invalid signed submission.
|
||||||
**/
|
**/
|
||||||
@@ -508,16 +508,13 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A solution was stored with the given compute.
|
* A solution was stored with the given compute.
|
||||||
*
|
*
|
||||||
* If the solution is signed, this means that it hasn't yet been processed. If the
|
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||||
* solution is unsigned, this means that it has also been processed.
|
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||||
*
|
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||||
* The `bool` is `true` when a previous solution was ejected to make room for this one.
|
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||||
|
* room for this one.
|
||||||
**/
|
**/
|
||||||
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
|
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool }>;
|
||||||
/**
|
|
||||||
* The unsigned phase of the given round has started.
|
|
||||||
**/
|
|
||||||
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
|
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1384,6 +1381,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* the remainder from the maximum amount of reward.
|
* the remainder from the maximum amount of reward.
|
||||||
**/
|
**/
|
||||||
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
|
||||||
|
/**
|
||||||
|
* A new force era mode was set.
|
||||||
|
**/
|
||||||
|
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], { mode: PalletStakingForcing }>;
|
||||||
/**
|
/**
|
||||||
* A nominator has been kicked from a validator.
|
* A nominator has been kicked from a validator.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -647,6 +647,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The map of all accounts wishing to be unstaked.
|
* The map of all accounts wishing to be unstaked.
|
||||||
*
|
*
|
||||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1008,6 +1010,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Active members.
|
* Active members.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1334,6 +1338,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Map from all locked "stash" accounts to the controller account.
|
* Map from all locked "stash" accounts to the controller account.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1494,6 +1500,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
*
|
*
|
||||||
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
* [`Call::chill_other`] dispatchable by anyone.
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1514,6 +1522,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Where the reward payment should be made. Keyed by stash.
|
* Where the reward payment should be made. Keyed by stash.
|
||||||
|
*
|
||||||
|
* 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<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1541,6 +1551,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from (wannabe) validator stash key to the preferences of that validator.
|
* The map from (wannabe) validator stash key to the preferences of that validator.
|
||||||
|
*
|
||||||
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||||
**/
|
**/
|
||||||
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|||||||
import type { Data } from '@polkadot/types';
|
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 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
@@ -2901,7 +2901,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Clear an attribute for a collection or item.
|
* Clear an attribute for a collection or item.
|
||||||
*
|
*
|
||||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
||||||
* `collection`.
|
* attribute.
|
||||||
*
|
*
|
||||||
* Any deposit is freed for the collection's owner.
|
* Any deposit is freed for the collection's owner.
|
||||||
*
|
*
|
||||||
@@ -3356,6 +3356,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
nis: {
|
nis: {
|
||||||
|
/**
|
||||||
|
* Make a private receipt communal and create fungible counterparts for its owner.
|
||||||
|
**/
|
||||||
|
communify: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Ensure we have sufficient funding for all potential payouts.
|
* Ensure we have sufficient funding for all potential payouts.
|
||||||
*
|
*
|
||||||
@@ -3376,6 +3380,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `Queues[duration].len()` (just take max).
|
* - `Queues[duration].len()` (just take max).
|
||||||
**/
|
**/
|
||||||
placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
||||||
|
/**
|
||||||
|
* Make a communal receipt private and burn fungible counterparts from its owner.
|
||||||
|
**/
|
||||||
|
privatize: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Retract a previously placed bid.
|
* Retract a previously placed bid.
|
||||||
*
|
*
|
||||||
@@ -3386,6 +3394,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `duration`: The duration of the previous bid.
|
* - `duration`: The duration of the previous bid.
|
||||||
**/
|
**/
|
||||||
retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
||||||
|
/**
|
||||||
|
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
||||||
|
* the account of the owner.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be Signed and the account must be the owner of the fungible counterpart
|
||||||
|
* for receipt `index`.
|
||||||
|
* - `index`: The index of the receipt.
|
||||||
|
**/
|
||||||
|
thawCommunal: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
||||||
* the account of the owner.
|
* the account of the owner.
|
||||||
@@ -3396,7 +3413,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
|
* - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
|
||||||
* `None`, then all of it should be.
|
* `None`, then all of it should be.
|
||||||
**/
|
**/
|
||||||
thaw: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, portion: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u128>]>;
|
thawPrivate: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, maybeProportion: Option<Perquintill> | null | Uint8Array | Perquintill | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<Perquintill>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
{ "path": "../rpc-augment/tsconfig.build.json" },
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
{ "path": "../types/tsconfig.build.json" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec/tsconfig.build.json" },
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
{ "path": "../types-augment/tsconfig.build.json" },
|
{ "path": "../types-augment/tsconfig.build.json" }
|
||||||
{ "path": "../types-support/tsconfig.build.json" }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/rpc-core": "9.11.1",
|
"@polkadot/rpc-core": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// 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: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api": "9.11.1",
|
"@polkadot/api": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-codec": "9.11.1",
|
"@polkadot/types-codec": "9.12.1",
|
||||||
"@polkadot/types-create": "9.11.1",
|
"@polkadot/types-create": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"@polkadot/util-crypto": "^10.2.3",
|
"@polkadot/util-crypto": "^10.2.6",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.11.1",
|
"@polkadot/api-augment": "9.12.1",
|
||||||
"@polkadot/keyring": "^10.2.3"
|
"@polkadot/keyring": "^10.2.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,19 +75,13 @@ function parseJson (json: Record<string, unknown>, chainProperties?: ChainProper
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Abi {
|
export class Abi {
|
||||||
public readonly events: AbiEvent[];
|
readonly events: AbiEvent[];
|
||||||
|
readonly constructors: AbiConstructor[];
|
||||||
public readonly constructors: AbiConstructor[];
|
readonly info: ContractProjectInfo;
|
||||||
|
readonly json: Record<string, unknown>;
|
||||||
public readonly info: ContractProjectInfo;
|
readonly messages: AbiMessage[];
|
||||||
|
readonly metadata: ContractMetadataLatest;
|
||||||
public readonly json: Record<string, unknown>;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public readonly messages: AbiMessage[];
|
|
||||||
|
|
||||||
public readonly metadata: ContractMetadataLatest;
|
|
||||||
|
|
||||||
public readonly registry: Registry;
|
|
||||||
|
|
||||||
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
|
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
|
||||||
[this.json, this.registry, this.metadata, this.info] = parseJson(
|
[this.json, this.registry, this.metadata, this.info] = parseJson(
|
||||||
|
|||||||
@@ -11,12 +11,10 @@ import { isFunction } from '@polkadot/util';
|
|||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi';
|
||||||
|
|
||||||
export abstract class Base<ApiType extends ApiTypes> {
|
export abstract class Base<ApiType extends ApiTypes> {
|
||||||
public readonly abi: Abi;
|
readonly abi: Abi;
|
||||||
|
readonly api: ApiBase<ApiType>;
|
||||||
public readonly api: ApiBase<ApiType>;
|
|
||||||
|
|
||||||
protected readonly _decorateMethod: DecorateMethod<ApiType>;
|
protected readonly _decorateMethod: DecorateMethod<ApiType>;
|
||||||
|
|
||||||
protected readonly _isWeightV1: boolean;
|
protected readonly _isWeightV1: boolean;
|
||||||
|
|
||||||
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>) {
|
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export interface BlueprintConstructor<ApiType extends ApiTypes> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class BlueprintSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
export class BlueprintSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
||||||
public readonly contract?: Contract<ApiType>;
|
readonly contract?: Contract<ApiType>;
|
||||||
|
|
||||||
constructor (result: ISubmittableResult, contract?: Contract<ApiType>) {
|
constructor (result: ISubmittableResult, contract?: Contract<ApiType>) {
|
||||||
super(result);
|
super(result);
|
||||||
@@ -36,7 +36,7 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
/**
|
/**
|
||||||
* @description The on-chain code hash for this blueprint
|
* @description The on-chain code hash for this blueprint
|
||||||
*/
|
*/
|
||||||
public readonly codeHash: Hash;
|
readonly codeHash: Hash;
|
||||||
|
|
||||||
readonly #tx: MapConstructorExec<ApiType> = {};
|
readonly #tx: MapConstructorExec<ApiType> = {};
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ export interface CodeConstructor<ApiType extends ApiTypes> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
||||||
public readonly blueprint?: Blueprint<ApiType>;
|
readonly blueprint?: Blueprint<ApiType>;
|
||||||
public readonly contract?: Contract<ApiType>;
|
readonly contract?: Contract<ApiType>;
|
||||||
|
|
||||||
constructor (result: ISubmittableResult, blueprint?: Blueprint<ApiType>, contract?: Contract<ApiType>) {
|
constructor (result: ISubmittableResult, blueprint?: Blueprint<ApiType>, contract?: Contract<ApiType>) {
|
||||||
super(result);
|
super(result);
|
||||||
@@ -37,7 +37,7 @@ export class CodeSubmittableResult<ApiType extends ApiTypes> extends Submittable
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||||
public readonly code: Uint8Array;
|
readonly code: Uint8Array;
|
||||||
|
|
||||||
readonly #tx: MapConstructorExec<ApiType> = {};
|
readonly #tx: MapConstructorExec<ApiType> = {};
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function createTx <ApiType extends ApiTypes> (meta: AbiMessage, fn: (options: Co
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class ContractSubmittableResult extends SubmittableResult {
|
export class ContractSubmittableResult extends SubmittableResult {
|
||||||
public readonly contractEvents?: DecodedEvent[];
|
readonly contractEvents?: DecodedEvent[];
|
||||||
|
|
||||||
constructor (result: ISubmittableResult, contractEvents?: DecodedEvent[]) {
|
constructor (result: ISubmittableResult, contractEvents?: DecodedEvent[]) {
|
||||||
super(result);
|
super(result);
|
||||||
@@ -55,10 +55,9 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
/**
|
/**
|
||||||
* @description The on-chain address for this contract
|
* @description The on-chain address for this contract
|
||||||
*/
|
*/
|
||||||
public readonly address: AccountId;
|
readonly address: AccountId;
|
||||||
|
|
||||||
readonly #query: MapMessageQuery<ApiType> = {};
|
readonly #query: MapMessageQuery<ApiType> = {};
|
||||||
|
|
||||||
readonly #tx: MapMessageTx<ApiType> = {};
|
readonly #tx: MapMessageTx<ApiType> = {};
|
||||||
|
|
||||||
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId, decorateMethod: DecorateMethod<ApiType>) {
|
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId, decorateMethod: DecorateMethod<ApiType>) {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// 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: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,25 +20,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api": "9.11.1",
|
"@polkadot/api": "9.12.1",
|
||||||
"@polkadot/api-augment": "9.11.1",
|
"@polkadot/api-augment": "9.12.1",
|
||||||
"@polkadot/api-base": "9.11.1",
|
"@polkadot/api-base": "9.12.1",
|
||||||
"@polkadot/rpc-core": "9.11.1",
|
"@polkadot/rpc-core": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-codec": "9.11.1",
|
"@polkadot/types-codec": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"@polkadot/util-crypto": "^10.2.3",
|
"@polkadot/util-crypto": "^10.2.6",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.11.1",
|
"@polkadot/api": "9.12.1",
|
||||||
"@polkadot/api-augment": "9.11.1",
|
"@polkadot/api-augment": "9.12.1",
|
||||||
"@polkadot/rpc-augment": "9.11.1",
|
"@polkadot/rpc-augment": "9.12.1",
|
||||||
"@polkadot/rpc-provider": "9.11.1",
|
"@polkadot/rpc-provider": "9.12.1",
|
||||||
"@polkadot/types-support": "9.11.1"
|
"@polkadot/types-support": "9.12.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,9 @@ function parseImage (api: DeriveApi, [proposalHash, status, bytes]: [HexString,
|
|||||||
return { at: BN_ZERO, balance, proposal, proposalHash, proposer };
|
return { at: BN_ZERO, balance, proposal, proposalHash, proposer };
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDemocracyImages (api: DeriveApi, hashes: (Hash | Uint8Array | string)[]): Observable<(DeriveProposalImage | undefined)[]> {
|
function getDemocracyImages (api: DeriveApi, bounded: (Hash | Uint8Array | string | FrameSupportPreimagesBounded)[]): Observable<(DeriveProposalImage | undefined)[]> {
|
||||||
|
const hashes = bounded.map((b) => getImageHashBounded(b));
|
||||||
|
|
||||||
return api.query.democracy.preimages.multi<Option<PreimageStatus>>(hashes).pipe(
|
return api.query.democracy.preimages.multi<Option<PreimageStatus>>(hashes).pipe(
|
||||||
map((images): (DeriveProposalImage | undefined)[] =>
|
map((images): (DeriveProposalImage | undefined)[] =>
|
||||||
images.map((imageOpt) => parseDemocracy(api, imageOpt))
|
images.map((imageOpt) => parseDemocracy(api, imageOpt))
|
||||||
@@ -86,6 +88,7 @@ function getDemocracyImages (api: DeriveApi, hashes: (Hash | Uint8Array | string
|
|||||||
|
|
||||||
function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uint8Array | string)[]): Observable<(DeriveProposalImage | undefined)[]> {
|
function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uint8Array | string)[]): Observable<(DeriveProposalImage | undefined)[]> {
|
||||||
const hashes = bounded.map((b) => getImageHashBounded(b));
|
const hashes = bounded.map((b) => getImageHashBounded(b));
|
||||||
|
const bytesType = api.registry.lookup.getTypeDef(api.query.preimage.preimageFor.creator.meta.type.asMap.key).type;
|
||||||
|
|
||||||
return api.query.preimage.statusFor.multi(hashes).pipe(
|
return api.query.preimage.statusFor.multi(hashes).pipe(
|
||||||
switchMap((optStatus) => {
|
switchMap((optStatus) => {
|
||||||
@@ -93,9 +96,13 @@ function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uin
|
|||||||
const keys = statuses
|
const keys = statuses
|
||||||
.map((s, i) =>
|
.map((s, i) =>
|
||||||
s
|
s
|
||||||
? s.isRequested
|
? bytesType === 'H256'
|
||||||
? [hashes[i], s.asRequested.len.unwrapOr(0)]
|
// first generation
|
||||||
: [hashes[i], s.asUnrequested.len]
|
? hashes[i]
|
||||||
|
// current generation (H256,u32)
|
||||||
|
: s.isRequested
|
||||||
|
? [hashes[i], s.asRequested.len.unwrapOr(0)]
|
||||||
|
: [hashes[i], s.asUnrequested.len]
|
||||||
: null
|
: null
|
||||||
)
|
)
|
||||||
.filter((p) => !!p);
|
.filter((p) => !!p);
|
||||||
@@ -121,7 +128,7 @@ export function preimages (instanceId: string, api: DeriveApi): (hashes: (Hash |
|
|||||||
return memo(instanceId, (hashes: (Hash | Uint8Array | string | FrameSupportPreimagesBounded)[]): Observable<(DeriveProposalImage | undefined)[]> =>
|
return memo(instanceId, (hashes: (Hash | Uint8Array | string | FrameSupportPreimagesBounded)[]): Observable<(DeriveProposalImage | undefined)[]> =>
|
||||||
hashes.length
|
hashes.length
|
||||||
? isFunction(api.query.democracy.preimages)
|
? isFunction(api.query.democracy.preimages)
|
||||||
? getDemocracyImages(api, hashes as string[])
|
? getDemocracyImages(api, hashes)
|
||||||
: isFunction(api.query.preimage.preimageFor)
|
: isFunction(api.query.preimage.preimageFor)
|
||||||
? getImages(api, hashes)
|
? getImages(api, hashes)
|
||||||
: of([])
|
: of([])
|
||||||
|
|||||||
@@ -51,14 +51,14 @@ function parse ([proposals, images, optDepositors]: Result): DeriveProposal[] {
|
|||||||
|
|
||||||
export function proposals (instanceId: string, api: DeriveApi): () => Observable<DeriveProposal[]> {
|
export function proposals (instanceId: string, api: DeriveApi): () => Observable<DeriveProposal[]> {
|
||||||
return memo(instanceId, (): Observable<DeriveProposal[]> =>
|
return memo(instanceId, (): Observable<DeriveProposal[]> =>
|
||||||
isFunction(api.query.democracy?.publicProps) && isFunction(api.query.democracy?.preimages)
|
isFunction(api.query.democracy?.publicProps)
|
||||||
? api.query.democracy.publicProps().pipe(
|
? api.query.democracy.publicProps().pipe(
|
||||||
switchMap((proposals) =>
|
switchMap((proposals) =>
|
||||||
proposals.length
|
proposals.length
|
||||||
? combineLatest([
|
? combineLatest([
|
||||||
of(proposals),
|
of(proposals),
|
||||||
api.derive.democracy.preimages(
|
api.derive.democracy.preimages(
|
||||||
proposals.map(([, hash]) => hash as unknown as Uint8Array)
|
proposals.map(([, hash]) => hash)
|
||||||
),
|
),
|
||||||
api.query.democracy.depositOf.multi(
|
api.query.democracy.depositOf.multi(
|
||||||
proposals.map(([index]) => index)
|
proposals.map(([index]) => index)
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
+18
-18
@@ -20,29 +20,29 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api-augment": "9.11.1",
|
"@polkadot/api-augment": "9.12.1",
|
||||||
"@polkadot/api-base": "9.11.1",
|
"@polkadot/api-base": "9.12.1",
|
||||||
"@polkadot/api-derive": "9.11.1",
|
"@polkadot/api-derive": "9.12.1",
|
||||||
"@polkadot/keyring": "^10.2.3",
|
"@polkadot/keyring": "^10.2.6",
|
||||||
"@polkadot/rpc-augment": "9.11.1",
|
"@polkadot/rpc-augment": "9.12.1",
|
||||||
"@polkadot/rpc-core": "9.11.1",
|
"@polkadot/rpc-core": "9.12.1",
|
||||||
"@polkadot/rpc-provider": "9.11.1",
|
"@polkadot/rpc-provider": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-augment": "9.11.1",
|
"@polkadot/types-augment": "9.12.1",
|
||||||
"@polkadot/types-codec": "9.11.1",
|
"@polkadot/types-codec": "9.12.1",
|
||||||
"@polkadot/types-create": "9.11.1",
|
"@polkadot/types-create": "9.12.1",
|
||||||
"@polkadot/types-known": "9.11.1",
|
"@polkadot/types-known": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"@polkadot/util-crypto": "^10.2.3",
|
"@polkadot/util-crypto": "^10.2.6",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.11.1",
|
"@polkadot/api-augment": "9.12.1",
|
||||||
"@polkadot/types-support": "9.11.1"
|
"@polkadot/types-support": "9.12.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,65 +60,38 @@ function getAtQueryFn<ApiType extends ApiTypes> (api: ApiDecoration<ApiType>, {
|
|||||||
|
|
||||||
export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||||
readonly #instanceId: string;
|
readonly #instanceId: string;
|
||||||
|
|
||||||
#registry: Registry;
|
|
||||||
|
|
||||||
readonly #runtimeLog: Record<string, boolean> = {};
|
readonly #runtimeLog: Record<string, boolean> = {};
|
||||||
|
|
||||||
|
#registry: Registry;
|
||||||
#storageGetQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
#storageGetQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
||||||
|
|
||||||
#storageSubQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
#storageSubQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
||||||
|
|
||||||
// HACK Use BN import so decorateDerive works... yes, wtf.
|
// HACK Use BN import so decorateDerive works... yes, wtf.
|
||||||
protected __phantom = new BN(0);
|
protected __phantom = new BN(0);
|
||||||
|
|
||||||
|
protected _type: ApiTypes;
|
||||||
protected _call: QueryableCalls<ApiType> = {} as QueryableCalls<ApiType>;
|
protected _call: QueryableCalls<ApiType> = {} as QueryableCalls<ApiType>;
|
||||||
|
|
||||||
protected _consts: QueryableConsts<ApiType> = {} as QueryableConsts<ApiType>;
|
protected _consts: QueryableConsts<ApiType> = {} as QueryableConsts<ApiType>;
|
||||||
|
|
||||||
protected _derive?: ReturnType<Decorate<ApiType>['_decorateDerive']>;
|
protected _derive?: ReturnType<Decorate<ApiType>['_decorateDerive']>;
|
||||||
|
|
||||||
protected _errors: DecoratedErrors<ApiType> = {} as DecoratedErrors<ApiType>;
|
protected _errors: DecoratedErrors<ApiType> = {} as DecoratedErrors<ApiType>;
|
||||||
|
|
||||||
protected _events: DecoratedEvents<ApiType> = {} as DecoratedEvents<ApiType>;
|
protected _events: DecoratedEvents<ApiType> = {} as DecoratedEvents<ApiType>;
|
||||||
|
|
||||||
protected _extrinsics?: SubmittableExtrinsics<ApiType>;
|
protected _extrinsics?: SubmittableExtrinsics<ApiType>;
|
||||||
|
|
||||||
protected _extrinsicType = GenericExtrinsic.LATEST_EXTRINSIC_VERSION;
|
protected _extrinsicType = GenericExtrinsic.LATEST_EXTRINSIC_VERSION;
|
||||||
|
|
||||||
protected _genesisHash?: Hash;
|
protected _genesisHash?: Hash;
|
||||||
|
|
||||||
protected _isConnected: BehaviorSubject<boolean>;
|
protected _isConnected: BehaviorSubject<boolean>;
|
||||||
|
|
||||||
protected _isReady = false;
|
protected _isReady = false;
|
||||||
|
protected _query: QueryableStorage<ApiType> = {} as QueryableStorage<ApiType>;
|
||||||
|
protected _queryMulti?: QueryableStorageMulti<ApiType>;
|
||||||
|
protected _rpc?: DecoratedRpc<ApiType, RpcInterface>;
|
||||||
|
protected _rpcCore: RpcCore & RpcInterface;
|
||||||
|
protected _runtimeMap: Record<HexString, string> = {};
|
||||||
|
protected _runtimeChain?: Text;
|
||||||
|
protected _runtimeMetadata?: Metadata;
|
||||||
|
protected _runtimeVersion?: RuntimeVersion;
|
||||||
|
protected _rx: ApiInterfaceRx = { call: {} as QueryableCalls<'rxjs'>, consts: {} as QueryableConsts<'rxjs'>, query: {} as QueryableStorage<'rxjs'>, tx: {} as SubmittableExtrinsics<'rxjs'> } as ApiInterfaceRx;
|
||||||
|
|
||||||
protected readonly _options: ApiOptions;
|
protected readonly _options: ApiOptions;
|
||||||
|
|
||||||
protected _query: QueryableStorage<ApiType> = {} as QueryableStorage<ApiType>;
|
|
||||||
|
|
||||||
protected _queryMulti?: QueryableStorageMulti<ApiType>;
|
|
||||||
|
|
||||||
protected _rpc?: DecoratedRpc<ApiType, RpcInterface>;
|
|
||||||
|
|
||||||
protected _rpcCore: RpcCore & RpcInterface;
|
|
||||||
|
|
||||||
protected _runtimeMap: Record<HexString, string> = {};
|
|
||||||
|
|
||||||
protected _runtimeChain?: Text;
|
|
||||||
|
|
||||||
protected _runtimeMetadata?: Metadata;
|
|
||||||
|
|
||||||
protected _runtimeVersion?: RuntimeVersion;
|
|
||||||
|
|
||||||
protected _rx: ApiInterfaceRx = {
|
|
||||||
call: {} as QueryableCalls<'rxjs'>,
|
|
||||||
consts: {} as QueryableConsts<'rxjs'>,
|
|
||||||
query: {} as QueryableStorage<'rxjs'>,
|
|
||||||
tx: {} as SubmittableExtrinsics<'rxjs'>
|
|
||||||
} as ApiInterfaceRx;
|
|
||||||
|
|
||||||
protected _type: ApiTypes;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the one and only method concrete children classes need to implement.
|
* This is the one and only method concrete children classes need to implement.
|
||||||
* It's a higher-order function, which takes one argument
|
* It's a higher-order function, which takes one argument
|
||||||
@@ -614,39 +587,44 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
protected _decorateMulti<ApiType extends ApiTypes> (decorateMethod: DecorateMethod<ApiType>): QueryableStorageMulti<ApiType> {
|
protected _decorateMulti<ApiType extends ApiTypes> (decorateMethod: DecorateMethod<ApiType>): QueryableStorageMulti<ApiType> {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||||
return decorateMethod((keys: QueryableStorageMultiArg<ApiType>[]): Observable<Codec[]> =>
|
return decorateMethod((keys: QueryableStorageMultiArg<ApiType>[]): Observable<Codec[]> =>
|
||||||
(this.hasSubscriptions
|
keys.length
|
||||||
? this._rpcCore.state.subscribeStorage
|
? (this.hasSubscriptions
|
||||||
: this._rpcCore.state.queryStorageAt
|
? this._rpcCore.state.subscribeStorage
|
||||||
)(keys.map((args: QueryableStorageMultiArg<ApiType>): [StorageEntry, ...unknown[]] =>
|
: this._rpcCore.state.queryStorageAt
|
||||||
Array.isArray(args)
|
)(keys.map((args: QueryableStorageMultiArg<ApiType>): [StorageEntry, ...unknown[]] =>
|
||||||
? args[0].creator.meta.type.isPlain
|
Array.isArray(args)
|
||||||
? [args[0].creator]
|
? args[0].creator.meta.type.isPlain
|
||||||
: args[0].creator.meta.type.asMap.hashers.length === 1
|
? [args[0].creator]
|
||||||
? [args[0].creator, args.slice(1)]
|
: args[0].creator.meta.type.asMap.hashers.length === 1
|
||||||
: [args[0].creator, ...args.slice(1)]
|
? [args[0].creator, args.slice(1)]
|
||||||
: [args.creator]
|
: [args[0].creator, ...args.slice(1)]
|
||||||
))
|
: [args.creator]
|
||||||
|
))
|
||||||
|
: of([])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _decorateMultiAt<ApiType extends ApiTypes> (atApi: ApiDecoration<ApiType>, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array | string): QueryableStorageMulti<ApiType> {
|
protected _decorateMultiAt<ApiType extends ApiTypes> (atApi: ApiDecoration<ApiType>, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array | string): QueryableStorageMulti<ApiType> {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||||
return decorateMethod((calls: QueryableStorageMultiArg<ApiType>[]): Observable<Codec[]> =>
|
return decorateMethod((calls: QueryableStorageMultiArg<ApiType>[]): Observable<Codec[]> =>
|
||||||
this._rpcCore.state.queryStorageAt(
|
calls.length
|
||||||
calls.map((args: QueryableStorageMultiArg<ApiType>) => {
|
? this._rpcCore.state.queryStorageAt(
|
||||||
if (Array.isArray(args)) {
|
calls.map((args: QueryableStorageMultiArg<ApiType>) => {
|
||||||
const { creator } = getAtQueryFn(atApi, args[0].creator);
|
if (Array.isArray(args)) {
|
||||||
|
const { creator } = getAtQueryFn(atApi, args[0].creator);
|
||||||
|
|
||||||
return creator.meta.type.isPlain
|
return creator.meta.type.isPlain
|
||||||
? [creator]
|
? [creator]
|
||||||
: creator.meta.type.asMap.hashers.length === 1
|
: creator.meta.type.asMap.hashers.length === 1
|
||||||
? [creator, args.slice(1)]
|
? [creator, args.slice(1)]
|
||||||
: [creator, ...args.slice(1)];
|
: [creator, ...args.slice(1)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [getAtQueryFn(atApi, args.creator).creator];
|
return [getAtQueryFn(atApi, args.creator).creator];
|
||||||
}),
|
}),
|
||||||
blockHash));
|
blockHash)
|
||||||
|
: of([])
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _decorateExtrinsics<ApiType extends ApiTypes> ({ tx }: DecoratedMeta, decorateMethod: DecorateMethod<ApiType>): SubmittableExtrinsics<ApiType> {
|
protected _decorateExtrinsics<ApiType extends ApiTypes> ({ tx }: DecoratedMeta, decorateMethod: DecorateMethod<ApiType>): SubmittableExtrinsics<ApiType> {
|
||||||
@@ -869,7 +847,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
nextTick((): void => {
|
nextTick((): void => {
|
||||||
// get all the calls in this instance, resolve with it
|
// get all the calls in this instance, resolve with it
|
||||||
// and then clear the queue so we don't add more
|
// and then clear the queue so we don't add more
|
||||||
// (anyhting after this will be added to a new queue)
|
// (anything after this will be added to a new queue)
|
||||||
const calls = queue[queueIdx][1];
|
const calls = queue[queueIdx][1];
|
||||||
|
|
||||||
delete queue[queueIdx];
|
delete queue[queueIdx];
|
||||||
@@ -898,7 +876,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
// Decorate the base storage call. In the case or rxjs or promise-without-callback (await)
|
// Decorate the base storage call. In the case or rxjs or promise-without-callback (await)
|
||||||
// we make a subscription, alternatively we push this through a single-shot query
|
// we make a subscription, alternatively we push this through a single-shot query
|
||||||
private _decorateStorageCall<ApiType extends ApiTypes> (creator: StorageEntry, decorateMethod: DecorateMethod<ApiType>): ReturnType<DecorateMethod<ApiType>> {
|
private _decorateStorageCall<ApiType extends ApiTypes> (creator: StorageEntry, decorateMethod: DecorateMethod<ApiType>): ReturnType<DecorateMethod<ApiType>> {
|
||||||
return decorateMethod((...args: unknown[]): Observable<Codec> => {
|
const memoed = memo(this.#instanceId, (...args: unknown[]): Observable<Codec> => {
|
||||||
const call = extractStorageArgs(this.#registry, creator, args);
|
const call = extractStorageArgs(this.#registry, creator, args);
|
||||||
|
|
||||||
if (!this.hasSubscriptions) {
|
if (!this.hasSubscriptions) {
|
||||||
@@ -906,7 +884,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return this._queueStorage(call, this.#storageSubQ);
|
return this._queueStorage(call, this.#storageSubQ);
|
||||||
}, {
|
});
|
||||||
|
|
||||||
|
return decorateMethod(memoed, {
|
||||||
methodName: creator.method,
|
methodName: creator.method,
|
||||||
overrideNoSub: (...args: unknown[]) =>
|
overrideNoSub: (...args: unknown[]) =>
|
||||||
this._queueStorage(extractStorageArgs(this.#registry, creator, args), this.#storageGetQ)
|
this._queueStorage(extractStorageArgs(this.#registry, creator, args), this.#storageGetQ)
|
||||||
|
|||||||
@@ -31,13 +31,9 @@ function textToString (t: Text): string {
|
|||||||
|
|
||||||
export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||||
#atLast: [string, ApiDecoration<ApiType>] | null = null;
|
#atLast: [string, ApiDecoration<ApiType>] | null = null;
|
||||||
|
|
||||||
#healthTimer: ReturnType<typeof setInterval> | null = null;
|
#healthTimer: ReturnType<typeof setInterval> | null = null;
|
||||||
|
|
||||||
#registries: VersionedRegistry<ApiType>[] = [];
|
#registries: VersionedRegistry<ApiType>[] = [];
|
||||||
|
|
||||||
#updateSub?: Subscription | null = null;
|
#updateSub?: Subscription | null = null;
|
||||||
|
|
||||||
#waitingRegistries: Record<HexString, Promise<VersionedRegistry<ApiType>>> = {};
|
#waitingRegistries: Record<HexString, Promise<VersionedRegistry<ApiType>>> = {};
|
||||||
|
|
||||||
constructor (options: ApiOptions, type: ApiTypes, decorateMethod: DecorateMethod<ApiType>) {
|
constructor (options: ApiOptions, type: ApiTypes, decorateMethod: DecorateMethod<ApiType>) {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -14,17 +14,11 @@ export interface CombinatorFunction {
|
|||||||
|
|
||||||
export class Combinator<T extends unknown[] = unknown[]> {
|
export class Combinator<T extends unknown[] = unknown[]> {
|
||||||
#allHasFired = false;
|
#allHasFired = false;
|
||||||
|
|
||||||
#callback: CombinatorCallback<T>;
|
#callback: CombinatorCallback<T>;
|
||||||
|
|
||||||
#fired: boolean[] = [];
|
#fired: boolean[] = [];
|
||||||
|
|
||||||
#fns: CombinatorFunction[] = [];
|
#fns: CombinatorFunction[] = [];
|
||||||
|
|
||||||
#isActive = true;
|
#isActive = true;
|
||||||
|
|
||||||
#results: unknown[] = [];
|
#results: unknown[] = [];
|
||||||
|
|
||||||
#subscriptions: UnsubscribePromise[] = [];
|
#subscriptions: UnsubscribePromise[] = [];
|
||||||
|
|
||||||
constructor (fns: (CombinatorFunction | [CombinatorFunction, ...unknown[]])[], callback: CombinatorCallback<T>) {
|
constructor (fns: (CombinatorFunction | [CombinatorFunction, ...unknown[]])[], callback: CombinatorCallback<T>) {
|
||||||
|
|||||||
@@ -35,21 +35,21 @@ function extractInfo (events: EventRecord[] = []): DispatchInfo | undefined {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class SubmittableResult implements ISubmittableResult {
|
export class SubmittableResult implements ISubmittableResult {
|
||||||
public readonly dispatchError?: DispatchError;
|
readonly dispatchError?: DispatchError;
|
||||||
|
|
||||||
public readonly dispatchInfo?: DispatchInfo;
|
readonly dispatchInfo?: DispatchInfo;
|
||||||
|
|
||||||
public readonly internalError?: Error;
|
readonly internalError?: Error;
|
||||||
|
|
||||||
public readonly events: EventRecord[];
|
readonly events: EventRecord[];
|
||||||
|
|
||||||
public readonly status: ExtrinsicStatus;
|
readonly status: ExtrinsicStatus;
|
||||||
|
|
||||||
public readonly txHash: Hash;
|
readonly txHash: Hash;
|
||||||
|
|
||||||
public readonly txIndex?: number;
|
readonly txIndex?: number;
|
||||||
|
|
||||||
public readonly blockNumber?: BlockNumber;
|
readonly blockNumber?: BlockNumber;
|
||||||
|
|
||||||
constructor ({ blockNumber, dispatchError, dispatchInfo, events, internalError, status, txHash, txIndex }: SubmittableResultValue) {
|
constructor ({ blockNumber, dispatchError, dispatchInfo, events, internalError, status, txHash, txIndex }: SubmittableResultValue) {
|
||||||
this.dispatchError = dispatchError || extractError(events);
|
this.dispatchError = dispatchError || extractError(events);
|
||||||
|
|||||||
@@ -11,9 +11,7 @@ let id = 0;
|
|||||||
|
|
||||||
export class SingleAccountSigner implements Signer {
|
export class SingleAccountSigner implements Signer {
|
||||||
readonly #keyringPair: KeyringPair;
|
readonly #keyringPair: KeyringPair;
|
||||||
|
|
||||||
readonly #registry: Registry;
|
readonly #registry: Registry;
|
||||||
|
|
||||||
readonly #signDelay: number;
|
readonly #signDelay: number;
|
||||||
|
|
||||||
constructor (registry: Registry, keyringPair: KeyringPair, signDelay = 0) {
|
constructor (registry: Registry, keyringPair: KeyringPair, signDelay = 0) {
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/rpc-core": "9.11.1",
|
"@polkadot/rpc-core": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-codec": "9.11.1",
|
"@polkadot/types-codec": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3"
|
"@polkadot/util": "^10.2.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/rpc-augment": "9.11.1",
|
"@polkadot/rpc-augment": "9.12.1",
|
||||||
"@polkadot/rpc-provider": "9.11.1",
|
"@polkadot/rpc-provider": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^10.2.3",
|
"@polkadot/keyring": "^10.2.6",
|
||||||
"@polkadot/rpc-augment": "9.11.1"
|
"@polkadot/rpc-augment": "9.12.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ function isTreatAsHex (key: StorageKey): boolean {
|
|||||||
*/
|
*/
|
||||||
export class RpcCore {
|
export class RpcCore {
|
||||||
#instanceId: string;
|
#instanceId: string;
|
||||||
|
|
||||||
#registryDefault: Registry;
|
#registryDefault: Registry;
|
||||||
|
|
||||||
#getBlockRegistry?: (blockHash: Uint8Array) => Promise<{ registry: Registry }>;
|
#getBlockRegistry?: (blockHash: Uint8Array) => Promise<{ registry: Registry }>;
|
||||||
@@ -93,11 +92,9 @@ export class RpcCore {
|
|||||||
|
|
||||||
readonly #storageCache = new Map<string, Codec>();
|
readonly #storageCache = new Map<string, Codec>();
|
||||||
|
|
||||||
public readonly mapping = new Map<string, DefinitionRpcExt>();
|
readonly mapping = new Map<string, DefinitionRpcExt>();
|
||||||
|
readonly provider: ProviderInterface;
|
||||||
public readonly provider: ProviderInterface;
|
readonly sections: string[] = [];
|
||||||
|
|
||||||
public readonly sections: string[] = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
@@ -483,7 +480,7 @@ export class RpcCore {
|
|||||||
: meta.modifier.isOptional
|
: meta.modifier.isOptional
|
||||||
? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: true })
|
? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: true })
|
||||||
: input
|
: input
|
||||||
], { blockHash, isOptional: meta.modifier.isOptional, isPedantic: !meta.modifier.isOptional });
|
], { blockHash, isFallback: isEmpty && !!meta.fallback, isOptional: meta.modifier.isOptional, isPedantic: !meta.modifier.isOptional });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:${entryNum}: ${(error as Error).message}`);
|
throw new Error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:${entryNum}: ${(error as Error).message}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,26 +20,26 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/keyring": "^10.2.3",
|
"@polkadot/keyring": "^10.2.6",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-support": "9.11.1",
|
"@polkadot/types-support": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"@polkadot/util-crypto": "^10.2.3",
|
"@polkadot/util-crypto": "^10.2.6",
|
||||||
"@polkadot/x-fetch": "^10.2.3",
|
"@polkadot/x-fetch": "^10.2.6",
|
||||||
"@polkadot/x-global": "^10.2.3",
|
"@polkadot/x-global": "^10.2.6",
|
||||||
"@polkadot/x-ws": "^10.2.3",
|
"@polkadot/x-ws": "^10.2.6",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"mock-socket": "^9.1.5",
|
"mock-socket": "^9.1.5",
|
||||||
"nock": "^13.2.9"
|
"nock": "^13.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@substrate/connect": "0.7.18"
|
"@substrate/connect": "0.7.19"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@substrate/connect": "0.7.18"
|
"@substrate/connect": "0.7.19"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,13 +36,9 @@ const l = logger('api-http');
|
|||||||
*/
|
*/
|
||||||
export class HttpProvider implements ProviderInterface {
|
export class HttpProvider implements ProviderInterface {
|
||||||
readonly #callCache = new LRUCache();
|
readonly #callCache = new LRUCache();
|
||||||
|
|
||||||
readonly #coder: RpcCoder;
|
readonly #coder: RpcCoder;
|
||||||
|
|
||||||
readonly #endpoint: string;
|
readonly #endpoint: string;
|
||||||
|
|
||||||
readonly #headers: Record<string, string>;
|
readonly #headers: Record<string, string>;
|
||||||
|
|
||||||
readonly #stats: ProviderStats;
|
readonly #stats: ProviderStats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
const DEFAULT_CAPACITY = 128;
|
const DEFAULT_CAPACITY = 128;
|
||||||
|
|
||||||
class LRUNode {
|
class LRUNode {
|
||||||
public readonly key: string;
|
readonly key: string;
|
||||||
|
|
||||||
public next: LRUNode;
|
public next: LRUNode;
|
||||||
public prev: LRUNode;
|
public prev: LRUNode;
|
||||||
@@ -21,6 +21,7 @@ class LRUNode {
|
|||||||
// https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU
|
// https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU
|
||||||
export class LRUCache {
|
export class LRUCache {
|
||||||
readonly capacity: number;
|
readonly capacity: number;
|
||||||
|
|
||||||
readonly #data: Map<string, unknown> = new Map();
|
readonly #data: Map<string, unknown> = new Map();
|
||||||
readonly #refs: Map<string, LRUNode> = new Map();
|
readonly #refs: Map<string, LRUNode> = new Map();
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ export class ScProvider implements ProviderInterface {
|
|||||||
readonly #requests: Map<number, ResponseCallback> = new Map();
|
readonly #requests: Map<number, ResponseCallback> = new Map();
|
||||||
readonly #wellKnownChains: Set<ScType.WellKnownChain>;
|
readonly #wellKnownChains: Set<ScType.WellKnownChain>;
|
||||||
readonly #eventemitter: EventEmitter = new EventEmitter();
|
readonly #eventemitter: EventEmitter = new EventEmitter();
|
||||||
|
|
||||||
#chain: Promise<ScType.Chain> | null = null;
|
#chain: Promise<ScType.Chain> | null = null;
|
||||||
#isChainReady = false;
|
#isChainReady = false;
|
||||||
|
|
||||||
|
|||||||
@@ -81,35 +81,21 @@ function eraseRecord<T> (record: Record<string, T>, cb?: (item: T) => void): voi
|
|||||||
*/
|
*/
|
||||||
export class WsProvider implements ProviderInterface {
|
export class WsProvider implements ProviderInterface {
|
||||||
readonly #callCache = new LRUCache();
|
readonly #callCache = new LRUCache();
|
||||||
|
|
||||||
readonly #coder: RpcCoder;
|
readonly #coder: RpcCoder;
|
||||||
|
|
||||||
readonly #endpoints: string[];
|
readonly #endpoints: string[];
|
||||||
|
|
||||||
readonly #headers: Record<string, string>;
|
readonly #headers: Record<string, string>;
|
||||||
|
|
||||||
readonly #eventemitter: EventEmitter;
|
readonly #eventemitter: EventEmitter;
|
||||||
|
|
||||||
readonly #handlers: Record<string, WsStateAwaiting> = {};
|
readonly #handlers: Record<string, WsStateAwaiting> = {};
|
||||||
|
|
||||||
readonly #isReadyPromise: Promise<WsProvider>;
|
readonly #isReadyPromise: Promise<WsProvider>;
|
||||||
|
|
||||||
readonly #stats: ProviderStats;
|
readonly #stats: ProviderStats;
|
||||||
|
|
||||||
readonly #waitingForId: Record<string, JsonRpcResponse> = {};
|
readonly #waitingForId: Record<string, JsonRpcResponse> = {};
|
||||||
|
|
||||||
#autoConnectMs: number;
|
#autoConnectMs: number;
|
||||||
|
|
||||||
#endpointIndex: number;
|
#endpointIndex: number;
|
||||||
|
|
||||||
#isConnected = false;
|
#isConnected = false;
|
||||||
|
|
||||||
#subscriptions: Record<string, WsStateSubscription> = {};
|
#subscriptions: Record<string, WsStateSubscription> = {};
|
||||||
|
|
||||||
#timeoutId?: ReturnType<typeof setInterval> | null = null;
|
#timeoutId?: ReturnType<typeof setInterval> | null = null;
|
||||||
|
|
||||||
#websocket: WebSocket | null;
|
#websocket: WebSocket | null;
|
||||||
|
|
||||||
#timeout: number;
|
#timeout: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||||
@@ -32,25 +32,25 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.20.12",
|
"@babel/core": "^7.20.12",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api": "9.11.1",
|
"@polkadot/api": "9.12.1",
|
||||||
"@polkadot/api-augment": "9.11.1",
|
"@polkadot/api-augment": "9.12.1",
|
||||||
"@polkadot/rpc-augment": "9.11.1",
|
"@polkadot/rpc-augment": "9.12.1",
|
||||||
"@polkadot/rpc-provider": "9.11.1",
|
"@polkadot/rpc-provider": "9.12.1",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-augment": "9.11.1",
|
"@polkadot/types-augment": "9.12.1",
|
||||||
"@polkadot/types-codec": "9.11.1",
|
"@polkadot/types-codec": "9.12.1",
|
||||||
"@polkadot/types-create": "9.11.1",
|
"@polkadot/types-create": "9.12.1",
|
||||||
"@polkadot/types-support": "9.11.1",
|
"@polkadot/types-support": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"@polkadot/util-crypto": "^10.2.3",
|
"@polkadot/util-crypto": "^10.2.6",
|
||||||
"@polkadot/x-ws": "^10.2.3",
|
"@polkadot/x-ws": "^10.2.6",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
"yargs": "^17.6.2"
|
"yargs": "^17.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/websocket": "^1.0.5",
|
"@types/websocket": "^1.0.5",
|
||||||
"@types/yargs": "^17.0.19"
|
"@types/yargs": "^17.0.20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
@@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
@@ -20,12 +20,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-codec": "9.11.1",
|
"@polkadot/types-codec": "9.12.1",
|
||||||
"@polkadot/util": "^10.2.3"
|
"@polkadot/util": "^10.2.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
* Lookup107: kusama_runtime::SessionKeys
|
* Lookup108: kusama_runtime::SessionKeys
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeSessionKeys: {
|
KusamaRuntimeSessionKeys: {
|
||||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||||
@@ -16,7 +16,7 @@ export default {
|
|||||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup149: kusama_runtime::OriginCaller
|
* Lookup150: kusama_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeOriginCaller: {
|
KusamaRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -123,19 +123,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup153: kusama_runtime::governance::origins::pallet_custom_origins::Origin
|
* Lookup154: kusama_runtime::governance::origins::pallet_custom_origins::Origin
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
|
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
|
||||||
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan']
|
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup230: kusama_runtime::ProxyType
|
* Lookup231: kusama_runtime::ProxyType
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeProxyType: {
|
KusamaRuntimeProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup240: kusama_runtime::NposCompactSolution24
|
* Lookup241: kusama_runtime::NposCompactSolution24
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeNposCompactSolution24: {
|
KusamaRuntimeNposCompactSolution24: {
|
||||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||||
@@ -164,7 +164,7 @@ export default {
|
|||||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup855: kusama_runtime::Runtime
|
* Lookup873: kusama_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeRuntime: 'Null'
|
KusamaRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@ import type { ITuple } from '@polkadot/types-codec/types';
|
|||||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
declare module '@polkadot/types/lookup' {
|
declare module '@polkadot/types/lookup' {
|
||||||
/** @name KusamaRuntimeSessionKeys (107) */
|
/** @name KusamaRuntimeSessionKeys (108) */
|
||||||
interface KusamaRuntimeSessionKeys extends Struct {
|
interface KusamaRuntimeSessionKeys extends Struct {
|
||||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||||
readonly babe: SpConsensusBabeAppPublic;
|
readonly babe: SpConsensusBabeAppPublic;
|
||||||
@@ -20,7 +20,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeOriginCaller (149) */
|
/** @name KusamaRuntimeOriginCaller (150) */
|
||||||
interface KusamaRuntimeOriginCaller extends Enum {
|
interface KusamaRuntimeOriginCaller extends Enum {
|
||||||
readonly isSystem: boolean;
|
readonly isSystem: boolean;
|
||||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||||
@@ -38,7 +38,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
|
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (153) */
|
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (154) */
|
||||||
interface KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
|
interface KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
|
||||||
readonly isStakingAdmin: boolean;
|
readonly isStakingAdmin: boolean;
|
||||||
readonly isTreasurer: boolean;
|
readonly isTreasurer: boolean;
|
||||||
@@ -70,7 +70,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan';
|
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeProxyType (230) */
|
/** @name KusamaRuntimeProxyType (231) */
|
||||||
interface KusamaRuntimeProxyType extends Enum {
|
interface KusamaRuntimeProxyType extends Enum {
|
||||||
readonly isAny: boolean;
|
readonly isAny: boolean;
|
||||||
readonly isNonTransfer: boolean;
|
readonly isNonTransfer: boolean;
|
||||||
@@ -83,7 +83,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeNposCompactSolution24 (240) */
|
/** @name KusamaRuntimeNposCompactSolution24 (241) */
|
||||||
interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||||
@@ -111,7 +111,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeRuntime (855) */
|
/** @name KusamaRuntimeRuntime (873) */
|
||||||
type KusamaRuntimeRuntime = Null;
|
type KusamaRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -20,17 +20,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.11.1",
|
"version": "9.12.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.7",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/util": "^10.2.3",
|
"@polkadot/util": "^10.2.6",
|
||||||
"@polkadot/x-bigint": "^10.2.3"
|
"@polkadot/x-bigint": "^10.2.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "9.11.1",
|
"@polkadot/types": "9.12.1",
|
||||||
"@polkadot/types-augment": "9.11.1",
|
"@polkadot/types-augment": "9.12.1",
|
||||||
"@polkadot/types-support": "9.11.1",
|
"@polkadot/types-support": "9.12.1",
|
||||||
"@polkadot/util-crypto": "^10.2.3"
|
"@polkadot/util-crypto": "^10.2.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,11 @@ import { compareArray } from '../utils/compareArray';
|
|||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
export abstract class AbstractArray<T extends Codec> extends Array<T> implements IVec<T> {
|
export abstract class AbstractArray<T extends Codec> extends Array<T> implements IVec<T> {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description This ensures that operators such as clice, filter, map, etc. return
|
* @description This ensures that operators such as clice, filter, map, etc. return
|
||||||
|
|||||||
@@ -9,17 +9,17 @@ import type { AnyJson, BareOpts, Codec, Inspect, IU8a, Registry } from '../types
|
|||||||
* @description A type extends the Base class, when it holds a value
|
* @description A type extends the Base class, when it holds a value
|
||||||
*/
|
*/
|
||||||
export abstract class AbstractBase<T extends Codec> implements Codec {
|
export abstract class AbstractBase<T extends Codec> implements Codec {
|
||||||
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
public readonly initialU8aLength?: number;
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
public readonly registry: Registry;
|
|
||||||
|
|
||||||
readonly #raw: T;
|
readonly #raw: T;
|
||||||
|
|
||||||
protected constructor (registry: Registry, value: T, initialU8aLength?: number) {
|
protected constructor (registry: Registry, value: T, initialU8aLength?: number) {
|
||||||
this.#raw = value;
|
|
||||||
this.initialU8aLength = initialU8aLength;
|
this.initialU8aLength = initialU8aLength;
|
||||||
|
this.#raw = value;
|
||||||
this.registry = registry;
|
this.registry = registry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,13 +72,13 @@ function decodeAbstractInt (value: Exclude<AnyNumber, Uint8Array> | Record<strin
|
|||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
export abstract class AbstractInt extends BN implements INumber {
|
export abstract class AbstractInt extends BN implements INumber {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
readonly encodedLength: number;
|
||||||
|
readonly isUnsigned: boolean;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
public readonly encodedLength: number;
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
public readonly isUnsigned: boolean;
|
|
||||||
|
|
||||||
readonly #bitLength: UIntBitLength;
|
readonly #bitLength: UIntBitLength;
|
||||||
|
|
||||||
@@ -98,6 +98,7 @@ export abstract class AbstractInt extends BN implements INumber {
|
|||||||
this.registry = registry;
|
this.registry = registry;
|
||||||
this.#bitLength = bitLength;
|
this.#bitLength = bitLength;
|
||||||
this.encodedLength = this.#bitLength / 8;
|
this.encodedLength = this.#bitLength / 8;
|
||||||
|
this.initialU8aLength = this.#bitLength / 8;
|
||||||
this.isUnsigned = !isSigned;
|
this.isUnsigned = !isSigned;
|
||||||
|
|
||||||
const isNegative = this.isNeg();
|
const isNegative = this.isNeg();
|
||||||
|
|||||||
@@ -47,14 +47,13 @@ function decodeCompact<T extends INumber> (registry: Registry, Type: CodecClass<
|
|||||||
* a number and making the compact representation thereof
|
* a number and making the compact representation thereof
|
||||||
*/
|
*/
|
||||||
export class Compact<T extends INumber> implements ICompact<T> {
|
export class Compact<T extends INumber> implements ICompact<T> {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
readonly initialU8aLength?: number;
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
readonly #Type: CodecClass<T>;
|
readonly #Type: CodecClass<T>;
|
||||||
|
|
||||||
readonly #raw: T;
|
readonly #raw: T;
|
||||||
|
|
||||||
constructor (registry: Registry, Type: CodecClass<T> | string, value: Compact<T> | AnyNumber = 0, { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
constructor (registry: Registry, Type: CodecClass<T> | string, value: Compact<T> | AnyNumber = 0, { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ import type { AnyJson, Codec, CodecClass, Inspect, IU8a, Registry } from '../typ
|
|||||||
* An unknown type that fails on construction with the type info
|
* An unknown type that fails on construction with the type info
|
||||||
*/
|
*/
|
||||||
export class DoNotConstruct implements Codec {
|
export class DoNotConstruct implements Codec {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
#neverError: Error;
|
#neverError: Error;
|
||||||
|
|
||||||
|
|||||||
@@ -183,22 +183,17 @@ function decodeEnum (registry: Registry, def: TypesDef, value?: unknown, index?:
|
|||||||
* an extension to enum where the value type is determined by the actual index.
|
* an extension to enum where the value type is determined by the actual index.
|
||||||
*/
|
*/
|
||||||
export class Enum implements IEnum {
|
export class Enum implements IEnum {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
readonly #def: TypesDef;
|
readonly #def: TypesDef;
|
||||||
|
|
||||||
readonly #entryIndex: number;
|
readonly #entryIndex: number;
|
||||||
|
|
||||||
readonly initialU8aLength?: number;
|
|
||||||
|
|
||||||
readonly #indexes: number[];
|
readonly #indexes: number[];
|
||||||
|
|
||||||
readonly #isBasic: boolean;
|
readonly #isBasic: boolean;
|
||||||
|
|
||||||
readonly #isIndexed: boolean;
|
readonly #isIndexed: boolean;
|
||||||
|
|
||||||
readonly #raw: Codec;
|
readonly #raw: Codec;
|
||||||
|
|
||||||
constructor (registry: Registry, Types: Record<string, string | CodecClass> | Record<string, number> | string[], value?: unknown, index?: number, { definition, setDefinition = noopSetDefinition }: Options = {}) {
|
constructor (registry: Registry, Types: Record<string, string | CodecClass> | Record<string, number> | string[], value?: unknown, index?: number, { definition, setDefinition = noopSetDefinition }: Options = {}) {
|
||||||
|
|||||||
@@ -12,16 +12,13 @@ import { isNull } from '@polkadot/util';
|
|||||||
* Implements a type that does not contain anything (apart from `null`)
|
* Implements a type that does not contain anything (apart from `null`)
|
||||||
*/
|
*/
|
||||||
export class Null implements Codec {
|
export class Null implements Codec {
|
||||||
public readonly encodedLength = 0;
|
readonly encodedLength = 0;
|
||||||
|
readonly isEmpty = true;
|
||||||
public readonly isEmpty = true;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public readonly registry: Registry;
|
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength = 0;
|
||||||
// Added for compatibility reasons, e.g. see Option
|
public isStorageFallback?: boolean;
|
||||||
public readonly initialU8aLength = 0;
|
|
||||||
|
|
||||||
constructor (registry: Registry) {
|
constructor (registry: Registry) {
|
||||||
this.registry = registry;
|
this.registry = registry;
|
||||||
|
|||||||
@@ -66,14 +66,13 @@ function decodeOption (registry: Registry, Type: CodecClass, value?: unknown): C
|
|||||||
* with a value if/as required/found.
|
* with a value if/as required/found.
|
||||||
*/
|
*/
|
||||||
export class Option<T extends Codec> implements IOption<T> {
|
export class Option<T extends Codec> implements IOption<T> {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
|
||||||
public initialU8aLength?: number;
|
public initialU8aLength?: number;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
readonly #Type: CodecClass<T>;
|
readonly #Type: CodecClass<T>;
|
||||||
|
|
||||||
readonly #raw: T;
|
readonly #raw: T;
|
||||||
|
|
||||||
constructor (registry: Registry, typeName: CodecClass<T> | string, value?: unknown, { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
constructor (registry: Registry, typeName: CodecClass<T> | string, value?: unknown, { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
||||||
@@ -88,7 +87,7 @@ export class Option<T extends Codec> implements IOption<T> {
|
|||||||
this.#Type = Type;
|
this.#Type = Type;
|
||||||
this.#raw = decoded as T;
|
this.#raw = decoded as T;
|
||||||
|
|
||||||
if (decoded && decoded.initialU8aLength) {
|
if (decoded?.initialU8aLength) {
|
||||||
this.initialU8aLength = 1 + decoded.initialU8aLength;
|
this.initialU8aLength = 1 + decoded.initialU8aLength;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,15 @@ describe('Tuple', (): void => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('constructor', (): void => {
|
||||||
|
it('fails construction on non-Array, non-Hex inputs', (): void => {
|
||||||
|
// @ts-expect-error We are intentionally passing a non-valid input
|
||||||
|
expect(() => new Tuple(registry, [Text, Text], '12345')).toThrow(/Expected array input to Tuple decoding, found string/);
|
||||||
|
// @ts-expect-error We are intentionally passing a non-valid input
|
||||||
|
expect(() => new Tuple(registry, [Text, Text], {})).toThrow(/Expected array input to Tuple decoding, found object/);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('decoding', (): void => {
|
describe('decoding', (): void => {
|
||||||
const testDecode = (type: string, input: AnyTupleValue): void =>
|
const testDecode = (type: string, input: AnyTupleValue): void =>
|
||||||
it(`can decode from ${type}`, (): void => {
|
it(`can decode from ${type}`, (): void => {
|
||||||
|
|||||||
@@ -27,25 +27,35 @@ function noopSetDefinition (d: Definition): Definition {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeTuple (registry: Registry, result: Codec[], value: Exclude<AnyTupleValue, Uint8Array> | undefined, Classes: Definition): [Codec[], number] {
|
function decodeTuple (registry: Registry, result: Codec[], value: Exclude<AnyTupleValue, Uint8Array> | undefined, Classes: Definition): [Codec[], number] {
|
||||||
if (isU8a(value) || isHex(value)) {
|
if (Array.isArray(value)) {
|
||||||
return decodeU8a(registry, result, u8aToU8a(value), Classes);
|
const Types = Classes[0];
|
||||||
}
|
|
||||||
|
|
||||||
const Types = Classes[0];
|
for (let i = 0; i < Types.length; i++) {
|
||||||
|
try {
|
||||||
|
const entry = value?.[i];
|
||||||
|
|
||||||
for (let i = 0; i < Types.length; i++) {
|
result[i] = entry instanceof Types[i]
|
||||||
try {
|
? entry
|
||||||
const entry = value?.[i];
|
: new Types[i](registry, entry);
|
||||||
|
} catch (error) {
|
||||||
result[i] = entry instanceof Types[i]
|
throw new Error(`Tuple: failed on ${i}:: ${(error as Error).message}`);
|
||||||
? entry
|
}
|
||||||
: new Types[i](registry, entry);
|
|
||||||
} catch (error) {
|
|
||||||
throw new Error(`Tuple: failed on ${i}:: ${(error as Error).message}`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return [result, 0];
|
||||||
|
} else if (isHex(value)) {
|
||||||
|
return decodeU8a(registry, result, u8aToU8a(value), Classes);
|
||||||
|
} else if (!value || !result.length) {
|
||||||
|
const Types = Classes[0];
|
||||||
|
|
||||||
|
for (let i = 0; i < Types.length; i++) {
|
||||||
|
result[i] = new Types[i](registry);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [result, 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [result, 0];
|
throw new Error(`Expected array input to Tuple decoding, found ${typeof value}: ${stringify(value)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -55,8 +65,6 @@ function decodeTuple (registry: Registry, result: Codec[], value: Exclude<AnyTup
|
|||||||
* own type. It extends the base JS `Array` object.
|
* own type. It extends the base JS `Array` object.
|
||||||
*/
|
*/
|
||||||
export class Tuple extends AbstractArray<Codec> implements ITuple<Codec[]> {
|
export class Tuple extends AbstractArray<Codec> implements ITuple<Codec[]> {
|
||||||
readonly initialU8aLength?: number;
|
|
||||||
|
|
||||||
#Types: Definition;
|
#Types: Definition;
|
||||||
|
|
||||||
constructor (registry: Registry, Types: TupleTypes | TupleType, value?: AnyTupleValue, { definition, setDefinition = noopSetDefinition }: Options = {}) {
|
constructor (registry: Registry, Types: TupleTypes | TupleType, value?: AnyTupleValue, { definition, setDefinition = noopSetDefinition }: Options = {}) {
|
||||||
|
|||||||
@@ -24,67 +24,81 @@ describe('Vec', (): void => {
|
|||||||
vector = new Vec(registry, Text, ['1', '23', '345', '4567', new Text(registry, '56789')]);
|
vector = new Vec(registry, Text, ['1', '23', '345', '4567', new Text(registry, '56789')]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('wraps a sequence of values', (): void => {
|
describe('constructor', (): void => {
|
||||||
expect(vector.length).toEqual(5); // eslint-disable-line
|
it('fails construction on non-Array, non-Hex inputs', (): void => {
|
||||||
});
|
// @ts-expect-error We are intentionally passing a non-valid input
|
||||||
|
expect(() => new Vec(registry, Text, '12345')).toThrow(/decoding, found string/);
|
||||||
|
// @ts-expect-error We are intentionally passing a non-valid input
|
||||||
|
expect(() => new Vec(registry, Text, {})).toThrow(/decoding, found object/);
|
||||||
|
});
|
||||||
|
|
||||||
it('has a sane representation for toString', (): void => {
|
it('allows construction via hex & null values', (): void => {
|
||||||
expect(vector.toString()).toEqual('[1, 23, 345, 4567, 56789]');
|
// @ts-expect-error We are intentionally passing a non-valid input
|
||||||
});
|
expect(new Vec(registry, Text, null)).toHaveLength(0);
|
||||||
|
});
|
||||||
|
|
||||||
it('encodes with length prefix', (): void => {
|
it('decodes a complex type via construction', (): void => {
|
||||||
expect(vector.toU8a()).toEqual(new Uint8Array([
|
const test = createTypeUnsafe<Vec<ITuple<[PropIndex, AccountId]>>>(registry, 'Vec<(PropIndex, AccountId)>', [new Uint8Array([
|
||||||
5 << 2,
|
4, 10, 0, 0, 0, 209, 114, 167, 76, 218, 76, 134, 89, 18, 195, 43, 160, 168, 10, 87, 174, 105, 171, 174, 65, 14, 92, 203, 89, 222, 232, 78, 47, 68, 50, 219, 79
|
||||||
1 << 2, 49,
|
])]);
|
||||||
2 << 2, 50, 51,
|
|
||||||
3 << 2, 51, 52, 53,
|
|
||||||
4 << 2, 52, 53, 54, 55,
|
|
||||||
5 << 2, 53, 54, 55, 56, 57
|
|
||||||
]));
|
|
||||||
});
|
|
||||||
|
|
||||||
it('allows construction via JSON', (): void => {
|
expect(test[0][0].toNumber()).toEqual(10);
|
||||||
expect(
|
expect(test[0][1].toString()).toEqual('5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaQua');
|
||||||
new Vec(registry, Text, ['6', '7']).toJSON()
|
});
|
||||||
).toEqual(['6', '7']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('allows construction via JSON (string type)', (): void => {
|
it('decodes a complex type via construction', (): void => {
|
||||||
expect(
|
const INPUT = '0x08cc0200000000ce0200000001';
|
||||||
new Vec(registry, 'u32', ['6', '7']).toJSON()
|
const test = createTypeUnsafe<Vec<Codec>>(registry, 'Vec<(u32, [u32; 0], u16)>', [INPUT]);
|
||||||
).toEqual([6, 7]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('exposes the type', (): void => {
|
expect(test).toHaveLength(2);
|
||||||
expect(vector.Type).toEqual('Text');
|
expect(test.toHex()).toEqual(INPUT);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('decodes reusing instantiated inputs', (): void => {
|
it('allows construction via JSON', (): void => {
|
||||||
const foo = new Text(registry, 'bar');
|
expect(
|
||||||
|
new Vec(registry, Text, ['6', '7']).toJSON()
|
||||||
|
).toEqual(['6', '7']);
|
||||||
|
});
|
||||||
|
|
||||||
expect(
|
it('allows construction via JSON (string type)', (): void => {
|
||||||
(new Vec(registry, Text, [foo]))[0]
|
expect(
|
||||||
).toBe(foo);
|
new Vec(registry, 'u32', ['6', '7']).toJSON()
|
||||||
});
|
).toEqual([6, 7]);
|
||||||
|
});
|
||||||
|
|
||||||
it('decodes a complex type via construction', (): void => {
|
it('decodes reusing instantiated inputs', (): void => {
|
||||||
const test = createTypeUnsafe<Vec<ITuple<[PropIndex, AccountId]>>>(registry, 'Vec<(PropIndex, AccountId)>', [new Uint8Array([
|
const foo = new Text(registry, 'bar');
|
||||||
4, 10, 0, 0, 0, 209, 114, 167, 76, 218, 76, 134, 89, 18, 195, 43, 160, 168, 10, 87, 174, 105, 171, 174, 65, 14, 92, 203, 89, 222, 232, 78, 47, 68, 50, 219, 79
|
|
||||||
])]);
|
|
||||||
|
|
||||||
expect(test[0][0].toNumber()).toEqual(10);
|
expect(
|
||||||
expect(test[0][1].toString()).toEqual('5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaQua');
|
(new Vec(registry, Text, [foo]))[0]
|
||||||
});
|
).toBe(foo);
|
||||||
|
});
|
||||||
it('decodes a complex type via construction', (): void => {
|
|
||||||
const INPUT = '0x08cc0200000000ce0200000001';
|
|
||||||
const test = createTypeUnsafe<Vec<Codec>>(registry, 'Vec<(u32, [u32; 0], u16)>', [INPUT]);
|
|
||||||
|
|
||||||
expect(test).toHaveLength(2);
|
|
||||||
expect(test.toHex()).toEqual(INPUT);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('vector-like functions', (): void => {
|
describe('vector-like functions', (): void => {
|
||||||
|
it('wraps a sequence of values', (): void => {
|
||||||
|
expect(vector).toHaveLength(5);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('has a sane representation for toString', (): void => {
|
||||||
|
expect(vector.toString()).toEqual('[1, 23, 345, 4567, 56789]');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('encodes with length prefix', (): void => {
|
||||||
|
expect(vector.toU8a()).toEqual(new Uint8Array([
|
||||||
|
5 << 2,
|
||||||
|
1 << 2, 49,
|
||||||
|
2 << 2, 50, 51,
|
||||||
|
3 << 2, 51, 52, 53,
|
||||||
|
4 << 2, 52, 53, 54, 55,
|
||||||
|
5 << 2, 53, 54, 55, 56, 57
|
||||||
|
]));
|
||||||
|
});
|
||||||
|
|
||||||
|
it('exposes the type', (): void => {
|
||||||
|
expect(vector.Type).toEqual('Text');
|
||||||
|
});
|
||||||
|
|
||||||
it('allows retrieval of a specific item', (): void => {
|
it('allows retrieval of a specific item', (): void => {
|
||||||
expect(
|
expect(
|
||||||
vector[2].toString()
|
vector[2].toString()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { Codec, CodecClass, Registry } from '../types';
|
import type { Codec, CodecClass, Registry } from '../types';
|
||||||
|
|
||||||
import { compactFromU8aLim, isU8a, logger, u8aToU8a } from '@polkadot/util';
|
import { compactFromU8aLim, isHex, isU8a, logger, stringify, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { AbstractArray } from '../abstract/Array';
|
import { AbstractArray } from '../abstract/Array';
|
||||||
import { decodeU8aVec, typeToConstructor } from '../utils';
|
import { decodeU8aVec, typeToConstructor } from '../utils';
|
||||||
@@ -22,22 +22,26 @@ function noopSetDefinition <T extends Codec> (d: CodecClass<T>): CodecClass<T> {
|
|||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
function decodeVecLength (value: Uint8Array | HexString | unknown[]): [Uint8Array | unknown[], number, number] {
|
function decodeVecLength (value: Uint8Array | HexString | unknown[]): [Uint8Array | unknown[] | null, number, number] {
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
return [value, value.length, 0];
|
return [value, value.length, 0];
|
||||||
|
} else if (isU8a(value) || isHex(value)) {
|
||||||
|
const u8a = u8aToU8a(value);
|
||||||
|
const [startAt, length] = compactFromU8aLim(u8a);
|
||||||
|
|
||||||
|
if (length > MAX_LENGTH) {
|
||||||
|
throw new Error(`Vec length ${length.toString()} exceeds ${MAX_LENGTH}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [u8a, length, startAt];
|
||||||
|
} else if (!value) {
|
||||||
|
return [null, 0, 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
const u8a = u8aToU8a(value);
|
throw new Error(`Expected array/hex input to Vec<*> decoding, found ${typeof value}: ${stringify(value)}`);
|
||||||
const [startAt, length] = compactFromU8aLim(u8a);
|
|
||||||
|
|
||||||
if (length > MAX_LENGTH) {
|
|
||||||
throw new Error(`Vec length ${length.toString()} exceeds ${MAX_LENGTH}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
return [u8a, length, startAt];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function decodeVec<T extends Codec> (registry: Registry, result: T[], value: Uint8Array | HexString | unknown[], startAt: number, Type: CodecClass<T>): [number, number] {
|
export function decodeVec<T extends Codec> (registry: Registry, result: T[], value: Uint8Array | HexString | unknown[] | null, startAt: number, Type: CodecClass<T>): [number, number] {
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
const count = result.length;
|
const count = result.length;
|
||||||
|
|
||||||
@@ -57,9 +61,12 @@ export function decodeVec<T extends Codec> (registry: Registry, result: T[], val
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return [0, 0];
|
||||||
|
} else if (!value) {
|
||||||
return [0, 0];
|
return [0, 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we don't need more checks, we already limited it via the length decoding
|
||||||
return decodeU8aVec(registry, result, u8aToU8a(value), startAt, Type);
|
return decodeU8aVec(registry, result, u8aToU8a(value), startAt, Type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,8 +78,6 @@ export function decodeVec<T extends Codec> (registry: Registry, result: T[], val
|
|||||||
* specific encoding/decoding on top of the base type.
|
* specific encoding/decoding on top of the base type.
|
||||||
*/
|
*/
|
||||||
export class Vec<T extends Codec> extends AbstractArray<T> {
|
export class Vec<T extends Codec> extends AbstractArray<T> {
|
||||||
readonly initialU8aLength?: number;
|
|
||||||
|
|
||||||
#Type: CodecClass<T>;
|
#Type: CodecClass<T>;
|
||||||
|
|
||||||
constructor (registry: Registry, Type: CodecClass<T> | string, value: Uint8Array | HexString | unknown[] = [], { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
constructor (registry: Registry, Type: CodecClass<T> | string, value: Uint8Array | HexString | unknown[] = [], { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
||||||
@@ -82,11 +87,17 @@ export class Vec<T extends Codec> extends AbstractArray<T> {
|
|||||||
|
|
||||||
this.#Type = definition || setDefinition(typeToConstructor<T>(registry, Type));
|
this.#Type = definition || setDefinition(typeToConstructor<T>(registry, Type));
|
||||||
|
|
||||||
this.initialU8aLength = (
|
try {
|
||||||
isU8a(decodeFrom)
|
this.initialU8aLength = (
|
||||||
? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type)
|
isU8a(decodeFrom)
|
||||||
: decodeVec(registry, this, decodeFrom, startAt, this.#Type)
|
? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type)
|
||||||
)[0];
|
: decodeVec(registry, this, decodeFrom, startAt, this.#Type)
|
||||||
|
)[0];
|
||||||
|
} catch (e) {
|
||||||
|
console.error(decodeFrom, length, startAt);
|
||||||
|
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static with<O extends Codec> (Type: CodecClass<O> | string): CodecClass<Vec<O>> {
|
public static with<O extends Codec> (Type: CodecClass<O> | string): CodecClass<Vec<O>> {
|
||||||
|
|||||||
@@ -25,8 +25,6 @@ function noopSetDefinition <T extends Codec> (d: CodecClass<T>): CodecClass<T> {
|
|||||||
* This manages codec arrays of a fixed length
|
* This manages codec arrays of a fixed length
|
||||||
*/
|
*/
|
||||||
export class VecFixed<T extends Codec> extends AbstractArray<T> {
|
export class VecFixed<T extends Codec> extends AbstractArray<T> {
|
||||||
readonly initialU8aLength?: number;
|
|
||||||
|
|
||||||
#Type: CodecClass<T>;
|
#Type: CodecClass<T>;
|
||||||
|
|
||||||
constructor (registry: Registry, Type: CodecClass<T> | string, length: number, value: Uint8Array | HexString | unknown[] = [] as unknown[], { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
constructor (registry: Registry, Type: CodecClass<T> | string, length: number, value: Uint8Array | HexString | unknown[] = [] as unknown[], { definition, setDefinition = noopSetDefinition }: Options<T> = {}) {
|
||||||
|
|||||||
@@ -70,11 +70,11 @@ function decodeSet<V extends Codec> (registry: Registry, valType: CodecClass<V>
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class BTreeSet<V extends Codec = Codec> extends Set<V> implements ISet<V> {
|
export class BTreeSet<V extends Codec = Codec> extends Set<V> implements ISet<V> {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
readonly initialU8aLength?: number;
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
readonly #ValClass: CodecClass<V>;
|
readonly #ValClass: CodecClass<V>;
|
||||||
|
|
||||||
|
|||||||
@@ -94,16 +94,14 @@ function decodeMap<K extends Codec, V extends Codec> (registry: Registry, keyTyp
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class CodecMap<K extends Codec = Codec, V extends Codec = Codec> extends Map<K, V> implements IMap<K, V> {
|
export class CodecMap<K extends Codec = Codec, V extends Codec = Codec> extends Map<K, V> implements IMap<K, V> {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
readonly #KeyClass: CodecClass<K>;
|
readonly #KeyClass: CodecClass<K>;
|
||||||
|
|
||||||
readonly #ValClass: CodecClass<V>;
|
readonly #ValClass: CodecClass<V>;
|
||||||
|
|
||||||
readonly initialU8aLength?: number;
|
|
||||||
|
|
||||||
readonly #type: string;
|
readonly #type: string;
|
||||||
|
|
||||||
constructor (registry: Registry, keyType: CodecClass<K> | string, valType: CodecClass<V> | string, rawValue: Uint8Array | string | Map<any, any> | undefined, type: 'BTreeMap' | 'HashMap' = 'HashMap') {
|
constructor (registry: Registry, keyType: CodecClass<K> | string, valType: CodecClass<V> | string, rawValue: Uint8Array | string | Map<any, any> | undefined, type: 'BTreeMap' | 'HashMap' = 'HashMap') {
|
||||||
|
|||||||
@@ -39,9 +39,7 @@ function decodeRaw<T extends Codec> (registry: Registry, typeName: CodecClass<T>
|
|||||||
|
|
||||||
export class WrapperKeepOpaque<T extends Codec> extends Bytes {
|
export class WrapperKeepOpaque<T extends Codec> extends Bytes {
|
||||||
readonly #Type: CodecClass<T>;
|
readonly #Type: CodecClass<T>;
|
||||||
|
|
||||||
readonly #decoded: T | null;
|
readonly #decoded: T | null;
|
||||||
|
|
||||||
readonly #opaqueName: OpaqueName;
|
readonly #opaqueName: OpaqueName;
|
||||||
|
|
||||||
constructor (registry: Registry, typeName: CodecClass<T> | string, value?: unknown, { opaqueName = 'WrapperKeepOpaque' }: Options = {}) {
|
constructor (registry: Registry, typeName: CodecClass<T> | string, value?: unknown, { opaqueName = 'WrapperKeepOpaque' }: Options = {}) {
|
||||||
|
|||||||
@@ -13,9 +13,11 @@ import { isU8a, u8aToHex } from '@polkadot/util';
|
|||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
export class bool extends Boolean implements Codec {
|
export class bool extends Boolean implements Codec {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength = 1;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
constructor (registry: Registry, value: bool | AnyBool | Uint8Array | number = false) {
|
constructor (registry: Registry, value: bool | AnyBool | Uint8Array | number = false) {
|
||||||
super(
|
super(
|
||||||
|
|||||||
@@ -34,9 +34,11 @@ function decodeDate (value: CodecDate | Date | AnyNumber): Date {
|
|||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
export class CodecDate extends Date implements INumber {
|
export class CodecDate extends Date implements INumber {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength = BITLENGTH / 8;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
constructor (registry: Registry, value: CodecDate | Date | AnyNumber = 0) {
|
constructor (registry: Registry, value: CodecDate | Date | AnyNumber = 0) {
|
||||||
super(decodeDate(value));
|
super(decodeDate(value));
|
||||||
|
|||||||
@@ -19,15 +19,14 @@ interface Options {
|
|||||||
* in some eth_* RPCs
|
* in some eth_* RPCs
|
||||||
*/
|
*/
|
||||||
export class Float extends Number implements IFloat {
|
export class Float extends Number implements IFloat {
|
||||||
readonly #bitLength: 32 | 64;
|
readonly encodedLength: number;
|
||||||
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
readonly encodedLength: number;
|
readonly #bitLength: 32 | 64;
|
||||||
|
|
||||||
readonly initialU8aLength?: number;
|
|
||||||
|
|
||||||
readonly registry: Registry;
|
|
||||||
|
|
||||||
constructor (registry: Registry, value?: AnyFloat, { bitLength = 32 }: Options = {}) {
|
constructor (registry: Registry, value?: AnyFloat, { bitLength = 32 }: Options = {}) {
|
||||||
super(
|
super(
|
||||||
|
|||||||
@@ -22,9 +22,11 @@ function decodeJson (value?: Record<string, unknown> | null): [string, any][] {
|
|||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
export class Json extends Map<string, any> implements Codec {
|
export class Json extends Map<string, any> implements Codec {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
constructor (registry: Registry, value?: Record<string, unknown> | null) {
|
constructor (registry: Registry, value?: Record<string, unknown> | null) {
|
||||||
const decoded = decodeJson(value);
|
const decoded = decodeJson(value);
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ import { isAscii, isUndefined, isUtf8, u8aToHex, u8aToString, u8aToU8a } from '@
|
|||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
export class Raw extends Uint8Array implements IU8a {
|
export class Raw extends Uint8Array implements IU8a {
|
||||||
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
public readonly initialU8aLength?: number;
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
public readonly registry: Registry;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description This ensures that operators such as clice, filter, map, etc. return
|
* @description This ensures that operators such as clice, filter, map, etc. return
|
||||||
|
|||||||
@@ -92,12 +92,13 @@ function decodeSet (setValues: SetValues, value: string[] | Set<string> | Uint8A
|
|||||||
* a bitwise representation of the values.
|
* a bitwise representation of the values.
|
||||||
*/
|
*/
|
||||||
export class CodecSet extends Set<string> implements ISet<string> {
|
export class CodecSet extends Set<string> implements ISet<string> {
|
||||||
public readonly registry: Registry;
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
readonly #allowed: SetValues;
|
readonly #allowed: SetValues;
|
||||||
|
|
||||||
readonly #byteLength: number;
|
readonly #byteLength: number;
|
||||||
|
|
||||||
constructor (registry: Registry, setValues: SetValues, value?: string[] | Set<string> | Uint8Array | BN | number | string, bitLength = 8) {
|
constructor (registry: Registry, setValues: SetValues, value?: string[] | Set<string> | Uint8Array | BN | number | string, bitLength = 8) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { AnyJson, BareOpts, Codec, CodecClass, Inspect, IStruct, IU8a, Registry } from '../types';
|
import type { AnyJson, BareOpts, Codec, CodecClass, Inspect, IStruct, IU8a, Registry } from '../types';
|
||||||
|
|
||||||
import { isBoolean, isFunction, isHex, isObject, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, u8aConcatStrict, u8aToHex, u8aToU8a } from '@polkadot/util';
|
import { isBoolean, isHex, isObject, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, u8aConcatStrict, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { compareMap, decodeU8aStruct, mapToTypeMap, typesToMap } from '../utils';
|
import { compareMap, decodeU8aStruct, mapToTypeMap, typesToMap } from '../utils';
|
||||||
|
|
||||||
@@ -103,14 +103,13 @@ export class Struct<
|
|||||||
V extends { [K in keyof S]: any } = { [K in keyof S]: any },
|
V extends { [K in keyof S]: any } = { [K in keyof S]: any },
|
||||||
// type names, mapped by key, name of Class in S
|
// type names, mapped by key, name of Class in S
|
||||||
E extends { [K in keyof S]: string } = { [K in keyof S]: string }> extends Map<keyof S, Codec> implements IStruct<keyof S> {
|
E extends { [K in keyof S]: string } = { [K in keyof S]: string }> extends Map<keyof S, Codec> implements IStruct<keyof S> {
|
||||||
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
public readonly initialU8aLength?: number;
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
public readonly registry: Registry;
|
|
||||||
|
|
||||||
readonly #jsonMap: Map<keyof S, string>;
|
readonly #jsonMap: Map<keyof S, string>;
|
||||||
|
|
||||||
readonly #Types: Definition;
|
readonly #Types: Definition;
|
||||||
|
|
||||||
constructor (registry: Registry, Types: S, value?: V | Map<unknown, unknown> | unknown[] | HexString | null, jsonMap = new Map<string, string>(), { definition, setDefinition = noopSetDefinition }: Options = {}) {
|
constructor (registry: Registry, Types: S, value?: V | Map<unknown, unknown> | unknown[] | HexString | null, jsonMap = new Map<string, string>(), { definition, setDefinition = noopSetDefinition }: Options = {}) {
|
||||||
@@ -277,7 +276,7 @@ export class Struct<
|
|||||||
const json: Record<string, AnyJson> = {};
|
const json: Record<string, AnyJson> = {};
|
||||||
|
|
||||||
for (const [k, v] of this.entries()) {
|
for (const [k, v] of this.entries()) {
|
||||||
json[k as string] = v && v.toHuman(isExtended);
|
json[k as string] = v.toHuman(isExtended);
|
||||||
}
|
}
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
@@ -290,11 +289,9 @@ export class Struct<
|
|||||||
const json: Record<string, AnyJson> = {};
|
const json: Record<string, AnyJson> = {};
|
||||||
|
|
||||||
for (const [k, v] of this.entries()) {
|
for (const [k, v] of this.entries()) {
|
||||||
const jsonKey = this.#jsonMap.get(k) || k;
|
// Here we pull out the entry against the JSON mapping (if supplied)
|
||||||
|
// since this representation goes over RPC and needs to be correct
|
||||||
// We actually log inside the U8a decoding and use JSON.stringify(...), which
|
json[(this.#jsonMap.get(k) || k) as string] = v.toJSON();
|
||||||
// means that the Vec may be partially populated (same applies to toHuman, same check)
|
|
||||||
json[jsonKey as string] = v && v.toJSON();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
@@ -307,11 +304,7 @@ export class Struct<
|
|||||||
const json: Record<string, AnyJson> = {};
|
const json: Record<string, AnyJson> = {};
|
||||||
|
|
||||||
for (const [k, v] of this.entries()) {
|
for (const [k, v] of this.entries()) {
|
||||||
const jsonKey = this.#jsonMap.get(k) || k;
|
json[k as string] = v.toPrimitive();
|
||||||
|
|
||||||
// We actually log inside the U8a decoding and use JSON.stringify(...), which
|
|
||||||
// means that the Vec may be partially populated (same applies to toHuman, same check)
|
|
||||||
json[jsonKey as string] = v && v.toPrimitive();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
@@ -339,15 +332,13 @@ export class Struct<
|
|||||||
const encoded: Uint8Array[] = [];
|
const encoded: Uint8Array[] = [];
|
||||||
|
|
||||||
for (const [k, v] of this.entries()) {
|
for (const [k, v] of this.entries()) {
|
||||||
if (v && isFunction(v.toU8a)) {
|
encoded.push(
|
||||||
encoded.push(
|
v.toU8a(
|
||||||
v.toU8a(
|
!isBare || isBoolean(isBare)
|
||||||
!isBare || isBoolean(isBare)
|
? isBare
|
||||||
? isBare
|
: isBare[k]
|
||||||
: isBare[k]
|
)
|
||||||
)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return u8aConcatStrict(encoded);
|
return u8aConcatStrict(encoded);
|
||||||
|
|||||||
@@ -49,11 +49,11 @@ function decodeText (value?: null | AnyString | AnyU8a | { toString: () => strin
|
|||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
export class Text extends String implements IText {
|
export class Text extends String implements IText {
|
||||||
|
readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
public initialU8aLength?: number;
|
||||||
public readonly initialU8aLength?: number;
|
public isStorageFallback?: boolean;
|
||||||
|
|
||||||
public readonly registry: Registry;
|
|
||||||
|
|
||||||
#override: string | null = null;
|
#override: string | null = null;
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.11.1' };
|
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.12.1' };
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user