@argonprotocol/mainchain 1.4.10 → 1.4.11-dev.1acff0b2

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.
@@ -49,6 +49,9 @@ import type {
49
49
  ArgonRuntimeSessionKeys,
50
50
  PalletBalancesAdjustmentDirection,
51
51
  PalletBitcoinLocksLockOptions,
52
+ PalletBootstrapEndpointPubkey,
53
+ PalletBootstrapRecoveryProof,
54
+ PalletBootstrapRecoveryPubkey,
52
55
  PalletCrosschainTransferAssetKind,
53
56
  PalletCrosschainTransferChainConfig,
54
57
  PalletCrosschainTransferMintingAuthorityActivationRepaymentPricing,
@@ -61,6 +64,7 @@ import type {
61
64
  PalletMultisigTimepoint,
62
65
  PalletOperationalAccountsOperationalProgressPatch,
63
66
  PalletOperationalAccountsRegistration,
67
+ PalletPriceIndexEthereumPriceIndex,
64
68
  PalletPriceIndexPriceIndex,
65
69
  PalletVaultsVaultConfig,
66
70
  SnowbridgeBeaconPrimitivesBeaconHeader,
@@ -344,6 +348,7 @@ declare module '@polkadot/api-base/types/submittable' {
344
348
  | Uint8Array
345
349
  | PalletBitcoinLocksLockOptions
346
350
  | { V1: any }
351
+ | { V2: any }
347
352
  | string,
348
353
  ) => SubmittableExtrinsic<ApiType>,
349
354
  [
@@ -353,28 +358,6 @@ declare module '@polkadot/api-base/types/submittable' {
353
358
  Option<PalletBitcoinLocksLockOptions>,
354
359
  ]
355
360
  >;
356
- initializeFor: AugmentedSubmittable<
357
- (
358
- accountId: AccountId32 | string | Uint8Array,
359
- vaultId: u32 | AnyNumber | Uint8Array,
360
- satoshis: Compact<u64> | AnyNumber | Uint8Array,
361
- bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array,
362
- options:
363
- | Option<PalletBitcoinLocksLockOptions>
364
- | null
365
- | Uint8Array
366
- | PalletBitcoinLocksLockOptions
367
- | { V1: any }
368
- | string,
369
- ) => SubmittableExtrinsic<ApiType>,
370
- [
371
- AccountId32,
372
- u32,
373
- Compact<u64>,
374
- ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
375
- Option<PalletBitcoinLocksLockOptions>,
376
- ]
377
- >;
378
361
  /**
379
362
  * Ratcheting allows a user to change the lock price of their bitcoin lock. This is
380
363
  * functionally the same as releasing and re-initializing, but it allows a user to skip
@@ -400,6 +383,7 @@ declare module '@polkadot/api-base/types/submittable' {
400
383
  | Uint8Array
401
384
  | PalletBitcoinLocksLockOptions
402
385
  | { V1: any }
386
+ | { V2: any }
403
387
  | string,
404
388
  ) => SubmittableExtrinsic<ApiType>,
405
389
  [u64, Option<PalletBitcoinLocksLockOptions>]
@@ -432,6 +416,13 @@ declare module '@polkadot/api-base/types/submittable' {
432
416
  ) => SubmittableExtrinsic<ApiType>,
433
417
  [u64, Bytes, u64]
434
418
  >;
419
+ setFlexible: AugmentedSubmittable<
420
+ (
421
+ utxoId: u64 | AnyNumber | Uint8Array,
422
+ isFlexible: bool | boolean | Uint8Array,
423
+ ) => SubmittableExtrinsic<ApiType>,
424
+ [u64, bool]
425
+ >;
435
426
  };
436
427
  bitcoinUtxos: {
437
428
  /**
@@ -535,6 +526,35 @@ declare module '@polkadot/api-base/types/submittable' {
535
526
  [Option<u128>, Option<u128>]
536
527
  >;
537
528
  };
529
+ bootstrap: {
530
+ /**
531
+ * Store or replace an encrypted endpoint payload.
532
+ *
533
+ * The first writer for `endpoint_pubkey` becomes its owner. Later updates require the
534
+ * same signing account.
535
+ **/
536
+ setEndpoint: AugmentedSubmittable<
537
+ (
538
+ endpointPubkey: PalletBootstrapEndpointPubkey | string | Uint8Array,
539
+ encryptedEndpoint: Bytes | string | Uint8Array,
540
+ ) => SubmittableExtrinsic<ApiType>,
541
+ [PalletBootstrapEndpointPubkey, Bytes]
542
+ >;
543
+ /**
544
+ * Store or replace an encrypted recovery payload.
545
+ *
546
+ * The proof must be signed by `recovery_pubkey` and binds the submitting `writer`,
547
+ * `recovery_pubkey`, and the encrypted payload hash.
548
+ **/
549
+ setRecoveryPayload: AugmentedSubmittable<
550
+ (
551
+ recoveryPubkey: PalletBootstrapRecoveryPubkey | string | Uint8Array,
552
+ recoveryProof: PalletBootstrapRecoveryProof | { signature?: any } | string | Uint8Array,
553
+ encryptedRecoveryPayload: Bytes | string | Uint8Array,
554
+ ) => SubmittableExtrinsic<ApiType>,
555
+ [PalletBootstrapRecoveryPubkey, PalletBootstrapRecoveryProof, Bytes]
556
+ >;
557
+ };
538
558
  crosschainTransfer: {
539
559
  approveQueueEntries: AugmentedSubmittable<
540
560
  (
@@ -1178,14 +1198,11 @@ declare module '@polkadot/api-base/types/submittable' {
1178
1198
  [PalletOperationalAccountsRegistration]
1179
1199
  >;
1180
1200
  /**
1181
- * Store an opaque encrypted upstream server payload for a downstream account.
1201
+ * Update the display name on an operational account profile.
1182
1202
  **/
1183
- setEncryptedServerForDownstreamAccount: AugmentedSubmittable<
1184
- (
1185
- downstreamAccount: AccountId32 | string | Uint8Array,
1186
- encryptedServer: Bytes | string | Uint8Array,
1187
- ) => SubmittableExtrinsic<ApiType>,
1188
- [AccountId32, Bytes]
1203
+ setName: AugmentedSubmittable<
1204
+ (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
1205
+ [Option<Bytes>]
1189
1206
  >;
1190
1207
  /**
1191
1208
  * Update certification reward amounts for operational accounts.
@@ -1426,8 +1443,15 @@ declare module '@polkadot/api-base/types/submittable' {
1426
1443
  }
1427
1444
  | string
1428
1445
  | Uint8Array,
1446
+ ethereum:
1447
+ | Option<PalletPriceIndexEthereumPriceIndex>
1448
+ | null
1449
+ | Uint8Array
1450
+ | PalletPriceIndexEthereumPriceIndex
1451
+ | { ethereumUsdPrice?: any; ethereumGasPriceWei?: any; tick?: any }
1452
+ | string,
1429
1453
  ) => SubmittableExtrinsic<ApiType>,
1430
- [PalletPriceIndexPriceIndex]
1454
+ [PalletPriceIndexPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1431
1455
  >;
1432
1456
  };
1433
1457
  proxy: {
@@ -2023,7 +2047,15 @@ declare module '@polkadot/api-base/types/submittable' {
2023
2047
  | null
2024
2048
  | Uint8Array
2025
2049
  | ArgonPrimitivesVaultTreasuryBonusApprovalProof
2026
- | { vaultId?: any; beneficiary?: any; expiresAtFrame?: any; signature?: any }
2050
+ | {
2051
+ vaultId?: any;
2052
+ beneficiary?: any;
2053
+ bonusPercent?: any;
2054
+ expiresAtFrame?: any;
2055
+ bondSpaceToUnreserve?: any;
2056
+ nonce?: any;
2057
+ signature?: any;
2058
+ }
2027
2059
  | string,
2028
2060
  ) => SubmittableExtrinsic<ApiType>,
2029
2061
  [u32, u32, Option<ArgonPrimitivesVaultTreasuryBonusApprovalProof>]
@@ -2037,6 +2069,23 @@ declare module '@polkadot/api-base/types/submittable' {
2037
2069
  (bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2038
2070
  [u64]
2039
2071
  >;
2072
+ setBondLotFlexible: AugmentedSubmittable<
2073
+ (
2074
+ bondLotId: u64 | AnyNumber | Uint8Array,
2075
+ isFlexible: bool | boolean | Uint8Array,
2076
+ ) => SubmittableExtrinsic<ApiType>,
2077
+ [u64, bool]
2078
+ >;
2079
+ /**
2080
+ * Reserve vault bond space for future bond purchases.
2081
+ **/
2082
+ setReservedBondSpace: AugmentedSubmittable<
2083
+ (
2084
+ vaultId: u32 | AnyNumber | Uint8Array,
2085
+ reservedBondSpace: u32 | AnyNumber | Uint8Array,
2086
+ ) => SubmittableExtrinsic<ApiType>,
2087
+ [u32, u32]
2088
+ >;
2040
2089
  };
2041
2090
  txPause: {
2042
2091
  /**
@@ -2259,7 +2308,6 @@ declare module '@polkadot/api-base/types/submittable' {
2259
2308
  | PalletVaultsVaultConfig
2260
2309
  | {
2261
2310
  terms?: any;
2262
- name?: any;
2263
2311
  delegateAccountId?: any;
2264
2312
  securitization?: any;
2265
2313
  bitcoinXpubkey?: any;
@@ -2297,12 +2345,7 @@ declare module '@polkadot/api-base/types/submittable' {
2297
2345
  vaultId: u32 | AnyNumber | Uint8Array,
2298
2346
  terms:
2299
2347
  | ArgonPrimitivesVaultVaultTerms
2300
- | {
2301
- bitcoinAnnualPercentRate?: any;
2302
- bitcoinBaseFee?: any;
2303
- treasuryProfitSharing?: any;
2304
- treasuryBonusProfitSharing?: any;
2305
- }
2348
+ | { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
2306
2349
  | string
2307
2350
  | Uint8Array,
2308
2351
  ) => SubmittableExtrinsic<ApiType>,
@@ -2330,9 +2373,14 @@ declare module '@polkadot/api-base/types/submittable' {
2330
2373
  ) => SubmittableExtrinsic<ApiType>,
2331
2374
  [Option<AccountId32>]
2332
2375
  >;
2333
- setName: AugmentedSubmittable<
2334
- (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
2335
- [Option<Bytes>]
2376
+ /**
2377
+ * Reserve vault securitization space for future Bitcoin locks.
2378
+ **/
2379
+ setReservedSecuritizationSpace: AugmentedSubmittable<
2380
+ (
2381
+ reservedSecuritizationSpace: u128 | AnyNumber | Uint8Array,
2382
+ ) => SubmittableExtrinsic<ApiType>,
2383
+ [u128]
2336
2384
  >;
2337
2385
  };
2338
2386
  } // AugmentedSubmittables
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  import './augment-api-consts.js';
4
5
  import './augment-api-errors.js';
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions