@bitgo/public-types 4.17.0 → 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.
- package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +202 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +4 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +104 -0
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +61 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +104 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js.map +1 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/index.ts +3 -0
- package/src/schema/transactionRequest/intents/intent.ts +4 -0
- package/src/schema/transactionRequest/intents/taoStakeIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/taoStakingBaseIntent.ts +17 -0
- package/src/schema/transactionRequest/intents/taoUnstakeIntent.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";
|
@@ -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);
|
@@ -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,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;A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;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<{
|
@@ -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");
|
@@ -149,6 +151,8 @@ exports.TransactionIntent = t.union([
|
|
149
151
|
suiPaymentIntent_1.SuiPaymentIntent,
|
150
152
|
suiStakingIntent_1.SuiStakingIntent,
|
151
153
|
suiUnstakingIntent_1.SuiUnstakingIntent,
|
154
|
+
taoStakeIntent_1.TaoStakeIntent,
|
155
|
+
taoUnstakeIntent_1.TaoUnstakeIntent,
|
152
156
|
tonConsolidateIntent_1.TonConsolidateIntent,
|
153
157
|
tonDelegateIntent_1.TonDelegateIntent,
|
154
158
|
tonPaymentIntent_1.TonPaymentIntent,
|
@@ -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,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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"}
|
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;A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sB;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"}
|
package/package.json
CHANGED
@@ -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";
|
@@ -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";
|
@@ -124,6 +126,8 @@ export const TransactionIntent = t.union([
|
|
124
126
|
SuiPaymentIntent,
|
125
127
|
SuiStakingIntent,
|
126
128
|
SuiUnstakingIntent,
|
129
|
+
TaoStakeIntent,
|
130
|
+
TaoUnstakeIntent,
|
127
131
|
TonConsolidateIntent,
|
128
132
|
TonDelegateIntent,
|
129
133
|
TonPaymentIntent,
|
@@ -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>;
|