@webb-tools/tangle-substrate-types 0.5.5 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/build/interfaces/augment-api-consts.d.ts +104 -4
  2. package/build/interfaces/augment-api-errors.d.ts +365 -0
  3. package/build/interfaces/augment-api-events.d.ts +495 -2
  4. package/build/interfaces/augment-api-query.d.ts +140 -2
  5. package/build/interfaces/augment-api-tx.d.ts +609 -1
  6. package/build/interfaces/augment-types.d.ts +21 -2
  7. package/build/interfaces/lookup.d.ts +1377 -369
  8. package/build/interfaces/lookup.js +1360 -352
  9. package/build/interfaces/registry.d.ts +57 -1
  10. package/build/interfaces/types-lookup.d.ts +1477 -353
  11. package/build/metadata/static-latest.d.ts +1 -1
  12. package/build/metadata/static-latest.js +1 -1
  13. package/build/package.json +1 -1
  14. package/package.json +4 -4
  15. package/src/interfaces/augment-api-consts.ts +104 -4
  16. package/src/interfaces/augment-api-errors.ts +365 -0
  17. package/src/interfaces/augment-api-events.ts +294 -2
  18. package/src/interfaces/augment-api-query.ts +131 -2
  19. package/src/interfaces/augment-api-tx.ts +315 -1
  20. package/src/interfaces/augment-types.ts +21 -2
  21. package/src/interfaces/lookup.ts +1361 -353
  22. package/src/interfaces/registry.ts +57 -1
  23. package/src/interfaces/types-lookup.ts +1531 -353
  24. package/src/metadata/metadata.json +1 -1
  25. package/src/metadata/static-latest.ts +1 -1
  26. package/ts-types/src/interfaces/augment-api-consts.d.ts +104 -4
  27. package/ts-types/src/interfaces/augment-api-errors.d.ts +365 -0
  28. package/ts-types/src/interfaces/augment-api-events.d.ts +495 -2
  29. package/ts-types/src/interfaces/augment-api-query.d.ts +140 -2
  30. package/ts-types/src/interfaces/augment-api-tx.d.ts +609 -1
  31. package/ts-types/src/interfaces/augment-types.d.ts +21 -2
  32. package/ts-types/src/interfaces/lookup.d.ts +1377 -369
  33. package/ts-types/src/interfaces/registry.d.ts +57 -1
  34. package/ts-types/src/interfaces/types-lookup.d.ts +1477 -353
  35. package/ts-types/src/metadata/static-latest.d.ts +1 -1
  36. package/ts-types/tsconfig.tsbuildinfo +1 -1
@@ -1,12 +1,50 @@
1
1
  import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
