@bitgo/public-types 6.23.0 → 6.25.0

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 (56) hide show
  1. package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.d.ts +1 -0
  2. package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.js +1 -0
  3. package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/index.d.ts +0 -2
  5. package/dist/src/schema/transactionRequest/intents/index.js +0 -2
  6. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/intent.d.ts +2 -168
  8. package/dist/src/schema/transactionRequest/intents/intent.js +0 -4
  9. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  10. package/dist/src/schema/transactionRequest/intents/trxClaimRewardsIntent.js.map +1 -1
  11. package/dist/src/schema/transactionRequest/intents/trxDelegateResourceIntent.js.map +1 -1
  12. package/dist/src/schema/transactionRequest/intents/trxFreezeIntent.js.map +1 -1
  13. package/dist/src/schema/transactionRequest/intents/trxUndelegateResourceIntent.js.map +1 -1
  14. package/dist/src/schema/transactionRequest/intents/trxUnfreezeIntent.js.map +1 -1
  15. package/dist/src/schema/transactionRequest/intents/trxVoteIntent.js.map +1 -1
  16. package/dist/src/schema/transactionRequest/intents/trxWithdrawExpireUnfreezeIntent.js.map +1 -1
  17. package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.js.map +1 -1
  18. package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.js.map +1 -1
  19. package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.js.map +1 -1
  20. package/dist/src/schema/transactionRequest/intents/vetSignalExitIntent.js.map +1 -1
  21. package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.js.map +1 -1
  22. package/dist/src/schema/transactionRequest/intents/vetStakingIntent.js.map +1 -1
  23. package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.js.map +1 -1
  24. package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +1 -1
  25. package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.js +5 -1
  26. package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.js.map +1 -1
  27. package/dist/src/schema/transactionRequest/intents/vetWithdrawStakeIntent.js.map +1 -1
  28. package/dist/src/schema/transactionRequest/transactionRequest.d.ts +4 -336
  29. package/package.json +1 -1
  30. package/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.ts +14 -3
  31. package/src/schema/transactionRequest/intents/index.ts +0 -2
  32. package/src/schema/transactionRequest/intents/intent.ts +0 -4
  33. package/src/schema/transactionRequest/intents/trxClaimRewardsIntent.ts +6 -0
  34. package/src/schema/transactionRequest/intents/trxDelegateResourceIntent.ts +9 -0
  35. package/src/schema/transactionRequest/intents/trxFreezeIntent.ts +9 -0
  36. package/src/schema/transactionRequest/intents/trxUndelegateResourceIntent.ts +9 -0
  37. package/src/schema/transactionRequest/intents/trxUnfreezeIntent.ts +8 -0
  38. package/src/schema/transactionRequest/intents/trxVoteIntent.ts +11 -0
  39. package/src/schema/transactionRequest/intents/trxWithdrawExpireUnfreezeIntent.ts +7 -0
  40. package/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.ts +6 -6
  41. package/src/schema/transactionRequest/intents/vetDelegateIntent.ts +7 -5
  42. package/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.ts +6 -6
  43. package/src/schema/transactionRequest/intents/vetSignalExitIntent.ts +7 -6
  44. package/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.ts +6 -8
  45. package/src/schema/transactionRequest/intents/vetStakingIntent.ts +6 -7
  46. package/src/schema/transactionRequest/intents/vetUnstakingIntent.ts +10 -15
  47. package/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.ts +11 -8
  48. package/src/schema/transactionRequest/intents/vetWithdrawStakeIntent.ts +7 -6
  49. package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.d.ts +0 -96
  50. package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.js +0 -44
  51. package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.js.map +0 -1
  52. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.d.ts +0 -93
  53. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.js +0 -41
  54. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.js.map +0 -1
  55. package/src/schema/transactionRequest/intents/irysPledgeIntent.ts +0 -38
  56. package/src/schema/transactionRequest/intents/irysStakeIntent.ts +0 -35
@@ -4883,6 +4883,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
4883
4883
  }, unknown>, t.UndefinedC]>;
