@webb-tools/tangle-substrate-types 0.5.4 → 0.5.8

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 (38) hide show
  1. package/build/interfaces/augment-api-consts.d.ts +147 -4
  2. package/build/interfaces/augment-api-errors.d.ts +403 -0
  3. package/build/interfaces/augment-api-events.d.ts +543 -2
  4. package/build/interfaces/augment-api-query.d.ts +159 -2
  5. package/build/interfaces/augment-api-tx.d.ts +745 -1
  6. package/build/interfaces/augment-types.d.ts +21 -2
  7. package/build/interfaces/lookup.d.ts +1470 -356
  8. package/build/interfaces/lookup.js +1464 -350
  9. package/build/interfaces/registry.d.ts +61 -1
  10. package/build/interfaces/types-lookup.d.ts +1592 -348
  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/playground.ts +86 -0
  16. package/src/interfaces/augment-api-consts.ts +147 -11
  17. package/src/interfaces/augment-api-errors.ts +403 -0
  18. package/src/interfaces/augment-api-events.ts +321 -30
  19. package/src/interfaces/augment-api-query.ts +150 -87
  20. package/src/interfaces/augment-api-tx.ts +361 -54
  21. package/src/interfaces/augment-types.ts +21 -2
  22. package/src/interfaces/lookup.ts +1465 -351
  23. package/src/interfaces/registry.ts +61 -1
  24. package/src/interfaces/types-lookup.ts +1650 -348
  25. package/src/metadata/metadata.json +1 -1
  26. package/src/metadata/static-latest.ts +1 -1
  27. package/ts-types/playground.d.ts +1 -0
  28. package/ts-types/src/interfaces/augment-api-consts.d.ts +147 -4
  29. package/ts-types/src/interfaces/augment-api-errors.d.ts +403 -0
  30. package/ts-types/src/interfaces/augment-api-events.d.ts +543 -2
  31. package/ts-types/src/interfaces/augment-api-query.d.ts +159 -2
  32. package/ts-types/src/interfaces/augment-api-tx.d.ts +745 -1
  33. package/ts-types/src/interfaces/augment-types.d.ts +21 -2
  34. package/ts-types/src/interfaces/lookup.d.ts +1470 -356
  35. package/ts-types/src/interfaces/registry.d.ts +61 -1
  36. package/ts-types/src/interfaces/types-lookup.d.ts +1592 -348
  37. package/ts-types/src/metadata/static-latest.d.ts +1 -1
  38. package/ts-types/tsconfig.tsbuildinfo +1 -1
@@ -11,6 +11,95 @@ export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>
11
11
 
