@bitgo/public-types 4.16.1 → 4.18.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 (29) hide show
  1. package/dist/src/schema/transactionRequest/intents/index.d.ts +5 -0
  2. package/dist/src/schema/transactionRequest/intents/index.js +5 -0
  3. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/intent.d.ts +314 -0
  5. package/dist/src/schema/transactionRequest/intents/intent.js +8 -0
  6. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +104 -0
  8. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js +37 -0
  9. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js.map +1 -0
  10. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +61 -0
  11. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js +38 -0
  12. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js.map +1 -0
  13. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +104 -0
  14. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js +37 -0
  15. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js.map +1 -0
  16. package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +54 -0
  17. package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.js +43 -0
  18. package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.js.map +1 -0
  19. package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +64 -0
  20. package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.js +35 -0
  21. package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.js.map +1 -0
  22. package/package.json +1 -1
  23. package/src/schema/transactionRequest/intents/index.ts +5 -0
  24. package/src/schema/transactionRequest/intents/intent.ts +8 -0
  25. package/src/schema/transactionRequest/intents/taoStakeIntent.ts +16 -0
  26. package/src/schema/transactionRequest/intents/taoStakingBaseIntent.ts +17 -0
  27. package/src/schema/transactionRequest/intents/taoUnstakeIntent.ts +16 -0
  28. package/src/schema/transactionRequest/intents/walrusUndelegateIntent.ts +26 -0
  29. package/src/schema/transactionRequest/intents/walrusWithdrawIntent.ts +16 -0
@@ -92,6 +92,9 @@ export * from "./substrateConsolidateIntent";
92
92
  export * from "./substrateFeeOptionFormula";
93
93
  export * from "./substrateFeeOptions";
94
94
  export * from "./substratePaymentIntent";
95
+ export * from "./taoStakingBaseIntent";
96
+ export * from "./taoStakeIntent";
97
+ export * from "./taoUnstakeIntent";
95
98
  export * from "./suiBuildOptions";
96
99
  export * from "./suiConsolidateIntent";
97
100
  export * from "./suiCustomTxIntent";
@@ -114,4 +117,6 @@ export * from "./unsupportedTokenRecipientEntryItem";
114
117
  export * from "./voteDelegationIntent";
115
118
  export * from "./walletRecoveryIntent";
116
119
  export * from "./walrusStakingIntent";
120
+ export * from "./walrusUndelegateIntent";
121
+ export * from "./walrusWithdrawIntent";
117
122
  export * from "./withdrawIntent";
@@ -108,6 +108,9 @@ __exportStar(require("./substrateConsolidateIntent"), exports);
108
108
  __exportStar(require("./substrateFeeOptionFormula"), exports);
109
109
  __exportStar(require("./substrateFeeOptions"), exports);
110
110
  __exportStar(require("./substratePaymentIntent"), exports);
111
+ __exportStar(require("./taoStakingBaseIntent"), exports);
112
+ __exportStar(require("./taoStakeIntent"), exports);
113
+ __exportStar(require("./taoUnstakeIntent"), exports);
111
114
  __exportStar(require("./suiBuildOptions"), exports);
112
115
  __exportStar(require("./suiConsolidateIntent"), exports);
113
116
  __exportStar(require("./suiCustomTxIntent"), exports);
@@ -130,5 +133,7 @@ __exportStar(require("./unsupportedTokenRecipientEntryItem"), exports);
130
133
  __exportStar(require("./voteDelegationIntent"), exports);
131
134
  __exportStar(require("./walletRecoveryIntent"), exports);
132
135
  __exportStar(require("./walrusStakingIntent"), exports);
136
+ __exportStar(require("./walrusUndelegateIntent"), exports);
137
+ __exportStar(require("./walrusWithdrawIntent"), exports);
133
138
  __exportStar(require("./withdrawIntent"), exports);
134
139
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC"}
@@ -3312,6 +3312,208 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3312
3312
  value: string;
3313
3313
  symbol: string;
3314
3314
  }, unknown>, t.UndefinedC]>;
