@argonprotocol/mainchain 1.0.8 → 1.0.10
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/lib/cjs/interfaces/augment-api-consts.d.ts +57 -57
- package/lib/cjs/interfaces/augment-api-errors.d.ts +91 -106
- package/lib/cjs/interfaces/augment-api-events.d.ts +108 -102
- package/lib/cjs/interfaces/augment-api-query.d.ts +76 -52
- package/lib/cjs/interfaces/augment-api-tx.d.ts +71 -55
- package/lib/cjs/interfaces/lookup.d.ts +234 -206
- package/lib/cjs/interfaces/lookup.js +250 -222
- package/lib/cjs/interfaces/lookup.js.map +1 -1
- package/lib/cjs/interfaces/registry.d.ts +15 -14
- package/lib/cjs/interfaces/types-lookup.d.ts +276 -251
- package/lib/esm/interfaces/augment-api-consts.d.ts +57 -57
- package/lib/esm/interfaces/augment-api-errors.d.ts +91 -106
- package/lib/esm/interfaces/augment-api-events.d.ts +108 -102
- package/lib/esm/interfaces/augment-api-query.d.ts +76 -52
- package/lib/esm/interfaces/augment-api-tx.d.ts +71 -55
- package/lib/esm/interfaces/lookup.d.ts +234 -206
- package/lib/esm/interfaces/lookup.js +250 -222
- package/lib/esm/interfaces/lookup.js.map +1 -1
- package/lib/esm/interfaces/registry.d.ts +15 -14
- package/lib/esm/interfaces/types-lookup.d.ts +276 -251
- package/lib/tsconfig-cjs.tsbuildinfo +1 -1
- package/lib/tsconfig-types.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/interfaces/augment-api-consts.d.ts +57 -57
- package/lib/types/interfaces/augment-api-errors.d.ts +91 -106
- package/lib/types/interfaces/augment-api-events.d.ts +108 -102
- package/lib/types/interfaces/augment-api-query.d.ts +76 -52
- package/lib/types/interfaces/augment-api-tx.d.ts +71 -55
- package/lib/types/interfaces/lookup.d.ts +234 -206
- package/lib/types/interfaces/registry.d.ts +15 -14
- package/lib/types/interfaces/types-lookup.d.ts +276 -251
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { BTreeMap, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesBitcoinOpaqueBitcoinXpub, ArgonPrimitivesBlockSealRewardDestination,
|
|
6
|
+
import type { ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesBitcoinOpaqueBitcoinXpub, ArgonPrimitivesBlockSealRewardDestination, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesInherentsBitcoinUtxoSync, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotebookSignedNotebookHeader, ArgonPrimitivesVaultVaultTerms, ArgonRuntimeConfigsProxyType, ArgonRuntimeOriginCaller, ArgonRuntimeSessionKeys, IsmpGrandpaAddStateMachine, IsmpHostStateMachine, IsmpMessagingCreateConsensusState, IsmpMessagingMessage, PalletBalancesAdjustmentDirection, PalletIsmpUtilsFundMessageParams, PalletIsmpUtilsUpdateConsensusState, PalletMiningSlotMiningSlotBid, PalletMultisigTimepoint, PalletPriceIndexPriceIndex, PalletTokenGatewayAssetRegistration, PalletTokenGatewayPrecisionUpdate, PalletTokenGatewayTeleportParams, PalletVaultsVaultConfig, SpConsensusGrandpaEquivocationProof, SpCoreVoid, SpWeightsWeightV2Weight, TokenGatewayPrimitivesGatewayAssetUpdate } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
8
8
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
9
9
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -164,6 +164,38 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
164
164
|
**/
|
|
165
165
|
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
166
166
|
};
|
|
167
|
+
bitcoinLocks: {
|
|
168
|
+
adminModifyMinimumLockedSats: AugmentedSubmittable<(satoshis: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
169
|
+
/**
|
|
170
|
+
* Submitted by a Vault operator to cosign the release of a bitcoin utxo. The Bitcoin owner
|
|
171
|
+
* release fee will be burned, and the obligation will be allowed to expire without
|
|
172
|
+
* penalty.
|
|
173
|
+
*
|
|
174
|
+
* This is submitted as a no-fee transaction off chain to allow keys to remain in cold
|
|
175
|
+
* wallets.
|
|
176
|
+
**/
|
|
177
|
+
cosignRelease: AugmentedSubmittable<(utxoId: u64 | AnyNumber | Uint8Array, signature: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
|
|
178
|
+
/**
|
|
179
|
+
* Initialize a bitcoin lock. This will create a LockedBitcoin for the submitting account
|
|
180
|
+
* and log the Bitcoin Script hash to Events.
|
|
181
|
+
*
|
|
182
|
+
* The pubkey submitted here will be used to create a script pubkey that will be used in a
|
|
183
|
+
* timelock multisig script to lock the bitcoin.
|
|
184
|
+
*
|
|
185
|
+
* NOTE: A "lock-er" must sends btc to the cosign UTXO address in order to "complete" the
|
|
186
|
+
* LockedBitcoin and be added to the Bitcoin Mint line.
|
|
187
|
+
**/
|
|
188
|
+
initialize: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, satoshis: Compact<u64> | AnyNumber | Uint8Array, bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Compact<u64>, ArgonPrimitivesBitcoinCompressedBitcoinPubkey]>;
|
|
189
|
+
/**
|
|
190
|
+
* Submitted by a Bitcoin holder to trigger the release of their Utxo out of the cosign
|
|
191
|
+
* script. A transaction spending the UTXO should be pre-created so that the sighash
|
|
192
|
+
* can be submitted here. The vault operator will have 10 days to counter-sign the
|
|
193
|
+
* transaction. It will be published with the public key as a BitcoinUtxoCosigned Event.
|
|
194
|
+
*
|
|
195
|
+
* Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
|
|
196
|
+
**/
|
|
197
|
+
requestRelease: AugmentedSubmittable<(utxoId: u64 | AnyNumber | Uint8Array, toScriptPubkey: Bytes | string | Uint8Array, bitcoinNetworkFee: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes, u64]>;
|
|
198
|
+
};
|
|
167
199
|
bitcoinUtxos: {
|
|
168
200
|
/**
|
|
169
201
|
* Sets the most recent confirmed bitcoin block height (only executable by the Oracle
|
|
@@ -190,7 +222,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
190
222
|
syncToBlock?: any;
|
|
191
223
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonPrimitivesInherentsBitcoinUtxoSync]>;
|
|
192
224
|
};
|
|
193
|
-
blockRewards: {
|
|
225
|
+
blockRewards: {
|
|
226
|
+
setBlockRewardsPaused: AugmentedSubmittable<(paused: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
227
|
+
};
|
|
194
228
|
blockSeal: {
|
|
195
229
|
apply: AugmentedSubmittable<(seal: ArgonPrimitivesInherentsBlockSealInherent | {
|
|
196
230
|
Vote: any;
|
|
@@ -201,34 +235,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
201
235
|
blockSealSpec: {
|
|
202
236
|
configure: AugmentedSubmittable<(voteMinimum: Option<u128> | null | Uint8Array | u128 | AnyNumber, computeDifficulty: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u128>, Option<u128>]>;
|
|
203
237
|
};
|
|
204
|
-
bonds: {
|
|
205
|
-
/**
|
|
206
|
-
* Bond a bitcoin. This will create a bond for the submitting account and log the Bitcoin
|
|
207
|
-
* Script hash to Events. A bondee must create the UTXO in order to be added to the Bitcoin
|
|
208
|
-
* Mint line.
|
|
209
|
-
*
|
|
210
|
-
* The pubkey submitted here will be used to create a script pubkey that will be used in a
|
|
211
|
-
* timelock multisig script to lock the bitcoin.
|
|
212
|
-
**/
|
|
213
|
-
bondBitcoin: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, satoshis: Compact<u64> | AnyNumber | Uint8Array, bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Compact<u64>, ArgonPrimitivesBitcoinCompressedBitcoinPubkey]>;
|
|
214
|
-
/**
|
|
215
|
-
* Submitted by a Vault operator to cosign the unlock of a bitcoin utxo. The Bitcoin owner
|
|
216
|
-
* unlock fee will be burned, and the bond will be allowed to expire without penalty.
|
|
217
|
-
*
|
|
218
|
-
* This is submitted as a no-fee transaction off chain to allow keys to remain in cold
|
|
219
|
-
* wallets.
|
|
220
|
-
**/
|
|
221
|
-
cosignBitcoinUnlock: AugmentedSubmittable<(bondId: u64 | AnyNumber | Uint8Array, signature: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
|
|
222
|
-
/**
|
|
223
|
-
* Submitted by a Bitcoin holder to trigger the unlock of their Bitcoin. A transaction
|
|
224
|
-
* spending the UTXO from the given bond should be pre-created so that the sighash can be
|
|
225
|
-
* submitted here. The vault operator will have 10 days to counter-sign the transaction. It
|
|
226
|
-
* will be published with the public key as a BitcoinUtxoCosigned Event.
|
|
227
|
-
*
|
|
228
|
-
* Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
|
|
229
|
-
**/
|
|
230
|
-
unlockBitcoinBond: AugmentedSubmittable<(bondId: u64 | AnyNumber | Uint8Array, toScriptPubkey: Bytes | string | Uint8Array, bitcoinNetworkFee: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes, u64]>;
|
|
231
|
-
};
|
|
232
238
|
chainTransfer: {
|
|
233
239
|
sendToLocalchain: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, notaryId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
|
234
240
|
};
|
|
@@ -370,9 +376,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
370
376
|
miningSlot: {
|
|
371
377
|
/**
|
|
372
378
|
* Submit a bid for a mining slot in the next cohort. Once all spots are filled in a slot,
|
|
373
|
-
* a slot can be supplanted by supplying a higher
|
|
374
|
-
* found in the `vaults` pallet. You will supply the
|
|
375
|
-
* with.
|
|
379
|
+
* a slot can be supplanted by supplying a higher number of Bonded Argons. Bonded Argon
|
|
380
|
+
* terms can be found in the `vaults` pallet. You will supply the amount and the
|
|
381
|
+
* vault id to work with.
|
|
376
382
|
*
|
|
377
383
|
* Each slot has `MaxCohortSize` spots available.
|
|
378
384
|
*
|
|
@@ -384,21 +390,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
384
390
|
* this event, you will be able to ensure your bid is accepted.
|
|
385
391
|
*
|
|
386
392
|
* NOTE: bidding for each slot will be closed at a random block within
|
|
387
|
-
* `mining_config.
|
|
393
|
+
* `mining_config.ticks_before_bid_end_for_vrf_close` blocks of the slot end time.
|
|
388
394
|
*
|
|
389
395
|
* The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
|
|
390
396
|
*
|
|
391
397
|
* Parameters:
|
|
392
|
-
* - `
|
|
398
|
+
* - `bonded_argons`: The information to submit for the bid. If `None`, the bid will be
|
|
393
399
|
* considered a zero-bid.
|
|
394
|
-
* - `vault_id`: The vault id to
|
|
400
|
+
* - `vault_id`: The vault id to used. Terms are taken from the vault at time of bid
|
|
395
401
|
* inclusion in the block.
|
|
396
|
-
* - `amount`: The amount to
|
|
402
|
+
* - `amount`: The amount to reserve from the vault.
|
|
397
403
|
* - `reward_destination`: The account_id for the mining rewards, or `Owner` for the
|
|
398
404
|
* submitting user.
|
|
399
405
|
* - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
|
|
400
406
|
**/
|
|
401
|
-
bid: AugmentedSubmittable<(
|
|
407
|
+
bid: AugmentedSubmittable<(bondedArgons: Option<PalletMiningSlotMiningSlotBid> | null | Uint8Array | PalletMiningSlotMiningSlotBid | {
|
|
402
408
|
vaultId?: any;
|
|
403
409
|
amount?: any;
|
|
404
410
|
} | string, rewardDestination: ArgonPrimitivesBlockSealRewardDestination | {
|
|
@@ -1140,6 +1146,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1140
1146
|
localId?: any;
|
|
1141
1147
|
reg?: any;
|
|
1142
1148
|
native?: any;
|
|
1149
|
+
precision?: any;
|
|
1143
1150
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletTokenGatewayAssetRegistration]>;
|
|
1144
1151
|
/**
|
|
1145
1152
|
* Set the token gateway address for specified chains
|
|
@@ -1158,7 +1165,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1158
1165
|
tokenGateway?: any;
|
|
1159
1166
|
relayerFee?: any;
|
|
1160
1167
|
callData?: any;
|
|
1168
|
+
redeem?: any;
|
|
1161
1169
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletTokenGatewayTeleportParams]>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Update the precision for an existing asset
|
|
1172
|
+
**/
|
|
1173
|
+
updateAssetPrecision: AugmentedSubmittable<(update: PalletTokenGatewayPrecisionUpdate | {
|
|
1174
|
+
assetId?: any;
|
|
1175
|
+
precisions?: any;
|
|
1176
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletTokenGatewayPrecisionUpdate]>;
|
|
1162
1177
|
/**
|
|
1163
1178
|
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
1164
1179
|
*
|
|
@@ -1286,42 +1301,43 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1286
1301
|
};
|
|
1287
1302
|
vaults: {
|
|
1288
1303
|
/**
|
|
1289
|
-
* Stop offering additional
|
|
1290
|
-
* As funds are returned, they will be released to the vault owner.
|
|
1304
|
+
* Stop offering additional obligations from this vault. Will not affect existing
|
|
1305
|
+
* obligations. As funds are returned, they will be released to the vault owner.
|
|
1291
1306
|
**/
|
|
1292
1307
|
close: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1293
1308
|
create: AugmentedSubmittable<(vaultConfig: PalletVaultsVaultConfig | {
|
|
1294
1309
|
terms?: any;
|
|
1295
1310
|
bitcoinAmountAllocated?: any;
|
|
1296
1311
|
bitcoinXpubkey?: any;
|
|
1297
|
-
|
|
1298
|
-
|
|
1312
|
+
bondedArgonsAllocated?: any;
|
|
1313
|
+
addedSecuritizationPercent?: any;
|
|
1299
1314
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletVaultsVaultConfig]>;
|
|
1300
1315
|
/**
|
|
1301
|
-
* Modify funds offered by the vault. This will not affect
|
|
1302
|
-
* the amount of funds available for new
|
|
1316
|
+
* Modify funds offered by the vault. This will not affect issued obligations, but will
|
|
1317
|
+
* affect the amount of funds available for new ones.
|
|
1303
1318
|
*
|
|
1304
|
-
* The securitization percent must be maintained or increased.
|
|
1319
|
+
* The additional securitization percent must be maintained or increased.
|
|
1305
1320
|
*
|
|
1306
|
-
* The amount offered may not go below the existing
|
|
1307
|
-
* funds in this vault as
|
|
1308
|
-
* `close` api.
|
|
1321
|
+
* The amount offered may not go below the existing reserved amounts, but you can release
|
|
1322
|
+
* funds in this vault as obligations are released. To stop issuing any more obligations,
|
|
1323
|
+
* use the `close` api.
|
|
1309
1324
|
**/
|
|
1310
|
-
modifyFunding: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, totalMiningAmountOffered: u128 | AnyNumber | Uint8Array, totalBitcoinAmountOffered: u128 | AnyNumber | Uint8Array,
|
|
1325
|
+
modifyFunding: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, totalMiningAmountOffered: u128 | AnyNumber | Uint8Array, totalBitcoinAmountOffered: u128 | AnyNumber | Uint8Array, addedSecuritizationPercent: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128, u128, u128]>;
|
|
1311
1326
|
/**
|
|
1312
1327
|
* Change the terms of this vault. The change will be applied at the next mining slot
|
|
1313
1328
|
* change that is at least `MinTermsModificationBlockDelay` blocks away.
|
|
1314
1329
|
**/
|
|
1315
|
-
modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms:
|
|
1330
|
+
modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms: ArgonPrimitivesVaultVaultTerms | {
|
|
1316
1331
|
bitcoinAnnualPercentRate?: any;
|
|
1317
1332
|
bitcoinBaseFee?: any;
|
|
1318
|
-
|
|
1319
|
-
|
|
1333
|
+
bondedArgonsAnnualPercentRate?: any;
|
|
1334
|
+
bondedArgonsBaseFee?: any;
|
|
1320
1335
|
miningRewardSharingPercentTake?: any;
|
|
1321
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32,
|
|
1336
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ArgonPrimitivesVaultVaultTerms]>;
|
|
1322
1337
|
/**
|
|
1323
|
-
* Replace the bitcoin xpubkey for this vault. This will not affect existing
|
|
1324
|
-
* will be used for any
|
|
1338
|
+
* Replace the bitcoin xpubkey for this vault. This will not affect existing obligations,
|
|
1339
|
+
* but will be used for any obligations after this point. Will be rejected if already
|
|
1340
|
+
* used.
|
|
1325
1341
|
**/
|
|
1326
1342
|
replaceBitcoinXpub: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, bitcoinXpub: ArgonPrimitivesBitcoinOpaqueBitcoinXpub | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]>;
|
|
1327
1343
|
};
|