12
12
  declare module '@polkadot/api-base/types/errors' {
13
13
  interface AugmentedErrors<ApiType extends ApiTypes> {
14
+ assets: {
15
+ /**
16
+ * The asset-account already exists.
17
+ **/
18
+ AlreadyExists: AugmentedError<ApiType>;
19
+ /**
20
+ * The asset is not live, and likely being destroyed.
21
+ **/
22
+ AssetNotLive: AugmentedError<ApiType>;
23
+ /**
24
+ * Invalid metadata given.
25
+ **/
26
+ BadMetadata: AugmentedError<ApiType>;
27
+ /**
28
+ * Invalid witness data given.
29
+ **/
30
+ BadWitness: AugmentedError<ApiType>;
31
+ /**
32
+ * Account balance must be greater than or equal to the transfer amount.
33
+ **/
34
+ BalanceLow: AugmentedError<ApiType>;
35
+ /**
36
+ * Callback action resulted in error
37
+ **/
38
+ CallbackFailed: AugmentedError<ApiType>;
39
+ /**
40
+ * The origin account is frozen.
41
+ **/
42
+ Frozen: AugmentedError<ApiType>;
43
+ /**
44
+ * The asset status is not the expected status.
45
+ **/
46
+ IncorrectStatus: AugmentedError<ApiType>;
47
+ /**
48
+ * The asset ID is already taken.
49
+ **/
50
+ InUse: AugmentedError<ApiType>;
51
+ /**
52
+ * The asset is a live asset and is actively being used. Usually emit for operations such
53
+ * as `start_destroy` which require the asset to be in a destroying state.
54
+ **/
55
+ LiveAsset: AugmentedError<ApiType>;
56
+ /**
57
+ * Minimum balance should be non-zero.
58
+ **/
59
+ MinBalanceZero: AugmentedError<ApiType>;
60
+ /**
61
+ * The account to alter does not exist.
62
+ **/
63
+ NoAccount: AugmentedError<ApiType>;
64
+ /**
65
+ * The asset-account doesn't have an associated deposit.
66
+ **/
67
+ NoDeposit: AugmentedError<ApiType>;
68
+ /**
69
+ * The signing account has no permission to do the operation.
70
+ **/
71
+ NoPermission: AugmentedError<ApiType>;
72
+ /**
73
+ * The asset should be frozen before the given operation.
74
+ **/
75
+ NotFrozen: AugmentedError<ApiType>;
76
+ /**
77
+ * No approval exists that would allow the transfer.
78
+ **/
79
+ Unapproved: AugmentedError<ApiType>;
80
+ /**
81
+ * Unable to increment the consumer reference counters on the account. Either no provider
82
+ * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
83
+ * fewer then the maximum number of consumers has been reached.
84
+ **/
85
+ UnavailableConsumer: AugmentedError<ApiType>;
86
+ /**
87
+ * The given asset ID is unknown.
88
+ **/
89
+ Unknown: AugmentedError<ApiType>;
90
+ /**
91
+ * The operation would result in funds being burned.
92
+ **/
93
+ WouldBurn: AugmentedError<ApiType>;
94
+ /**
95
+ * The source account would not survive the transfer and it needs to stay alive.
96
+ **/
97
+ WouldDie: AugmentedError<ApiType>;
98
+ /**
99
+ * Generic error
100
+ **/
101
+ [key: string]: AugmentedError<ApiType>;
102
+ };
14
103
  babe: {
15
104
  /**
16
105
  * A given equivocation report is valid but already previously reported.
@@ -1064,6 +1153,116 @@ declare module '@polkadot/api-base/types/errors' {
1064
1153
  **/
1065
1154
  [key: string]: AugmentedError<ApiType>;
1066
1155
  };
1156
+ multiAssetDelegation: {
1157
+ /**
1158
+ * There are active services using the asset.
1159
+ **/
1160
+ ActiveServicesUsingAsset: AugmentedError<ApiType>;
1161
+ /**
1162
+ * The account is already a delegator.
1163
+ **/
1164
+ AlreadyDelegator: AugmentedError<ApiType>;
1165
+ /**
1166
+ * The operator is already leaving.
1167
+ **/
1168
+ AlreadyLeaving: AugmentedError<ApiType>;
1169
+ /**
1170
+ * The account is already an operator.
1171
+ **/
1172
+ AlreadyOperator: AugmentedError<ApiType>;
1173
+ /**
1174
+ * The asset ID is not found
1175
+ **/
1176
+ AssetNotFound: AugmentedError<ApiType>;
1177
+ /**
1178
+ * The asset is not whitelisted
1179
+ **/
1180
+ AssetNotWhitelisted: AugmentedError<ApiType>;
1181
+ /**
1182
+ * The blueprint ID is already whitelisted
1183
+ **/
1184
+ BlueprintAlreadyWhitelisted: AugmentedError<ApiType>;
1185
+ /**
1186
+ * The bond less request is not ready.
1187
+ **/
1188
+ BondLessNotReady: AugmentedError<ApiType>;
1189
+ /**
1190
+ * A bond less request already exists.
1191
+ **/
1192
+ BondLessRequestAlreadyExists: AugmentedError<ApiType>;
1193
+ /**
1194
+ * The bond less request is not satisfied.
1195
+ **/
1196
+ BondLessRequestNotSatisfied: AugmentedError<ApiType>;
1197
+ /**
1198
+ * The bond amount is too low.
1199
+ **/
1200
+ BondTooLow: AugmentedError<ApiType>;
1201
+ /**
1202
+ * The account cannot exit.
1203
+ **/
1204
+ CannotExit: AugmentedError<ApiType>;
1205
+ /**
1206
+ * The account has insufficient balance.
1207
+ **/
1208
+ InsufficientBalance: AugmentedError<ApiType>;
1209
+ /**
1210
+ * There is not active delegation
1211
+ **/
1212
+ NoActiveDelegation: AugmentedError<ApiType>;
1213
+ /**
1214
+ * There is no bond less request.
1215
+ **/
1216
+ NoBondLessRequest: AugmentedError<ApiType>;
1217
+ /**
1218
+ * There is no scheduled bond less request.
1219
+ **/
1220
+ NoScheduledBondLess: AugmentedError<ApiType>;
1221
+ /**
1222
+ * The operator is not active.
1223
+ **/
1224
+ NotActiveOperator: AugmentedError<ApiType>;
1225
+ /**
1226
+ * The account is not an operator.
1227
+ **/
1228
+ NotAnOperator: AugmentedError<ApiType>;
1229
+ /**
1230
+ * The origin is not authorized to perform this action
1231
+ **/
1232
+ NotAuthorized: AugmentedError<ApiType>;
1233
+ /**
1234
+ * The account is not a delegator.
1235
+ **/
1236
+ NotDelegator: AugmentedError<ApiType>;
1237
+ /**
1238
+ * The account is not leaving as an operator.
1239
+ **/
1240
+ NotLeavingOperator: AugmentedError<ApiType>;
1241
+ /**
1242
+ * The round does not match the scheduled leave round.
1243
+ **/
1244
+ NotLeavingRound: AugmentedError<ApiType>;
1245
+ /**
1246
+ * The operator is not offline.
1247
+ **/
1248
+ NotOfflineOperator: AugmentedError<ApiType>;
1249
+ /**
1250
+ * There is no withdraw request.
1251
+ **/
1252
+ NoWithdrawRequest: AugmentedError<ApiType>;
1253
+ /**
1254
+ * The unstake is not ready.
1255
+ **/
1256
+ UnstakeNotReady: AugmentedError<ApiType>;
1257
+ /**
1258
+ * A withdraw request already exists.
1259
+ **/
1260
+ WithdrawRequestAlreadyExists: AugmentedError<ApiType>;
1261
+ /**
1262
+ * Generic error
1263
+ **/
1264
+ [key: string]: AugmentedError<ApiType>;
1265
+ };
1067
1266
  multisig: {
1068
1267
  /**
1069
1268
  * Call is already approved by this signatory.
@@ -1306,6 +1505,44 @@ declare module '@polkadot/api-base/types/errors' {
1306
1505
  **/
1307
1506
  [key: string]: AugmentedError<ApiType>;
1308
1507
  };
1508
+ proxy: {
1509
+ /**
1510
+ * Account is already a proxy.
1511
+ **/
1512
+ Duplicate: AugmentedError<ApiType>;
1513
+ /**
1514
+ * Call may not be made by proxy because it may escalate its privileges.
1515
+ **/
1516
+ NoPermission: AugmentedError<ApiType>;
1517
+ /**
1518
+ * Cannot add self as proxy.
1519
+ **/
1520
+ NoSelfProxy: AugmentedError<ApiType>;
1521
+ /**
1522
+ * Proxy registration not found.
1523
+ **/
1524
+ NotFound: AugmentedError<ApiType>;
1525
+ /**
1526
+ * Sender is not a proxy of the account to be proxied.
1527
+ **/
1528
+ NotProxy: AugmentedError<ApiType>;
1529
+ /**
1530
+ * There are too many proxies registered or too many announcements pending.
1531
+ **/
1532
+ TooMany: AugmentedError<ApiType>;
1533
+ /**
1534
+ * Announcement, if made at all, was made too recently.
1535
+ **/
1536
+ Unannounced: AugmentedError<ApiType>;
1537
+ /**
1538
+ * A call which is incompatible with the proxy type's filter was attempted.
1539
+ **/
1540
+ Unproxyable: AugmentedError<ApiType>;
1541
+ /**
1542
+ * Generic error
1543
+ **/
1544
+ [key: string]: AugmentedError<ApiType>;
1545
+ };
1309
1546
  roles: {
1310
1547
  /**
1311
1548
  * Rewards already claimed
@@ -1573,6 +1810,172 @@ declare module '@polkadot/api-base/types/errors' {
1573
1810
  **/
1574
1811
  [key: string]: AugmentedError<ApiType>;
1575
1812
  };
1813
+ sygmaAccessSegregator: {
1814
+ /**
1815
+ * Failed to grant extrinsic access permission to an account
1816
+ **/
1817
+ GrantAccessFailed: AugmentedError<ApiType>;
1818
+ /**
1819
+ * Function unimplemented
1820
+ **/
1821
+ Unimplemented: AugmentedError<ApiType>;
1822
+ /**
1823
+ * Generic error
1824
+ **/
1825
+ [key: string]: AugmentedError<ApiType>;
1826
+ };
1827
+ sygmaBasicFeeHandler: {
1828
+ /**
1829
+ * Account has not gained access permission
1830
+ **/
1831
+ AccessDenied: AugmentedError<ApiType>;
1832
+ /**
1833
+ * Function unimplemented
1834
+ **/
1835
+ Unimplemented: AugmentedError<ApiType>;
1836
+ /**
1837
+ * Generic error
1838
+ **/
1839
+ [key: string]: AugmentedError<ApiType>;
1840
+ };
1841
+ sygmaBridge: {
1842
+ /**
1843
+ * Account has not gained access permission
1844
+ **/
1845
+ AccessDenied: AugmentedError<ApiType>;
1846
+ /**
1847
+ * Asset not bound to a resource id
1848
+ **/
1849
+ AssetNotBound: AugmentedError<ApiType>;
1850
+ /**
1851
+ * Protected operation, must be performed by relayer
1852
+ **/
1853
+ BadMpcSignature: AugmentedError<ApiType>;
1854
+ /**
1855
+ * Bridge is paused
1856
+ **/
1857
+ BridgePaused: AugmentedError<ApiType>;
1858
+ /**
1859
+ * Bridge is unpaused
1860
+ **/
1861
+ BridgeUnpaused: AugmentedError<ApiType>;
1862
+ /**
1863
+ * Failed on the decimal converter
1864
+ **/
1865
+ DecimalConversionFail: AugmentedError<ApiType>;
1866
+ /**
1867
+ * Deposit nonce has reached max integer value
1868
+ **/
1869
+ DepositNonceOverflow: AugmentedError<ApiType>;
1870
+ /**
1871
+ * Dest chain id not match
1872
+ **/
1873
+ DestChainIDNotMatch: AugmentedError<ApiType>;
1874
+ /**
1875
+ * Dest domain not supported
1876
+ **/
1877
+ DestDomainNotSupported: AugmentedError<ApiType>;
1878
+ /**
1879
+ * Proposal list empty
1880
+ **/
1881
+ EmptyProposalList: AugmentedError<ApiType>;
1882
+ /**
1883
+ * Failed to extract destination data
1884
+ **/
1885
+ ExtractDestDataFailed: AugmentedError<ApiType>;
1886
+ /**
1887
+ * The withdrawn amount can not cover the fee payment
1888
+ **/
1889
+ FeeTooExpensive: AugmentedError<ApiType>;
1890
+ /**
1891
+ * Insufficient balance on sender account
1892
+ **/
1893
+ InsufficientBalance: AugmentedError<ApiType>;
1894
+ InvalidDepositDataInvalidAmount: AugmentedError<ApiType>;
1895
+ /**
1896
+ * Deposit data not correct
1897
+ **/
1898
+ InvalidDepositDataInvalidLength: AugmentedError<ApiType>;
1899
+ InvalidDepositDataInvalidRecipient: AugmentedError<ApiType>;
1900
+ InvalidDepositDataInvalidRecipientLength: AugmentedError<ApiType>;
1901
+ InvalidDepositDataRecipientLengthNotMatch: AugmentedError<ApiType>;
1902
+ /**
1903
+ * Fee config option missing
1904
+ **/
1905
+ MissingFeeConfig: AugmentedError<ApiType>;
1906
+ /**
1907
+ * MPC address not set
1908
+ **/
1909
+ MissingMpcAddress: AugmentedError<ApiType>;
1910
+ /**
1911
+ * MPC address can not be updated
1912
+ **/
1913
+ MpcAddrNotUpdatable: AugmentedError<ApiType>;
1914
+ /**
1915
+ * Asset not bound to a liquidity holder account
1916
+ **/
1917
+ NoLiquidityHolderAccountBound: AugmentedError<ApiType>;
1918
+ /**
1919
+ * Proposal has either failed or succeeded
1920
+ **/
1921
+ ProposalAlreadyComplete: AugmentedError<ApiType>;
1922
+ /**
1923
+ * Asset transactor execution failed
1924
+ **/
1925
+ TransactFailedDeposit: AugmentedError<ApiType>;
1926
+ TransactFailedFeeDeposit: AugmentedError<ApiType>;
1927
+ TransactFailedHoldInReserved: AugmentedError<ApiType>;
1928
+ TransactFailedReleaseFromReserved: AugmentedError<ApiType>;
1929
+ TransactFailedWithdraw: AugmentedError<ApiType>;
1930
+ /**
1931
+ * Transactor operation failed
1932
+ **/
1933
+ TransactorFailed: AugmentedError<ApiType>;
1934
+ /**
1935
+ * Function unimplemented
1936
+ **/
1937
+ Unimplemented: AugmentedError<ApiType>;
1938
+ /**
1939
+ * Generic error
1940
+ **/
1941
+ [key: string]: AugmentedError<ApiType>;
1942
+ };
1943
+ sygmaFeeHandlerRouter: {
1944
+ /**
1945
+ * Account has not gained access permission
1946
+ **/
1947
+ AccessDenied: AugmentedError<ApiType>;
1948
+ /**
1949
+ * Function unimplemented
1950
+ **/
1951
+ Unimplemented: AugmentedError<ApiType>;
1952
+ /**
1953
+ * Generic error
1954
+ **/
1955
+ [key: string]: AugmentedError<ApiType>;
1956
+ };
1957
+ sygmaPercentageFeeHandler: {
1958
+ /**
1959
+ * Account has not gained access permission
1960
+ **/
1961
+ AccessDenied: AugmentedError<ApiType>;
1962
+ /**
1963
+ * Fee rate is out of range [0, 10000)
1964
+ **/
1965
+ FeeRateOutOfRange: AugmentedError<ApiType>;
1966
+ /**
1967
+ * Percentage fee bound is invalid
1968
+ **/
1969
+ InvalidFeeBound: AugmentedError<ApiType>;
1970
+ /**
1971
+ * Function unimplemented
1972
+ **/
1973
+ Unimplemented: AugmentedError<ApiType>;
1974
+ /**
1975
+ * Generic error
1976
+ **/
1977
+ [key: string]: AugmentedError<ApiType>;
1978
+ };
1576
1979
  system: {
1577
1980
  /**
1578
1981
  * The origin filter prevent the call to be dispatched.