@bitgo/public-types 6.22.0 → 6.24.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 (54) hide show
  1. package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -2
  2. package/dist/src/schema/transactionRequest/intents/index.js +1 -2
  3. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/intent.d.ts +94 -168
  5. package/dist/src/schema/transactionRequest/intents/intent.js +2 -4
  6. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/{irysPledgeIntent.d.ts → polyxSwitchValidatorIntent.d.ts} +20 -20
  8. package/dist/src/schema/transactionRequest/intents/{irysPledgeIntent.js → polyxSwitchValidatorIntent.js} +7 -12
  9. package/dist/src/schema/transactionRequest/intents/polyxSwitchValidatorIntent.js.map +1 -0
  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 +188 -336
  29. package/package.json +1 -1
  30. package/src/schema/transactionRequest/intents/index.ts +1 -2
  31. package/src/schema/transactionRequest/intents/intent.ts +2 -4
  32. package/src/schema/transactionRequest/intents/polyxSwitchValidatorIntent.ts +20 -0
  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.js.map +0 -1
  50. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.d.ts +0 -93
  51. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.js +0 -41
  52. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.js.map +0 -1
  53. package/src/schema/transactionRequest/intents/irysPledgeIntent.ts +0 -38
  54. package/src/schema/transactionRequest/intents/irysStakeIntent.ts +0 -35
@@ -5241,173 +5241,6 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
5241
5241
  isTestTransaction: t.BooleanC;
5242
5242
  }>]>]>, t.PartialC<{
5243
5243
  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
5244
  }>]>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5412