- import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
- import type { Codec } from '@polkadot/types-codec/types';
5
- import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
6
- import { SpWeightsWeightV2Weight, FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpWeightsRuntimeDbWeight, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
3
+ import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
+ import type { AccountId32, H160, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
6
+ import { SpWeightsWeightV2Weight, FrameSupportPalletId, StagingXcmV4AssetAssetId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpWeightsRuntimeDbWeight, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
7
7
  export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
9
9
  interface AugmentedConsts<ApiType extends ApiTypes> {
10
+ assets: {
11
+ /**
12
+ * The amount of funds that must be reserved when creating a new approval.
13
+ **/
14
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
15
+ /**
16
+ * The amount of funds that must be reserved for a non-provider asset account to be
17
+ * maintained.
18
+ **/
19
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
20
+ /**
21
+ * The basic amount of funds that must be reserved for an asset.
22
+ **/
23
+ assetDeposit: u128 & AugmentedConst<ApiType>;
24
+ /**
25
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
26
+ **/
27
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
28
+ /**
29
+ * The additional funds that must be reserved for the number of bytes you store in your
30
+ * metadata.
31
+ **/
32
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
33
+ /**
34
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
35
+ *
36
+ * Must be configured to result in a weight that makes each call fit in a block.
37
+ **/
38
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
39
+ /**
40
+ * The maximum length of a name or symbol stored on-chain.
41
+ **/
42
+ stringLimit: u32 & AugmentedConst<ApiType>;
43
+ /**
44
+ * Generic const
45
+ **/
46
+ [key: string]: Codec;
47
+ };
10
48
  babe: {
11
49
  /**
12
50
  * The amount of time, in slots, that each epoch should last.
@@ -497,6 +535,40 @@ declare module '@polkadot/api-base/types/consts' {
497
535
  **/
498
536
  [key: string]: Codec;
499
537
  };
538
+ multiAssetDelegation: {
539
+ /**
540
+ * The duration for which the bond is locked.
541
+ **/
542
+ bondDuration: u32 & AugmentedConst<ApiType>;
543
+ /**
544
+ * Number of rounds that delegation bond less requests must wait before being executable.
545
+ **/
546
+ delegationBondLessDelay: u32 & AugmentedConst<ApiType>;
547
+ /**
548
+ * Number of rounds that delegators remain bonded before the exit request is executable.
549
+ **/
550
+ leaveDelegatorsDelay: u32 & AugmentedConst<ApiType>;
551
+ /**
552
+ * Number of rounds that operators remain bonded before the exit request is executable.
553
+ **/
554
+ leaveOperatorsDelay: u32 & AugmentedConst<ApiType>;
555
+ /**
556
+ * The minimum amount of bond required for a delegate.
557
+ **/
558
+ minDelegateAmount: u128 & AugmentedConst<ApiType>;
559
+ /**
560
+ * The minimum amount of bond required for an operator.
561
+ **/
562
+ minOperatorBondAmount: u128 & AugmentedConst<ApiType>;
563
+ /**
564
+ * Number of rounds operator requests to decrease self-bond must wait to be executable.
565
+ **/
566
+ operatorBondLessDelay: u32 & AugmentedConst<ApiType>;
567
+ /**
568
+ * Generic const
569
+ **/
570
+ [key: string]: Codec;
571
+ };
500
572
  multisig: {
501
573
  /**
502
574
  * The base amount of currency needed to reserve for creating a multisig execution or to
@@ -693,6 +765,34 @@ declare module '@polkadot/api-base/types/consts' {
693
765
  **/
694
766
  [key: string]: Codec;
695
767
  };
768
+ sygmaBridge: {
769
+ /**
770
+ * EIP712 Verifying contract address
771
+ * This is used in EIP712 typed data domain
772
+ **/
773
+ destVerifyingContractAddress: H160 & AugmentedConst<ApiType>;
774
+ /**
775
+ * Pallet ChainID
776
+ * This is used in EIP712 typed data domain
777
+ **/
778
+ eip712ChainID: U256 & AugmentedConst<ApiType>;
779
+ /**
780
+ * Fee reserve account
781
+ **/
782
+ feeReserveAccount: AccountId32 & AugmentedConst<ApiType>;
783
+ /**
784
+ * AssetId and ResourceId pairs
785
+ **/
786
+ resourcePairs: Vec<ITuple<[StagingXcmV4AssetAssetId, U8aFixed]>> & AugmentedConst<ApiType>;
787
+ /**
788
+ * Bridge transfer reserve accounts mapping with designated assets
789
+ **/
790
+ transferReserveAccounts: BTreeMap<StagingXcmV4AssetAssetId, AccountId32> & AugmentedConst<ApiType>;
791
+ /**
792
+ * Generic const
793
+ **/
794
+ [key: string]: Codec;
795
+ };
696
796
  system: {
697
797
  /**
698
798
  * Maximum number of block number to block hash mappings to keep (oldest pruned first).
@@ -3,6 +3,95 @@ import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
3
3
  export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
4
4
  declare module '@polkadot/api-base/types/errors' {
5
5
  interface AugmentedErrors<ApiType extends ApiTypes> {
6
+ assets: {
7
+ /**
8
+ * The asset-account already exists.
9
+ **/
10
+ AlreadyExists: AugmentedError<ApiType>;
11
+ /**
12
+ * The asset is not live, and likely being destroyed.
13
+ **/
14
+ AssetNotLive: AugmentedError<ApiType>;
15
+ /**
16
+ * Invalid metadata given.
17
+ **/
18
+ BadMetadata: AugmentedError<ApiType>;
19
+ /**
20
+ * Invalid witness data given.
21
+ **/
22
+ BadWitness: AugmentedError<ApiType>;
23
+ /**
24
+ * Account balance must be greater than or equal to the transfer amount.
25
+ **/
26
+ BalanceLow: AugmentedError<ApiType>;
27
+ /**
28
+ * Callback action resulted in error
29
+ **/
30
+ CallbackFailed: AugmentedError<ApiType>;
31
+ /**
32
+ * The origin account is frozen.
33
+ **/
34
+ Frozen: AugmentedError<ApiType>;
35
+ /**
36
+ * The asset status is not the expected status.
37
+ **/
38
+ IncorrectStatus: AugmentedError<ApiType>;
39
+ /**
40
+ * The asset ID is already taken.
41
+ **/
42
+ InUse: AugmentedError<ApiType>;
43
+ /**
44
+ * The asset is a live asset and is actively being used. Usually emit for operations such
45
+ * as `start_destroy` which require the asset to be in a destroying state.
46
+ **/
47
+ LiveAsset: AugmentedError<ApiType>;
48
+ /**
49
+ * Minimum balance should be non-zero.
50
+ **/
51
+ MinBalanceZero: AugmentedError<ApiType>;
52
+ /**
53
+ * The account to alter does not exist.
54
+ **/
55
+ NoAccount: AugmentedError<ApiType>;
56
+ /**
57
+ * The asset-account doesn't have an associated deposit.
58
+ **/
59
+ NoDeposit: AugmentedError<ApiType>;
60
+ /**
61
+ * The signing account has no permission to do the operation.
62
+ **/
63
+ NoPermission: AugmentedError<ApiType>;
64
+ /**
65
+ * The asset should be frozen before the given operation.
66
+ **/
67
+ NotFrozen: AugmentedError<ApiType>;
68
+ /**
69
+ * No approval exists that would allow the transfer.
70
+ **/
71
+ Unapproved: AugmentedError<ApiType>;
72
+ /**
73
+ * Unable to increment the consumer reference counters on the account. Either no provider
74
+ * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
75
+ * fewer then the maximum number of consumers has been reached.
76
+ **/
77
+ UnavailableConsumer: AugmentedError<ApiType>;
78
+ /**
79
+ * The given asset ID is unknown.
80
+ **/
81
+ Unknown: AugmentedError<ApiType>;
82
+ /**
83
+ * The operation would result in funds being burned.
84
+ **/
85
+ WouldBurn: AugmentedError<ApiType>;
86
+ /**
87
+ * The source account would not survive the transfer and it needs to stay alive.
88
+ **/
89
+ WouldDie: AugmentedError<ApiType>;
90
+ /**
91
+ * Generic error
92
+ **/
93
+ [key: string]: AugmentedError<ApiType>;
94
+ };
6
95
  babe: {
7
96
  /**
8
97
  * A given equivocation report is valid but already previously reported.
@@ -1056,6 +1145,116 @@ declare module '@polkadot/api-base/types/errors' {
1056
1145
  **/
1057
1146
  [key: string]: AugmentedError<ApiType>;
1058
1147
  };
1148
+ multiAssetDelegation: {
1149
+ /**
1150
+ * There are active services using the asset.
1151
+ **/
1152
+ ActiveServicesUsingAsset: AugmentedError<ApiType>;
1153
+ /**
1154
+ * The account is already a delegator.
1155
+ **/
1156
+ AlreadyDelegator: AugmentedError<ApiType>;
1157
+ /**
1158
+ * The operator is already leaving.
1159
+ **/
1160
+ AlreadyLeaving: AugmentedError<ApiType>;
1161
+ /**
1162
+ * The account is already an operator.
1163
+ **/
1164
+ AlreadyOperator: AugmentedError<ApiType>;
1165
+ /**
1166
+ * The asset ID is not found
1167
+ **/
1168
+ AssetNotFound: AugmentedError<ApiType>;
1169
+ /**
1170
+ * The asset is not whitelisted
1171
+ **/
1172
+ AssetNotWhitelisted: AugmentedError<ApiType>;
1173
+ /**
1174
+ * The blueprint ID is already whitelisted
1175
+ **/
1176
+ BlueprintAlreadyWhitelisted: AugmentedError<ApiType>;
1177
+ /**
1178
+ * The bond less request is not ready.
1179
+ **/
1180
+ BondLessNotReady: AugmentedError<ApiType>;
1181
+ /**
1182
+ * A bond less request already exists.
1183
+ **/
1184
+ BondLessRequestAlreadyExists: AugmentedError<ApiType>;
1185
+ /**
1186
+ * The bond less request is not satisfied.
1187
+ **/
1188
+ BondLessRequestNotSatisfied: AugmentedError<ApiType>;
1189
+ /**
1190
+ * The bond amount is too low.
1191
+ **/
1192
+ BondTooLow: AugmentedError<ApiType>;
1193
+ /**
1194
+ * The account cannot exit.
1195
+ **/
1196
+ CannotExit: AugmentedError<ApiType>;
1197
+ /**
1198
+ * The account has insufficient balance.
1199
+ **/
1200
+ InsufficientBalance: AugmentedError<ApiType>;
1201
+ /**
1202
+ * There is not active delegation
1203
+ **/
1204
+ NoActiveDelegation: AugmentedError<ApiType>;
1205
+ /**
1206
+ * There is no bond less request.
1207
+ **/
1208
+ NoBondLessRequest: AugmentedError<ApiType>;
1209
+ /**
1210
+ * There is no scheduled bond less request.
1211
+ **/
1212
+ NoScheduledBondLess: AugmentedError<ApiType>;
1213
+ /**
1214
+ * The operator is not active.
1215
+ **/
1216
+ NotActiveOperator: AugmentedError<ApiType>;
1217
+ /**
1218
+ * The account is not an operator.
1219
+ **/
1220
+ NotAnOperator: AugmentedError<ApiType>;
1221
+ /**
1222
+ * The origin is not authorized to perform this action
1223
+ **/
1224
+ NotAuthorized: AugmentedError<ApiType>;
1225
+ /**
1226
+ * The account is not a delegator.
1227
+ **/
1228
+ NotDelegator: AugmentedError<ApiType>;
1229
+ /**
1230
+ * The account is not leaving as an operator.
1231
+ **/
1232
+ NotLeavingOperator: AugmentedError<ApiType>;
1233
+ /**
1234
+ * The round does not match the scheduled leave round.
1235
+ **/
1236
+ NotLeavingRound: AugmentedError<ApiType>;
1237
+ /**
1238
+ * The operator is not offline.
1239
+ **/
1240
+ NotOfflineOperator: AugmentedError<ApiType>;
1241
+ /**
1242
+ * There is no withdraw request.
1243
+ **/
1244
+ NoWithdrawRequest: AugmentedError<ApiType>;
1245
+ /**
1246
+ * The unstake is not ready.
1247
+ **/
1248
+ UnstakeNotReady: AugmentedError<ApiType>;
1249
+ /**
1250
+ * A withdraw request already exists.
1251
+ **/
1252
+ WithdrawRequestAlreadyExists: AugmentedError<ApiType>;
1253
+ /**
1254
+ * Generic error
1255
+ **/
1256
+ [key: string]: AugmentedError<ApiType>;
1257
+ };
1059
1258
  multisig: {
1060
1259
  /**
1061
1260
  * Call is already approved by this signatory.
@@ -1603,6 +1802,172 @@ declare module '@polkadot/api-base/types/errors' {
1603
1802
  **/
1604
1803
  [key: string]: AugmentedError<ApiType>;
1605
1804
  };
1805
+ sygmaAccessSegregator: {
1806
+ /**
1807
+ * Failed to grant extrinsic access permission to an account
1808
+ **/
1809
+ GrantAccessFailed: AugmentedError<ApiType>;
1810
+ /**
1811
+ * Function unimplemented
1812
+ **/
1813
+ Unimplemented: AugmentedError<ApiType>;
1814
+ /**
1815
+ * Generic error
1816
+ **/
1817
+ [key: string]: AugmentedError<ApiType>;
1818
+ };
1819
+ sygmaBasicFeeHandler: {
1820
+ /**
1821
+ * Account has not gained access permission
1822
+ **/
1823
+ AccessDenied: AugmentedError<ApiType>;
1824
+ /**
1825
+ * Function unimplemented
1826
+ **/
1827
+ Unimplemented: AugmentedError<ApiType>;
1828
+ /**
1829
+ * Generic error
1830
+ **/
1831
+ [key: string]: AugmentedError<ApiType>;
1832
+ };
1833
+ sygmaBridge: {
1834
+ /**
1835
+ * Account has not gained access permission
1836
+ **/
1837
+ AccessDenied: AugmentedError<ApiType>;
1838
+ /**
1839
+ * Asset not bound to a resource id
1840
+ **/
1841
+ AssetNotBound: AugmentedError<ApiType>;
1842
+ /**
1843
+ * Protected operation, must be performed by relayer
1844
+ **/
1845
+ BadMpcSignature: AugmentedError<ApiType>;
1846
+ /**
1847
+ * Bridge is paused
1848
+ **/
1849
+ BridgePaused: AugmentedError<ApiType>;
1850
+ /**
1851
+ * Bridge is unpaused
1852
+ **/
1853
+ BridgeUnpaused: AugmentedError<ApiType>;
1854
+ /**
1855
+ * Failed on the decimal converter
1856
+ **/
1857
+ DecimalConversionFail: AugmentedError<ApiType>;
1858
+ /**
1859
+ * Deposit nonce has reached max integer value
1860
+ **/
1861
+ DepositNonceOverflow: AugmentedError<ApiType>;
1862
+ /**
1863
+ * Dest chain id not match
1864
+ **/
1865
+ DestChainIDNotMatch: AugmentedError<ApiType>;
1866
+ /**
1867
+ * Dest domain not supported
1868
+ **/
1869
+ DestDomainNotSupported: AugmentedError<ApiType>;
1870
+ /**
1871
+ * Proposal list empty
1872
+ **/
1873
+ EmptyProposalList: AugmentedError<ApiType>;
1874
+ /**
1875
+ * Failed to extract destination data
1876
+ **/
1877
+ ExtractDestDataFailed: AugmentedError<ApiType>;
1878
+ /**
1879
+ * The withdrawn amount can not cover the fee payment
1880
+ **/
1881
+ FeeTooExpensive: AugmentedError<ApiType>;
1882
+ /**
1883
+ * Insufficient balance on sender account
1884
+ **/
1885
+ InsufficientBalance: AugmentedError<ApiType>;
1886
+ InvalidDepositDataInvalidAmount: AugmentedError<ApiType>;
1887
+ /**
1888
+ * Deposit data not correct
1889
+ **/
1890
+ InvalidDepositDataInvalidLength: AugmentedError<ApiType>;
1891
+ InvalidDepositDataInvalidRecipient: AugmentedError<ApiType>;
1892
+ InvalidDepositDataInvalidRecipientLength: AugmentedError<ApiType>;
1893
+ InvalidDepositDataRecipientLengthNotMatch: AugmentedError<ApiType>;
1894
+ /**
1895
+ * Fee config option missing
1896
+ **/
1897
+ MissingFeeConfig: AugmentedError<ApiType>;
1898
+ /**
1899
+ * MPC address not set
1900
+ **/
1901
+ MissingMpcAddress: AugmentedError<ApiType>;
1902
+ /**
1903
+ * MPC address can not be updated
1904
+ **/
1905
+ MpcAddrNotUpdatable: AugmentedError<ApiType>;
1906
+ /**
1907
+ * Asset not bound to a liquidity holder account
1908
+ **/
1909
+ NoLiquidityHolderAccountBound: AugmentedError<ApiType>;
1910
+ /**
1911
+ * Proposal has either failed or succeeded
1912
+ **/
1913
+ ProposalAlreadyComplete: AugmentedError<ApiType>;
1914
+ /**
1915
+ * Asset transactor execution failed
1916
+ **/
1917
+ TransactFailedDeposit: AugmentedError<ApiType>;
1918
+ TransactFailedFeeDeposit: AugmentedError<ApiType>;
1919
+ TransactFailedHoldInReserved: AugmentedError<ApiType>;
1920
+ TransactFailedReleaseFromReserved: AugmentedError<ApiType>;
1921
+ TransactFailedWithdraw: AugmentedError<ApiType>;
1922
+ /**
1923
+ * Transactor operation failed
1924
+ **/
1925
+ TransactorFailed: AugmentedError<ApiType>;
1926
+ /**
1927
+ * Function unimplemented
1928
+ **/
1929
+ Unimplemented: AugmentedError<ApiType>;
1930
+ /**
1931
+ * Generic error
1932
+ **/
1933
+ [key: string]: AugmentedError<ApiType>;
1934
+ };
1935
+ sygmaFeeHandlerRouter: {
1936
+ /**
1937
+ * Account has not gained access permission
1938
+ **/
1939
+ AccessDenied: AugmentedError<ApiType>;
1940
+ /**
1941
+ * Function unimplemented
1942
+ **/
1943
+ Unimplemented: AugmentedError<ApiType>;
1944
+ /**
1945
+ * Generic error
1946
+ **/
1947
+ [key: string]: AugmentedError<ApiType>;
1948
+ };
1949
+ sygmaPercentageFeeHandler: {
1950
+ /**
1951
+ * Account has not gained access permission
1952
+ **/
1953
+ AccessDenied: AugmentedError<ApiType>;
1954
+ /**
1955
+ * Fee rate is out of range [0, 10000)
1956
+ **/
1957
+ FeeRateOutOfRange: AugmentedError<ApiType>;
1958
+ /**
1959
+ * Percentage fee bound is invalid
1960
+ **/
1961
+ InvalidFeeBound: AugmentedError<ApiType>;
1962
+ /**
1963
+ * Function unimplemented
1964
+ **/
1965
+ Unimplemented: AugmentedError<ApiType>;
1966
+ /**
1967
+ * Generic error
1968
+ **/
1969
+ [key: string]: AugmentedError<ApiType>;
1970
+ };
1606
1971
  system: {
1607
1972
  /**
1608
1973
  * The origin filter prevent the call to be dispatched.