4884
4884
  }>]>, t.PartialC<{
4885
4885
  stakedNodeId: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
4886
+ stakedAccountId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4886
4887
  declineStakingReward: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
4887
4888
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
4888
4889
  intentType: t.KeyofC<{
@@ -5241,173 +5242,6 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
5241
5242
  isTestTransaction: t.BooleanC;
5242
5243
  }>]>]>, t.PartialC<{
5243
5244
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5244
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5245
- intentType: t.KeyofC<{
5246
- payment: t.LiteralC<"payment">;
5247
- transferToken: t.LiteralC<"transferToken">;
5248
- consolidate: t.LiteralC<"consolidate">;
5249
- consolidateToken: t.LiteralC<"consolidateToken">;
5250
- fanout: t.LiteralC<"fanout">;
5251
- stake: t.LiteralC<"stake">;
5252
- unstake: t.LiteralC<"unstake">;
5253
- delegate: t.LiteralC<"delegate">;
5254
- undelegate: t.LiteralC<"undelegate">;
5255
- switchValidator: t.LiteralC<"switchValidator">;
5256
- claim: t.LiteralC<"claim">;
5257
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
5258
- pledge: t.LiteralC<"pledge">;
5259
- voteDelegation: t.LiteralC<"voteDelegation">;
5260
- vote: t.LiteralC<"vote">;
5261
- createAccount: t.LiteralC<"createAccount">;
5262
- updateAccount: t.LiteralC<"updateAccount">;
5263
- addTrustLine: t.LiteralC<"addTrustLine">;
5264
- removeTrustLine: t.LiteralC<"removeTrustLine">;
5265
- signMessage: t.LiteralC<"signMessage">;
5266
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
5267
- enableToken: t.LiteralC<"enableToken">;
5268
- authorize: t.LiteralC<"authorize">;
5269
- acceleration: t.LiteralC<"acceleration">;
5270
- fillNonce: t.LiteralC<"fillNonce">;
5271
- walletRecovery: t.LiteralC<"walletRecovery">;
5272
- contractCall: t.LiteralC<"contractCall">;
5273
- deactivate: t.LiteralC<"deactivate">;
5274
- customTx: t.LiteralC<"customTx">;
5275
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
5276
- stakeWithCallData: t.LiteralC<"stakeWithCallData">;
5277
- unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
5278
- switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
5279
- feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
5280
- tokenApproval: t.LiteralC<"tokenApproval">;
5281
- transferStake: t.LiteralC<"transferStake">;
5282
- validatorRegistration: t.LiteralC<"validatorRegistration">;
5283
- increaseStake: t.LiteralC<"increaseStake">;
5284
- decreaseStake: t.LiteralC<"decreaseStake">;
5285
- signalExit: t.LiteralC<"signalExit">;
5286
- withdrawStake: t.LiteralC<"withdrawStake">;
5287
- spotTransfer: t.LiteralC<"spotTransfer">;
5288
- bridgeFunds: t.LiteralC<"bridgeFunds">;
5289
- enableBridging: t.LiteralC<"enableBridging">;
5290
- goUnstake: t.LiteralC<"goUnstake">;
5291
- createBtcDelegation: t.LiteralC<"createBtcDelegation">;
5292
- transferAccept: t.LiteralC<"transferAccept">;
5293
- transferReject: t.LiteralC<"transferReject">;
5294
- transferAcknowledge: t.LiteralC<"transferAcknowledge">;
5295
- transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
5296
- cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
5297
- cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
5298
- allocationRequest: t.LiteralC<"allocationRequest">;
5299
- cantonCommand: t.LiteralC<"cantonCommand">;
5300
- allocationAllocate: t.LiteralC<"allocationAllocate">;
5301
- "defi-deposit": t.LiteralC<"defi-deposit">;
5302
- "defi-redeem": t.LiteralC<"defi-redeem">;
5303
- "defi-approve": t.LiteralC<"defi-approve">;
5304
- delegateResource: t.LiteralC<"delegateResource">;
5305
- undelegateResource: t.LiteralC<"undelegateResource">;
5306
- export: t.LiteralC<"export">;
5307
- import: t.LiteralC<"import">;
5308
- importtoc: t.LiteralC<"importtoc">;
5309
- }>;
5310
- }>, t.PartialC<{
5311
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5312
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5313
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
5314
- }>]>, t.TypeC<{
5315
- stakingRequestId: t.StringC;
5316
- }>, t.PartialC<{
5317
- source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
5318
- }>]>, t.TypeC<{
5319
- intentType: t.LiteralC<"pledge">;
5320
- commitmentParams: t.IntersectionC<[t.TypeC<{
5321
- commitmentFee: t.StringC;
5322
- commitmentValue: t.StringC;
5323
- signerAddress: t.StringC;
5324
- chainId: t.NumberC;
5325
- }>, t.TypeC<{
5326
- pledgeCount: t.NumberC;
5327
- }>]>;
5328
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5329
- intentType: t.KeyofC<{
5330
- payment: t.LiteralC<"payment">;
5331
- transferToken: t.LiteralC<"transferToken">;
5332
- consolidate: t.LiteralC<"consolidate">;
5333
- consolidateToken: t.LiteralC<"consolidateToken">;
5334
- fanout: t.LiteralC<"fanout">;
5335
- stake: t.LiteralC<"stake">;
5336
- unstake: t.LiteralC<"unstake">;
5337
- delegate: t.LiteralC<"delegate">;
5338
- undelegate: t.LiteralC<"undelegate">;
5339
- switchValidator: t.LiteralC<"switchValidator">;
5340
- claim: t.LiteralC<"claim">;
5341
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
5342
- pledge: t.LiteralC<"pledge">;
5343
- voteDelegation: t.LiteralC<"voteDelegation">;
5344
- vote: t.LiteralC<"vote">;
5345
- createAccount: t.LiteralC<"createAccount">;
5346
- updateAccount: t.LiteralC<"updateAccount">;
5347
- addTrustLine: t.LiteralC<"addTrustLine">;
5348
- removeTrustLine: t.LiteralC<"removeTrustLine">;
5349
- signMessage: t.LiteralC<"signMessage">;
5350
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
5351
- enableToken: t.LiteralC<"enableToken">;
5352
- authorize: t.LiteralC<"authorize">;
5353
- acceleration: t.LiteralC<"acceleration">;
5354
- fillNonce: t.LiteralC<"fillNonce">;
5355
- walletRecovery: t.LiteralC<"walletRecovery">;
5356
- contractCall: t.LiteralC<"contractCall">;
5357
- deactivate: t.LiteralC<"deactivate">;
5358
- customTx: t.LiteralC<"customTx">;
5359
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
5360
- stakeWithCallData: t.LiteralC<"stakeWithCallData">;
5361
- unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
5362
- switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
5363
- feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
5364
- tokenApproval: t.LiteralC<"tokenApproval">;
5365
- transferStake: t.LiteralC<"transferStake">;
5366
- validatorRegistration: t.LiteralC<"validatorRegistration">;
5367
- increaseStake: t.LiteralC<"increaseStake">;
5368
- decreaseStake: t.LiteralC<"decreaseStake">;
5369
- signalExit: t.LiteralC<"signalExit">;
5370
- withdrawStake: t.LiteralC<"withdrawStake">;
5371
- spotTransfer: t.LiteralC<"spotTransfer">;
5372
- bridgeFunds: t.LiteralC<"bridgeFunds">;
5373
- enableBridging: t.LiteralC<"enableBridging">;
5374
- goUnstake: t.LiteralC<"goUnstake">;
5375
- createBtcDelegation: t.LiteralC<"createBtcDelegation">;
5376
- transferAccept: t.LiteralC<"transferAccept">;
5377
- transferReject: t.LiteralC<"transferReject">;
5378
- transferAcknowledge: t.LiteralC<"transferAcknowledge">;
5379
- transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
5380
- cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
5381
- cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
5382
- allocationRequest: t.LiteralC<"allocationRequest">;
5383
- cantonCommand: t.LiteralC<"cantonCommand">;
5384
- allocationAllocate: t.LiteralC<"allocationAllocate">;
5385
- "defi-deposit": t.LiteralC<"defi-deposit">;
5386
- "defi-redeem": t.LiteralC<"defi-redeem">;
5387
- "defi-approve": t.LiteralC<"defi-approve">;
5388
- delegateResource: t.LiteralC<"delegateResource">;
5389
- undelegateResource: t.LiteralC<"undelegateResource">;
5390
- export: t.LiteralC<"export">;
5391
- import: t.LiteralC<"import">;
5392
- importtoc: t.LiteralC<"importtoc">;
5393
- }>;
5394
- }>, t.PartialC<{
5395
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5396
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5397
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
5398
- }>]>, t.TypeC<{
5399
- stakingRequestId: t.StringC;
5400
- }>, t.PartialC<{
5401
- source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
5402
- }>]>, t.TypeC<{
5403
- intentType: t.LiteralC<"stake">;
5404
- }>]>, t.TypeC<{
5405
- commitmentParams: t.TypeC<{
5406
- commitmentFee: t.StringC;
5407
- commitmentValue: t.StringC;
5408
- signerAddress: t.StringC;
5409
- chainId: t.NumberC;
5410
- }>;
5411
5245
  }>]>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5412