5245
  intentType: t.KeyofC<{
5413
5246
  payment: t.LiteralC<"payment">;
@@ -6359,6 +6192,99 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
6359
6192
  }>, t.PartialC<{
6360
6193
  addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
6361
6194
  validators: t.ArrayC<t.StringC>;
6195
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6196
+ intentType: t.KeyofC<{
6197
+ payment: t.LiteralC<"payment">;
6198
+ transferToken: t.LiteralC<"transferToken">;
6199
+ consolidate: t.LiteralC<"consolidate">;
6200
+ consolidateToken: t.LiteralC<"consolidateToken">;
6201
+ fanout: t.LiteralC<"fanout">;
6202
+ stake: t.LiteralC<"stake">;
6203
+ unstake: t.LiteralC<"unstake">;
6204
+ delegate: t.LiteralC<"delegate">;
6205
+ undelegate: t.LiteralC<"undelegate">;
6206
+ switchValidator: t.LiteralC<"switchValidator">;
6207
+ claim: t.LiteralC<"claim">;
6208
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
6209
+ pledge: t.LiteralC<"pledge">;
6210
+ voteDelegation: t.LiteralC<"voteDelegation">;
6211
+ vote: t.LiteralC<"vote">;
6212
+ createAccount: t.LiteralC<"createAccount">;
6213
+ updateAccount: t.LiteralC<"updateAccount">;
6214
+ addTrustLine: t.LiteralC<"addTrustLine">;
6215
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
6216
+ signMessage: t.LiteralC<"signMessage">;
6217
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
6218
+ enableToken: t.LiteralC<"enableToken">;
6219
+ authorize: t.LiteralC<"authorize">;
6220
+ acceleration: t.LiteralC<"acceleration">;
6221
+ fillNonce: t.LiteralC<"fillNonce">;
6222
+ walletRecovery: t.LiteralC<"walletRecovery">;
6223
+ contractCall: t.LiteralC<"contractCall">;
6224
+ deactivate: t.LiteralC<"deactivate">;
6225
+ customTx: t.LiteralC<"customTx">;
6226
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
6227
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
6228
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
6229
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
6230
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
6231
+ tokenApproval: t.LiteralC<"tokenApproval">;
6232
+ transferStake: t.LiteralC<"transferStake">;
6233
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
6234
+ increaseStake: t.LiteralC<"increaseStake">;
6235
+ decreaseStake: t.LiteralC<"decreaseStake">;
6236
+ signalExit: t.LiteralC<"signalExit">;
6237
+ withdrawStake: t.LiteralC<"withdrawStake">;
6238
+ spotTransfer: t.LiteralC<"spotTransfer">;
6239
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
6240
+ enableBridging: t.LiteralC<"enableBridging">;
6241
+ goUnstake: t.LiteralC<"goUnstake">;
6242
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
6243
+ transferAccept: t.LiteralC<"transferAccept">;
6244
+ transferReject: t.LiteralC<"transferReject">;
6245
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
6246
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
6247
+ cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
6248
+ cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
6249
+ allocationRequest: t.LiteralC<"allocationRequest">;
6250
+ cantonCommand: t.LiteralC<"cantonCommand">;
6251
+ allocationAllocate: t.LiteralC<"allocationAllocate">;
6252
+ "defi-deposit": t.LiteralC<"defi-deposit">;
6253
+ "defi-redeem": t.LiteralC<"defi-redeem">;
6254
+ "defi-approve": t.LiteralC<"defi-approve">;
6255
+ delegateResource: t.LiteralC<"delegateResource">;
6256
+ undelegateResource: t.LiteralC<"undelegateResource">;
6257
+ export: t.LiteralC<"export">;
6258
+ import: t.LiteralC<"import">;
6259
+ importtoc: t.LiteralC<"importtoc">;
6260
+ }>;
6261
+ }>, t.PartialC<{
6262
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6263
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6264
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
6265
+ }>]>, t.TypeC<{
6266
+ stakingRequestId: t.StringC;
6267
+ }>, t.PartialC<{
6268
+ source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
6269
+ }>]>, t.IntersectionC<[t.PartialC<{
6270
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
6271
+ }>, t.PartialC<{
6272
+ fee: t.UnionC<[t.Type<{
6273
+ amount: string | number;
6274
+ } & {
6275
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
6276
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
6277
+ type?: "max" | "base" | "tip" | undefined;
6278
+ }, {
6279
+ amount: string | number;
6280
+ } & {
6281
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
6282
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
6283
+ type?: "max" | "base" | "tip" | undefined;
6284
+ }, unknown>, t.UndefinedC]>;
6285
+ }>]>, t.TypeC<{
6286
+ intentType: t.LiteralC<"switchValidator">;
6287
+ validators: t.ArrayC<t.StringC>;
6362
6288
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6363
6289
  intentType: t.KeyofC<{
6364
6290
  payment: t.LiteralC<"payment">;
@@ -11209,7 +11135,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
11209
11135
  }>;
11210
11136
  }>, t.TypeC<{
11211
11137
  validatorAddress: import("io-ts-types").NonEmptyStringC;
11212
- stakingPeriod: t.NumberC;
11138
+ stakingPeriod: t.UnionC<[t.LiteralC<60480>, t.LiteralC<129600>, t.LiteralC<259200>]>;
11213
11139
  stakingContractAddress: import("io-ts-types").NonEmptyStringC;
11214
11140
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
11215
11141
  intentType: t.KeyofC<{
@@ -18577,173 +18503,6 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
18577
18503
  isTestTransaction: t.BooleanC;
18578
18504
  }>]>]>, t.PartialC<{
18579
18505
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18580
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
18581
- intentType: t.KeyofC<{
18582
- payment: t.LiteralC<"payment">;
18583
- transferToken: t.LiteralC<"transferToken">;
18584
- consolidate: t.LiteralC<"consolidate">;
18585
- consolidateToken: t.LiteralC<"consolidateToken">;
18586
- fanout: t.LiteralC<"fanout">;
18587
- stake: t.LiteralC<"stake">;
18588
- unstake: t.LiteralC<"unstake">;
18589
- delegate: t.LiteralC<"delegate">;
18590
- undelegate: t.LiteralC<"undelegate">;
18591
- switchValidator: t.LiteralC<"switchValidator">;
18592
- claim: t.LiteralC<"claim">;
18593
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
18594
- pledge: t.LiteralC<"pledge">;
18595
- voteDelegation: t.LiteralC<"voteDelegation">;
18596
- vote: t.LiteralC<"vote">;
18597
- createAccount: t.LiteralC<"createAccount">;
18598
- updateAccount: t.LiteralC<"updateAccount">;
18599
- addTrustLine: t.LiteralC<"addTrustLine">;
18600
- removeTrustLine: t.LiteralC<"removeTrustLine">;
18601
- signMessage: t.LiteralC<"signMessage">;
18602
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
18603
- enableToken: t.LiteralC<"enableToken">;
18604
- authorize: t.LiteralC<"authorize">;
18605
- acceleration: t.LiteralC<"acceleration">;
18606
- fillNonce: t.LiteralC<"fillNonce">;
18607
- walletRecovery: t.LiteralC<"walletRecovery">;
18608
- contractCall: t.LiteralC<"contractCall">;
18609
- deactivate: t.LiteralC<"deactivate">;
18610
- customTx: t.LiteralC<"customTx">;
18611
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
18612
- stakeWithCallData: t.LiteralC<"stakeWithCallData">;
18613
- unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
18614
- switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
18615
- feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
18616
- tokenApproval: t.LiteralC<"tokenApproval">;
18617
- transferStake: t.LiteralC<"transferStake">;
18618
- validatorRegistration: t.LiteralC<"validatorRegistration">;
18619
- increaseStake: t.LiteralC<"increaseStake">;
18620
- decreaseStake: t.LiteralC<"decreaseStake">;
18621
- signalExit: t.LiteralC<"signalExit">;
18622
- withdrawStake: t.LiteralC<"withdrawStake">;
18623
- spotTransfer: t.LiteralC<"spotTransfer">;
18624
- bridgeFunds: t.LiteralC<"bridgeFunds">;
18625
- enableBridging: t.LiteralC<"enableBridging">;
18626
- goUnstake: t.LiteralC<"goUnstake">;
18627
- createBtcDelegation: t.LiteralC<"createBtcDelegation">;
18628
- transferAccept: t.LiteralC<"transferAccept">;
18629
- transferReject: t.LiteralC<"transferReject">;
18630
- transferAcknowledge: t.LiteralC<"transferAcknowledge">;
18631
- transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
18632
- cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
18633
- cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
18634
- allocationRequest: t.LiteralC<"allocationRequest">;
18635
- cantonCommand: t.LiteralC<"cantonCommand">;
18636
- allocationAllocate: t.LiteralC<"allocationAllocate">;
18637
- "defi-deposit": t.LiteralC<"defi-deposit">;
18638
- "defi-redeem": t.LiteralC<"defi-redeem">;
18639
- "defi-approve": t.LiteralC<"defi-approve">;
18640
- delegateResource: t.LiteralC<"delegateResource">;
18641
- undelegateResource: t.LiteralC<"undelegateResource">;
18642
- export: t.LiteralC<"export">;
18643
- import: t.LiteralC<"import">;
18644
- importtoc: t.LiteralC<"importtoc">;
18645
- }>;
18646
- }>, t.PartialC<{
18647
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18648
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18649
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
18650
- }>]>, t.TypeC<{
18651
- stakingRequestId: t.StringC;
18652
- }>, t.PartialC<{
18653
- source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
18654
- }>]>, t.TypeC<{
18655
- intentType: t.LiteralC<"pledge">;
18656
- commitmentParams: t.IntersectionC<[t.TypeC<{
18657
- commitmentFee: t.StringC;
18658
- commitmentValue: t.StringC;
18659
- signerAddress: t.StringC;
18660
- chainId: t.NumberC;
18661
- }>, t.TypeC<{
18662
- pledgeCount: t.NumberC;
18663
- }>]>;
18664
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
18665
- intentType: t.KeyofC<{
18666
- payment: t.LiteralC<"payment">;
18667
- transferToken: t.LiteralC<"transferToken">;
18668
- consolidate: t.LiteralC<"consolidate">;
18669
- consolidateToken: t.LiteralC<"consolidateToken">;
18670
- fanout: t.LiteralC<"fanout">;
18671
- stake: t.LiteralC<"stake">;
18672
- unstake: t.LiteralC<"unstake">;
18673
- delegate: t.LiteralC<"delegate">;
18674
- undelegate: t.LiteralC<"undelegate">;
18675
- switchValidator: t.LiteralC<"switchValidator">;
18676
- claim: t.LiteralC<"claim">;
18677
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
18678
- pledge: t.LiteralC<"pledge">;
18679
- voteDelegation: t.LiteralC<"voteDelegation">;
18680
- vote: t.LiteralC<"vote">;
18681
- createAccount: t.LiteralC<"createAccount">;
18682
- updateAccount: t.LiteralC<"updateAccount">;
18683
- addTrustLine: t.LiteralC<"addTrustLine">;
18684
- removeTrustLine: t.LiteralC<"removeTrustLine">;
18685
- signMessage: t.LiteralC<"signMessage">;
18686
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
18687
- enableToken: t.LiteralC<"enableToken">;
18688
- authorize: t.LiteralC<"authorize">;
18689
- acceleration: t.LiteralC<"acceleration">;
18690
- fillNonce: t.LiteralC<"fillNonce">;
18691
- walletRecovery: t.LiteralC<"walletRecovery">;
18692
- contractCall: t.LiteralC<"contractCall">;
18693
- deactivate: t.LiteralC<"deactivate">;
18694
- customTx: t.LiteralC<"customTx">;
18695
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
18696
- stakeWithCallData: t.LiteralC<"stakeWithCallData">;
18697
- unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
18698
- switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
18699
- feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
18700
- tokenApproval: t.LiteralC<"tokenApproval">;
18701
- transferStake: t.LiteralC<"transferStake">;
18702
- validatorRegistration: t.LiteralC<"validatorRegistration">;
18703
- increaseStake: t.LiteralC<"increaseStake">;
18704
- decreaseStake: t.LiteralC<"decreaseStake">;
18705
- signalExit: t.LiteralC<"signalExit">;
18706
- withdrawStake: t.LiteralC<"withdrawStake">;
18707
- spotTransfer: t.LiteralC<"spotTransfer">;
18708
- bridgeFunds: t.LiteralC<"bridgeFunds">;
18709
- enableBridging: t.LiteralC<"enableBridging">;
18710
- goUnstake: t.LiteralC<"goUnstake">;
18711
- createBtcDelegation: t.LiteralC<"createBtcDelegation">;
18712
- transferAccept: t.LiteralC<"transferAccept">;
18713
- transferReject: t.LiteralC<"transferReject">;
18714
- transferAcknowledge: t.LiteralC<"transferAcknowledge">;
18715
- transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
18716
- cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
18717
- cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
18718
- allocationRequest: t.LiteralC<"allocationRequest">;
18719
- cantonCommand: t.LiteralC<"cantonCommand">;
18720
- allocationAllocate: t.LiteralC<"allocationAllocate">;
18721
- "defi-deposit": t.LiteralC<"defi-deposit">;
18722
- "defi-redeem": t.LiteralC<"defi-redeem">;
18723
- "defi-approve": t.LiteralC<"defi-approve">;
18724
- delegateResource: t.LiteralC<"delegateResource">;
18725
- undelegateResource: t.LiteralC<"undelegateResource">;
18726
- export: t.LiteralC<"export">;
18727
- import: t.LiteralC<"import">;
18728
- importtoc: t.LiteralC<"importtoc">;
18729
- }>;
18730
- }>, t.PartialC<{
18731
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18732
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
18733
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
18734
- }>]>, t.TypeC<{
18735
- stakingRequestId: t.StringC;
18736
- }>, t.PartialC<{
18737
- source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
18738
- }>]>, t.TypeC<{
18739
- intentType: t.LiteralC<"stake">;
18740
- }>]>, t.TypeC<{
18741
- commitmentParams: t.TypeC<{
18742
- commitmentFee: t.StringC;
18743
- commitmentValue: t.StringC;
18744
- signerAddress: t.StringC;
18745
- chainId: t.NumberC;
18746
- }>;
18747
18506
  }>]>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
