@polymeshassociation/polymesh-types 7.8.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +2 -2
- package/package.json +1 -1
- package/polkadot/augment-api-consts.d.ts +3 -2
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +28 -28
- package/polkadot/augment-api-events.d.ts +39 -1
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +38 -30
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +259 -56
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +312 -229
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +312 -229
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/registry.d.ts +3 -1
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/types-lookup.d.ts +322 -230
- package/polkadot/types-lookup.d.ts.map +1 -1
|
@@ -2040,15 +2040,31 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2040
2040
|
/**
|
|
2041
2041
|
* Create a settlement with batched leg affirmations.
|
|
2042
2042
|
*
|
|
2043
|
+
* All proofs in the batch are verified with a context derived from the signing account,
|
|
2044
|
+
* so another account cannot extract and submit a subset of the batch. Clients must
|
|
2045
|
+
* generate the proofs with [`non_relayer_batch_proof_context`] for that account.
|
|
2046
|
+
*
|
|
2043
2047
|
* # Arguments
|
|
2044
2048
|
* * `origin` - The origin of the call.
|
|
2045
2049
|
* * `proof` - The settlement proof with batched leg affirmations.
|
|
2046
2050
|
*
|
|
2047
2051
|
* # Errors
|
|
2048
2052
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2049
|
-
* * `
|
|
2053
|
+
* * `BatchedSettlementInvalidLegRefs` if an included affirmation references a different
|
|
2054
|
+
* settlement or leg.
|
|
2050
2055
|
* * `SettlementMissingLegs` if the settlement has no legs.
|
|
2051
2056
|
* * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
|
|
2057
|
+
* * `SettlementAlreadyExists` if this settlement reference has already been created.
|
|
2058
|
+
* * `AssetMissing` if a revealed asset or a leg's asset keys are missing.
|
|
2059
|
+
* * `AssetIsFrozen` if a revealed asset is frozen.
|
|
2060
|
+
* * `CurveTreeRootNotFound` if an asset or account curve-tree root is missing or expired.
|
|
2061
|
+
* * `CurveTreeError` if a leg's mediator count cannot be derived.
|
|
2062
|
+
* * `NullifierAlreadyUsed` if an included affirmation's account state nullifier has
|
|
2063
|
+
* already been used.
|
|
2064
|
+
* * `SettlementNotPending`, `LegNotFound`, `AlreadyRejected`, `AlreadyFinalized`,
|
|
2065
|
+
* `InvalidAffirmationStatusTransition`, or `NoPendingAffirmations` if an included
|
|
2066
|
+
* sender/receiver affirmation is invalid.
|
|
2067
|
+
* * `InvalidProof` if the settlement or an included affirmation proof is invalid.
|
|
2052
2068
|
**/
|
|
2053
2069
|
batchedSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegProofsBatchedSettlementProof | {
|
|
2054
2070
|
settlement?: any;
|
|
@@ -2057,15 +2073,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2057
2073
|
PolymeshDartBpLegProofsBatchedSettlementProof
|
|
2058
2074
|
]>;
|
|
2059
2075
|
/**
|
|
2060
|
-
* Create a new Confidential
|
|
2076
|
+
* Create a new Confidential asset.
|
|
2061
2077
|
*
|
|
2062
2078
|
* # Arguments
|
|
2063
|
-
* * `
|
|
2064
|
-
*
|
|
2065
|
-
*
|
|
2066
|
-
* * `
|
|
2067
|
-
* * `
|
|
2068
|
-
* * `
|
|
2079
|
+
* * `origin` - The origin of the call.
|
|
2080
|
+
* * `name` - Asset name.
|
|
2081
|
+
* * `symbol` - Asset symbol.
|
|
2082
|
+
* * `decimals` - Asset decimals.
|
|
2083
|
+
* * `mediators` - Mediator account and encryption keys.
|
|
2084
|
+
* * `auditors` - Auditor encryption keys.
|
|
2085
|
+
* * `data` - Extra asset metadata.
|
|
2086
|
+
*
|
|
2087
|
+
* # Errors
|
|
2088
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2089
|
+
* * `InvalidAssetName` if `name` is empty.
|
|
2090
|
+
* * `NameTooLong` if `name` exceeds `MAX_NAME_LEN`.
|
|
2091
|
+
* * `SymbolTooLong` if `symbol` exceeds `MAX_SYMBOL_LEN`.
|
|
2092
|
+
* * `TooManyDecimals` if `decimals` exceeds `MAX_DECIMALS`.
|
|
2093
|
+
* * `MissingRequiredClaim` if the caller lacks the asset-creator claim, or a selected
|
|
2094
|
+
* auditor/mediator lacks the required role claim.
|
|
2095
|
+
* * `AccountMissing` if a mediator Confidential account is not registered.
|
|
2096
|
+
* * `EncryptionKeyMissing` if an auditor/mediator encryption key is not registered.
|
|
2097
|
+
* * `EncryptionKeyNotShared` if a mediator key was neither the account's own key nor
|
|
2098
|
+
* shared with it.
|
|
2099
|
+
* * `NoAuditorsOrMediators` if neither auditors nor mediators are provided.
|
|
2100
|
+
* * `AssetStateInvalid` if the asset keys or asset state cannot be built/committed.
|
|
2101
|
+
* * `AssetIdOverflow` if no more asset IDs are available.
|
|
2069
2102
|
**/
|
|
2070
2103
|
createAsset: AugmentedSubmittable<(name: Text | string, symbol: Text | string, decimals: u8 | AnyNumber | Uint8Array, mediators: BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>, auditors: BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2071
2104
|
Text,
|
|
@@ -2084,9 +2117,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2084
2117
|
*
|
|
2085
2118
|
* # Errors
|
|
2086
2119
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2087
|
-
* * `InvalidProof` if the proof is invalid.
|
|
2088
2120
|
* * `SettlementMissingLegs` if the settlement has no legs.
|
|
2089
2121
|
* * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
|
|
2122
|
+
* * `SettlementAlreadyExists` if this settlement reference has already been created.
|
|
2123
|
+
* * `AssetMissing` if a revealed asset or a leg's asset keys are missing.
|
|
2124
|
+
* * `AssetIsFrozen` if a revealed asset is frozen.
|
|
2125
|
+
* * `CurveTreeRootNotFound` if the asset curve-tree root is missing or expired.
|
|
2126
|
+
* * `CurveTreeError` if a leg's mediator count cannot be derived.
|
|
2127
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2090
2128
|
**/
|
|
2091
2129
|
createSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegSettlementProof | {
|
|
2092
2130
|
memo?: any;
|
|
@@ -2126,15 +2164,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2126
2164
|
/**
|
|
2127
2165
|
* Create and execute an instant settlement.
|
|
2128
2166
|
*
|
|
2167
|
+
* All proofs in the instant settlement are verified with a context derived from the
|
|
2168
|
+
* signing account, so another account cannot extract and submit a subset of the batch.
|
|
2169
|
+
* Clients must generate the proofs with [`non_relayer_batch_proof_context`] for that
|
|
2170
|
+
* account.
|
|
2171
|
+
*
|
|
2129
2172
|
* # Arguments
|
|
2130
2173
|
* * `origin` - The origin of the call.
|
|
2131
2174
|
* * `proof` - The settlement proof with batched leg affirmations.
|
|
2132
2175
|
*
|
|
2133
2176
|
* # Errors
|
|
2134
2177
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2135
|
-
* * `
|
|
2178
|
+
* * `BatchedSettlementInvalidLegRefs` if the leg affirmations do not match the settlement
|
|
2179
|
+
* legs or a mediator rejected.
|
|
2136
2180
|
* * `SettlementMissingLegs` if the settlement has no legs.
|
|
2137
2181
|
* * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
|
|
2182
|
+
* * `SettlementAlreadyExists` if this settlement reference has already been created.
|
|
2183
|
+
* * `AssetMissing` if a revealed asset or a leg's asset keys are missing.
|
|
2184
|
+
* * `AssetIsFrozen` if a revealed asset is frozen.
|
|
2185
|
+
* * `CurveTreeRootNotFound` if an asset or account curve-tree root is missing or expired.
|
|
2186
|
+
* * `CurveTreeError` if a leg's mediator count cannot be derived.
|
|
2187
|
+
* * `NullifierAlreadyUsed` if an included affirmation's account state nullifier has
|
|
2188
|
+
* already been used.
|
|
2189
|
+
* * `SettlementNotPending`, `LegNotFound`, `WrongMediatorId`, `MissingLegMediators`,
|
|
2190
|
+
* `AlreadyAffirmed`, `AlreadyRejected`, `AlreadyFinalized`,
|
|
2191
|
+
* `InvalidAffirmationStatusTransition`, or `NoPendingAffirmations` if an included
|
|
2192
|
+
* affirmation is invalid.
|
|
2193
|
+
* * `SettlementNotExecuted` if the settlement did not finalize successfully.
|
|
2194
|
+
* * `InvalidProof` if the settlement or an included affirmation proof is invalid.
|
|
2138
2195
|
**/
|
|
2139
2196
|
executeInstantSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegInstantInstantSettlementProof | {
|
|
2140
2197
|
settlement?: any;
|
|
@@ -2153,11 +2210,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2153
2210
|
*
|
|
2154
2211
|
* # Errors
|
|
2155
2212
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2156
|
-
* * `
|
|
2213
|
+
* * `NotLastPendingAffirmation` if this is not the settlement's last pending affirmation.
|
|
2214
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2215
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2157
2216
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2217
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2158
2218
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2159
|
-
* * `
|
|
2160
|
-
* * `
|
|
2219
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2220
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2221
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has already affirmed or the
|
|
2222
|
+
* status transition is otherwise invalid.
|
|
2223
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2224
|
+
* zero.
|
|
2225
|
+
* * `SettlementNotExecuted` if the settlement did not execute after the affirmation.
|
|
2226
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2161
2227
|
**/
|
|
2162
2228
|
instantReceiverAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsInstantReceiverAffirmationProof | {
|
|
2163
2229
|
legRef?: any;
|
|
@@ -2179,11 +2245,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2179
2245
|
*
|
|
2180
2246
|
* # Errors
|
|
2181
2247
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2182
|
-
* * `
|
|
2248
|
+
* * `NotLastPendingAffirmation` if this is not the settlement's last pending affirmation.
|
|
2249
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2250
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2183
2251
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2252
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2184
2253
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2185
|
-
* * `
|
|
2186
|
-
* * `
|
|
2254
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2255
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2256
|
+
* * `InvalidAffirmationStatusTransition` if the sender has already affirmed or the status
|
|
2257
|
+
* transition is otherwise invalid.
|
|
2258
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2259
|
+
* zero.
|
|
2260
|
+
* * `SettlementNotExecuted` if the settlement did not execute after the affirmation.
|
|
2261
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2187
2262
|
**/
|
|
2188
2263
|
instantSenderAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsInstantSenderAffirmationProof | {
|
|
2189
2264
|
legRef?: any;
|
|
@@ -2203,11 +2278,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2203
2278
|
*
|
|
2204
2279
|
* # Errors
|
|
2205
2280
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2206
|
-
* * `SettlementNotPending` if the settlement is not pending.
|
|
2207
2281
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2282
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2208
2283
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2209
|
-
* * `
|
|
2210
|
-
* * `
|
|
2284
|
+
* * `WrongMediatorId` if the mediator index is not valid for the leg.
|
|
2285
|
+
* * `MissingLegMediators` if the revealed leg has no stored mediator keys.
|
|
2286
|
+
* * `AlreadyAffirmed` if the mediator has already affirmed the leg.
|
|
2287
|
+
* * `AlreadyRejected` if the mediator has already rejected the leg.
|
|
2288
|
+
* * `AlreadyFinalized` if the mediator has already finalized the leg.
|
|
2289
|
+
* * `InvalidAffirmationStatusTransition` if the requested status transition is invalid.
|
|
2290
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2291
|
+
* zero.
|
|
2292
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2211
2293
|
**/
|
|
2212
2294
|
mediatorAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpLegProofsMediatorAffirmationProof | {
|
|
2213
2295
|
legRef?: any;
|
|
@@ -2225,14 +2307,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2225
2307
|
* * `proof` - The minting proof.
|
|
2226
2308
|
*
|
|
2227
2309
|
* # Errors
|
|
2228
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2310
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2229
2311
|
* * `AccountMissing` if the Confidential account is not registered.
|
|
2230
|
-
* * `
|
|
2312
|
+
* * `EncryptionKeyMissing` if the account's encryption key is missing.
|
|
2313
|
+
* * `EncryptionKeyMismatch` if the proof encryption key doesn't match the account's key.
|
|
2231
2314
|
* * `NotAccountOwner` if the caller is not the owner of the Confidential account.
|
|
2232
|
-
* * `
|
|
2315
|
+
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2233
2316
|
* * `NotAssetOwner` if the caller is not the owner of the Confidential asset.
|
|
2234
|
-
* * `MaxTotalSupplyExceeded` if the total supply
|
|
2235
|
-
* * `NullifierAlreadyUsed` if the
|
|
2317
|
+
* * `MaxTotalSupplyExceeded` if the new total supply would exceed the configured maximum.
|
|
2318
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2319
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2320
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2236
2321
|
**/
|
|
2237
2322
|
mintAsset: AugmentedSubmittable<(proof: PolymeshDartBpAssetAssetMintingProof | {
|
|
2238
2323
|
pk?: any;
|
|
@@ -2255,10 +2340,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2255
2340
|
*
|
|
2256
2341
|
* # Errors
|
|
2257
2342
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2258
|
-
* * `
|
|
2343
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2344
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2259
2345
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2346
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2260
2347
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2261
|
-
* * `
|
|
2348
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2349
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2350
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has already affirmed or the
|
|
2351
|
+
* status transition is otherwise invalid.
|
|
2352
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2353
|
+
* zero.
|
|
2354
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2262
2355
|
**/
|
|
2263
2356
|
receiverAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverAffirmationProof | {
|
|
2264
2357
|
legRef?: any;
|
|
@@ -2278,9 +2371,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2278
2371
|
*
|
|
2279
2372
|
* # Errors
|
|
2280
2373
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2281
|
-
* * `
|
|
2374
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2375
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2282
2376
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2377
|
+
* * `SettlementNotExecuted` if the settlement has not been executed.
|
|
2283
2378
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2379
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2380
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2381
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has not affirmed the leg or the
|
|
2382
|
+
* status transition is otherwise invalid.
|
|
2383
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2284
2384
|
**/
|
|
2285
2385
|
receiverClaim: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverClaimProof | {
|
|
2286
2386
|
legRef?: any;
|
|
@@ -2300,9 +2400,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2300
2400
|
*
|
|
2301
2401
|
* # Errors
|
|
2302
2402
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2303
|
-
* * `
|
|
2403
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2404
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2304
2405
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2406
|
+
* * `SettlementAlreadyExecuted` if the settlement has already been executed.
|
|
2305
2407
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2408
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2409
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2410
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has not affirmed the leg or the
|
|
2411
|
+
* status transition is otherwise invalid.
|
|
2412
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2306
2413
|
**/
|
|
2307
2414
|
receiverRevertAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverRevertAffirmationProof | {
|
|
2308
2415
|
legRef?: any;
|
|
@@ -2323,12 +2430,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2323
2430
|
* * `proof` - The Batched Account asset registration proof.
|
|
2324
2431
|
*
|
|
2325
2432
|
* # Errors
|
|
2326
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2433
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2434
|
+
* * `TooManyProofs` if the proof exceeds `MaxAccountAssetRegProofs`.
|
|
2327
2435
|
* * `AccountMissing` if the Confidential account is not registered.
|
|
2436
|
+
* * `EncryptionKeyMissing` if the account's encryption key is missing.
|
|
2437
|
+
* * `EncryptionKeyMismatch` if the proof key doesn't match the account's registered key.
|
|
2328
2438
|
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2329
|
-
* * `AccountAssetAlreadyRegistered` if the Confidential account has already registered the
|
|
2439
|
+
* * `AccountAssetAlreadyRegistered` if the Confidential account has already registered the
|
|
2440
|
+
* Confidential asset.
|
|
2330
2441
|
* * `NotAccountOwner` if the caller is not the owner of the Confidential account.
|
|
2331
|
-
* * `EncryptionKeyMismatch` if the proof key doesn't match the account's registered key.
|
|
2332
2442
|
* * `InvalidProof` if the proof is invalid.
|
|
2333
2443
|
**/
|
|
2334
2444
|
registerAccountAssets: AugmentedSubmittable<(proof: PolymeshDartBpAccountBatchedAccountAssetRegistrationProof | {
|
|
@@ -2337,16 +2447,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2337
2447
|
PolymeshDartBpAccountBatchedAccountAssetRegistrationProof
|
|
2338
2448
|
]>;
|
|
2339
2449
|
/**
|
|
2340
|
-
* Register
|
|
2450
|
+
* Register Confidential accounts and their encryption keys.
|
|
2341
2451
|
*
|
|
2342
2452
|
* # Arguments
|
|
2343
|
-
* * `
|
|
2344
|
-
* * `
|
|
2453
|
+
* * `origin` - The origin of the call.
|
|
2454
|
+
* * `proof` - The account registration proof.
|
|
2345
2455
|
*
|
|
2346
2456
|
* # Errors
|
|
2347
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2348
|
-
* * `
|
|
2349
|
-
* * `
|
|
2457
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2458
|
+
* * `TooManyProofs` if the proof exceeds `MaxKeysPerRegProof`.
|
|
2459
|
+
* * `AccountAlreadyCreated` if a Confidential account is already registered.
|
|
2460
|
+
* * `EncryptionKeyAlreadyRegistered` if an encryption key is already registered.
|
|
2461
|
+
* * `NotAccountOwner` if an account key is already registered to another identity as a fee
|
|
2462
|
+
* account.
|
|
2463
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2350
2464
|
**/
|
|
2351
2465
|
registerAccounts: AugmentedSubmittable<(proof: PolymeshDartBpKeysAccountRegistrationProof | {
|
|
2352
2466
|
accounts?: any;
|
|
@@ -2362,8 +2476,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2362
2476
|
* * `proof` - The auditor/mediator encryption registration proof.
|
|
2363
2477
|
*
|
|
2364
2478
|
* # Errors
|
|
2365
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2366
|
-
* * `
|
|
2479
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2480
|
+
* * `TooManyProofs` if the proof exceeds `MaxKeysPerRegProof`.
|
|
2481
|
+
* * `EncryptionKeyAlreadyRegistered` if an encryption key is already registered.
|
|
2367
2482
|
* * `InvalidProof` if the proof is invalid.
|
|
2368
2483
|
**/
|
|
2369
2484
|
registerEncryptionKeys: AugmentedSubmittable<(proof: PolymeshDartBpKeysEncryptionKeyRegistrationProof | {
|
|
@@ -2382,13 +2497,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2382
2497
|
* * `proof` - The batched fee account registration proof.
|
|
2383
2498
|
*
|
|
2384
2499
|
* # Errors
|
|
2385
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2386
|
-
* * `
|
|
2387
|
-
* * `NotAccountOwner` if the account key is registered to another identity as
|
|
2388
|
-
*
|
|
2500
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2501
|
+
* * `TooManyProofs` if the proof exceeds `MaxFeeAccountRegProofs`.
|
|
2502
|
+
* * `NotAccountOwner` if the account key is already registered to another identity as a
|
|
2503
|
+
* Confidential account.
|
|
2504
|
+
* * `FeeAccountAlreadyRegistered` if a fee account is already registered.
|
|
2389
2505
|
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2506
|
+
* * `AmountOverflow` if an amount does not fit the pallet balance type.
|
|
2390
2507
|
* * `InvalidProof` if the proof is invalid.
|
|
2391
|
-
* * `InsufficientBalance` if the caller
|
|
2508
|
+
* * `InsufficientBalance` if the caller cannot fund the total fee-account deposit.
|
|
2392
2509
|
**/
|
|
2393
2510
|
registerFeeAccounts: AugmentedSubmittable<(proof: PolymeshDartBpFeeBatchedFeeAccountRegistrationProof | {
|
|
2394
2511
|
proofs?: any;
|
|
@@ -2403,6 +2520,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2403
2520
|
*
|
|
2404
2521
|
* Relayers can charge a commission fee on top of the transaction fee (i.e. `commission fee + transaction fee = fee amount`).
|
|
2405
2522
|
*
|
|
2523
|
+
* Every proof in the batch is verified with a context derived from the fee payment's
|
|
2524
|
+
* one-time nullifier. The fee payment itself commits to the complete ordered batch and,
|
|
2525
|
+
* unless broadcast, the submitting relayer.
|
|
2526
|
+
*
|
|
2406
2527
|
* Relayers are responsible for checking the fee payment terms and the fee and batch proofs before submission.
|
|
2407
2528
|
* The signed extension checks whether the fee nullifier is already spent; a concurrent spend can still make
|
|
2408
2529
|
* that check stale before inclusion. Fee-payment roots are checked against the shorter relayer root-age limit
|
|
@@ -2415,9 +2536,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2415
2536
|
*
|
|
2416
2537
|
* # Errors
|
|
2417
2538
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2418
|
-
* * `
|
|
2419
|
-
* * `CurveTreeRootNotFound` if the fee payment root is missing or too old.
|
|
2539
|
+
* * `NullifierAlreadyUsed` if the fee-payment nullifier has already been spent.
|
|
2420
2540
|
* * `RelayerCallMustBeTopLevel` if this call is nested or the signed extension did not run.
|
|
2541
|
+
* * `TooManyProofs` if the batch exceeds `MaxBatchedProofs`.
|
|
2542
|
+
* * `EmptyBatchedProofs` if the batch contains no proofs.
|
|
2543
|
+
* * `AmountOverflow` if the fee amount does not fit the pallet balance type.
|
|
2544
|
+
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2545
|
+
* * `CurveTreeRootNotFound` if the fee-payment root is missing or too old.
|
|
2546
|
+
* * `InvalidFeePaymentProof` if the fee payment proof is invalid.
|
|
2547
|
+
* * `InsufficientBalance` if the fee pool cannot reimburse the relayer.
|
|
2548
|
+
*
|
|
2549
|
+
* Errors from processing the batched Confidential proofs do not fail this extrinsic.
|
|
2550
|
+
* They are reported in the `RelayerBatchedProofs.batch_result` event after the fee payment
|
|
2551
|
+
* has been verified and charged.
|
|
2421
2552
|
**/
|
|
2422
2553
|
relayerSubmitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpFeeFeePaymentWithBatchedProofs | {
|
|
2423
2554
|
feePayment?: any;
|
|
@@ -2451,10 +2582,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2451
2582
|
*
|
|
2452
2583
|
* # Errors
|
|
2453
2584
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2454
|
-
* * `
|
|
2585
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2586
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2455
2587
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2588
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2456
2589
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2457
|
-
* * `
|
|
2590
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2591
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2592
|
+
* * `InvalidAffirmationStatusTransition` if the sender has already affirmed or the status
|
|
2593
|
+
* transition is otherwise invalid.
|
|
2594
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2595
|
+
* zero.
|
|
2596
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2458
2597
|
**/
|
|
2459
2598
|
senderAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderAffirmationProof | {
|
|
2460
2599
|
legRef?: any;
|
|
@@ -2474,9 +2613,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2474
2613
|
*
|
|
2475
2614
|
* # Errors
|
|
2476
2615
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2477
|
-
* * `
|
|
2616
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2617
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2478
2618
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2619
|
+
* * `SettlementAlreadyExecuted` if the settlement has already been executed.
|
|
2479
2620
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2621
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2622
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2623
|
+
* * `InvalidAffirmationStatusTransition` if the sender has not affirmed the leg or the
|
|
2624
|
+
* status transition is otherwise invalid.
|
|
2625
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2480
2626
|
**/
|
|
2481
2627
|
senderRevertAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderRevertAffirmationProof | {
|
|
2482
2628
|
legRef?: any;
|
|
@@ -2496,9 +2642,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2496
2642
|
*
|
|
2497
2643
|
* # Errors
|
|
2498
2644
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2499
|
-
* * `
|
|
2645
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2646
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2500
2647
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2648
|
+
* * `SettlementNotExecuted` if the settlement has not been executed.
|
|
2501
2649
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2650
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2651
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2652
|
+
* * `InvalidAffirmationStatusTransition` if the leg is still pending or the status
|
|
2653
|
+
* transition is otherwise invalid.
|
|
2654
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2502
2655
|
**/
|
|
2503
2656
|
senderUpdateCounter: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderCounterUpdateProof | {
|
|
2504
2657
|
legRef?: any;
|
|
@@ -2511,6 +2664,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2511
2664
|
]>;
|
|
2512
2665
|
/**
|
|
2513
2666
|
* Set the freeze state as the issuer or Root. Only Root may change a Root freeze.
|
|
2667
|
+
*
|
|
2668
|
+
* # Arguments
|
|
2669
|
+
* * `origin` - The origin of the call (asset issuer or Root).
|
|
2670
|
+
* * `asset_id` - Confidential asset ID.
|
|
2671
|
+
* * `frozen` - Whether the asset should be frozen.
|
|
2672
|
+
*
|
|
2673
|
+
* # Errors
|
|
2674
|
+
* * `BadOrigin` if `origin` isn't Root, signed, or permitted to act for the asset owner.
|
|
2675
|
+
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2676
|
+
* * `NotAssetOwner` if a signed caller is not the owner of the Confidential asset.
|
|
2677
|
+
* * `AssetFrozenByRoot` if a non-Root caller tries to change or clear a Root freeze.
|
|
2678
|
+
* * `AssetStateInvalid` if the updated asset state cannot be committed.
|
|
2514
2679
|
**/
|
|
2515
2680
|
setAssetFrozen: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, frozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2516
2681
|
u32,
|
|
@@ -2562,13 +2727,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2562
2727
|
/**
|
|
2563
2728
|
* Submit a batch of proofs.
|
|
2564
2729
|
*
|
|
2730
|
+
* All proofs in the batch are verified with a context derived from the signing account,
|
|
2731
|
+
* so another account cannot extract and submit a subset of the batch. Clients must
|
|
2732
|
+
* generate the proofs with [`non_relayer_batch_proof_context`] for that account.
|
|
2733
|
+
*
|
|
2565
2734
|
* # Arguments
|
|
2566
2735
|
* * `origin` - The origin of the call.
|
|
2567
2736
|
* * `proof` - The batched proofs.
|
|
2568
2737
|
*
|
|
2569
2738
|
* # Errors
|
|
2570
2739
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2571
|
-
* * `
|
|
2740
|
+
* * `TooManyProofs` if the batch exceeds `MaxBatchedProofs`.
|
|
2741
|
+
* * `InvalidProof` if any included proof is invalid.
|
|
2742
|
+
* * `SettlementMissingLegs`, `SettlementTooManyLegs`, `SettlementAlreadyExists`,
|
|
2743
|
+
* `AssetMissing`, `AssetIsFrozen`, `CurveTreeRootNotFound`, `CurveTreeError`, or
|
|
2744
|
+
* `BatchedSettlementInvalidLegRefs` for an included settlement or instant-settlement
|
|
2745
|
+
* proof.
|
|
2746
|
+
* * `NullifierAlreadyUsed`, `SettlementNotFound`, `SettlementNotPending`,
|
|
2747
|
+
* `SettlementNotExecuted`, `SettlementAlreadyExecuted`, `NotLastPendingAffirmation`,
|
|
2748
|
+
* `LegNotFound`, `AlreadyAffirmed`, `AlreadyRejected`, `AlreadyFinalized`,
|
|
2749
|
+
* `InvalidAffirmationStatusTransition`, `NoPendingAffirmations`, `WrongMediatorId`,
|
|
2750
|
+
* `MissingLegMediators`, or `SettlementLegCountMismatch` for an included affirmation,
|
|
2751
|
+
* counter update, revert, claim, or instant affirmation proof.
|
|
2572
2752
|
**/
|
|
2573
2753
|
submitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpBatchedBatchedProofs | {
|
|
2574
2754
|
proofs?: any;
|
|
@@ -2576,19 +2756,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2576
2756
|
PolymeshDartBpBatchedBatchedProofs
|
|
2577
2757
|
]>;
|
|
2578
2758
|
/**
|
|
2579
|
-
*
|
|
2759
|
+
* Top up a batch of fee accounts.
|
|
2580
2760
|
*
|
|
2581
2761
|
* # Arguments
|
|
2582
2762
|
* * `origin` - The origin of the call.
|
|
2583
2763
|
* * `proof` - The batched fee account topup proof.
|
|
2584
2764
|
*
|
|
2585
2765
|
* # Errors
|
|
2586
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2587
|
-
* * `
|
|
2588
|
-
* * `
|
|
2766
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2767
|
+
* * `TooManyProofs` if the proof exceeds `MaxFeeAccountTopupProofs`.
|
|
2768
|
+
* * `FeeAccountMissing` if a fee account is not registered.
|
|
2769
|
+
* * `NotAccountOwner` if the caller does not own a fee account.
|
|
2589
2770
|
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2771
|
+
* * `NullifierAlreadyUsed` if a nullifier is repeated in the batch or has already been
|
|
2772
|
+
* used on-chain.
|
|
2773
|
+
* * `AmountOverflow` if an amount does not fit the pallet balance type.
|
|
2774
|
+
* * `CurveTreeRootNotFound` if the fee-account curve-tree root is missing or expired.
|
|
2590
2775
|
* * `InvalidProof` if the proof is invalid.
|
|
2591
|
-
* * `InsufficientBalance` if the caller
|
|
2776
|
+
* * `InsufficientBalance` if the caller cannot fund the total top-up.
|
|
2592
2777
|
**/
|
|
2593
2778
|
topupFeeAccounts: AugmentedSubmittable<(proof: PolymeshDartBpFeeBatchedFeeAccountTopupProof | {
|
|
2594
2779
|
rootBlock?: any;
|
|
@@ -2601,6 +2786,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2601
2786
|
*
|
|
2602
2787
|
* The asset owner must retain the required live claims for every selected auditor and
|
|
2603
2788
|
* mediator. Existing settlements keep their creation-time encrypted legs and mediator set.
|
|
2789
|
+
*
|
|
2790
|
+
* # Arguments
|
|
2791
|
+
* * `origin` - The origin of the call.
|
|
2792
|
+
* * `asset_id` - Confidential asset ID.
|
|
2793
|
+
* * `mediators` - New mediator account and encryption keys.
|
|
2794
|
+
* * `auditors` - New auditor encryption keys.
|
|
2795
|
+
*
|
|
2796
|
+
* # Errors
|
|
2797
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2798
|
+
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2799
|
+
* * `NotAssetOwner` if the caller is not the owner of the Confidential asset.
|
|
2800
|
+
* * `AccountMissing` if a mediator Confidential account is not registered.
|
|
2801
|
+
* * `EncryptionKeyMissing` if an auditor/mediator encryption key is not registered.
|
|
2802
|
+
* * `EncryptionKeyNotShared` if a mediator key was neither the account's own key nor
|
|
2803
|
+
* shared with it.
|
|
2804
|
+
* * `MissingRequiredClaim` if a selected auditor/mediator lacks the required role claim.
|
|
2805
|
+
* * `NoAuditorsOrMediators` if neither auditors nor mediators are provided.
|
|
2806
|
+
* * `AssetStateInvalid` if the asset keys or asset state cannot be built/committed.
|
|
2604
2807
|
**/
|
|
2605
2808
|
updateAssetKeys: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, mediators: BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>, auditors: BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>) => SubmittableExtrinsic<ApiType>, [
|
|
2606
2809
|
u32,
|