5246
  intentType: t.KeyofC<{
5413
5247
  payment: t.LiteralC<"payment">;
@@ -11302,7 +11136,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
11302
11136
  }>;
11303
11137
  }>, t.TypeC<{
11304
11138
  validatorAddress: import("io-ts-types").NonEmptyStringC;
11305
- stakingPeriod: t.NumberC;
11139
+ stakingPeriod: t.UnionC<[t.LiteralC<60480>, t.LiteralC<129600>, t.LiteralC<259200>]>;
11306
11140
  stakingContractAddress: import("io-ts-types").NonEmptyStringC;
11307
11141
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
11308
11142
  intentType: t.KeyofC<{
@@ -18312,6 +18146,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
18312
18146
  }, unknown>, t.UndefinedC]>;
18313
18147
  }>]>, t.PartialC<{
18314
18148
  stakedNodeId: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
18149
+ stakedAccountId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18315
18150
  declineStakingReward: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
18316
18151
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
18317
18152
  intentType: t.KeyofC<{
@@ -18670,173 +18505,6 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
18670
18505
  isTestTransaction: t.BooleanC;
18671
18506
  }>]>]>, t.PartialC<{
18672
18507
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18673
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
18674
- intentType: t.KeyofC<{
18675
- payment: t.LiteralC<"payment">;
18676
- transferToken: t.LiteralC<"transferToken">;
18677
- consolidate: t.LiteralC<"consolidate">;
18678
- consolidateToken: t.LiteralC<"consolidateToken">;
18679
- fanout: t.LiteralC<"fanout">;
18680
- stake: t.LiteralC<"stake">;
18681
- unstake: t.LiteralC<"unstake">;
18682
- delegate: t.LiteralC<"delegate">;
18683
- undelegate: t.LiteralC<"undelegate">;
18684
- switchValidator: t.LiteralC<"switchValidator">;
18685
- claim: t.LiteralC<"claim">;
18686
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
18687
- pledge: t.LiteralC<"pledge">;
18688
- voteDelegation: t.LiteralC<"voteDelegation">;
18689
- vote: t.LiteralC<"vote">;
18690
- createAccount: t.LiteralC<"createAccount">;
18691
- updateAccount: t.LiteralC<"updateAccount">;
18692
- addTrustLine: t.LiteralC<"addTrustLine">;
18693
- removeTrustLine: t.LiteralC<"removeTrustLine">;
18694
- signMessage: t.LiteralC<"signMessage">;
18695
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
18696
- enableToken: t.LiteralC<"enableToken">;
18697
- authorize: t.LiteralC<"authorize">;
18698
- acceleration: t.LiteralC<"acceleration">;
18699
- fillNonce: t.LiteralC<"fillNonce">;
18700
- walletRecovery: t.LiteralC<"walletRecovery">;
18701
- contractCall: t.LiteralC<"contractCall">;
18702
- deactivate: t.LiteralC<"deactivate">;
18703
- customTx: t.LiteralC<"customTx">;
18704
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
18705
- stakeWithCallData: t.LiteralC<"stakeWithCallData">;
18706
- unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
18707
- switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
18708
- feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
18709
- tokenApproval: t.LiteralC<"tokenApproval">;
18710
- transferStake: t.LiteralC<"transferStake">;
18711
- validatorRegistration: t.LiteralC<"validatorRegistration">;
18712
- increaseStake: t.LiteralC<"increaseStake">;
18713
- decreaseStake: t.LiteralC<"decreaseStake">;
18714
- signalExit: t.LiteralC<"signalExit">;
18715
- withdrawStake: t.LiteralC<"withdrawStake">;
18716
- spotTransfer: t.LiteralC<"spotTransfer">;
18717
- bridgeFunds: t.LiteralC<"bridgeFunds">;
18718
- enableBridging: t.LiteralC<"enableBridging">;
18719
- goUnstake: t.LiteralC<"goUnstake">;
18720
- createBtcDelegation: t.LiteralC<"createBtcDelegation">;
18721
- transferAccept: t.LiteralC<"transferAccept">;
18722
- transferReject: t.LiteralC<"transferReject">;
18723
- transferAcknowledge: t.LiteralC<"transferAcknowledge">;
18724
- transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
18725
- cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
18726
- cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
18727
- allocationRequest: t.LiteralC<"allocationRequest">;
18728
- cantonCommand: t.LiteralC<"cantonCommand">;
18729
- allocationAllocate: t.LiteralC<"allocationAllocate">;
18730
- "defi-deposit": t.LiteralC<"defi-deposit">;
18731
- "defi-redeem": t.LiteralC<"defi-redeem">;
18732
- "defi-approve": t.LiteralC<"defi-approve">;
18733
- delegateResource: t.LiteralC<"delegateResource">;
18734
- undelegateResource: t.LiteralC<"undelegateResource">;
18735
- export: t.LiteralC<"export">;
18736
- import: t.LiteralC<"import">;
18737
- importtoc: t.LiteralC<"importtoc">;
18738
- }>;
18739
- }>, t.PartialC<{
18740
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18741
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18742
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
18743
- }>]>, t.TypeC<{
18744
- stakingRequestId: t.StringC;
18745
- }>, t.PartialC<{
18746
- source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
18747
- }>]>, t.TypeC<{
18748
- intentType: t.LiteralC<"pledge">;
18749
- commitmentParams: t.IntersectionC<[t.TypeC<{
18750
- commitmentFee: t.StringC;
18751
- commitmentValue: t.StringC;
18752
- signerAddress: t.StringC;
18753
- chainId: t.NumberC;
18754
- }>, t.TypeC<{
18755
- pledgeCount: t.NumberC;
18756
- }>]>;
18757
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
18758
- intentType: t.KeyofC<{
18759
- payment: t.LiteralC<"payment">;
18760
- transferToken: t.LiteralC<"transferToken">;
18761
- consolidate: t.LiteralC<"consolidate">;
18762
- consolidateToken: t.LiteralC<"consolidateToken">;
18763
- fanout: t.LiteralC<"fanout">;
18764
- stake: t.LiteralC<"stake">;
18765
- unstake: t.LiteralC<"unstake">;
18766
- delegate: t.LiteralC<"delegate">;
18767
- undelegate: t.LiteralC<"undelegate">;
18768
- switchValidator: t.LiteralC<"switchValidator">;
18769
- claim: t.LiteralC<"claim">;
18770
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
18771
- pledge: t.LiteralC<"pledge">;
18772
- voteDelegation: t.LiteralC<"voteDelegation">;
18773
- vote: t.LiteralC<"vote">;
18774
- createAccount: t.LiteralC<"createAccount">;
18775
- updateAccount: t.LiteralC<"updateAccount">;
18776
- addTrustLine: t.LiteralC<"addTrustLine">;
18777
- removeTrustLine: t.LiteralC<"removeTrustLine">;
18778
- signMessage: t.LiteralC<"signMessage">;
18779
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
18780
- enableToken: t.LiteralC<"enableToken">;
18781
- authorize: t.LiteralC<"authorize">;
18782
- acceleration: t.LiteralC<"acceleration">;
18783
- fillNonce: t.LiteralC<"fillNonce">;
18784
- walletRecovery: t.LiteralC<"walletRecovery">;
18785
- contractCall: t.LiteralC<"contractCall">;
18786
- deactivate: t.LiteralC<"deactivate">;
18787
- customTx: t.LiteralC<"customTx">;
18788
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
18789
- stakeWithCallData: t.LiteralC<"stakeWithCallData">;
18790
- unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
18791
- switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
18792
- feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
18793
- tokenApproval: t.LiteralC<"tokenApproval">;
18794
- transferStake: t.LiteralC<"transferStake">;
18795
- validatorRegistration: t.LiteralC<"validatorRegistration">;
18796
- increaseStake: t.LiteralC<"increaseStake">;
18797
- decreaseStake: t.LiteralC<"decreaseStake">;
18798
- signalExit: t.LiteralC<"signalExit">;
18799
- withdrawStake: t.LiteralC<"withdrawStake">;
18800
- spotTransfer: t.LiteralC<"spotTransfer">;
18801
- bridgeFunds: t.LiteralC<"bridgeFunds">;
18802
- enableBridging: t.LiteralC<"enableBridging">;
18803
- goUnstake: t.LiteralC<"goUnstake">;
18804
- createBtcDelegation: t.LiteralC<"createBtcDelegation">;
18805
- transferAccept: t.LiteralC<"transferAccept">;
18806
- transferReject: t.LiteralC<"transferReject">;
18807
- transferAcknowledge: t.LiteralC<"transferAcknowledge">;
18808
- transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
18809
- cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
18810
- cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
18811
- allocationRequest: t.LiteralC<"allocationRequest">;
18812
- cantonCommand: t.LiteralC<"cantonCommand">;
18813
- allocationAllocate: t.LiteralC<"allocationAllocate">;
18814
- "defi-deposit": t.LiteralC<"defi-deposit">;
18815
- "defi-redeem": t.LiteralC<"defi-redeem">;
18816
- "defi-approve": t.LiteralC<"defi-approve">;
18817
- delegateResource: t.LiteralC<"delegateResource">;
18818
- undelegateResource: t.LiteralC<"undelegateResource">;
18819
- export: t.LiteralC<"export">;
18820
- import: t.LiteralC<"import">;
18821
- importtoc: t.LiteralC<"importtoc">;
18822
- }>;
18823
- }>, t.PartialC<{
18824
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18825
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18826
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
18827
- }>]>, t.TypeC<{
18828
- stakingRequestId: t.StringC;
18829
- }>, t.PartialC<{
18830
- source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
18831
- }>]>, t.TypeC<{
18832
- intentType: t.LiteralC<"stake">;
18833
- }>]>, t.TypeC<{
18834
- commitmentParams: t.TypeC<{
18835
- commitmentFee: t.StringC;
18836
- commitmentValue: t.StringC;
18837
- signerAddress: t.StringC;
18838
- chainId: t.NumberC;
18839
- }>;
18840
18508
  }>]>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
