@polkadot/api-augment 8.12.2 → 8.13.1
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/cjs/package.json +1 -1
- package/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +9 -2
- package/kusama/errors.d.ts +4 -4
- package/kusama/tx.d.ts +16 -4
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/errors.d.ts +4 -4
- package/polkadot/tx.d.ts +6 -2
- package/substrate/consts.d.ts +9 -2
- package/substrate/errors.d.ts +20 -13
- package/substrate/events.d.ts +26 -0
- package/substrate/query.d.ts +4 -0
- package/substrate/tx.d.ts +52 -4
package/cjs/package.json
CHANGED
package/cjs/packageInfo.js
CHANGED
package/kusama/consts.d.ts
CHANGED
|
@@ -455,13 +455,20 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
455
455
|
};
|
|
456
456
|
nominationPools: {
|
|
457
457
|
/**
|
|
458
|
-
* The
|
|
458
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
459
|
+
*
|
|
459
460
|
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
460
461
|
* ratio becomes disproportional.
|
|
462
|
+
*
|
|
463
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
464
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
465
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
466
|
+
* the chain, in the absolute worse case.
|
|
467
|
+
*
|
|
461
468
|
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
462
469
|
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
463
470
|
**/
|
|
464
|
-
|
|
471
|
+
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
|
465
472
|
/**
|
|
466
473
|
* The nomination pool's pallet id.
|
|
467
474
|
**/
|
package/kusama/errors.d.ts
CHANGED
|
@@ -1288,14 +1288,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1288
1288
|
* Must vote for at least one candidate.
|
|
1289
1289
|
**/
|
|
1290
1290
|
NoVotes: AugmentedError<ApiType>;
|
|
1291
|
-
/**
|
|
1292
|
-
* Cannot report self.
|
|
1293
|
-
**/
|
|
1294
|
-
ReportSelf: AugmentedError<ApiType>;
|
|
1295
1291
|
/**
|
|
1296
1292
|
* Runner cannot re-submit candidacy.
|
|
1297
1293
|
**/
|
|
1298
1294
|
RunnerUpSubmit: AugmentedError<ApiType>;
|
|
1295
|
+
/**
|
|
1296
|
+
* Too many candidates have been created.
|
|
1297
|
+
**/
|
|
1298
|
+
TooManyCandidates: AugmentedError<ApiType>;
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Cannot vote more than candidates.
|
|
1301
1301
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -2448,6 +2448,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2448
2448
|
*
|
|
2449
2449
|
* Additional funds can come from either the free balance of the account, of from the
|
|
2450
2450
|
* accumulated rewards, see [`BondExtra`].
|
|
2451
|
+
*
|
|
2452
|
+
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
2451
2453
|
**/
|
|
2452
2454
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
2453
2455
|
FreeBalance: any;
|
|
@@ -2578,8 +2580,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2578
2580
|
/**
|
|
2579
2581
|
* Set a new state for the pool.
|
|
2580
2582
|
*
|
|
2581
|
-
*
|
|
2582
|
-
*
|
|
2583
|
+
* If a pool is already in the `Destroying` state, then under no condition can its state
|
|
2584
|
+
* change again.
|
|
2585
|
+
*
|
|
2586
|
+
* The dispatch origin of this call must be either:
|
|
2587
|
+
*
|
|
2588
|
+
* 1. signed by the state toggler, or the root role of the pool,
|
|
2589
|
+
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
2590
|
+
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
2583
2591
|
**/
|
|
2584
2592
|
setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
|
|
2585
2593
|
/**
|
|
@@ -2783,7 +2791,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2783
2791
|
* the outgoing member is slashed.
|
|
2784
2792
|
*
|
|
2785
2793
|
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
2786
|
-
* outgoing member. Otherwise, a new phragmen election is
|
|
2794
|
+
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
2795
|
+
* started, else, nothing happens.
|
|
2796
|
+
*
|
|
2797
|
+
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
2798
|
+
* it is returned.
|
|
2787
2799
|
*
|
|
2788
2800
|
* The dispatch origin of this call must be root.
|
|
2789
2801
|
*
|
|
@@ -2804,7 +2816,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2804
2816
|
Address32: any;
|
|
2805
2817
|
} | {
|
|
2806
2818
|
Address20: any;
|
|
2807
|
-
} | string | Uint8Array,
|
|
2819
|
+
} | string | Uint8Array, slashBond: bool | boolean | Uint8Array, rerunElection: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool, bool]>;
|
|
2808
2820
|
/**
|
|
2809
2821
|
* Remove `origin` as a voter.
|
|
2810
2822
|
*
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "8.
|
|
23
|
+
"version": "8.13.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
188
|
"@babel/runtime": "^7.18.6",
|
|
189
|
-
"@polkadot/api-base": "8.
|
|
190
|
-
"@polkadot/rpc-augment": "8.
|
|
191
|
-
"@polkadot/types": "8.
|
|
192
|
-
"@polkadot/types-augment": "8.
|
|
193
|
-
"@polkadot/types-codec": "8.
|
|
189
|
+
"@polkadot/api-base": "8.13.1",
|
|
190
|
+
"@polkadot/rpc-augment": "8.13.1",
|
|
191
|
+
"@polkadot/types": "8.13.1",
|
|
192
|
+
"@polkadot/types-augment": "8.13.1",
|
|
193
|
+
"@polkadot/types-codec": "8.13.1",
|
|
194
194
|
"@polkadot/util": "^10.0.2"
|
|
195
195
|
}
|
|
196
|
-
}
|
|
196
|
+
}
|
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@polkadot/api-augment',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '8.
|
|
8
|
+
version: '8.13.1'
|
|
9
9
|
};
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -1146,14 +1146,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1146
1146
|
* Must vote for at least one candidate.
|
|
1147
1147
|
**/
|
|
1148
1148
|
NoVotes: AugmentedError<ApiType>;
|
|
1149
|
-
/**
|
|
1150
|
-
* Cannot report self.
|
|
1151
|
-
**/
|
|
1152
|
-
ReportSelf: AugmentedError<ApiType>;
|
|
1153
1149
|
/**
|
|
1154
1150
|
* Runner cannot re-submit candidacy.
|
|
1155
1151
|
**/
|
|
1156
1152
|
RunnerUpSubmit: AugmentedError<ApiType>;
|
|
1153
|
+
/**
|
|
1154
|
+
* Too many candidates have been created.
|
|
1155
|
+
**/
|
|
1156
|
+
TooManyCandidates: AugmentedError<ApiType>;
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Cannot vote more than candidates.
|
|
1159
1159
|
**/
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -2506,7 +2506,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2506
2506
|
* the outgoing member is slashed.
|
|
2507
2507
|
*
|
|
2508
2508
|
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
2509
|
-
* outgoing member. Otherwise, a new phragmen election is
|
|
2509
|
+
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
2510
|
+
* started, else, nothing happens.
|
|
2511
|
+
*
|
|
2512
|
+
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
2513
|
+
* it is returned.
|
|
2510
2514
|
*
|
|
2511
2515
|
* The dispatch origin of this call must be root.
|
|
2512
2516
|
*
|
|
@@ -2527,7 +2531,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2527
2531
|
Address32: any;
|
|
2528
2532
|
} | {
|
|
2529
2533
|
Address20: any;
|
|
2530
|
-
} | string | Uint8Array,
|
|
2534
|
+
} | string | Uint8Array, slashBond: bool | boolean | Uint8Array, rerunElection: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool, bool]>;
|
|
2531
2535
|
/**
|
|
2532
2536
|
* Remove `origin` as a voter.
|
|
2533
2537
|
*
|
package/substrate/consts.d.ts
CHANGED
|
@@ -675,13 +675,20 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
675
675
|
};
|
|
676
676
|
nominationPools: {
|
|
677
677
|
/**
|
|
678
|
-
* The
|
|
678
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
679
|
+
*
|
|
679
680
|
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
680
681
|
* ratio becomes disproportional.
|
|
682
|
+
*
|
|
683
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
684
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
685
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
686
|
+
* the chain, in the absolute worse case.
|
|
687
|
+
*
|
|
681
688
|
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
682
689
|
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
683
690
|
**/
|
|
684
|
-
|
|
691
|
+
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
|
685
692
|
/**
|
|
686
693
|
* The nomination pool's pallet id.
|
|
687
694
|
**/
|
package/substrate/errors.d.ts
CHANGED
|
@@ -847,14 +847,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
847
847
|
* Must vote for at least one candidate.
|
|
848
848
|
**/
|
|
849
849
|
NoVotes: AugmentedError<ApiType>;
|
|
850
|
-
/**
|
|
851
|
-
* Cannot report self.
|
|
852
|
-
**/
|
|
853
|
-
ReportSelf: AugmentedError<ApiType>;
|
|
854
850
|
/**
|
|
855
851
|
* Runner cannot re-submit candidacy.
|
|
856
852
|
**/
|
|
857
853
|
RunnerUpSubmit: AugmentedError<ApiType>;
|
|
854
|
+
/**
|
|
855
|
+
* Too many candidates have been created.
|
|
856
|
+
**/
|
|
857
|
+
TooManyCandidates: AugmentedError<ApiType>;
|
|
858
858
|
/**
|
|
859
859
|
* Cannot vote more than candidates.
|
|
860
860
|
**/
|
|
@@ -1199,6 +1199,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1199
1199
|
MetadataExceedsMaxLen: AugmentedError<ApiType>;
|
|
1200
1200
|
/**
|
|
1201
1201
|
* The amount does not meet the minimum bond to either join or create a pool.
|
|
1202
|
+
*
|
|
1203
|
+
* The depositor can never unbond to a value less than
|
|
1204
|
+
* `Pallet::depositor_min_bond`. The caller does not have nominating
|
|
1205
|
+
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
|
1202
1206
|
**/
|
|
1203
1207
|
MinimumBondNotMet: AugmentedError<ApiType>;
|
|
1204
1208
|
/**
|
|
@@ -1206,10 +1210,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1206
1210
|
* other members to be permissionlessly unbonded.
|
|
1207
1211
|
**/
|
|
1208
1212
|
NotDestroying: AugmentedError<ApiType>;
|
|
1209
|
-
/**
|
|
1210
|
-
* Not enough points. Ty unbonding less.
|
|
1211
|
-
**/
|
|
1212
|
-
NotEnoughPointsToUnbond: AugmentedError<ApiType>;
|
|
1213
1213
|
/**
|
|
1214
1214
|
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
|
1215
1215
|
**/
|
|
@@ -1218,11 +1218,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1218
1218
|
* The caller does not have nominating permissions for the pool.
|
|
1219
1219
|
**/
|
|
1220
1220
|
NotNominator: AugmentedError<ApiType>;
|
|
1221
|
-
/**
|
|
1222
|
-
* The depositor must be the only member in the bonded pool in order to unbond. And the
|
|
1223
|
-
* depositor must be the only member in the sub pools in order to withdraw unbonded.
|
|
1224
|
-
**/
|
|
1225
|
-
NotOnlyPoolMember: AugmentedError<ApiType>;
|
|
1226
1221
|
/**
|
|
1227
1222
|
* The pool is not open to join
|
|
1228
1223
|
**/
|
|
@@ -2050,6 +2045,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2050
2045
|
* Invalid witness data given.
|
|
2051
2046
|
**/
|
|
2052
2047
|
BadWitness: AugmentedError<ApiType>;
|
|
2048
|
+
/**
|
|
2049
|
+
* The provided bid is too low.
|
|
2050
|
+
**/
|
|
2051
|
+
BidTooLow: AugmentedError<ApiType>;
|
|
2053
2052
|
/**
|
|
2054
2053
|
* The item or collection is frozen.
|
|
2055
2054
|
**/
|
|
@@ -2082,6 +2081,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2082
2081
|
* The signing account has no permission to do the operation.
|
|
2083
2082
|
**/
|
|
2084
2083
|
NoPermission: AugmentedError<ApiType>;
|
|
2084
|
+
/**
|
|
2085
|
+
* Item is not for sale.
|
|
2086
|
+
**/
|
|
2087
|
+
NotForSale: AugmentedError<ApiType>;
|
|
2085
2088
|
/**
|
|
2086
2089
|
* The named owner has not signed ownership of the collection is acceptable.
|
|
2087
2090
|
**/
|
|
@@ -2094,6 +2097,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2094
2097
|
* The given item ID is unknown.
|
|
2095
2098
|
**/
|
|
2096
2099
|
UnknownCollection: AugmentedError<ApiType>;
|
|
2100
|
+
/**
|
|
2101
|
+
* The given item ID is unknown.
|
|
2102
|
+
**/
|
|
2103
|
+
UnknownItem: AugmentedError<ApiType>;
|
|
2097
2104
|
/**
|
|
2098
2105
|
* The delegate turned out to be different to what was expected.
|
|
2099
2106
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -2254,6 +2254,32 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2254
2254
|
item: u32;
|
|
2255
2255
|
owner: AccountId32;
|
|
2256
2256
|
}>;
|
|
2257
|
+
/**
|
|
2258
|
+
* An item was bought.
|
|
2259
|
+
**/
|
|
2260
|
+
ItemBought: AugmentedEvent<ApiType, [collection: u32, item: u32, price: u128, seller: AccountId32, buyer: AccountId32], {
|
|
2261
|
+
collection: u32;
|
|
2262
|
+
item: u32;
|
|
2263
|
+
price: u128;
|
|
2264
|
+
seller: AccountId32;
|
|
2265
|
+
buyer: AccountId32;
|
|
2266
|
+
}>;
|
|
2267
|
+
/**
|
|
2268
|
+
* The price for the instance was removed.
|
|
2269
|
+
**/
|
|
2270
|
+
ItemPriceRemoved: AugmentedEvent<ApiType, [collection: u32, item: u32], {
|
|
2271
|
+
collection: u32;
|
|
2272
|
+
item: u32;
|
|
2273
|
+
}>;
|
|
2274
|
+
/**
|
|
2275
|
+
* The price was set for the instance.
|
|
2276
|
+
**/
|
|
2277
|
+
ItemPriceSet: AugmentedEvent<ApiType, [collection: u32, item: u32, price: u128, whitelistedBuyer: Option<AccountId32>], {
|
|
2278
|
+
collection: u32;
|
|
2279
|
+
item: u32;
|
|
2280
|
+
price: u128;
|
|
2281
|
+
whitelistedBuyer: Option<AccountId32>;
|
|
2282
|
+
}>;
|
|
2257
2283
|
/**
|
|
2258
2284
|
* A `collection` has had its attributes changed by the `Force` origin.
|
|
2259
2285
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -1771,6 +1771,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1771
1771
|
* Metadata of an item.
|
|
1772
1772
|
**/
|
|
1773
1773
|
instanceMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesItemMetadata>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Price of an asset instance.
|
|
1776
|
+
**/
|
|
1777
|
+
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
1774
1778
|
/**
|
|
1775
1779
|
* The collection, if any, of which an account is willing to take ownership.
|
|
1776
1780
|
**/
|
package/substrate/tx.d.ts
CHANGED
|
@@ -2405,7 +2405,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2405
2405
|
* the outgoing member is slashed.
|
|
2406
2406
|
*
|
|
2407
2407
|
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
2408
|
-
* outgoing member. Otherwise, a new phragmen election is
|
|
2408
|
+
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
2409
|
+
* started, else, nothing happens.
|
|
2410
|
+
*
|
|
2411
|
+
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
2412
|
+
* it is returned.
|
|
2409
2413
|
*
|
|
2410
2414
|
* The dispatch origin of this call must be root.
|
|
2411
2415
|
*
|
|
@@ -2426,7 +2430,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2426
2430
|
Address32: any;
|
|
2427
2431
|
} | {
|
|
2428
2432
|
Address20: any;
|
|
2429
|
-
} | string | Uint8Array,
|
|
2433
|
+
} | string | Uint8Array, slashBond: bool | boolean | Uint8Array, rerunElection: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool, bool]>;
|
|
2430
2434
|
/**
|
|
2431
2435
|
* Remove `origin` as a voter.
|
|
2432
2436
|
*
|
|
@@ -3337,6 +3341,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3337
3341
|
*
|
|
3338
3342
|
* Additional funds can come from either the free balance of the account, of from the
|
|
3339
3343
|
* accumulated rewards, see [`BondExtra`].
|
|
3344
|
+
*
|
|
3345
|
+
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
3340
3346
|
**/
|
|
3341
3347
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
3342
3348
|
FreeBalance: any;
|
|
@@ -3467,8 +3473,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3467
3473
|
/**
|
|
3468
3474
|
* Set a new state for the pool.
|
|
3469
3475
|
*
|
|
3470
|
-
*
|
|
3471
|
-
*
|
|
3476
|
+
* If a pool is already in the `Destroying` state, then under no condition can its state
|
|
3477
|
+
* change again.
|
|
3478
|
+
*
|
|
3479
|
+
* The dispatch origin of this call must be either:
|
|
3480
|
+
*
|
|
3481
|
+
* 1. signed by the state toggler, or the root role of the pool,
|
|
3482
|
+
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
3483
|
+
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
3472
3484
|
**/
|
|
3473
3485
|
setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
|
|
3474
3486
|
/**
|
|
@@ -5906,6 +5918,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5906
5918
|
} | {
|
|
5907
5919
|
Address20: any;
|
|
5908
5920
|
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
|
5921
|
+
/**
|
|
5922
|
+
* Allows to buy an item if it's up for sale.
|
|
5923
|
+
*
|
|
5924
|
+
* Origin must be Signed and must not be the owner of the `item`.
|
|
5925
|
+
*
|
|
5926
|
+
* - `collection`: The collection of the item.
|
|
5927
|
+
* - `item`: The item the sender wants to buy.
|
|
5928
|
+
* - `bid_price`: The price the sender is willing to pay.
|
|
5929
|
+
*
|
|
5930
|
+
* Emits `ItemBought` on success.
|
|
5931
|
+
**/
|
|
5932
|
+
buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
|
|
5909
5933
|
/**
|
|
5910
5934
|
* Cancel the prior approval for the transfer of an item by a delegate.
|
|
5911
5935
|
*
|
|
@@ -6278,6 +6302,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6278
6302
|
* Weight: `O(1)`
|
|
6279
6303
|
**/
|
|
6280
6304
|
setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes, bool]>;
|
|
6305
|
+
/**
|
|
6306
|
+
* Set (or reset) the price for an item.
|
|
6307
|
+
*
|
|
6308
|
+
* Origin must be Signed and must be the owner of the asset `item`.
|
|
6309
|
+
*
|
|
6310
|
+
* - `collection`: The collection of the item.
|
|
6311
|
+
* - `item`: The item to set the price for.
|
|
6312
|
+
* - `price`: The price for the item. Pass `None`, to reset the price.
|
|
6313
|
+
* - `buyer`: Restricts the buy operation to a specific account.
|
|
6314
|
+
*
|
|
6315
|
+
* Emits `ItemPriceSet` on success if the price is not `None`.
|
|
6316
|
+
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
|
6317
|
+
**/
|
|
6318
|
+
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
|
|
6319
|
+
Id: any;
|
|
6320
|
+
} | {
|
|
6321
|
+
Index: any;
|
|
6322
|
+
} | {
|
|
6323
|
+
Raw: any;
|
|
6324
|
+
} | {
|
|
6325
|
+
Address32: any;
|
|
6326
|
+
} | {
|
|
6327
|
+
Address20: any;
|
|
6328
|
+
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
|
6281
6329
|
/**
|
|
6282
6330
|
* Change the Issuer, Admin and Freezer of a collection.
|
|
6283
6331
|
*
|