@argonprotocol/mainchain 1.5.2-dev.9c5eb2c8 → 1.5.2-dev.cdfb6ab4

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 (30) hide show
  1. package/README.md +67 -0
  2. package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +1 -1
  3. package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +1 -1
  4. package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +45 -16
  5. package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +1 -1
  6. package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +1 -1
  7. package/browser/index.d.ts +700 -291
  8. package/browser/index.js +1117 -273
  9. package/browser/index.js.map +1 -1
  10. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +1 -1
  11. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +1 -1
  12. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +45 -16
  13. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +1 -1
  14. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +1 -1
  15. package/lib/index.cjs +1085 -271
  16. package/lib/index.cjs.map +1 -1
  17. package/lib/index.d.cts +700 -291
  18. package/lib/index.d.ts +700 -291
  19. package/lib/index.js +1086 -272
  20. package/lib/index.js.map +1 -1
  21. package/package.json +2 -2
  22. package/src/interfaces/augment-api-consts.ts +15 -1
  23. package/src/interfaces/augment-api-errors.ts +53 -10
  24. package/src/interfaces/augment-api-events.ts +14 -2
  25. package/src/interfaces/augment-api-query.ts +58 -6
  26. package/src/interfaces/augment-api-rpc.ts +0 -1
  27. package/src/interfaces/augment-api-tx.ts +84 -35
  28. package/src/interfaces/lookup.ts +332 -215
  29. package/src/interfaces/registry.ts +16 -0
  30. package/src/interfaces/types-lookup.ts +359 -228
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.5.2-dev.9c5eb2c8",
3
+ "version": "1.5.2-dev.cdfb6ab4",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@argonprotocol/ethereum-contracts": "workspace:*",
71
- "@argonprotocol/testing": "1.5.2-dev.9c5eb2c8",
71
+ "@argonprotocol/testing": "1.5.2-dev.cdfb6ab4",
72
72
  "@polkadot/typegen": "^17.0.1",
73
73
  "@substrate/ss58-registry": "^1.51.0",
74
74
  "@types/node": "^20",