18841
18509
  intentType: t.KeyofC<{
18842
18510
  payment: t.LiteralC<"payment">;
@@ -24731,7 +24399,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
24731
24399
  }>;
24732
24400
  }>, t.TypeC<{
24733
24401
  validatorAddress: import("io-ts-types").NonEmptyStringC;
24734
- stakingPeriod: t.NumberC;
24402
+ stakingPeriod: t.UnionC<[t.LiteralC<60480>, t.LiteralC<129600>, t.LiteralC<259200>]>;
24735
24403
  stakingContractAddress: import("io-ts-types").NonEmptyStringC;
24736
24404
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
24737
24405
  intentType: t.KeyofC<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "6.23.0",
3
+ "version": "6.25.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -1,18 +1,29 @@
1
1
  import * as t from "io-ts";
2
2
  import { AccountBaseUpdateAccountIntent } from "./accountBaseUpdateAccountIntent";
3
- import { optionalNumber, optionalBoolean } from "../../../utils";
3
+ import {
4
+ optionalNumber,
5
+ optionalBoolean,
6
+ optionalString,
7
+ } from "../../../utils";
4
8
 
5
9
  /**
6
10
  * @title HBAR Update Account Intent
7
11
  *
8
12
  * Extends the base updateAccount intent with Hedera-specific staking fields.
9
- * Used for stake (stakedNodeId >= 0), unstake (stakedNodeId = -1), and
10
- * switch validator (stakedNodeId = new node) operations.
13
+ *
14
+ * Supports two mutually exclusive staking modes:
15
+ * - **Node staking (direct):** Set `stakedNodeId` to a consensus node ID
16
+ * (>= 0 to stake, -1 to unstake).
17
+ * - **Account staking (indirect):** Set `stakedAccountId` to a Hedera account
18
+ * in "0.0.X" format ("0.0.0" to unstake).
19
+ *
20
+ * Only one of `stakedNodeId` or `stakedAccountId` should be provided per request.
11
21
  */
12
22
  export const HbarUpdateAccountIntent = t.intersection([
13
23
  AccountBaseUpdateAccountIntent,
14
24
  t.partial({
15
25
  stakedNodeId: optionalNumber,
26
+ stakedAccountId: optionalString,
16
27
  declineStakingReward: optionalBoolean,
17
28
  }),
18
29
  ]);
@@ -102,8 +102,6 @@ export * from "./iotaBuildOptions";
102
102
  export * from "./iotaConsolidateIntent";
103
103
  export * from "./iotaFeeOptions";
104
104
  export * from "./iotaPaymentIntent";
105
- export * from "./irysPledgeIntent";
106
- export * from "./irysStakeIntent";
107
105
  export * from "./lightningPaymentIntent";
108
106
  export * from "./mmiSignMessageIntent";
109
107
  export * from "./mmiSignTransactionIntent";
@@ -38,8 +38,6 @@ import { FeeAddressTransferIntent } from "./feeAddressTransferIntent";
38
38
  import { HbarUpdateAccountIntent } from "./hbarUpdateAccountIntent";
39
39
  import { HypeevmSpotTransferIntent } from "./hypeevmSpotTransferIntent";
40
40
  import { IcpPaymentIntent } from "./icpPaymentIntent";
41
- import { IrysPledgeIntent } from "./irysPledgeIntent";
42
- import { IrysStakeIntent } from "./irysStakeIntent";
43
41
  import { LightningPaymentIntent } from "./lightningPaymentIntent";
44
42
  import { MmiSignMessageIntent } from "./mmiSignMessageIntent";
45
43
  import { NearStakeIntent } from "./nearStakeIntent";
@@ -201,8 +199,6 @@ export const TransactionIntent = t.union([
201
199
  HypeevmSpotTransferIntent,
202
200
  HypeevmEnableBridgingIntent,
203
201
  IcpPaymentIntent,
204
- IrysPledgeIntent,
205
- IrysStakeIntent,
206
202
  LightningPaymentIntent,
207
203
  MmiSignMessageIntent,
208
204
  MmiSignTransactionIntent,
@@ -4,13 +4,19 @@ import { BaseIntentWithAmount } from "./baseIntent";
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Claim accumulated Tron staking rewards (WithdrawBalance) to the owner's
8
+ * address. The reward balance must be non-zero; the handler does not verify
9
+ * the amount before submitting the transaction. Valid on TRX and TTRX.
10
+ *
7
11
  * @title TRX Claim Rewards Intent
8
12
  */
9
13
  export const TrxClaimRewardsIntent = t.intersection([
10
14
  BaseStakeIntent,
11
15
  BaseIntentWithAmount,
12
16
  t.type({
17
+ /** Must be `"stakeClaimRewards"`. */
13
18
  intentType: intentTypes.stakeClaimRewards,
19
+ /** Tron address of the wallet owner; must match the wallet's root address. */
14
20
  ownerAddress: t.string,
15
21
  }),
16
22
  ]);
@@ -4,15 +4,24 @@ import { BaseStakeIntent } from "./baseStakeIntent";
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Delegate staked BANDWIDTH or ENERGY resources to another Tron address
8
+ * (DelegateResourceContract). The owner must have sufficient staked
9
+ * resources; the receiver address must be an active Tron account; and the
10
+ * amount must be at least 1 TRX (1,000,000 sun). Valid on TRX and TTRX.
11
+ *
7
12
  * @title TRX Delegate Resource Intent
8
13
  */
9
14
  export const TrxDelegateResourceIntent = t.intersection([
10
15
  BaseStakeIntent,
11
16
  BaseIntentWithAmount,
12
17
  t.type({
18
+ /** Must be `"delegateResource"`. */
13
19
  intentType: intentTypes.delegateResource,
20
+ /** Tron address of the resource owner delegating their staked resources. */
14
21
  ownerAddress: t.string,
22
+ /** Tron address of the account receiving the delegated resources; must be an active Tron account. */
15
23
  receiverAddress: t.string,
24
+ /** The resource type to delegate: `BANDWIDTH` or `ENERGY`. */
16
25
  resource: t.union([t.literal("BANDWIDTH"), t.literal("ENERGY")]),
17
26
  }),
18
27
  ]);
@@ -4,15 +4,24 @@ import { BaseIntentWithAmount } from "./baseIntent";
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Stake (freeze) TRX to obtain BANDWIDTH or ENERGY using the Tron Stake V2
8
+ * protocol (FreezeBalanceV2). The spendable balance must be greater than or
9
+ * equal to the freeze amount plus the transaction fee.
10
+ * Valid on TRX and TTRX.
11
+ *
7
12
  * @title TRX Freeze Intent
8
13
  */
9
14
  export const TrxFreezeIntent = t.intersection([
10
15
  BaseStakeIntent,
11
16
  BaseIntentWithAmount,
12
17
  t.type({
18
+ /** Must be `"stake"`. */
13
19
  intentType: intentTypes.stake,
20
+ /** Tron address of the Super Representative the user intends to vote for after freezing. Stored by the staking service to auto-construct the subsequent vote intent; not consumed by wallet-platform's freeze transaction builder. */
14
21
  validatorAddress: t.string,
22
+ /** Tron address of the wallet owner staking the TRX. */
15
23
  ownerAddress: t.string,
24
+ /** The resource type to obtain by staking: `BANDWIDTH` or `ENERGY`. */
16
25
  resource: t.union([t.literal("BANDWIDTH"), t.literal("ENERGY")]),
17
26
  }),
18
27
  ]);
@@ -4,15 +4,24 @@ import { BaseStakeIntent } from "./baseStakeIntent";
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Reclaim previously delegated BANDWIDTH or ENERGY resources from a
8
+ * receiver address (UnDelegateResourceContract). The undelegatable balance
9
+ * must be sufficient to cover the requested amount.
10
+ * Valid on TRX and TTRX.
11
+ *
7
12
  * @title TRX Undelegate Resource Intent
8
13
  */
9
14
  export const TrxUndelegateResourceIntent = t.intersection([
10
15
  BaseStakeIntent,
11
16
  BaseIntentWithAmount,
12
17
  t.type({
18
+ /** Must be `"undelegateResource"`. */
13
19
  intentType: intentTypes.undelegateResource,
20
+ /** Tron address of the resource owner reclaiming the delegated resources. */
14
21
  ownerAddress: t.string,
22
+ /** Tron address of the account from which the resources are being reclaimed. */
15
23
  receiverAddress: t.string,
24
+ /** The resource type to reclaim: `BANDWIDTH` or `ENERGY`. */
16
25
  resource: t.union([t.literal("BANDWIDTH"), t.literal("ENERGY")]),
17
26
  }),
18
27
  ]);
@@ -4,14 +4,22 @@ import { BaseIntentWithAmount } from "./baseIntent";
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Unstake (unfreeze) previously staked TRX using the Tron Stake V2
8
+ * protocol (UnfreezeBalanceV2). Initiates the unstaking waiting period;
9
+ * use the `claim` intent to withdraw the TRX after the waiting period
10
+ * has elapsed. Valid on TRX and TTRX.
11
+ *
7
12
  * @title TRX Unfreeze Intent
8
13
  */
9
14
  export const TrxUnfreezeIntent = t.intersection([
10
15
  BaseStakeIntent,
11
16
  BaseIntentWithAmount,
12
17
  t.type({
18
+ /** Must be `"unstake"`. */
13
19
  intentType: intentTypes.unstake,
20
+ /** Tron address of the wallet owner unstaking the TRX. */
14
21
  ownerAddress: t.string,
22
+ /** The resource type to unstake: `BANDWIDTH` or `ENERGY`. */
15
23
  resource: t.union([t.literal("BANDWIDTH"), t.literal("ENERGY")]),
16
24
  }),
17
25
  ]);
@@ -4,22 +4,33 @@ import { BaseIntentWithAmount } from "./baseIntent";
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  export const TrxVote = t.type({
7
+ /** Tron address of the Super Representative (SR) receiving the votes. */
7
8
  vote_address: t.string,
9
+ /** Number of votes to allocate to this SR, as a decimal string. */
8
10
  vote_count: t.string,
9
11
  });
10
12
 
11
13
  export type TrxVote = t.TypeOf<typeof TrxVote>;
12
14
 
13
15
  /**
16
+ * Cast votes for Tron Super Representatives (SR) using accumulated Tron
17
+ * Power (VoteWitnessContract). The total vote count across all entries must
18
+ * not exceed the available Tron Power. Each staked TRX provides 1 unit of
19
+ * Tron Power. Valid on TRX and TTRX.
20
+ *
14
21
  * @title TRX Vote Intent
15
22
  */
16
23
  export const TrxVoteIntent = t.intersection([
17
24
  BaseStakeIntent,
18
25
  BaseIntentWithAmount,
19
26
  t.type({
27
+ /** Must be `"voteDelegation"`. */
20
28
  intentType: intentTypes.voteDelegation,
29
+ /** Tron address of the Super Representative selected during the freeze step. Carried forward by the staking service so the user does not need to re-select a validator; not consumed by wallet-platform's vote transaction builder (which reads the `votes` array instead). */
21
30
  validatorAddress: t.string,
31
+ /** Tron address of the wallet owner casting the votes. */
22
32
  ownerAddress: t.string,
33
+ /** List of vote allocations. Each entry specifies a Super Representative address and the number of votes to assign. Total votes must not exceed available Tron Power. */
23
34
  votes: t.array(TrxVote),
24
35
  }),
25
36
  ]);
@@ -4,13 +4,20 @@ import { BaseIntentWithAmount } from "./baseIntent";
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Withdraw previously unstaked TRX after the Tron unstaking waiting period
8
+ * has elapsed (WithdrawExpireUnfreeze). The handler does not verify that
9
+ * the waiting period has passed before submitting the transaction. Use the
10
+ * `unstake` intent to begin the unstaking process. Valid on TRX and TTRX.
11
+ *
7
12
  * @title TRX Withdraw Expire Unfreeze Intent
8
13
  */
9
14
  export const TrxWithdrawExpireUnfreezeIntent = t.intersection([
10
15
  BaseStakeIntent,
11
16
  BaseIntentWithAmount,
12
17
  t.type({
18
+ /** Must be `"claim"`. */
13
19
  intentType: intentTypes.claim,
20
+ /** Tron address of the wallet owner withdrawing the unstaked TRX. */
14
21
  ownerAddress: t.string,
15
22
  }),
16
23
  ]);