3315
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3316
+ intentType: t.KeyofC<{
3317
+ payment: t.LiteralC<"payment">;
3318
+ transferToken: t.LiteralC<"transferToken">;
3319
+ consolidate: t.LiteralC<"consolidate">;
3320
+ consolidateToken: t.LiteralC<"consolidateToken">;
3321
+ fanout: t.LiteralC<"fanout">;
3322
+ stake: t.LiteralC<"stake">;
3323
+ unstake: t.LiteralC<"unstake">;
3324
+ delegate: t.LiteralC<"delegate">;
3325
+ undelegate: t.LiteralC<"undelegate">;
3326
+ switchValidator: t.LiteralC<"switchValidator">;
3327
+ claim: t.LiteralC<"claim">;
3328
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3329
+ pledge: t.LiteralC<"pledge">;
3330
+ voteDelegation: t.LiteralC<"voteDelegation">;
3331
+ vote: t.LiteralC<"vote">;
3332
+ createAccount: t.LiteralC<"createAccount">;
3333
+ updateAccount: t.LiteralC<"updateAccount">;
3334
+ addTrustLine: t.LiteralC<"addTrustLine">;
3335
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3336
+ signMessage: t.LiteralC<"signMessage">;
3337
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3338
+ enableToken: t.LiteralC<"enableToken">;
3339
+ authorize: t.LiteralC<"authorize">;
3340
+ acceleration: t.LiteralC<"acceleration">;
3341
+ fillNonce: t.LiteralC<"fillNonce">;
3342
+ walletRecovery: t.LiteralC<"walletRecovery">;
3343
+ contractCall: t.LiteralC<"contractCall">;
3344
+ deactivate: t.LiteralC<"deactivate">;
3345
+ customTx: t.LiteralC<"customTx">;
3346
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3347
+ }>;
3348
+ }>, t.PartialC<{
3349
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3350
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3351
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3352
+ }>]>, t.TypeC<{
3353
+ stakingRequestId: t.StringC;
3354
+ }>]>, t.TypeC<{
3355
+ intentType: t.LiteralC<"stake">;
3356
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3357
+ intentType: t.KeyofC<{
3358
+ payment: t.LiteralC<"payment">;
3359
+ transferToken: t.LiteralC<"transferToken">;
3360
+ consolidate: t.LiteralC<"consolidate">;
3361
+ consolidateToken: t.LiteralC<"consolidateToken">;
3362
+ fanout: t.LiteralC<"fanout">;
3363
+ stake: t.LiteralC<"stake">;
3364
+ unstake: t.LiteralC<"unstake">;
3365
+ delegate: t.LiteralC<"delegate">;
3366
+ undelegate: t.LiteralC<"undelegate">;
3367
+ switchValidator: t.LiteralC<"switchValidator">;
3368
+ claim: t.LiteralC<"claim">;
3369
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3370
+ pledge: t.LiteralC<"pledge">;
3371
+ voteDelegation: t.LiteralC<"voteDelegation">;
3372
+ vote: t.LiteralC<"vote">;
3373
+ createAccount: t.LiteralC<"createAccount">;
3374
+ updateAccount: t.LiteralC<"updateAccount">;
3375
+ addTrustLine: t.LiteralC<"addTrustLine">;
3376
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3377
+ signMessage: t.LiteralC<"signMessage">;
3378
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3379
+ enableToken: t.LiteralC<"enableToken">;
3380
+ authorize: t.LiteralC<"authorize">;
3381
+ acceleration: t.LiteralC<"acceleration">;
3382
+ fillNonce: t.LiteralC<"fillNonce">;
3383
+ walletRecovery: t.LiteralC<"walletRecovery">;
3384
+ contractCall: t.LiteralC<"contractCall">;
3385
+ deactivate: t.LiteralC<"deactivate">;
3386
+ customTx: t.LiteralC<"customTx">;
3387
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3388
+ }>;
3389
+ }>, t.PartialC<{
3390
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3391
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3392
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3393
+ }>]>, t.TypeC<{
3394
+ stakingRequestId: t.StringC;
3395
+ }>]>, t.IntersectionC<[t.PartialC<{
3396
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3397
+ }>, t.PartialC<{
3398
+ fee: t.UnionC<[t.Type<{
3399
+ amount: string | number;
3400
+ } & {
3401
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3402
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3403
+ type?: "max" | "base" | "tip" | undefined;
3404
+ }, {
3405
+ amount: string | number;
3406
+ } & {
3407
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3408
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3409
+ type?: "max" | "base" | "tip" | undefined;
3410
+ }, unknown>, t.UndefinedC]>;
3411
+ }>]>, t.TypeC<{
3412
+ hotkey: t.StringC;
3413
+ netuid: t.NumberC;
3414
+ }>]>, t.TypeC<{
3415
+ amountStaked: t.NumberC;
3416
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3417
+ intentType: t.KeyofC<{
3418
+ payment: t.LiteralC<"payment">;
3419
+ transferToken: t.LiteralC<"transferToken">;
3420
+ consolidate: t.LiteralC<"consolidate">;
3421
+ consolidateToken: t.LiteralC<"consolidateToken">;
3422
+ fanout: t.LiteralC<"fanout">;
3423
+ stake: t.LiteralC<"stake">;
3424
+ unstake: t.LiteralC<"unstake">;
3425
+ delegate: t.LiteralC<"delegate">;
3426
+ undelegate: t.LiteralC<"undelegate">;
3427
+ switchValidator: t.LiteralC<"switchValidator">;
3428
+ claim: t.LiteralC<"claim">;
3429
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3430
+ pledge: t.LiteralC<"pledge">;
3431
+ voteDelegation: t.LiteralC<"voteDelegation">;
3432
+ vote: t.LiteralC<"vote">;
3433
+ createAccount: t.LiteralC<"createAccount">;
3434
+ updateAccount: t.LiteralC<"updateAccount">;
3435
+ addTrustLine: t.LiteralC<"addTrustLine">;
3436
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3437
+ signMessage: t.LiteralC<"signMessage">;
3438
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3439
+ enableToken: t.LiteralC<"enableToken">;
3440
+ authorize: t.LiteralC<"authorize">;
3441
+ acceleration: t.LiteralC<"acceleration">;
3442
+ fillNonce: t.LiteralC<"fillNonce">;
3443
+ walletRecovery: t.LiteralC<"walletRecovery">;
3444
+ contractCall: t.LiteralC<"contractCall">;
3445
+ deactivate: t.LiteralC<"deactivate">;
3446
+ customTx: t.LiteralC<"customTx">;
3447
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3448
+ }>;
3449
+ }>, t.PartialC<{
3450
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3451
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3452
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3453
+ }>]>, t.TypeC<{
3454
+ stakingRequestId: t.StringC;
3455
+ }>]>, t.TypeC<{
3456
+ intentType: t.LiteralC<"unstake">;
3457
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3458
+ intentType: t.KeyofC<{
3459
+ payment: t.LiteralC<"payment">;
3460
+ transferToken: t.LiteralC<"transferToken">;
3461
+ consolidate: t.LiteralC<"consolidate">;
3462
+ consolidateToken: t.LiteralC<"consolidateToken">;
3463
+ fanout: t.LiteralC<"fanout">;
3464
+ stake: t.LiteralC<"stake">;
3465
+ unstake: t.LiteralC<"unstake">;
3466
+ delegate: t.LiteralC<"delegate">;
3467
+ undelegate: t.LiteralC<"undelegate">;
3468
+ switchValidator: t.LiteralC<"switchValidator">;
3469
+ claim: t.LiteralC<"claim">;
3470
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3471
+ pledge: t.LiteralC<"pledge">;
3472
+ voteDelegation: t.LiteralC<"voteDelegation">;
3473
+ vote: t.LiteralC<"vote">;
3474
+ createAccount: t.LiteralC<"createAccount">;
3475
+ updateAccount: t.LiteralC<"updateAccount">;
3476
+ addTrustLine: t.LiteralC<"addTrustLine">;
3477
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3478
+ signMessage: t.LiteralC<"signMessage">;
3479
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3480
+ enableToken: t.LiteralC<"enableToken">;
3481
+ authorize: t.LiteralC<"authorize">;
3482
+ acceleration: t.LiteralC<"acceleration">;
3483
+ fillNonce: t.LiteralC<"fillNonce">;
3484
+ walletRecovery: t.LiteralC<"walletRecovery">;
3485
+ contractCall: t.LiteralC<"contractCall">;
3486
+ deactivate: t.LiteralC<"deactivate">;
3487
+ customTx: t.LiteralC<"customTx">;
3488
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3489
+ }>;
3490
+ }>, t.PartialC<{
3491
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3492
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3493
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3494
+ }>]>, t.TypeC<{
3495
+ stakingRequestId: t.StringC;
3496
+ }>]>, t.IntersectionC<[t.PartialC<{
3497
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3498
+ }>, t.PartialC<{
3499
+ fee: t.UnionC<[t.Type<{
3500
+ amount: string | number;
3501
+ } & {
3502
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3503
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3504
+ type?: "max" | "base" | "tip" | undefined;
3505
+ }, {
3506
+ amount: string | number;
3507
+ } & {
3508
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3509
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3510
+ type?: "max" | "base" | "tip" | undefined;
3511
+ }, unknown>, t.UndefinedC]>;
3512
+ }>]>, t.TypeC<{
3513
+ hotkey: t.StringC;
3514
+ netuid: t.NumberC;
3515
+ }>]>, t.TypeC<{
3516
+ amountUnstaked: t.NumberC;
3315
3517
  }>]>, t.IntersectionC<[t.PartialC<{
3316
3518
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3317
3519
  }>, t.TypeC<{
@@ -3964,6 +4166,118 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3964
4166
  })[], unknown>, t.UndefinedC]>;
