@bitgo/public-types 4.30.0 → 5.1.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/accelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
- 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/adaConsolidateIntent.d.ts +24 -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 +1 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +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/babyCreateBtcDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.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/beraDelegateIntent.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 +2 -1
- 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/dotConsolidateIntent.d.ts +24 -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/ethConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +2 -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 +2 -1
- package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +289 -2
- 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 +2 -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/solConsolidateIntent.d.ts +24 -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/substrateBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +25 -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/taoStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +47 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.js +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tonConsolidateIntent.d.ts +24 -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 +2 -1
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.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/accountBaseConsolidateIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/index.ts +1 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
- package/src/schema/transactionRequest/intents/intentType.ts +1 -0
- package/src/schema/transactionRequest/intents/tokenApprovalIntent.ts +17 -0
- package/src/schema/transactionRequest/intents/tokenRecipientEntry.ts +1 -1
@@ -20,6 +20,18 @@ export declare const TonConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const TonConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>;
|
@@ -33,6 +33,7 @@ export declare const TonDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const TonPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const TonUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const TransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -56,7 +57,7 @@ export declare const TransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
56
57
|
}>;
|
57
58
|
}>, t.PartialC<{
|
58
59
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
59
|
-
}>]>, t.
|
60
|
+
}>]>, t.PartialC<{
|
60
61
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
61
62
|
tokenQuantity: t.StringC;
|
62
63
|
tokenType: t.StringC;
|
@@ -33,6 +33,7 @@ export declare const UnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Intersec
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const VoteDelegationIntent: t.IntersectionC<[t.IntersectionC<[t.I
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const WalletRecoveryIntent: t.IntersectionC<[t.IntersectionC<[t.T
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const WalrusStakingIntent: t.IntersectionC<[t.IntersectionC<[t.In
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const WalrusUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const WalrusWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.I
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
@@ -33,6 +33,7 @@ export declare const WithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
33
33
|
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
34
34
|
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
35
|
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
36
37
|
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
37
38
|
}>;
|
38
39
|
}>, t.PartialC<{
|
package/package.json
CHANGED
@@ -7,7 +7,7 @@ import {
|
|
7
7
|
optionalNumber,
|
8
8
|
optionalString,
|
9
9
|
} from "../../../utils";
|
10
|
-
import {
|
10
|
+
import { TokenRecipientEntry } from "./tokenRecipientEntry";
|
11
11
|
|
12
12
|
export const AccountBaseConsolidateIntent = t.intersection([
|
13
13
|
AccountBaseBuildOptions,
|
@@ -18,7 +18,7 @@ export const AccountBaseConsolidateIntent = t.intersection([
|
|
18
18
|
t.partial({
|
19
19
|
senderAddressIndex: optionalNumber,
|
20
20
|
consolidateId: optionalString,
|
21
|
-
recipients: Optional(t.array(
|
21
|
+
recipients: Optional(t.array(TokenRecipientEntry)),
|
22
22
|
keepAlive: optionalBoolean,
|
23
23
|
}),
|
24
24
|
]);
|
@@ -48,6 +48,7 @@ import { SubstrateConsolidateIntent } from "./substrateConsolidateIntent";
|
|
48
48
|
import { SubstratePaymentIntent } from "./substratePaymentIntent";
|
49
49
|
import { TaoStakeIntent } from "./taoStakeIntent";
|
50
50
|
import { TaoUnstakeIntent } from "./taoUnstakeIntent";
|
51
|
+
import { TokenApprovalIntent } from "./tokenApprovalIntent";
|
51
52
|
import { TonDelegateIntent } from "./tonDelegateIntent";
|
52
53
|
import { TonPaymentIntent } from "./tonPaymentIntent";
|
53
54
|
import { TonUndelegateIntent } from "./tonUndelegateIntent";
|
@@ -136,6 +137,7 @@ export const TransactionIntent = t.union([
|
|
136
137
|
SuiUnstakingIntent,
|
137
138
|
TaoStakeIntent,
|
138
139
|
TaoUnstakeIntent,
|
140
|
+
TokenApprovalIntent,
|
139
141
|
TonConsolidateIntent,
|
140
142
|
TonDelegateIntent,
|
141
143
|
TonPaymentIntent,
|
@@ -33,6 +33,7 @@ export const intentTypes = {
|
|
33
33
|
closeAssociatedTokenAccount: t.literal("closeAssociatedTokenAccount"),
|
34
34
|
stakeWithCallData: t.literal("stakeWithCallData"),
|
35
35
|
feeAddressTransfer: t.literal("feeAddressTransfer"),
|
36
|
+
tokenApproval: t.literal("tokenApproval"),
|
36
37
|
/**
|
37
38
|
* Register a BTC delegation on the Babylon chain for Baby BTC staking.
|
38
39
|
*/
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @title Intent for approving tokens for spending by a batcher contract
|
7
|
+
* The server will determine the spender address and approval amount
|
8
|
+
*/
|
9
|
+
export const TokenApprovalIntent = t.intersection([
|
10
|
+
BaseIntent,
|
11
|
+
t.type({
|
12
|
+
intentType: intentTypes.tokenApproval,
|
13
|
+
tokenName: t.string,
|
14
|
+
}),
|
15
|
+
]);
|
16
|
+
|
17
|
+
export type TokenApprovalIntent = t.TypeOf<typeof TokenApprovalIntent>;
|