@@ -101,7 +101,7 @@ declare module '@polkadot/api-base/types/consts' {
101
101
  **/
102
102
  orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
103
103
  /**
104
- * Number of Bitcoin blocks to reserve securitization that has not yet been activated.
104
+ * Initial Bitcoin deposit window, measured in Bitcoin blocks.
105
105
  **/
106
106
  securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
107
107
  /**
@@ -181,6 +181,10 @@ declare module '@polkadot/api-base/types/consts' {
181
181
  * Canonical Ethereum burn-accounting account representing funds moved to Ethereum.
182
182
  **/
183
183
  ethereumBurnAccount: AccountId32 & AugmentedConst<ApiType>;
184
+ /**
185
+ * Maximum activities in one complete gateway locator storage proof.
186
+ **/
187
+ maxActivitiesPerGatewayProof: u32 & AugmentedConst<ApiType>;
184
188
  /**
185
189
  * Maximum number of ordered gateway activities that may share one receipt proof.
186
190
  **/
@@ -189,6 +193,10 @@ declare module '@polkadot/api-base/types/consts' {
189
193
  * Maximum number of members the active Global Issuance Council may carry.
190
194
  **/
191
195
  maxCouncilMembers: u32 & AugmentedConst<ApiType>;
196
+ /**
197
+ * Maximum aggregate event data carried by one storage-proof locator.
198
+ **/
199
+ maxGatewayActivityLogDataBytes: u32 & AugmentedConst<ApiType>;
192
200
  /**
193
201
  * Maximum number of non-terminal transfer-out requests tracked for one destination chain.
194
202
  **/
@@ -271,6 +279,8 @@ declare module '@polkadot/api-base/types/consts' {
271
279
  * The increment that bids can be on (for instance, one cent increments)
272
280
  **/
273
281
  bidIncrements: u128 & AugmentedConst<ApiType>;
282
+ bidRevealBlocks: u32 & AugmentedConst<ApiType>;
283
+ bidSettlementBuffer: u32 & AugmentedConst<ApiType>;
274
284
  /**
275
285
  * The number of frames a miner operates for
276
286
  **/
@@ -279,6 +289,10 @@ declare module '@polkadot/api-base/types/consts' {
279
289
  * The initial argonots needed per seat before a prior-day median is available.
280
290
  **/
281
291
  initialArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
292
+ /**
293
+ * Maximum commitments, including public bids, admitted per block.
294
+ **/
295
+ maxBidsPerBlock: u32 & AugmentedConst<ApiType>;
282
296
  /**
283
297
  * How many new miners can be in the cohort for each slot. The actual maximum will adjust
284
298
  * dynamically
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -102,6 +101,10 @@ declare module '@polkadot/api-base/types/errors' {
102
101
  * A source Lock's securitization does not cover the requested allocation and liability.
103
102
  **/
104
103
  InsufficientSecuritization: AugmentedError<ApiType>;
104
+ /**
105
+ * The fee coupon is invalid, expired, or already consumed.
106
+ **/
107
+ InvalidFeeCoupon: AugmentedError<ApiType>;
105
108
  /**
106
109
  * The requested source Lock does not exist.
107
110
  **/
@@ -138,6 +141,10 @@ declare module '@polkadot/api-base/types/errors' {
138
141
  * The Fission's ratchet counter cannot be incremented.
139
142
  **/
140
143
  RatchetNumberOverflow: AugmentedError<ApiType>;
144
+ /**
145
+ * The Vault could not upgrade the guarantee assigned to this Fission.
146
+ **/
147
+ ResecuritizationFailed: AugmentedError<ApiType>;
141
148
  /**
142
149
  * The source Lock already has the maximum number of active Fissions.
143
150
  **/
@@ -221,10 +228,6 @@ declare module '@polkadot/api-base/types/errors' {
221
228
  * The requested Lock securitization has fewer satoshis than its active Fissions.
222
229
  **/
223
230
  InsufficientSatoshisForFissions: AugmentedError<ApiType>;
224
- /**
225
- * The requested Lock securitization does not cover its active Fission liabilities.
226
- **/
227
- InsufficientSecuritizationForFissions: AugmentedError<ApiType>;
228
231
  InsufficientVaultFunds: AugmentedError<ApiType>;
229
232
  /**
230
233
  * The external destination amount must be nonzero and fit with the network fee.
@@ -247,7 +250,7 @@ declare module '@polkadot/api-base/types/errors' {
247
250
  **/
248
251
  LockHasActiveFissions: AugmentedError<ApiType>;
249
252
  /**
250
- * A Lock in the release process cannot be resecuritized.
253
+ * A Lock's guarantee cannot be changed while release is pending.
251
254
  **/
252
255
  LockInProcessOfRelease: AugmentedError<ApiType>;
253
256
  /**
@@ -279,13 +282,13 @@ declare module '@polkadot/api-base/types/errors' {
279
282
  **/
280
283
  NoBitcoinPricesAvailable: AugmentedError<ApiType>;
281
284
  /**
282
- * The user does not have permissions to perform this action
285
+ * The requested securitization matches the Lock's current securitization.
283
286
  **/
284
- NoPermissions: AugmentedError<ApiType>;
287
+ NoGuaranteeChange: AugmentedError<ApiType>;
285
288
  /**
286
- * The requested securitization matches the Lock's current securitization.
289
+ * The user does not have permissions to perform this action
287
290
  **/
288
- NoResecuritizationChange: AugmentedError<ApiType>;
291
+ NoPermissions: AugmentedError<ApiType>;
289
292
  /**
290
293
  * No Vault public keys are available
291
294
  **/
@@ -898,6 +901,14 @@ declare module '@polkadot/api-base/types/errors' {
898
901
  NotebookIncludesExpiredLocalchainTransfer: AugmentedError<ApiType>;
899
902
  };
900
903
  miningSlot: {
904
+ /**
905
+ * The bid batch cannot settle until its reveal window has ended.
906
+ **/
907
+ BatchNotMature: AugmentedError<ApiType>;
908
+ /**
909
+ * The pending bid's maximum has already been revealed.
910
+ **/
911
+ BidAlreadyRevealed: AugmentedError<ApiType>;
901
912
  /**
902
913
  * The mining bid cannot be reduced
903
914
  **/
@@ -914,6 +925,10 @@ declare module '@polkadot/api-base/types/errors' {
914
925
  * An account can only have one active registration
915
926
  **/
916
927
  CannotRegisterOverlappingSessions: AugmentedError<ApiType>;
928
+ /**
929
+ * The miner already has a pending bid awaiting settlement.
930
+ **/
931
+ DuplicateBidCommitment: AugmentedError<ApiType>;
917
932
  /**
918
933
  * The funding account does not have enough funds to cover the bid
919
934
  **/
@@ -926,14 +941,38 @@ declare module '@polkadot/api-base/types/errors' {
926
941
  * Bids must be in allowed increments
927
942
  **/
928
943
  InvalidBidAmount: AugmentedError<ApiType>;
944
+ /**
945
+ * The revealed maximum and salt do not match the pending bid's hash.
946
+ **/
947
+ InvalidBidCommitment: AugmentedError<ApiType>;
948
+ /**
949
+ * The revealed maximum is lower than the public bid.
950
+ **/
951
+ InvalidBidRange: AugmentedError<ApiType>;
952
+ /**
953
+ * A maximum must be revealed in a block after submission and within the reveal window.
954
+ **/
955
+ InvalidRevealBlock: AugmentedError<ApiType>;
956
+ /**
957
+ * The miner has no pending bid with a committed maximum to reveal.
958
+ **/
959
+ MissingBidCommitment: AugmentedError<ApiType>;
929
960
  /**
930
961
  * Mining slot bidding currently requires a prior operational-account upgrade.
931
962
  **/
932
963
  OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
964
+ /**
965
+ * Bidding with a committed maximum is not enabled for the current auction frame.
966
+ **/
967
+ RangeAuctionNotActive: AugmentedError<ApiType>;
933
968
  /**
934
969
  * Bidding for the next cohort has closed
935
970
  **/
936
971
  SlotNotTakingBids: AugmentedError<ApiType>;
972
+ /**
973
+ * This block has reached the maximum number of pending bid submissions.
974
+ **/
975
+ TooManyBidCommitments: AugmentedError<ApiType>;
937
976
  /**
938
977
  * The cohort registration overflowed
939
978
  **/
@@ -942,6 +981,10 @@ declare module '@polkadot/api-base/types/errors' {
942
981
  * The argonots on hold cannot be released
943
982
  **/
944
983
  UnrecoverableHold: AugmentedError<ApiType>;
984
+ /**
985
+ * The bid targets a different auction frame than the current one.
986
+ **/
987
+ WrongBidFrame: AugmentedError<ApiType>;
945
988
  };
946
989
  mint: {
947
990
  TooManyPendingMints: AugmentedError<ApiType>;
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -419,7 +418,7 @@ declare module '@polkadot/api-base/types/events' {
419
418
  [lockId: u64, vaultId: u32, isFlexible: bool],
420
419
  { lockId: u64; vaultId: u32; isFlexible: bool }
421
420
  >;
422
- BitcoinLockResecuritized: AugmentedEvent<
421
+ BitcoinLockGuaranteeSet: AugmentedEvent<
423
422
  ApiType,
424
423
  [
425
424
  lockId: u64,
@@ -1114,6 +1113,14 @@ declare module '@polkadot/api-base/types/events' {
1114
1113
  >;
1115
1114
  };
1116
1115
  miningSlot: {
1116
+ BidCommitted: AugmentedEvent<
1117
+ ApiType,
1118
+ [accountId: AccountId32, targetFrameId: u64],
1119
+ { accountId: AccountId32; targetFrameId: u64 }
1120
+ >;
1121
+ BidLost: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
1122
+ BidRejected: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
1123
+ BidRevealed: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
1117
1124
  /**
1118
1125
  * Bids are closed due to the VRF randomized function triggering
1119
1126
  **/
@@ -1164,6 +1171,11 @@ declare module '@polkadot/api-base/types/events' {
1164
1171
  [accountId: AccountId32, preservedArgonotHold: bool],
1165
1172
  { accountId: AccountId32; preservedArgonotHold: bool }
1166
1173
  >;
1174
+ WinningBidPriceChanged: AugmentedEvent<
1175
+ ApiType,
1176
+ [accountId: AccountId32, bidAmount: u128],
1177
+ { accountId: AccountId32; bidAmount: u128 }
1178
+ >;
1167
1179
  };
1168
1180
  mint: {
1169
1181
  /**
@@ -50,7 +50,7 @@ import type {
50
50
  ArgonPrimitivesNotaryNotaryRecord,
51
51
  ArgonPrimitivesProvidersBlockSealerInfo,
52
52
  ArgonPrimitivesTickTicker,
53
- ArgonPrimitivesTreasuryPositionQuantities,
53
+ ArgonPrimitivesTreasuryNetworkPositionQuantities,
54
54
  ArgonPrimitivesVault,
55
55
  ArgonPrimitivesVaultVaultArgonotSecuritization,
56
56
  FrameSupportDispatchPerDispatchClassWeight,
@@ -95,7 +95,9 @@ import type {
95
95
  PalletGrandpaStoredState,
96
96
  PalletLocalchainTransferQueuedTransferOut,
97
97
  PalletMiningSlotMinerNonceScoring,
98
+ PalletMiningSlotPendingBid,
98
99
  PalletMiningSlotSeatPriceStats,
100
+ PalletMiningSlotStandingBid,
99
101
  PalletMintMintAction,
100
102
  PalletMintMintQueueCursor,
101
103
  PalletMintPendingBitcoinMint,
@@ -113,6 +115,7 @@ import type {
113
115
  PalletTreasuryBondLot,
114
116
  PalletTreasuryBondLotSummary,
115
117
  PalletTreasuryFrameArgonotBondParticipants,
118
+ PalletTreasuryFrameVaultBitcoin,
116
119
  PalletTreasuryFrameVaultCapital,
117
120
  PalletTreasuryPositionsPosition,
118
121
  PalletTreasuryVaultBondState,
@@ -255,13 +258,17 @@ declare module '@polkadot/api-base/types/storage' {
255
258
  [u32, AccountId32]
256
259
  >;
257
260
  /**
258
- * Highest Bitcoin UTXO sync height processed for securitization hold expirations.
261
+ * Highest Bitcoin UTXO sync height checked for funding expirations; failures remain pending.
259
262
  **/
260
263
  lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
261
264
  ApiType,
262
265
  () => Observable<Option<u64>>,
263
266
  []
264
267
  >;
268
+ /**
269
+ * Resume retries after this Lock so a persistent failure cannot starve other expirations.
270
+ **/
271
+ lastRetriedLockExpiration: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
265
272
  /**
266
273
  * Utxos that have been requested to be cosigned for releasing
267
274
  **/
@@ -367,6 +374,14 @@ declare module '@polkadot/api-base/types/storage' {
367
374
  ) => Observable<Option<PalletBitcoinLocksOrphanedUtxo>>,
368
375
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
369
376
  >;
377
+ /**
378
+ * Locks whose funding-window or terminal expiration failed and must be retried.
379
+ **/
380
+ pendingLockExpirations: AugmentedQuery<
381
+ ApiType,
382
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<Null>>,
383
+ [u64]
384
+ >;
370
385
  /**
371
386
  * Cosigned partial releases awaiting confirmation on Bitcoin.
372
387
  **/
@@ -1088,6 +1103,11 @@ declare module '@polkadot/api-base/types/storage' {
1088
1103
  * Argonots that must be locked to take a Miner role
1089
1104
  **/
1090
1105
  argonotsPerMiningSeat: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1106
+ auctionAdmissionClosed: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1107
+ /**
1108
+ * Zero on fresh chains. Upgrades finish the deployed fixed-price auction first.
1109
+ **/
1110
+ auctionRulesStartAt: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1091
1111
  /**
1092
1112
  * Winning bid totals and seat counts for averaging prices over the last 10 frames (newest
1093
1113
  * first).
@@ -1097,6 +1117,14 @@ declare module '@polkadot/api-base/types/storage' {
1097
1117
  () => Observable<Vec<PalletMiningSlotSeatPriceStats>>,
1098
1118
  []
1099
1119
  >;
1120
+ /**
1121
+ * Vector position is canonical commitment order, including calls inside utility batches.
1122
+ **/
1123
+ bidBatches: AugmentedQuery<
1124
+ ApiType,
1125
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>,
1126
+ [u32]
1127
+ >;
1100
1128
  /**
1101
1129
  * The cohort set to go into effect in the next slot. The Vec has all
1102
1130
  * registrants with their bid amount
@@ -1118,9 +1146,14 @@ declare module '@polkadot/api-base/types/storage' {
1118
1146
  * The previous 10 frame start ticks
1119
1147
  **/
1120
1148
  frameStartTicks: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u64>>, []>;
1149
+ /**
1150
+ * Whether the current auction has an accepted price, including a valid zero price.
1151
+ **/
1152
+ hasAcceptedBidPrice: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1121
1153
  hasAddedGrandpaRotation: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1122
1154
  /**
1123
- * The number of bids per slot for the last 10 slots (newest first)
1155
+ * Bid activity and accepted prices for the last 10 auctions (newest first).
1156
+ * Activity counts committed submissions and automatic standing-bid price increases.
1124
1157
  **/
1125
1158
  historicalBidsPerSlot: AugmentedQuery<
1126
1159
  ApiType,
@@ -1131,6 +1164,7 @@ declare module '@polkadot/api-base/types/storage' {
1131
1164
  * Is the next slot still open for bids
1132
1165
  **/
1133
1166
  isNextSlotBiddingOpen: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1167
+ lastBidBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
1134
1168
  /**
1135
1169
  * This is a lookup of each miner's nonce to use when picking a best authority to submit a
1136
1170
  * block. It's a blake2 256 hash of the miner account id and the block hash at time of
@@ -1172,6 +1206,11 @@ declare module '@polkadot/api-base/types/storage' {
1172
1206
  * cohorts.
1173
1207
  **/
1174
1208
  nextFrameId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1209
+ pendingBids: AugmentedQuery<
1210
+ ApiType,
1211
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMiningSlotPendingBid>>,
1212
+ [AccountId32]
1213
+ >;
1175
1214
  /**
1176
1215
  * The miners released in the last block (only kept for a single block)
1177
1216
  **/
@@ -1190,6 +1229,11 @@ declare module '@polkadot/api-base/types/storage' {
1190
1229
  () => Observable<BTreeMap<u64, u32>>,
1191
1230
  []
1192
1231
  >;
1232
+ standingBids: AugmentedQuery<
1233
+ ApiType,
1234
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMiningSlotStandingBid>>,
1235
+ [AccountId32]
1236
+ >;
1193
1237
  /**
1194
1238
  * Temporary store the frame info digest
1195
1239
  **/
@@ -1833,6 +1877,14 @@ declare module '@polkadot/api-base/types/storage' {
1833
1877
  () => Observable<Option<PalletTreasuryFrameArgonotBondParticipants>>,
1834
1878
  []
1835
1879
  >;
1880
+ /**
1881
+ * Covered Bitcoin locked alongside vault capital for frames using independent reward tiers.
1882
+ **/
1883
+ currentFrameVaultBitcoin: AugmentedQuery<
1884
+ ApiType,
1885
+ () => Observable<Option<PalletTreasuryFrameVaultBitcoin>>,
1886
+ []
1887
+ >;
1836
1888
  /**
1837
1889
  * The network bond total and vault capital locked for the current frame's payout.
1838
1890
  **/
@@ -1895,12 +1947,12 @@ declare module '@polkadot/api-base/types/storage' {
1895
1947
  };
1896
1948
  treasuryPositions: {
1897
1949
  /**
1898
- * Maintained network quantities, updated together with their account contributions.
1899
- * Treasury reads these when freezing frame inputs. This replaces its live Argonot stake total.
1950
+ * Account contribution totals and Vault Bitcoin coverage, maintained as sources change.
1951
+ * Treasury freezes these network quantities at each frame boundary.
1900
1952
  **/
1901
1953
  networkTotals: AugmentedQuery<
1902
1954
  ApiType,
1903
- () => Observable<ArgonPrimitivesTreasuryPositionQuantities>,
1955
+ () => Observable<ArgonPrimitivesTreasuryNetworkPositionQuantities>,
1904
1956
  []
1905
1957
  >;
1906
1958
  /**
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -49,12 +48,14 @@ import type {
49
48
  ArgonRuntimeProxyType,
50
49
  ArgonRuntimeSessionKeys,
51
50
  PalletBalancesAdjustmentDirection,
51
+ PalletBitcoinLocksFeeCoupon,
52
52
  PalletBitcoinLocksLockOptions,
53
53
  PalletBootstrapEndpointPubkey,
54
54
  PalletBootstrapRecoveryProof,
55
55
  PalletBootstrapRecoveryPubkey,
56
56
  PalletCrosschainTransferAssetKind,
57
57
  PalletCrosschainTransferChainConfig,
58
+ PalletCrosschainTransferGatewayActivityStorageProof,
58
59
  PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
59
60
  PalletCrosschainTransferSourceChain,
60
61
  PalletEthereumVerifierBasicOperatingMode,
@@ -300,8 +301,28 @@ declare module '@polkadot/api-base/types/submittable' {
300
301
  lockId: Compact<u64> | AnyNumber | Uint8Array,
301
302
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
302
303
  microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
304
+ feeCoupon:
305
+ | Option<PalletBitcoinLocksFeeCoupon>
306
+ | null
307
+ | Uint8Array
308
+ | PalletBitcoinLocksFeeCoupon
309
+ | {
310
+ feeDiscount?: any;
311
+ securitizationSpaceToUnreserve?: any;
312
+ expiresAtFrame?: any;
313
+ nonce?: any;
314
+ signature?: any;
315
+ }
316
+ | string,
303
317
  ) => SubmittableExtrinsic<ApiType>,
304
- [Compact<u64>, Compact<u64>, Compact<u64>, Compact<u64>, Compact<u128>]
318
+ [
319
+ Compact<u64>,
320
+ Compact<u64>,
321
+ Compact<u64>,
322
+ Compact<u64>,
323
+ Compact<u128>,
324
+ Option<PalletBitcoinLocksFeeCoupon>,
325
+ ]
305
326
  >;
306
327
  /**
307
328
  * Ratchet an active Fission to a replacement target-normalized BTC value.
@@ -310,8 +331,21 @@ declare module '@polkadot/api-base/types/submittable' {
310
331
  (
311
332
  fissionId: Compact<u64> | AnyNumber | Uint8Array,
312
333
  microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
334
+ feeCoupon:
335
+ | Option<PalletBitcoinLocksFeeCoupon>
336
+ | null
337
+ | Uint8Array
338
+ | PalletBitcoinLocksFeeCoupon
339
+ | {
340
+ feeDiscount?: any;
341
+ securitizationSpaceToUnreserve?: any;
342
+ expiresAtFrame?: any;
343
+ nonce?: any;
344
+ signature?: any;
345
+ }
346
+ | string,
313
347
  ) => SubmittableExtrinsic<ApiType>,
314
- [Compact<u64>, Compact<u128>]
348
+ [Compact<u64>, Compact<u128>, Option<PalletBitcoinLocksFeeCoupon>]
315
349
  >;
316
350
  };
317
351
  bitcoinLocks: {
@@ -410,10 +444,17 @@ declare module '@polkadot/api-base/types/submittable' {
410
444
  ) => SubmittableExtrinsic<ApiType>,
411
445
  [u64, Bytes, u64, u64]
412
446
  >;
447
+ setFlexible: AugmentedSubmittable<
448
+ (
449
+ lockId: u64 | AnyNumber | Uint8Array,
450
+ isFlexible: bool | boolean | Uint8Array,
451
+ ) => SubmittableExtrinsic<ApiType>,
452
+ [u64, bool]
453
+ >;
413
454
  /**
414
- * Replace this Lock's BTC coverage and target value for its remaining term.
455
+ * Replace the Lock's guarantee, leaving active Fission guarantees unchanged.
415
456
  **/
416
- resecuritize: AugmentedSubmittable<
457
+ setGuarantee: AugmentedSubmittable<
417
458
  (
418
459
  lockId: u64 | AnyNumber | Uint8Array,
419
460
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
@@ -427,13 +468,6 @@ declare module '@polkadot/api-base/types/submittable' {
427
468
  ) => SubmittableExtrinsic<ApiType>,
428
469
  [u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
429
470
  >;
430
- setFlexible: AugmentedSubmittable<
431
- (
432
- lockId: u64 | AnyNumber | Uint8Array,
433
- isFlexible: bool | boolean | Uint8Array,
434
- ) => SubmittableExtrinsic<ApiType>,
435
- [u64, bool]
436
- >;
437
471
  };
438
472
  bitcoinUtxos: {
439
473
  /**
@@ -586,6 +620,25 @@ declare module '@polkadot/api-base/types/submittable' {
586
620
  ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
587
621
  ]
588
622
  >;
623
+ /**
624
+ * Authenticate a complete gateway locator and settle its unconsumed activities.
625
+ **/
626
+ proveGatewayActivityStorage: AugmentedSubmittable<
627
+ (
628
+ sourceChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
629
+ previousGatewayActivityNonce: Compact<u64> | AnyNumber | Uint8Array,
630
+ proof:
631
+ | PalletCrosschainTransferGatewayActivityStorageProof
632
+ | { locatorIndex?: any; activityRootSeed?: any; storageProof?: any; activityLogs?: any }
633
+ | string
634
+ | Uint8Array,
635
+ ) => SubmittableExtrinsic<ApiType>,
636
+ [
637
+ PalletCrosschainTransferSourceChain,
638
+ Compact<u64>,
639
+ PalletCrosschainTransferGatewayActivityStorageProof,
640
+ ]
641
+ >;
589
642
  registerCouncilSigner: AugmentedSubmittable<
590
643
  (
591
644
  destinationChain: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
@@ -832,28 +885,9 @@ declare module '@polkadot/api-base/types/submittable' {
832
885
  };
833
886
  miningSlot: {
834
887
  /**
835
- * Submit a bid for a mining slot in the next cohort. Once all spots are filled in the next
836
- * cohort, a bidder can be supplanted by supplying a higher bid.
837
- *
838
- * Each slot has `MaxCohortSize` spots available.
839
- *
840
- * To be eligible for a slot, you must have the required ownership tokens (argonots) in
841
- * this account. The required amount is calculated as a percentage of the total ownership
842
- * tokens in the network. This percentage is adjusted before the beginning of each slot.
843
- *
844
- * If your bid is no longer winning, a `SlotBidderDropped` event will be emitted. By
845
- * monitoring for this event, you will be able to ensure your bid is accepted.
846
- *
847
- * NOTE: bidding for each slot will be closed at a random block within
848
- * `mining_config.ticks_before_bid_end_for_vrf_close` blocks of the slot end time.
849
- *
850
- * The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
851
- *
852
- * Parameters:
853
- * - `bid`: The amount of argons to bid
854
- * - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
855
- * - `mining_account_id`: This account_id allows you to operate as this miner account id,
856
- * but use funding (argonots and bid) from the submitting account
888
+ * Submit a funded public bid, optionally committing to a hidden maximum.
889
+ * Every bid competes at its public amount even if no maximum is revealed.
890
+ * An omitted target frame selects the current auction at dispatch time.
857
891
  **/
858
892
  bid: AugmentedSubmittable<
859
893
  (
@@ -864,8 +898,23 @@ declare module '@polkadot/api-base/types/submittable' {
864
898
  | string
865
899
  | Uint8Array,
866
900
  miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
901
+ targetFrameId: Option<u64> | null | Uint8Array | u64 | AnyNumber,
902
+ maxHash: Option<U8aFixed> | null | Uint8Array | U8aFixed | string,
903
+ ) => SubmittableExtrinsic<ApiType>,
904
+ [u128, ArgonRuntimeSessionKeys, Option<AccountId32>, Option<u64>, Option<U8aFixed>]
905
+ >;
906
+ /**
907
+ * Disclose a committed maximum during the five blocks following submission.
908
+ * The target frame must match the original bid and the current auction.
909
+ **/
910
+ bidMax: AugmentedSubmittable<
911
+ (
912
+ max: u128 | AnyNumber | Uint8Array,
913
+ salt: U8aFixed | string | Uint8Array,
914
+ miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
915
+ targetFrameId: u64 | AnyNumber | Uint8Array,
867
916
  ) => SubmittableExtrinsic<ApiType>,
868
- [u128, ArgonRuntimeSessionKeys, Option<AccountId32>]
917
+ [u128, U8aFixed, Option<AccountId32>, u64]
869
918
  >;
870
919
  /**
871
920
  * Admin function to update the mining slot delay.