3965
4167
  }>]>, t.TypeC<{
3966
4168
  sharedStakingObjectId: t.StringC;
4169
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
4170
+ intentType: t.KeyofC<{
4171
+ payment: t.LiteralC<"payment">;
4172
+ transferToken: t.LiteralC<"transferToken">;
4173
+ consolidate: t.LiteralC<"consolidate">;
4174
+ consolidateToken: t.LiteralC<"consolidateToken">;
4175
+ fanout: t.LiteralC<"fanout">;
4176
+ stake: t.LiteralC<"stake">;
4177
+ unstake: t.LiteralC<"unstake">;
4178
+ delegate: t.LiteralC<"delegate">;
4179
+ undelegate: t.LiteralC<"undelegate">;
4180
+ switchValidator: t.LiteralC<"switchValidator">;
4181
+ claim: t.LiteralC<"claim">;
4182
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
4183
+ pledge: t.LiteralC<"pledge">;
4184
+ voteDelegation: t.LiteralC<"voteDelegation">;
4185
+ vote: t.LiteralC<"vote">;
4186
+ createAccount: t.LiteralC<"createAccount">;
4187
+ updateAccount: t.LiteralC<"updateAccount">;
4188
+ addTrustLine: t.LiteralC<"addTrustLine">;
4189
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
4190
+ signMessage: t.LiteralC<"signMessage">;
4191
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
4192
+ enableToken: t.LiteralC<"enableToken">;
4193
+ authorize: t.LiteralC<"authorize">;
4194
+ acceleration: t.LiteralC<"acceleration">;
4195
+ fillNonce: t.LiteralC<"fillNonce">;
4196
+ walletRecovery: t.LiteralC<"walletRecovery">;
4197
+ contractCall: t.LiteralC<"contractCall">;
4198
+ deactivate: t.LiteralC<"deactivate">;
4199
+ customTx: t.LiteralC<"customTx">;
4200
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
4201
+ }>;
4202
+ }>, t.PartialC<{
4203
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4204
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4205
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4206
+ }>]>, t.TypeC<{
4207
+ stakingRequestId: t.StringC;
4208
+ }>]>, t.TypeC<{
4209
+ intentType: t.LiteralC<"undelegate">;
4210
+ stakedSuiObjectId: t.StringC;
4211
+ sharedStakingObjectId: t.StringC;
4212
+ }>, t.PartialC<{
4213
+ amount: t.UnionC<[t.Type<{
4214
+ value: string;
4215
+ symbol: string;
4216
+ }, {
4217
+ value: string;
4218
+ symbol: string;
4219
+ }, unknown>, t.UndefinedC]>;
4220
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
4221
+ intentType: t.KeyofC<{
4222
+ payment: t.LiteralC<"payment">;
4223
+ transferToken: t.LiteralC<"transferToken">;
4224
+ consolidate: t.LiteralC<"consolidate">;
4225
+ consolidateToken: t.LiteralC<"consolidateToken">;
4226
+ fanout: t.LiteralC<"fanout">;
4227
+ stake: t.LiteralC<"stake">;
4228
+ unstake: t.LiteralC<"unstake">;
4229
+ delegate: t.LiteralC<"delegate">;
4230
+ undelegate: t.LiteralC<"undelegate">;
4231
+ switchValidator: t.LiteralC<"switchValidator">;
4232
+ claim: t.LiteralC<"claim">;
4233
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
4234
+ pledge: t.LiteralC<"pledge">;
4235
+ voteDelegation: t.LiteralC<"voteDelegation">;
4236
+ vote: t.LiteralC<"vote">;
4237
+ createAccount: t.LiteralC<"createAccount">;
4238
+ updateAccount: t.LiteralC<"updateAccount">;
4239
+ addTrustLine: t.LiteralC<"addTrustLine">;
4240
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
4241
+ signMessage: t.LiteralC<"signMessage">;
4242
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
4243
+ enableToken: t.LiteralC<"enableToken">;
4244
+ authorize: t.LiteralC<"authorize">;
4245
+ acceleration: t.LiteralC<"acceleration">;
4246
+ fillNonce: t.LiteralC<"fillNonce">;
4247
+ walletRecovery: t.LiteralC<"walletRecovery">;
4248
+ contractCall: t.LiteralC<"contractCall">;
4249
+ deactivate: t.LiteralC<"deactivate">;
4250
+ customTx: t.LiteralC<"customTx">;
4251
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
4252
+ }>;
4253
+ }>, t.PartialC<{
4254
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4255
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4256
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4257
+ }>]>, t.TypeC<{
4258
+ stakingRequestId: t.StringC;
4259
+ }>]>, t.TypeC<{
4260
+ intentType: t.LiteralC<"claim">;
4261
+ }>, t.PartialC<{
4262
+ amount: t.UnionC<[t.Type<{
4263
+ value: string;
4264
+ symbol: string;
4265
+ }, {
4266
+ value: string;
4267
+ symbol: string;
4268
+ }, unknown>, t.UndefinedC]>;
4269
+ }>]>, t.TypeC<{
4270
+ stakedSuiObjectId: t.StringC;
4271
+ }>, t.PartialC<{
4272
+ amount: t.UnionC<[t.Type<{
4273
+ value: string;
4274
+ symbol: string;
4275
+ }, {
4276
+ value: string;
4277
+ symbol: string;
4278
+ }, unknown>, t.UndefinedC]>;
4279
+ }>]>, t.TypeC<{
4280
+ sharedStakingObjectId: t.StringC;
3967
4281
  }>]>, t.IntersectionC<[t.TypeC<{
3968
4282
  intentType: t.KeyofC<{
3969
4283
  payment: t.LiteralC<"payment">;
@@ -68,6 +68,8 @@ const suiStakingIntent_1 = require("./suiStakingIntent");
68
68
  const suiUnstakingIntent_1 = require("./suiUnstakingIntent");
69
69
  const substrateConsolidateIntent_1 = require("./substrateConsolidateIntent");
70
70
  const substratePaymentIntent_1 = require("./substratePaymentIntent");
71
+ const taoStakeIntent_1 = require("./taoStakeIntent");
72
+ const taoUnstakeIntent_1 = require("./taoUnstakeIntent");
71
73
  const tonDelegateIntent_1 = require("./tonDelegateIntent");
72
74
  const tonPaymentIntent_1 = require("./tonPaymentIntent");
73
75
  const tonUndelegateIntent_1 = require("./tonUndelegateIntent");
@@ -92,6 +94,8 @@ const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
92
94
  const ethLikeStakeIntent_1 = require("./ethLikeStakeIntent");
93
95
  const beraDelegateIntent_1 = require("./beraDelegateIntent");
94
96
  const walrusStakingIntent_1 = require("./walrusStakingIntent");
97
+ const walrusUndelegateIntent_1 = require("./walrusUndelegateIntent");
98
+ const walrusWithdrawIntent_1 = require("./walrusWithdrawIntent");
95
99
  exports.TransactionIntent = t.union([
96
100
  adaConsolidateIntent_1.AdaConsolidateIntent,
97
101
  adaPaymentIntent_1.AdaPaymentIntent,
@@ -147,6 +151,8 @@ exports.TransactionIntent = t.union([
147
151
  suiPaymentIntent_1.SuiPaymentIntent,
148
152
  suiStakingIntent_1.SuiStakingIntent,
149
153
  suiUnstakingIntent_1.SuiUnstakingIntent,
154
+ taoStakeIntent_1.TaoStakeIntent,
155
+ taoUnstakeIntent_1.TaoUnstakeIntent,
150
156
  tonConsolidateIntent_1.TonConsolidateIntent,
151
157
  tonDelegateIntent_1.TonDelegateIntent,
152
158
  tonPaymentIntent_1.TonPaymentIntent,
@@ -159,6 +165,8 @@ exports.TransactionIntent = t.union([
159
165
  ethLikeStakeIntent_1.EthLikeStakeIntent,
160
166
  beraDelegateIntent_1.BeraDelegateIntent,
161
167
  walrusStakingIntent_1.WalrusStakingIntent,
168
+ walrusUndelegateIntent_1.WalrusUndelegateIntent,
169
+ walrusWithdrawIntent_1.WalrusWithdrawIntent,
162
170
  baseIntent_1.BaseIntent,
163
171
  ]);
164
172
  //# sourceMappingURL=intent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAC9D,iGAA8F;AAC9F,+EAA4E;AAC5E,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,6DAA0D;AAC1D,6DAA0D;AAC1D,+DAA4D;AAE/C,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,iDAAuB;IACvB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,qCAAiB;IACjB,yCAAmB;IACnB,yDAA2B;IAC3B,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IAKnB,uBAAU;CACX,CAAC,CAAC"}
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAC9D,iGAA8F;AAC9F,+EAA4E;AAC5E,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,6DAA0D;AAC1D,6DAA0D;AAC1D,+DAA4D;AAC5D,qEAAkE;AAClE,iEAA8D;AAEjD,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,iDAAuB;IACvB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,qCAAiB;IACjB,yCAAmB;IACnB,yDAA2B;IAC3B,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mCAAgB;IAChB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,104 @@
1
+ import * as t from "io-ts";
2
+ export declare const TaoStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ }>;
35
+ }>, t.PartialC<{
36
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
38
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
+ }>]>, t.TypeC<{
40
+ stakingRequestId: t.StringC;
41
+ }>]>, t.TypeC<{
42
+ intentType: t.LiteralC<"stake">;
43
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
44
+ intentType: t.KeyofC<{
45
+ payment: t.LiteralC<"payment">;
46
+ transferToken: t.LiteralC<"transferToken">;
47
+ consolidate: t.LiteralC<"consolidate">;
48
+ consolidateToken: t.LiteralC<"consolidateToken">;
49
+ fanout: t.LiteralC<"fanout">;
50
+ stake: t.LiteralC<"stake">;
51
+ unstake: t.LiteralC<"unstake">;
52
+ delegate: t.LiteralC<"delegate">;
53
+ undelegate: t.LiteralC<"undelegate">;
54
+ switchValidator: t.LiteralC<"switchValidator">;
55
+ claim: t.LiteralC<"claim">;
56
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
57
+ pledge: t.LiteralC<"pledge">;
58
+ voteDelegation: t.LiteralC<"voteDelegation">;
59
+ vote: t.LiteralC<"vote">;
60
+ createAccount: t.LiteralC<"createAccount">;
61
+ updateAccount: t.LiteralC<"updateAccount">;
62
+ addTrustLine: t.LiteralC<"addTrustLine">;
63
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
64
+ signMessage: t.LiteralC<"signMessage">;
65
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
66
+ enableToken: t.LiteralC<"enableToken">;
67
+ authorize: t.LiteralC<"authorize">;
68
+ acceleration: t.LiteralC<"acceleration">;
69
+ fillNonce: t.LiteralC<"fillNonce">;
70
+ walletRecovery: t.LiteralC<"walletRecovery">;
71
+ contractCall: t.LiteralC<"contractCall">;
72
+ deactivate: t.LiteralC<"deactivate">;
73
+ customTx: t.LiteralC<"customTx">;
74
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
75
+ }>;
76
+ }>, t.PartialC<{
77
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
78
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
79
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
80
+ }>]>, t.TypeC<{
81
+ stakingRequestId: t.StringC;
82
+ }>]>, t.IntersectionC<[t.PartialC<{
83
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
84
+ }>, t.PartialC<{
85
+ fee: t.UnionC<[t.Type<{
86
+ amount: string | number;
87
+ } & {
88
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
89
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
90
+ type?: "max" | "base" | "tip" | undefined;
91
+ }, {
92
+ amount: string | number;
93
+ } & {
94
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
95
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
96
+ type?: "max" | "base" | "tip" | undefined;
97
+ }, unknown>, t.UndefinedC]>;
98
+ }>]>, t.TypeC<{
99
+ hotkey: t.StringC;
100
+ netuid: t.NumberC;
101
+ }>]>, t.TypeC<{
102
+ amountStaked: t.NumberC;
103
+ }>]>;
104
+ export type TaoStakeIntent = t.TypeOf<typeof TaoStakeIntent>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TaoStakeIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const stakeIntent_1 = require("./stakeIntent");
29
+ const taoStakingBaseIntent_1 = require("./taoStakingBaseIntent");
30
+ exports.TaoStakeIntent = t.intersection([
31
+ stakeIntent_1.StakeIntent,
32
+ taoStakingBaseIntent_1.TaoStakingBaseIntent,
33
+ t.type({
34
+ amountStaked: t.number,
35
+ }),
36
+ ]);
37
+ //# sourceMappingURL=taoStakeIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taoStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,iEAA8D;AAKjD,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,61 @@
1
+ import * as t from "io-ts";
2
+ export declare const TaoStakingBaseIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ }>;
35
+ }>, t.PartialC<{
36
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
38
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
+ }>]>, t.TypeC<{
40
+ stakingRequestId: t.StringC;
41
+ }>]>, t.IntersectionC<[t.PartialC<{
42
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
+ }>, t.PartialC<{
44
+ fee: t.UnionC<[t.Type<{
45
+ amount: string | number;
46
+ } & {
47
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
48
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
49
+ type?: "max" | "base" | "tip" | undefined;
50
+ }, {
51
+ amount: string | number;
52
+ } & {
53
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
54
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
55
+ type?: "max" | "base" | "tip" | undefined;
56
+ }, unknown>, t.UndefinedC]>;
57
+ }>]>, t.TypeC<{
58
+ hotkey: t.StringC;
59
+ netuid: t.NumberC;
60
+ }>]>;
61
+ export type TaoStakingBaseIntent = t.TypeOf<typeof TaoStakingBaseIntent>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TaoStakingBaseIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntent_1 = require("./baseStakeIntent");
29
+ const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
30
+ exports.TaoStakingBaseIntent = t.intersection([
31
+ baseStakeIntent_1.BaseStakeIntent,
32
+ substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
33
+ t.type({
34
+ hotkey: t.string,
35
+ netuid: t.number,
36
+ }),
37
+ ]);
38
+ //# sourceMappingURL=taoStakingBaseIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taoStakingBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoStakingBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AAKzE,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,104 @@
1
+ import * as t from "io-ts";
2
+ export declare const TaoUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ }>;
35
+ }>, t.PartialC<{
36
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
38
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
+ }>]>, t.TypeC<{
40
+ stakingRequestId: t.StringC;
41
+ }>]>, t.TypeC<{
42
+ intentType: t.LiteralC<"unstake">;
43
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
44
+ intentType: t.KeyofC<{
45
+ payment: t.LiteralC<"payment">;
46
+ transferToken: t.LiteralC<"transferToken">;
47
+ consolidate: t.LiteralC<"consolidate">;
48
+ consolidateToken: t.LiteralC<"consolidateToken">;
49
+ fanout: t.LiteralC<"fanout">;
50
+ stake: t.LiteralC<"stake">;
51
+ unstake: t.LiteralC<"unstake">;
52
+ delegate: t.LiteralC<"delegate">;
53
+ undelegate: t.LiteralC<"undelegate">;
54
+ switchValidator: t.LiteralC<"switchValidator">;
55
+ claim: t.LiteralC<"claim">;
56
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
57
+ pledge: t.LiteralC<"pledge">;
58
+ voteDelegation: t.LiteralC<"voteDelegation">;
59
+ vote: t.LiteralC<"vote">;
60
+ createAccount: t.LiteralC<"createAccount">;
61
+ updateAccount: t.LiteralC<"updateAccount">;
62
+ addTrustLine: t.LiteralC<"addTrustLine">;
63
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
64
+ signMessage: t.LiteralC<"signMessage">;
65
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
66
+ enableToken: t.LiteralC<"enableToken">;
67
+ authorize: t.LiteralC<"authorize">;
68
+ acceleration: t.LiteralC<"acceleration">;
69
+ fillNonce: t.LiteralC<"fillNonce">;
70
+ walletRecovery: t.LiteralC<"walletRecovery">;
71
+ contractCall: t.LiteralC<"contractCall">;
72
+ deactivate: t.LiteralC<"deactivate">;
73
+ customTx: t.LiteralC<"customTx">;
74
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
75
+ }>;
76
+ }>, t.PartialC<{
77
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
78
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
79
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
80
+ }>]>, t.TypeC<{
81
+ stakingRequestId: t.StringC;
82
+ }>]>, t.IntersectionC<[t.PartialC<{
83
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
84
+ }>, t.PartialC<{
85
+ fee: t.UnionC<[t.Type<{
86
+ amount: string | number;
87
+ } & {
88
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
89
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
90
+ type?: "max" | "base" | "tip" | undefined;
91
+ }, {
92
+ amount: string | number;
93
+ } & {
94
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
95
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
96
+ type?: "max" | "base" | "tip" | undefined;
97
+ }, unknown>, t.UndefinedC]>;
98
+ }>]>, t.TypeC<{
99
+ hotkey: t.StringC;
100
+ netuid: t.NumberC;
101
+ }>]>, t.TypeC<{
102
+ amountUnstaked: t.NumberC;
103
+ }>]>;
104
+ export type TaoUnstakeIntent = t.TypeOf<typeof TaoUnstakeIntent>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TaoUnstakeIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const unstakeIntent_1 = require("./unstakeIntent");
29
+ const taoStakingBaseIntent_1 = require("./taoStakingBaseIntent");
30
+ exports.TaoUnstakeIntent = t.intersection([
31
+ unstakeIntent_1.UnstakeIntent,
32
+ taoStakingBaseIntent_1.TaoStakingBaseIntent,
33
+ t.type({
34
+ amountUnstaked: t.number,
35
+ }),
36
+ ]);
37
+ //# sourceMappingURL=taoUnstakeIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taoUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,iEAA8D;AAKjD,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,54 @@
1
+ import * as t from "io-ts";
2
+ export declare const WalrusUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ }>;
35
+ }>, t.PartialC<{
36
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
38
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
+ }>]>, t.TypeC<{
40
+ stakingRequestId: t.StringC;
41
+ }>]>, t.TypeC<{
42
+ intentType: t.LiteralC<"undelegate">;
43
+ stakedSuiObjectId: t.StringC;
44
+ sharedStakingObjectId: t.StringC;
45
+ }>, t.PartialC<{
46
+ amount: t.UnionC<[t.Type<{
47
+ value: string;
48
+ symbol: string;
49
+ }, {
50
+ value: string;
51
+ symbol: string;
52
+ }, unknown>, t.UndefinedC]>;
53
+ }>]>;
54
+ export type WalrusUndelegateIntent = t.TypeOf<typeof WalrusUndelegateIntent>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.WalrusUndelegateIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const intentType_1 = require("./intentType");
29
+ const amount_1 = require("./amount");
30
+ const baseStakeIntent_1 = require("./baseStakeIntent");
31
+ const utils_1 = require("../../../utils");
32
+ exports.WalrusUndelegateIntent = t.intersection([
33
+ baseStakeIntent_1.BaseStakeIntent,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.undelegate,
36
+ stakedSuiObjectId: t.string,
37
+ sharedStakingObjectId: t.string,
38
+ }),
39
+ t.partial({
40
+ amount: (0, utils_1.Optional)(amount_1.Amount),
41
+ }),
42
+ ]);
43
+ //# sourceMappingURL=walrusUndelegateIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrusUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/walrusUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,qCAAkC;AAClC,uDAAoD;AACpD,0CAA0C;AAS7B,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAC3B,qBAAqB,EAAE,CAAC,CAAC,MAAM;KAChC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzB,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,64 @@
1
+ import * as t from "io-ts";
2
+ export declare const WalrusWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ }>;
35
+ }>, t.PartialC<{
36
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
38
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
+ }>]>, t.TypeC<{
40
+ stakingRequestId: t.StringC;
41
+ }>]>, t.TypeC<{
42
+ intentType: t.LiteralC<"claim">;
43
+ }>, t.PartialC<{
44
+ amount: t.UnionC<[t.Type<{
45
+ value: string;
46
+ symbol: string;
47
+ }, {
48
+ value: string;
49
+ symbol: string;
50
+ }, unknown>, t.UndefinedC]>;
51
+ }>]>, t.TypeC<{
52
+ stakedSuiObjectId: t.StringC;
53
+ }>, t.PartialC<{
54
+ amount: t.UnionC<[t.Type<{
55
+ value: string;
56
+ symbol: string;
57
+ }, {
58
+ value: string;
59
+ symbol: string;
60
+ }, unknown>, t.UndefinedC]>;
61
+ }>]>, t.TypeC<{
62
+ sharedStakingObjectId: t.StringC;
63
+ }>]>;
64
+ export type WalrusWithdrawIntent = t.TypeOf<typeof WalrusWithdrawIntent>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.WalrusWithdrawIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const suiUnstakingIntent_1 = require("./suiUnstakingIntent");
29
+ exports.WalrusWithdrawIntent = t.intersection([
30
+ suiUnstakingIntent_1.SuiUnstakingIntent,
31
+ t.type({
32
+ sharedStakingObjectId: t.string,
33
+ }),
34
+ ]);
35
+ //# sourceMappingURL=walrusWithdrawIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrusWithdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/walrusWithdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6DAA0D;AAO7C,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,uCAAkB;IAClB,CAAC,CAAC,IAAI,CAAC;QACL,qBAAqB,EAAE,CAAC,CAAC,MAAM;KAChC,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.16.1",
3
+ "version": "4.18.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -92,6 +92,9 @@ export * from "./substrateConsolidateIntent";
92
92
  export * from "./substrateFeeOptionFormula";