18748
18507
  intentType: t.KeyofC<{
18749
18508
  payment: t.LiteralC<"payment">;
@@ -19695,6 +19454,99 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
19695
19454
  }>, t.PartialC<{
19696
19455
  addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
19697
19456
  validators: t.ArrayC<t.StringC>;
19457
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
19458
+ intentType: t.KeyofC<{
19459
+ payment: t.LiteralC<"payment">;
19460
+ transferToken: t.LiteralC<"transferToken">;
19461
+ consolidate: t.LiteralC<"consolidate">;
19462
+ consolidateToken: t.LiteralC<"consolidateToken">;
19463
+ fanout: t.LiteralC<"fanout">;
19464
+ stake: t.LiteralC<"stake">;
19465
+ unstake: t.LiteralC<"unstake">;
19466
+ delegate: t.LiteralC<"delegate">;
19467
+ undelegate: t.LiteralC<"undelegate">;
19468
+ switchValidator: t.LiteralC<"switchValidator">;
19469
+ claim: t.LiteralC<"claim">;
19470
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
19471
+ pledge: t.LiteralC<"pledge">;
19472
+ voteDelegation: t.LiteralC<"voteDelegation">;
19473
+ vote: t.LiteralC<"vote">;
19474
+ createAccount: t.LiteralC<"createAccount">;
19475
+ updateAccount: t.LiteralC<"updateAccount">;
19476
+ addTrustLine: t.LiteralC<"addTrustLine">;
19477
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
19478
+ signMessage: t.LiteralC<"signMessage">;
19479
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
19480
+ enableToken: t.LiteralC<"enableToken">;
19481
+ authorize: t.LiteralC<"authorize">;
19482
+ acceleration: t.LiteralC<"acceleration">;
19483
+ fillNonce: t.LiteralC<"fillNonce">;
19484
+ walletRecovery: t.LiteralC<"walletRecovery">;
19485
+ contractCall: t.LiteralC<"contractCall">;
19486
+ deactivate: t.LiteralC<"deactivate">;
19487
+ customTx: t.LiteralC<"customTx">;
19488
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
19489
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
19490
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
19491
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
19492
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
19493
+ tokenApproval: t.LiteralC<"tokenApproval">;
19494
+ transferStake: t.LiteralC<"transferStake">;
19495
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
19496
+ increaseStake: t.LiteralC<"increaseStake">;
19497
+ decreaseStake: t.LiteralC<"decreaseStake">;
19498
+ signalExit: t.LiteralC<"signalExit">;
19499
+ withdrawStake: t.LiteralC<"withdrawStake">;
19500
+ spotTransfer: t.LiteralC<"spotTransfer">;
19501
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
19502
+ enableBridging: t.LiteralC<"enableBridging">;
19503
+ goUnstake: t.LiteralC<"goUnstake">;
19504
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
19505
+ transferAccept: t.LiteralC<"transferAccept">;
19506
+ transferReject: t.LiteralC<"transferReject">;
19507
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
19508
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
19509
+ cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
19510
+ cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
19511
+ allocationRequest: t.LiteralC<"allocationRequest">;
19512
+ cantonCommand: t.LiteralC<"cantonCommand">;
19513
+ allocationAllocate: t.LiteralC<"allocationAllocate">;
19514
+ "defi-deposit": t.LiteralC<"defi-deposit">;
19515
+ "defi-redeem": t.LiteralC<"defi-redeem">;
19516
+ "defi-approve": t.LiteralC<"defi-approve">;
19517
+ delegateResource: t.LiteralC<"delegateResource">;
19518
+ undelegateResource: t.LiteralC<"undelegateResource">;
19519
+ export: t.LiteralC<"export">;
19520
+ import: t.LiteralC<"import">;
19521
+ importtoc: t.LiteralC<"importtoc">;
19522
+ }>;
19523
+ }>, t.PartialC<{
19524
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
19525
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
19526
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
19527
+ }>]>, t.TypeC<{
19528
+ stakingRequestId: t.StringC;
19529
+ }>, t.PartialC<{
19530
+ source: t.KeyofC<typeof import(".").StakingRequestSourceEnum>;
19531
+ }>]>, t.IntersectionC<[t.PartialC<{
19532
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
19533
+ }>, t.PartialC<{
19534
+ fee: t.UnionC<[t.Type<{
19535
+ amount: string | number;
19536
+ } & {
19537
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
19538
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
19539
+ type?: "max" | "base" | "tip" | undefined;
19540
+ }, {
19541
+ amount: string | number;
19542
+ } & {
19543
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
19544
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
19545
+ type?: "max" | "base" | "tip" | undefined;
19546
+ }, unknown>, t.UndefinedC]>;
19547
+ }>]>, t.TypeC<{
19548
+ intentType: t.LiteralC<"switchValidator">;
19549
+ validators: t.ArrayC<t.StringC>;
19698
19550
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
19699
19551
  intentType: t.KeyofC<{
19700
19552
  payment: t.LiteralC<"payment">;
@@ -24545,7 +24397,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
24545
24397
  }>;
24546
24398
  }>, t.TypeC<{
24547
24399
  validatorAddress: import("io-ts-types").NonEmptyStringC;
24548
- stakingPeriod: t.NumberC;
24400
+ stakingPeriod: t.UnionC<[t.LiteralC<60480>, t.LiteralC<129600>, t.LiteralC<259200>]>;
24549
24401
  stakingContractAddress: import("io-ts-types").NonEmptyStringC;
24550
24402
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
24551
24403
  intentType: t.KeyofC<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "6.22.0",
3
+ "version": "6.24.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -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";
@@ -115,6 +113,7 @@ export * from "./polyxBaseIntent";
115
113
  export * from "./polyxCreateAccountIntent";
116
114
  export * from "./polyxPreApproveAssetIntent";
117
115
  export * from "./polyxStakeIntent";
116
+ export * from "./polyxSwitchValidatorIntent";
118
117
  export * from "./polyxUnstakeIntent";
119
118
  export * from "./polyxWithdrawIntent";
120
119
  export * from "./recipientEntry";
@@ -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";
@@ -48,6 +46,7 @@ import { NearWithdrawIntent } from "./nearWithdrawIntent";
48
46
  import { PolyxCreateAccountIntent } from "./polyxCreateAccountIntent";
49
47
  import { PolyxPreApproveAssetIntent } from "./polyxPreApproveAssetIntent";
50
48
  import { PolyxStakeIntent } from "./polyxStakeIntent";
49
+ import { PolyxSwitchValidatorIntent } from "./polyxSwitchValidatorIntent";
51
50
  import { PolyxUnstakeIntent } from "./polyxUnstakeIntent";
52
51
  import { PolyxWithdrawIntent } from "./polyxWithdrawIntent";
53
52
  import { SolAuthorizeIntent } from "./solAuthorizeIntent";
@@ -200,8 +199,6 @@ export const TransactionIntent = t.union([
200
199
  HypeevmSpotTransferIntent,
201
200
  HypeevmEnableBridgingIntent,
202
201
  IcpPaymentIntent,
203
- IrysPledgeIntent,
204
- IrysStakeIntent,
205
202
  LightningPaymentIntent,
206
203
  MmiSignMessageIntent,
207
204
  MmiSignTransactionIntent,
@@ -211,6 +208,7 @@ export const TransactionIntent = t.union([
211
208
  PolyxCreateAccountIntent,
212
209
  PolyxPreApproveAssetIntent,
213
210
  PolyxStakeIntent,
211
+ PolyxSwitchValidatorIntent,
214
212
  PolyxUnstakeIntent,
215
213
  PolyxWithdrawIntent,
216
214
  SolAuthorizeIntent,
@@ -0,0 +1,20 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
4
+ import { intentTypes } from "./intentType";
5
+
6
+ /**
7
+ * @title POLYX Switch Validator Intent
8
+ */
9
+ export const PolyxSwitchValidatorIntent = t.intersection([
10
+ BaseStakeIntent,
11
+ SubstrateAccountBaseBuildOptions,
12
+ t.type({
13
+ intentType: intentTypes.switchValidator,
14
+ validators: t.array(t.string),
15
+ }),
16
+ ]);
17
+
18
+ export type PolyxSwitchValidatorIntent = t.TypeOf<
19
+ typeof PolyxSwitchValidatorIntent
20
+ >;