@bitgo/public-types 4.4.0 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +46 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.js +35 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeClaimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +5 -3
- package/dist/src/schema/transactionRequest/intents/index.js +5 -3
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +105 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intentType.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js +1 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +44 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +1 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/adaStakeIntent.ts +7 -0
- package/src/schema/transactionRequest/intents/adaVoteDelegationIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/index.ts +5 -3
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
- package/src/schema/transactionRequest/intents/intentType.ts +1 -0
- package/src/schema/transactionRequest/intents/voteDelegationIntent.ts +19 -0
@@ -14,6 +14,7 @@ export declare const NearWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const PaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SolAuthorizeIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SolClaimIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts
CHANGED
@@ -14,6 +14,7 @@ export declare const SolCloseAssociatedTokenAccountIntent: t.IntersectionC<[t.In
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts
CHANGED
@@ -14,6 +14,7 @@ export declare const SolCreateAssociatedTokenAccountIntent: t.IntersectionC<[t.I
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SolDeactivateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SolDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SolPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const StakeClaimRewardsIntent: t.IntersectionC<[t.IntersectionC<[
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const StakeIntent: t.IntersectionC<[t.IntersectionC<[t.Intersecti
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const StakeSwitchValidatorIntent: t.IntersectionC<[t.Intersection
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SuiBuildOptions: t.IntersectionC<[t.IntersectionC<[t.TypeC<
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -50,6 +50,7 @@ export declare const SuiConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
|
|
50
50
|
claim: t.LiteralC<"claim">;
|
51
51
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
52
52
|
pledge: t.LiteralC<"pledge">;
|
53
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
53
54
|
vote: t.LiteralC<"vote">;
|
54
55
|
createAccount: t.LiteralC<"createAccount">;
|
55
56
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SuiCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -50,6 +51,7 @@ export declare const SuiCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
50
51
|
claim: t.LiteralC<"claim">;
|
51
52
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
52
53
|
pledge: t.LiteralC<"pledge">;
|
54
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
53
55
|
vote: t.LiteralC<"vote">;
|
54
56
|
createAccount: t.LiteralC<"createAccount">;
|
55
57
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SuiPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -68,6 +69,7 @@ export declare const SuiPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
68
69
|
claim: t.LiteralC<"claim">;
|
69
70
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
70
71
|
pledge: t.LiteralC<"pledge">;
|
72
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
71
73
|
vote: t.LiteralC<"vote">;
|
72
74
|
createAccount: t.LiteralC<"createAccount">;
|
73
75
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const SuiUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const TonDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const TonPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const TonUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const TransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const UnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Intersec
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const VoteDelegationIntent: 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<"voteDelegation">;
|
43
|
+
}>]>;
|
44
|
+
export type VoteDelegationIntent = t.TypeOf<typeof VoteDelegationIntent>;
|
@@ -0,0 +1,36 @@
|
|
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.VoteDelegationIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
exports.VoteDelegationIntent = t.intersection([
|
31
|
+
baseStakeIntent_1.BaseStakeIntent,
|
32
|
+
t.type({
|
33
|
+
intentType: intentType_1.intentTypes.voteDelegation,
|
34
|
+
}),
|
35
|
+
]);
|
36
|
+
//# sourceMappingURL=voteDelegationIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"voteDelegationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/voteDelegationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAS9B,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;KACvC,CAAC;CACH,CAAC,CAAC"}
|
@@ -14,6 +14,7 @@ export declare const WalletRecoveryIntent: t.IntersectionC<[t.IntersectionC<[t.T
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
@@ -14,6 +14,7 @@ export declare const WithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
14
14
|
claim: t.LiteralC<"claim">;
|
15
15
|
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
16
|
pledge: t.LiteralC<"pledge">;
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
17
18
|
vote: t.LiteralC<"vote">;
|
18
19
|
createAccount: t.LiteralC<"createAccount">;
|
19
20
|
updateAccount: t.LiteralC<"updateAccount">;
|
package/package.json
CHANGED
@@ -5,11 +5,18 @@ import { Optional } from "../../../utils";
|
|
5
5
|
|
6
6
|
/**
|
7
7
|
* @title ADA Stake Intent
|
8
|
+
*
|
9
|
+
* @description The intent to stake ADA
|
10
|
+
*
|
11
|
+
* @param {string} poolKeyHash The key hash for the staking pool
|
12
|
+
* @param {string} dRepId The identifier for a DRep
|
13
|
+
* @param {Amount} amount The amount to stake
|
8
14
|
*/
|
9
15
|
export const AdaStakeIntent = t.intersection([
|
10
16
|
StakeIntent,
|
11
17
|
t.type({
|
12
18
|
poolKeyHash: t.string,
|
19
|
+
dRepId: t.string,
|
13
20
|
}),
|
14
21
|
t.partial({
|
15
22
|
amount: Optional(Amount),
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { VoteDelegationIntent } from "./voteDelegationIntent";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @title ADA Vote Delegation Intent
|
6
|
+
*
|
7
|
+
* @description The intent used for delegating ADA voting to a DRep
|
8
|
+
*
|
9
|
+
* @param {string} dRepId The identifier for a DRep
|
10
|
+
*/
|
11
|
+
export const AdaVoteDelegationIntent = t.intersection([
|
12
|
+
VoteDelegationIntent,
|
13
|
+
t.type({
|
14
|
+
dRepId: t.string,
|
15
|
+
}),
|
16
|
+
]);
|
17
|
+
|
18
|
+
export type AdaVoteDelegationIntent = t.TypeOf<typeof AdaVoteDelegationIntent>;
|
@@ -9,6 +9,7 @@ export * from "./adaPledgeIntent";
|
|
9
9
|
export * from "./adaStakeClaimRewardsIntent";
|
10
10
|
export * from "./adaStakeIntent";
|
11
11
|
export * from "./adaUnstakeIntent";
|
12
|
+
export * from "./adaVoteDelegationIntent";
|
12
13
|
export * from "./address";
|
13
14
|
export * from "./amount";
|
14
15
|
export * from "./atomPaymentIntent";
|
@@ -49,12 +50,12 @@ export * from "./ethBuildOptions";
|
|
49
50
|
export * from "./ethConsolidateIntent";
|
50
51
|
export * from "./ethConsolidateTokenIntent";
|
51
52
|
export * from "./ethFillNonceIntent";
|
53
|
+
export * from "./ethLikeClaimIntent";
|
54
|
+
export * from "./ethLikeDelegateIntent";
|
55
|
+
export * from "./ethLikeUndelegateIntent";
|
52
56
|
export * from "./ethPaymentIntent";
|
53
57
|
export * from "./ethStakingIntent";
|
54
58
|
export * from "./ethTransferTokenIntent";
|
55
|
-
export * from "./ethLikeDelegateIntent";
|
56
|
-
export * from "./ethLikeUndelegateIntent";
|
57
|
-
export * from "./ethLikeClaimIntent";
|
58
59
|
export * from "./feeOption";
|
59
60
|
export * from "./feeOptionFeeType";
|
60
61
|
export * from "./feeOptionFormula";
|
@@ -105,5 +106,6 @@ export * from "./tonUndelegateIntent";
|
|
105
106
|
export * from "./transferTokenIntent";
|
106
107
|
export * from "./unstakeIntent";
|
107
108
|
export * from "./unsupportedTokenRecipientEntryItem";
|
109
|
+
export * from "./voteDelegationIntent";
|
108
110
|
export * from "./walletRecoveryIntent";
|
109
111
|
export * from "./withdrawIntent";
|
@@ -2,6 +2,7 @@ import * as t from "io-ts";
|
|
2
2
|
import { AdaConsolidateIntent } from "./adaConsolidateIntent";
|
3
3
|
import { AdaPaymentIntent } from "./adaPaymentIntent";
|
4
4
|
import { AdaStakeIntent } from "./adaStakeIntent";
|
5
|
+
import { AdaVoteDelegationIntent } from "./adaVoteDelegationIntent";
|
5
6
|
import { AtomPaymentIntent } from "./atomPaymentIntent";
|
6
7
|
import { AtomStakeIntent } from "./atomStakeIntent";
|
7
8
|
import { AtomUnstakeIntent } from "./atomUnstakeIntent";
|
@@ -70,6 +71,7 @@ export const TransactionIntent = t.union([
|
|
70
71
|
AdaStakeClaimRewardsIntent,
|
71
72
|
AdaStakeIntent,
|
72
73
|
AdaUnstakeIntent,
|
74
|
+
AdaVoteDelegationIntent,
|
73
75
|
AtomPaymentIntent,
|
74
76
|
AtomStakeIntent,
|
75
77
|
AtomUnstakeIntent,
|
@@ -14,6 +14,7 @@ export const intentTypes = {
|
|
14
14
|
claim: t.literal("claim"),
|
15
15
|
stakeClaimRewards: t.literal("stakeClaimRewards"),
|
16
16
|
pledge: t.literal("pledge"),
|
17
|
+
voteDelegation: t.literal("voteDelegation"),
|
17
18
|
vote: t.literal("vote"),
|
18
19
|
createAccount: t.literal("createAccount"),
|
19
20
|
updateAccount: t.literal("updateAccount"),
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @title Vote Delegation Intent
|
7
|
+
*
|
8
|
+
* @description The intent used for staking requests that delegate voting power to representative
|
9
|
+
*
|
10
|
+
* @param {string} intentType The type of intent (always set to voteDelegation)
|
11
|
+
*/
|
12
|
+
export const VoteDelegationIntent = t.intersection([
|
13
|
+
BaseStakeIntent,
|
14
|
+
t.type({
|
15
|
+
intentType: intentTypes.voteDelegation,
|
16
|
+
}),
|
17
|
+
]);
|
18
|
+
|
19
|
+
export type VoteDelegationIntent = t.TypeOf<typeof VoteDelegationIntent>;
|