93
93
  export * from "./substrateFeeOptions";
94
94
  export * from "./substratePaymentIntent";
95
+ export * from "./taoStakingBaseIntent";
96
+ export * from "./taoStakeIntent";
97
+ export * from "./taoUnstakeIntent";
95
98
  export * from "./suiBuildOptions";
96
99
  export * from "./suiConsolidateIntent";
97
100
  export * from "./suiCustomTxIntent";
@@ -114,4 +117,6 @@ export * from "./unsupportedTokenRecipientEntryItem";
114
117
  export * from "./voteDelegationIntent";
115
118
  export * from "./walletRecoveryIntent";
116
119
  export * from "./walrusStakingIntent";
120
+ export * from "./walrusUndelegateIntent";
121
+ export * from "./walrusWithdrawIntent";
117
122
  export * from "./withdrawIntent";
@@ -42,6 +42,8 @@ import { SuiStakingIntent } from "./suiStakingIntent";
42
42
  import { SuiUnstakingIntent } from "./suiUnstakingIntent";
43
43
  import { SubstrateConsolidateIntent } from "./substrateConsolidateIntent";
44
44
  import { SubstratePaymentIntent } from "./substratePaymentIntent";
45
+ import { TaoStakeIntent } from "./taoStakeIntent";
46
+ import { TaoUnstakeIntent } from "./taoUnstakeIntent";
45
47
  import { TonDelegateIntent } from "./tonDelegateIntent";
