@argonprotocol/mainchain 1.4.0-dev.397459f7 → 1.4.0-dev.3d959e0f

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/index.d.cts CHANGED
@@ -405,6 +405,10 @@ declare module '@polkadot/api-base/types/consts' {
405
405
  * Maximum number of access codes that may expire in the same frame.
406
406
  **/
407
407
  maxAccessCodesExpiringPerFrame: u32 & AugmentedConst<ApiType>;
408
+ /**
409
+ * Maximum number of encrypted server bytes stored per sponsee.
410
+ **/
411
+ maxEncryptedServerLen: u32 & AugmentedConst<ApiType>;
408
412
  /**
409
413
  * Maximum number of issuable access codes allowed at once.
410
414
  **/
@@ -1414,6 +1418,10 @@ declare module '@polkadot/api-base/types/errors' {
1414
1418
  * The caller already registered an operational account.
1415
1419
  **/
1416
1420
  AlreadyRegistered: AugmentedError<ApiType>;
1421
+ /**
1422
+ * The encrypted server payload exceeds the configured max length.
1423
+ **/
1424
+ EncryptedServerTooLong: AugmentedError<ApiType>;
1417
1425
  /**
1418
1426
  * The access code provided is not registered.
1419
1427
  **/
@@ -1446,6 +1454,10 @@ declare module '@polkadot/api-base/types/errors' {
1446
1454
  * The caller has not registered an operational account.
1447
1455
  **/
1448
1456
  NotOperationalAccount: AugmentedError<ApiType>;
1457
+ /**
1458
+ * The caller is not the sponsor of the requested sponsee.
1459
+ **/
1460
+ NotSponsorOfSponsee: AugmentedError<ApiType>;
1449
1461
  };
1450
1462
  ownership: {
1451
1463
  /**
@@ -2980,6 +2992,16 @@ declare module '@polkadot/api-base/types/events' {
2980
2992
  ], {
2981
2993
  account: AccountId32;
2982
2994
  }>;
2995
+ /**
2996
+ * A sponsor updated the encrypted server payload for a sponsee.
2997
+ **/
2998
+ EncryptedServerUpdated: AugmentedEvent<ApiType, [
2999
+ sponsor: AccountId32,
3000
+ sponsee: AccountId32
3001
+ ], {
3002
+ sponsor: AccountId32;
3003
+ sponsee: AccountId32;
3004
+ }>;
2983
3005
  /**
2984
3006
  * An operational account was registered with its linked accounts.
2985
3007
  **/
@@ -4346,6 +4368,15 @@ declare module '@polkadot/api-base/types/storage' {
4346
4368
  inboundTransfersExpiringAt: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [
4347
4369
  u32
4348
4370
  ]>;
4371
+ /**
4372
+ * Recent qualifying Argon transfer count keyed by recipient account.
4373
+ *
4374
+ * This is a transient retained-window index over `InboundEvmTransfers`, not permanent
4375
+ * history.
4376
+ **/
4377
+ recentArgonTransfersByAccount: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [
4378
+ AccountId32
4379
+ ]>;
4349
4380
  };
4350
4381
  ismp: {
4351
4382
  /**
@@ -4670,6 +4701,12 @@ declare module '@polkadot/api-base/types/storage' {
4670
4701
  accessCodesExpiringByFrame: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [
4671
4702
  u64
4672
4703
  ]>;
4704
+ /**
4705
+ * Opaque encrypted sponsor server payload keyed by the sponsee operational account.
4706
+ **/
4707
+ encryptedServerBySponsee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>, [
4708
+ AccountId32
4709
+ ]>;
4673
4710
  /**
4674
4711
  * Tracks whether the initial migration has already run.
4675
4712
  **/
@@ -5930,6 +5967,13 @@ declare module '@polkadot/api-base/types/submittable' {
5930
5967
  PalletOperationalAccountsAccountOwnershipProof,
5931
5968
  Option<PalletOperationalAccountsAccessCodeProof>
5932
5969
  ]>;
5970
+ /**
5971
+ * Store an opaque encrypted sponsor server payload for a sponsored operational account.
5972
+ **/
5973
+ setEncryptedServerForSponsee: AugmentedSubmittable<(sponsee: AccountId32 | string | Uint8Array, encryptedServer: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5974
+ AccountId32,
5975
+ Bytes
5976
+ ]>;
5933
5977
  /**
5934
5978
  * Update reward amounts for operational accounts.
5935
5979
  **/
@@ -10653,7 +10697,12 @@ declare module '@polkadot/types/lookup' {
10653
10697
  readonly observedBitcoinTotal: u128;
10654
10698
  readonly observedMiningSeatTotal: u32;
10655
10699
  } & Struct;
10656
- readonly type: 'OperationalAccountRegistered' | 'AccountWentOperational' | 'OperationalRewardEarned' | 'OperationalRewardEnqueueFailed' | 'RewardsConfigUpdated' | 'OperationalProgressForced';
10700
+ readonly isEncryptedServerUpdated: boolean;
10701
+ readonly asEncryptedServerUpdated: {
10702
+ readonly sponsor: AccountId32;
10703
+ readonly sponsee: AccountId32;
10704
+ } & Struct;
10705
+ readonly type: 'OperationalAccountRegistered' | 'AccountWentOperational' | 'OperationalRewardEarned' | 'OperationalRewardEnqueueFailed' | 'RewardsConfigUpdated' | 'OperationalProgressForced' | 'EncryptedServerUpdated';
10657
10706
  }
10658
10707
  /** @name ArgonPrimitivesProvidersOperationalRewardKind (148) */
10659
10708
  interface ArgonPrimitivesProvidersOperationalRewardKind extends Enum {
@@ -11810,7 +11859,12 @@ declare module '@polkadot/types/lookup' {
11810
11859
  readonly patch: PalletOperationalAccountsOperationalProgressPatch;
11811
11860
  readonly updateOperationalProgress: bool;
11812
11861
  } & Struct;
11813
- readonly type: 'Register' | 'IssueAccessCode' | 'SetRewardConfig' | 'ForceSetProgress';
11862
+ readonly isSetEncryptedServerForSponsee: boolean;
11863
+ readonly asSetEncryptedServerForSponsee: {
11864
+ readonly sponsee: AccountId32;
11865
+ readonly encryptedServer: Bytes;
11866
+ } & Struct;
11867
+ readonly type: 'Register' | 'IssueAccessCode' | 'SetRewardConfig' | 'ForceSetProgress' | 'SetEncryptedServerForSponsee';
11814
11868
  }
11815
11869
  /** @name PalletOperationalAccountsAccountOwnershipProof (331) */
11816
11870
  interface PalletOperationalAccountsAccountOwnershipProof extends Struct {
@@ -12524,7 +12578,7 @@ declare module '@polkadot/types/lookup' {
12524
12578
  readonly rewardKind: ArgonPrimitivesProvidersOperationalRewardKind;
12525
12579
  readonly amount: u128;
12526
12580
  }
12527
- /** @name PalletOperationalAccountsError (547) */
12581
+ /** @name PalletOperationalAccountsError (548) */
12528
12582
  interface PalletOperationalAccountsError extends Enum {
12529
12583
  readonly isAlreadyRegistered: boolean;
12530
12584
  readonly isAccountAlreadyLinked: boolean;
@@ -12537,39 +12591,41 @@ declare module '@polkadot/types/lookup' {
12537
12591
  readonly isMaxUnactivatedAccessCodesReached: boolean;
12538
12592
  readonly isMaxAccessCodesExpiringPerFrameReached: boolean;
12539
12593
  readonly isNoProgressUpdateProvided: boolean;
12540
- readonly type: 'AlreadyRegistered' | 'AccountAlreadyLinked' | 'InvalidAccountProof' | 'NotOperationalAccount' | 'AccessCodeAlreadyRegistered' | 'InvalidAccessCode' | 'InvalidAccessCodeProof' | 'NoIssuableAccessCodes' | 'MaxUnactivatedAccessCodesReached' | 'MaxAccessCodesExpiringPerFrameReached' | 'NoProgressUpdateProvided';
12594
+ readonly isEncryptedServerTooLong: boolean;
12595
+ readonly isNotSponsorOfSponsee: boolean;
12596
+ readonly type: 'AlreadyRegistered' | 'AccountAlreadyLinked' | 'InvalidAccountProof' | 'NotOperationalAccount' | 'AccessCodeAlreadyRegistered' | 'InvalidAccessCode' | 'InvalidAccessCodeProof' | 'NoIssuableAccessCodes' | 'MaxUnactivatedAccessCodesReached' | 'MaxAccessCodesExpiringPerFrameReached' | 'NoProgressUpdateProvided' | 'EncryptedServerTooLong' | 'NotSponsorOfSponsee';
12541
12597
  }
12542
- /** @name FrameSystemExtensionsAuthorizeCall (550) */
12598
+ /** @name FrameSystemExtensionsAuthorizeCall (551) */
12543
12599
  type FrameSystemExtensionsAuthorizeCall = Null;
12544
- /** @name FrameSystemExtensionsCheckNonZeroSender (551) */
12600
+ /** @name FrameSystemExtensionsCheckNonZeroSender (552) */
12545
12601
  type FrameSystemExtensionsCheckNonZeroSender = Null;
12546
- /** @name FrameSystemExtensionsCheckSpecVersion (552) */
12602
+ /** @name FrameSystemExtensionsCheckSpecVersion (553) */
12547
12603
  type FrameSystemExtensionsCheckSpecVersion = Null;
12548
- /** @name FrameSystemExtensionsCheckTxVersion (553) */
12604
+ /** @name FrameSystemExtensionsCheckTxVersion (554) */
12549
12605
  type FrameSystemExtensionsCheckTxVersion = Null;
12550
- /** @name FrameSystemExtensionsCheckGenesis (554) */
12606
+ /** @name FrameSystemExtensionsCheckGenesis (555) */
12551
12607
  type FrameSystemExtensionsCheckGenesis = Null;
12552
- /** @name FrameSystemExtensionsCheckNonce (557) */
12608
+ /** @name FrameSystemExtensionsCheckNonce (558) */
12553
12609
  interface FrameSystemExtensionsCheckNonce extends Compact<u32> {
12554
12610
  }
12555
- /** @name FrameSystemExtensionsCheckWeight (558) */
12611
+ /** @name FrameSystemExtensionsCheckWeight (559) */
12556
12612
  type FrameSystemExtensionsCheckWeight = Null;
12557
- /** @name PalletTransactionPaymentChargeTransactionPayment (559) */
12613
+ /** @name PalletTransactionPaymentChargeTransactionPayment (560) */
12558
12614
  interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {
12559
12615
  }
12560
- /** @name FrameMetadataHashExtensionCheckMetadataHash (560) */
12616
+ /** @name FrameMetadataHashExtensionCheckMetadataHash (561) */
12561
12617
  interface FrameMetadataHashExtensionCheckMetadataHash extends Struct {
12562
12618
  readonly mode: FrameMetadataHashExtensionMode;
12563
12619
  }
12564
- /** @name FrameMetadataHashExtensionMode (561) */
12620
+ /** @name FrameMetadataHashExtensionMode (562) */
12565
12621
  interface FrameMetadataHashExtensionMode extends Enum {
12566
12622
  readonly isDisabled: boolean;
12567
12623
  readonly isEnabled: boolean;
12568
12624
  readonly type: 'Disabled' | 'Enabled';
12569
12625
  }
12570
- /** @name FrameSystemExtensionsWeightReclaim (562) */
12626
+ /** @name FrameSystemExtensionsWeightReclaim (563) */
12571
12627
  type FrameSystemExtensionsWeightReclaim = Null;
12572
- /** @name ArgonRuntimeRuntime (564) */
12628
+ /** @name ArgonRuntimeRuntime (565) */
12573
12629
  type ArgonRuntimeRuntime = Null;
12574
12630
  }
12575
12631
 
package/lib/index.d.ts CHANGED
@@ -405,6 +405,10 @@ declare module '@polkadot/api-base/types/consts' {
405
405
  * Maximum number of access codes that may expire in the same frame.
406
406
  **/
407
407
  maxAccessCodesExpiringPerFrame: u32 & AugmentedConst<ApiType>;
408
+ /**
409
+ * Maximum number of encrypted server bytes stored per sponsee.
410
+ **/
411
+ maxEncryptedServerLen: u32 & AugmentedConst<ApiType>;
408
412
  /**
409
413
  * Maximum number of issuable access codes allowed at once.
410
414
  **/
@@ -1414,6 +1418,10 @@ declare module '@polkadot/api-base/types/errors' {
1414
1418
  * The caller already registered an operational account.
1415
1419
  **/
1416
1420
  AlreadyRegistered: AugmentedError<ApiType>;
1421
+ /**
1422
+ * The encrypted server payload exceeds the configured max length.
1423
+ **/
1424
+ EncryptedServerTooLong: AugmentedError<ApiType>;
1417
1425
  /**
1418
1426
  * The access code provided is not registered.
1419
1427
  **/
@@ -1446,6 +1454,10 @@ declare module '@polkadot/api-base/types/errors' {
1446
1454
  * The caller has not registered an operational account.
1447
1455
  **/
1448
1456
  NotOperationalAccount: AugmentedError<ApiType>;
1457
+ /**
1458
+ * The caller is not the sponsor of the requested sponsee.
1459
+ **/
1460
+ NotSponsorOfSponsee: AugmentedError<ApiType>;
1449
1461
  };
1450
1462
  ownership: {
1451
1463
  /**
@@ -2980,6 +2992,16 @@ declare module '@polkadot/api-base/types/events' {
2980
2992
  ], {
2981
2993
  account: AccountId32;
2982
2994
  }>;
2995
+ /**
2996
+ * A sponsor updated the encrypted server payload for a sponsee.
2997
+ **/
2998
+ EncryptedServerUpdated: AugmentedEvent<ApiType, [
2999
+ sponsor: AccountId32,
3000
+ sponsee: AccountId32
3001
+ ], {
3002
+ sponsor: AccountId32;
3003
+ sponsee: AccountId32;
3004
+ }>;
2983
3005
  /**
2984
3006
  * An operational account was registered with its linked accounts.
2985
3007
  **/
@@ -4346,6 +4368,15 @@ declare module '@polkadot/api-base/types/storage' {
4346
4368
  inboundTransfersExpiringAt: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [
4347
4369
  u32
4348
4370
  ]>;
4371
+ /**
4372
+ * Recent qualifying Argon transfer count keyed by recipient account.
4373
+ *
4374
+ * This is a transient retained-window index over `InboundEvmTransfers`, not permanent
4375
+ * history.
4376
+ **/
4377
+ recentArgonTransfersByAccount: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [
4378
+ AccountId32
4379
+ ]>;
4349
4380
  };
4350
4381
  ismp: {
4351
4382
  /**
@@ -4670,6 +4701,12 @@ declare module '@polkadot/api-base/types/storage' {
4670
4701
  accessCodesExpiringByFrame: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [
4671
4702
  u64
4672
4703
  ]>;
4704
+ /**
4705
+ * Opaque encrypted sponsor server payload keyed by the sponsee operational account.
4706
+ **/
4707
+ encryptedServerBySponsee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>, [
4708
+ AccountId32
4709
+ ]>;
4673
4710
  /**
4674
4711
  * Tracks whether the initial migration has already run.
4675
4712
  **/
@@ -5930,6 +5967,13 @@ declare module '@polkadot/api-base/types/submittable' {
5930
5967
  PalletOperationalAccountsAccountOwnershipProof,
5931
5968
  Option<PalletOperationalAccountsAccessCodeProof>
5932
5969
  ]>;
5970
+ /**
5971
+ * Store an opaque encrypted sponsor server payload for a sponsored operational account.
5972
+ **/
5973
+ setEncryptedServerForSponsee: AugmentedSubmittable<(sponsee: AccountId32 | string | Uint8Array, encryptedServer: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5974
+ AccountId32,
5975
+ Bytes
5976
+ ]>;
5933
5977
  /**
5934
5978
  * Update reward amounts for operational accounts.
5935
5979
  **/
@@ -10653,7 +10697,12 @@ declare module '@polkadot/types/lookup' {
10653
10697
  readonly observedBitcoinTotal: u128;
10654
10698
  readonly observedMiningSeatTotal: u32;
10655
10699
  } & Struct;
10656
- readonly type: 'OperationalAccountRegistered' | 'AccountWentOperational' | 'OperationalRewardEarned' | 'OperationalRewardEnqueueFailed' | 'RewardsConfigUpdated' | 'OperationalProgressForced';
10700
+ readonly isEncryptedServerUpdated: boolean;
10701
+ readonly asEncryptedServerUpdated: {
10702
+ readonly sponsor: AccountId32;
10703
+ readonly sponsee: AccountId32;
10704
+ } & Struct;
10705
+ readonly type: 'OperationalAccountRegistered' | 'AccountWentOperational' | 'OperationalRewardEarned' | 'OperationalRewardEnqueueFailed' | 'RewardsConfigUpdated' | 'OperationalProgressForced' | 'EncryptedServerUpdated';
10657
10706
  }
10658
10707
  /** @name ArgonPrimitivesProvidersOperationalRewardKind (148) */
10659
10708
  interface ArgonPrimitivesProvidersOperationalRewardKind extends Enum {
@@ -11810,7 +11859,12 @@ declare module '@polkadot/types/lookup' {
11810
11859
  readonly patch: PalletOperationalAccountsOperationalProgressPatch;
11811
11860
  readonly updateOperationalProgress: bool;
11812
11861
  } & Struct;
11813
- readonly type: 'Register' | 'IssueAccessCode' | 'SetRewardConfig' | 'ForceSetProgress';
11862
+ readonly isSetEncryptedServerForSponsee: boolean;
11863
+ readonly asSetEncryptedServerForSponsee: {
11864
+ readonly sponsee: AccountId32;
11865
+ readonly encryptedServer: Bytes;
11866
+ } & Struct;
11867
+ readonly type: 'Register' | 'IssueAccessCode' | 'SetRewardConfig' | 'ForceSetProgress' | 'SetEncryptedServerForSponsee';
11814
11868
  }
11815
11869
  /** @name PalletOperationalAccountsAccountOwnershipProof (331) */
11816
11870
  interface PalletOperationalAccountsAccountOwnershipProof extends Struct {
@@ -12524,7 +12578,7 @@ declare module '@polkadot/types/lookup' {
12524
12578
  readonly rewardKind: ArgonPrimitivesProvidersOperationalRewardKind;
12525
12579
  readonly amount: u128;
12526
12580
  }
12527
- /** @name PalletOperationalAccountsError (547) */
12581
+ /** @name PalletOperationalAccountsError (548) */
12528
12582
  interface PalletOperationalAccountsError extends Enum {
12529
12583
  readonly isAlreadyRegistered: boolean;
12530
12584
  readonly isAccountAlreadyLinked: boolean;
@@ -12537,39 +12591,41 @@ declare module '@polkadot/types/lookup' {
12537
12591
  readonly isMaxUnactivatedAccessCodesReached: boolean;
12538
12592
  readonly isMaxAccessCodesExpiringPerFrameReached: boolean;
12539
12593
  readonly isNoProgressUpdateProvided: boolean;
12540
- readonly type: 'AlreadyRegistered' | 'AccountAlreadyLinked' | 'InvalidAccountProof' | 'NotOperationalAccount' | 'AccessCodeAlreadyRegistered' | 'InvalidAccessCode' | 'InvalidAccessCodeProof' | 'NoIssuableAccessCodes' | 'MaxUnactivatedAccessCodesReached' | 'MaxAccessCodesExpiringPerFrameReached' | 'NoProgressUpdateProvided';
12594
+ readonly isEncryptedServerTooLong: boolean;
12595
+ readonly isNotSponsorOfSponsee: boolean;
12596
+ readonly type: 'AlreadyRegistered' | 'AccountAlreadyLinked' | 'InvalidAccountProof' | 'NotOperationalAccount' | 'AccessCodeAlreadyRegistered' | 'InvalidAccessCode' | 'InvalidAccessCodeProof' | 'NoIssuableAccessCodes' | 'MaxUnactivatedAccessCodesReached' | 'MaxAccessCodesExpiringPerFrameReached' | 'NoProgressUpdateProvided' | 'EncryptedServerTooLong' | 'NotSponsorOfSponsee';
12541
12597
  }
12542
- /** @name FrameSystemExtensionsAuthorizeCall (550) */
12598
+ /** @name FrameSystemExtensionsAuthorizeCall (551) */
12543
12599
  type FrameSystemExtensionsAuthorizeCall = Null;
12544
- /** @name FrameSystemExtensionsCheckNonZeroSender (551) */
12600
+ /** @name FrameSystemExtensionsCheckNonZeroSender (552) */
12545
12601
  type FrameSystemExtensionsCheckNonZeroSender = Null;
12546
- /** @name FrameSystemExtensionsCheckSpecVersion (552) */
12602
+ /** @name FrameSystemExtensionsCheckSpecVersion (553) */
12547
12603
  type FrameSystemExtensionsCheckSpecVersion = Null;
12548
- /** @name FrameSystemExtensionsCheckTxVersion (553) */
12604
+ /** @name FrameSystemExtensionsCheckTxVersion (554) */
12549
12605
  type FrameSystemExtensionsCheckTxVersion = Null;
12550
- /** @name FrameSystemExtensionsCheckGenesis (554) */
12606
+ /** @name FrameSystemExtensionsCheckGenesis (555) */
12551
12607
  type FrameSystemExtensionsCheckGenesis = Null;
12552
- /** @name FrameSystemExtensionsCheckNonce (557) */
12608
+ /** @name FrameSystemExtensionsCheckNonce (558) */
12553
12609
  interface FrameSystemExtensionsCheckNonce extends Compact<u32> {
12554
12610
  }
12555
- /** @name FrameSystemExtensionsCheckWeight (558) */
12611
+ /** @name FrameSystemExtensionsCheckWeight (559) */
12556
12612
  type FrameSystemExtensionsCheckWeight = Null;
12557
- /** @name PalletTransactionPaymentChargeTransactionPayment (559) */
12613
+ /** @name PalletTransactionPaymentChargeTransactionPayment (560) */
12558
12614
  interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {
12559
12615
  }
12560
- /** @name FrameMetadataHashExtensionCheckMetadataHash (560) */
12616
+ /** @name FrameMetadataHashExtensionCheckMetadataHash (561) */
12561
12617
  interface FrameMetadataHashExtensionCheckMetadataHash extends Struct {
12562
12618
  readonly mode: FrameMetadataHashExtensionMode;
12563
12619
  }
12564
- /** @name FrameMetadataHashExtensionMode (561) */
12620
+ /** @name FrameMetadataHashExtensionMode (562) */
12565
12621
  interface FrameMetadataHashExtensionMode extends Enum {
12566
12622
  readonly isDisabled: boolean;
12567
12623
  readonly isEnabled: boolean;
12568
12624
  readonly type: 'Disabled' | 'Enabled';
12569
12625
  }
12570
- /** @name FrameSystemExtensionsWeightReclaim (562) */
12626
+ /** @name FrameSystemExtensionsWeightReclaim (563) */
12571
12627
  type FrameSystemExtensionsWeightReclaim = Null;
12572
- /** @name ArgonRuntimeRuntime (564) */
12628
+ /** @name ArgonRuntimeRuntime (565) */
12573
12629
  type ArgonRuntimeRuntime = Null;
12574
12630
  }
12575
12631