@argonprotocol/mainchain 1.0.9 → 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 +72 -52
- package/lib/cjs/interfaces/augment-api-tx.d.ts +68 -54
- package/lib/cjs/interfaces/lookup.d.ts +227 -205
- package/lib/cjs/interfaces/lookup.js +243 -221
- 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 +269 -250
- 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 +72 -52
- package/lib/esm/interfaces/augment-api-tx.d.ts +68 -54
- package/lib/esm/interfaces/lookup.d.ts +227 -205
- package/lib/esm/interfaces/lookup.js +243 -221
- 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 +269 -250
- 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 +72 -52
- package/lib/types/interfaces/augment-api-tx.d.ts +68 -54
- package/lib/types/interfaces/lookup.d.ts +227 -205
- package/lib/types/interfaces/registry.d.ts +15 -14
- package/lib/types/interfaces/types-lookup.d.ts +269 -250
- 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
|
|
@@ -203,34 +235,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
203
235
|
blockSealSpec: {
|
|
204
236
|
configure: AugmentedSubmittable<(voteMinimum: Option<u128> | null | Uint8Array | u128 | AnyNumber, computeDifficulty: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u128>, Option<u128>]>;
|
|
205
237
|
};
|
|
206
|
-
bonds: {
|
|
207
|
-
/**
|
|
208
|
-
* Bond a bitcoin. This will create a bond for the submitting account and log the Bitcoin
|
|
209
|
-
* Script hash to Events. A bondee must create the UTXO in order to be added to the Bitcoin
|
|
210
|
-
* Mint line.
|
|
211
|
-
*
|
|
212
|
-
* The pubkey submitted here will be used to create a script pubkey that will be used in a
|
|
213
|
-
* timelock multisig script to lock the bitcoin.
|
|
214
|
-
**/
|
|
215
|
-
bondBitcoin: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, satoshis: Compact<u64> | AnyNumber | Uint8Array, bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Compact<u64>, ArgonPrimitivesBitcoinCompressedBitcoinPubkey]>;
|
|
216
|
-
/**
|
|
217
|
-
* Submitted by a Vault operator to cosign the unlock of a bitcoin utxo. The Bitcoin owner
|
|
218
|
-
* unlock fee will be burned, and the bond will be allowed to expire without penalty.
|
|
219
|
-
*
|
|
220
|
-
* This is submitted as a no-fee transaction off chain to allow keys to remain in cold
|
|
221
|
-
* wallets.
|
|
222
|
-
**/
|
|
223
|
-
cosignBitcoinUnlock: AugmentedSubmittable<(bondId: u64 | AnyNumber | Uint8Array, signature: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes]>;
|
|
224
|
-
/**
|
|
225
|
-
* Submitted by a Bitcoin holder to trigger the unlock of their Bitcoin. A transaction
|
|
226
|
-
* spending the UTXO from the given bond should be pre-created so that the sighash can be
|
|
227
|
-
* submitted here. The vault operator will have 10 days to counter-sign the transaction. It
|
|
228
|
-
* will be published with the public key as a BitcoinUtxoCosigned Event.
|
|
229
|
-
*
|
|
230
|
-
* Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
|
|
231
|
-
**/
|
|
232
|
-
unlockBitcoinBond: AugmentedSubmittable<(bondId: u64 | AnyNumber | Uint8Array, toScriptPubkey: Bytes | string | Uint8Array, bitcoinNetworkFee: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Bytes, u64]>;
|
|
233
|
-
};
|
|
234
238
|
chainTransfer: {
|
|
235
239
|
sendToLocalchain: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, notaryId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
|
236
240
|
};
|
|
@@ -372,9 +376,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
372
376
|
miningSlot: {
|
|
373
377
|
/**
|
|
374
378
|
* Submit a bid for a mining slot in the next cohort. Once all spots are filled in a slot,
|
|
375
|
-
* a slot can be supplanted by supplying a higher
|
|
376
|
-
* found in the `vaults` pallet. You will supply the
|
|
377
|
-
* 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.
|
|
378
382
|
*
|
|
379
383
|
* Each slot has `MaxCohortSize` spots available.
|
|
380
384
|
*
|
|
@@ -386,21 +390,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
386
390
|
* this event, you will be able to ensure your bid is accepted.
|
|
387
391
|
*
|
|
388
392
|
* NOTE: bidding for each slot will be closed at a random block within
|
|
389
|
-
* `mining_config.
|
|
393
|
+
* `mining_config.ticks_before_bid_end_for_vrf_close` blocks of the slot end time.
|
|
390
394
|
*
|
|
391
395
|
* The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
|
|
392
396
|
*
|
|
393
397
|
* Parameters:
|
|
394
|
-
* - `
|
|
398
|
+
* - `bonded_argons`: The information to submit for the bid. If `None`, the bid will be
|
|
395
399
|
* considered a zero-bid.
|
|
396
|
-
* - `vault_id`: The vault id to
|
|
400
|
+
* - `vault_id`: The vault id to used. Terms are taken from the vault at time of bid
|
|
397
401
|
* inclusion in the block.
|
|
398
|
-
* - `amount`: The amount to
|
|
402
|
+
* - `amount`: The amount to reserve from the vault.
|
|
399
403
|
* - `reward_destination`: The account_id for the mining rewards, or `Owner` for the
|
|
400
404
|
* submitting user.
|
|
401
405
|
* - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
|
|
402
406
|
**/
|
|
403
|
-
bid: AugmentedSubmittable<(
|
|
407
|
+
bid: AugmentedSubmittable<(bondedArgons: Option<PalletMiningSlotMiningSlotBid> | null | Uint8Array | PalletMiningSlotMiningSlotBid | {
|
|
404
408
|
vaultId?: any;
|
|
405
409
|
amount?: any;
|
|
406
410
|
} | string, rewardDestination: ArgonPrimitivesBlockSealRewardDestination | {
|
|
@@ -1142,6 +1146,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1142
1146
|
localId?: any;
|
|
1143
1147
|
reg?: any;
|
|
1144
1148
|
native?: any;
|
|
1149
|
+
precision?: any;
|
|
1145
1150
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletTokenGatewayAssetRegistration]>;
|
|
1146
1151
|
/**
|
|
1147
1152
|
* Set the token gateway address for specified chains
|
|
@@ -1160,7 +1165,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1160
1165
|
tokenGateway?: any;
|
|
1161
1166
|
relayerFee?: any;
|
|
1162
1167
|
callData?: any;
|
|
1168
|
+
redeem?: any;
|
|
1163
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]>;
|
|
1164
1177
|
/**
|
|
1165
1178
|
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
1166
1179
|
*
|
|
@@ -1288,42 +1301,43 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1288
1301
|
};
|
|
1289
1302
|
vaults: {
|
|
1290
1303
|
/**
|
|
1291
|
-
* Stop offering additional
|
|
1292
|
-
* 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.
|
|
1293
1306
|
**/
|
|
1294
1307
|
close: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1295
1308
|
create: AugmentedSubmittable<(vaultConfig: PalletVaultsVaultConfig | {
|
|
1296
1309
|
terms?: any;
|
|
1297
1310
|
bitcoinAmountAllocated?: any;
|
|
1298
1311
|
bitcoinXpubkey?: any;
|
|
1299
|
-
|
|
1300
|
-
|
|
1312
|
+
bondedArgonsAllocated?: any;
|
|
1313
|
+
addedSecuritizationPercent?: any;
|
|
1301
1314
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletVaultsVaultConfig]>;
|
|
1302
1315
|
/**
|
|
1303
|
-
* Modify funds offered by the vault. This will not affect
|
|
1304
|
-
* 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.
|
|
1305
1318
|
*
|
|
1306
|
-
* The securitization percent must be maintained or increased.
|
|
1319
|
+
* The additional securitization percent must be maintained or increased.
|
|
1307
1320
|
*
|
|
1308
|
-
* The amount offered may not go below the existing
|
|
1309
|
-
* funds in this vault as
|
|
1310
|
-
* `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.
|
|
1311
1324
|
**/
|
|
1312
|
-
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]>;
|
|
1313
1326
|
/**
|
|
1314
1327
|
* Change the terms of this vault. The change will be applied at the next mining slot
|
|
1315
1328
|
* change that is at least `MinTermsModificationBlockDelay` blocks away.
|
|
1316
1329
|
**/
|
|
1317
|
-
modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms:
|
|
1330
|
+
modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms: ArgonPrimitivesVaultVaultTerms | {
|
|
1318
1331
|
bitcoinAnnualPercentRate?: any;
|
|
1319
1332
|
bitcoinBaseFee?: any;
|
|
1320
|
-
|
|
1321
|
-
|
|
1333
|
+
bondedArgonsAnnualPercentRate?: any;
|
|
1334
|
+
bondedArgonsBaseFee?: any;
|
|
1322
1335
|
miningRewardSharingPercentTake?: any;
|
|
1323
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32,
|
|
1336
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ArgonPrimitivesVaultVaultTerms]>;
|
|
1324
1337
|
/**
|
|
1325
|
-
* Replace the bitcoin xpubkey for this vault. This will not affect existing
|
|
1326
|
-
* 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.
|
|
1327
1341
|
**/
|
|
1328
1342
|
replaceBitcoinXpub: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, bitcoinXpub: ArgonPrimitivesBitcoinOpaqueBitcoinXpub | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]>;
|
|
1329
1343
|
};
|