46
48
  import { TonPaymentIntent } from "./tonPaymentIntent";
47
49
  import { TonUndelegateIntent } from "./tonUndelegateIntent";
@@ -66,6 +68,8 @@ import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
66
68
  import { EthLikeStakeIntent } from "./ethLikeStakeIntent";
67
69
  import { BeraDelegateIntent } from "./beraDelegateIntent";
68
70
  import { WalrusStakingIntent } from "./walrusStakingIntent";
71
+ import { WalrusUndelegateIntent } from "./walrusUndelegateIntent";
72
+ import { WalrusWithdrawIntent } from "./walrusWithdrawIntent";
69
73
 
70
74
  export const TransactionIntent = t.union([
71
75
  AdaConsolidateIntent,
@@ -122,6 +126,8 @@ export const TransactionIntent = t.union([
122
126
  SuiPaymentIntent,
123
127
  SuiStakingIntent,
124
128
  SuiUnstakingIntent,
129
+ TaoStakeIntent,
130
+ TaoUnstakeIntent,
125
131
  TonConsolidateIntent,
126
132
  TonDelegateIntent,
127
133
  TonPaymentIntent,
@@ -134,6 +140,8 @@ export const TransactionIntent = t.union([
134
140
  EthLikeStakeIntent,
135
141
  BeraDelegateIntent,
136
142
  WalrusStakingIntent,
143
+ WalrusUndelegateIntent,
144
+ WalrusWithdrawIntent,
137
145
 
138
146
  /**
139
147
  * Catch all for past intents that have not been converted to codecs
@@ -0,0 +1,16 @@
1
+ import * as t from "io-ts";
2
+ import { StakeIntent } from "./stakeIntent";
3
+ import { TaoStakingBaseIntent } from "./taoStakingBaseIntent";
4
+
5
+ /**
6
+ * @title Tao Stake Intent
7
+ */
8
+ export const TaoStakeIntent = t.intersection([
9
+ StakeIntent,
10
+ TaoStakingBaseIntent,
11
+ t.type({
12
+ amountStaked: t.number,
13
+ }),
14
+ ]);
15
+
16
+ export type TaoStakeIntent = t.TypeOf<typeof TaoStakeIntent>;
@@ -0,0 +1,17 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
4
+
5
+ /**
6
+ * @title Tao Staking Base Intent
7
+ */
8
+ export const TaoStakingBaseIntent = t.intersection([
9
+ BaseStakeIntent,
10
+ SubstrateAccountBaseBuildOptions,
11
+ t.type({
12
+ hotkey: t.string,
13
+ netuid: t.number,
14
+ }),
15
+ ]);
16
+
17
+ export type TaoStakingBaseIntent = t.TypeOf<typeof TaoStakingBaseIntent>;
@@ -0,0 +1,16 @@
1
+ import * as t from "io-ts";
2
+ import { UnstakeIntent } from "./unstakeIntent";
3
+ import { TaoStakingBaseIntent } from "./taoStakingBaseIntent";
4
+
5
+ /**
6
+ * @title Tao Unstake Intent
7
+ */
8
+ export const TaoUnstakeIntent = t.intersection([
9
+ UnstakeIntent,
10
+ TaoStakingBaseIntent,
11
+ t.type({
12
+ amountUnstaked: t.number,
13
+ }),
14
+ ]);
15
+
16
+ export type TaoUnstakeIntent = t.TypeOf<typeof TaoUnstakeIntent>;
@@ -0,0 +1,26 @@
1
+ import * as t from "io-ts";
2
+ import { intentTypes } from "./intentType";
3
+ import { Amount } from "./amount";
4
+ import { BaseStakeIntent } from "./baseStakeIntent";
5
+ import { Optional } from "../../../utils";
6
+
7
+ /**
8
+ * @title Walrus Undelegate Intent
9
+ *
10
+ * @param {string} stakedSuiObjectId - The original StakedWal object id
11
+ * @param {Amount} amount - The amount to undelegate
12
+ * @param {string} sharedStakingObjectId - The staking object id
13
+ */
14
+ export const WalrusUndelegateIntent = t.intersection([
15
+ BaseStakeIntent,
16
+ t.type({
17
+ intentType: intentTypes.undelegate,
18
+ stakedSuiObjectId: t.string,
19
+ sharedStakingObjectId: t.string,
20
+ }),
21
+ t.partial({
22
+ amount: Optional(Amount),
23
+ }),
24
+ ]);
25
+
26
+ export type WalrusUndelegateIntent = t.TypeOf<typeof WalrusUndelegateIntent>;
@@ -0,0 +1,16 @@
1
+ import * as t from "io-ts";
2
+ import { SuiUnstakingIntent } from "./suiUnstakingIntent";
3
+
4
+ /**
5
+ * @title Walrus Withdraw Intent
6
+ *
7
+ * @param {string} sharedStakingObjectId - The staking object id
8
+ */
9
+ export const WalrusWithdrawIntent = t.intersection([
10
+ SuiUnstakingIntent,
11
+ t.type({
12
+ sharedStakingObjectId: t.string,
13
+ }),
14
+ ]);
15
+
16
+ export type WalrusWithdrawIntent = t.TypeOf<typeof WalrusWithdrawIntent>;