@bitgo/public-types 5.29.0 → 5.30.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 +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 +66 -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/solVersionedCustomTxIntent.d.ts +69 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js +56 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +132 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/index.ts +1 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
- package/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts +41 -0
@@ -98,6 +98,7 @@ export * from "./solGoUnstakeIntent";
|
|
98
98
|
export * from "./solPaymentIntent";
|
99
99
|
export * from "./solStakeIntent";
|
100
100
|
export * from "./solUnstakeIntent";
|
101
|
+
export * from "./solVersionedCustomTxIntent";
|
101
102
|
export * from "./stakeClaimRewardsIntent";
|
102
103
|
export * from "./stakeIntent";
|
103
104
|
export * from "./stakeSwitchValidatorIntent";
|
@@ -114,6 +114,7 @@ __exportStar(require("./solGoUnstakeIntent"), exports);
|
|
114
114
|
__exportStar(require("./solPaymentIntent"), exports);
|
115
115
|
__exportStar(require("./solStakeIntent"), exports);
|
116
116
|
__exportStar(require("./solUnstakeIntent"), exports);
|
117
|
+
__exportStar(require("./solVersionedCustomTxIntent"), exports);
|
117
118
|
__exportStar(require("./stakeClaimRewardsIntent"), exports);
|
118
119
|
__exportStar(require("./stakeIntent"), exports);
|
119
120
|
__exportStar(require("./stakeSwitchValidatorIntent"), 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,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,+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,6DAA2C;AAC3C,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,6DAA2C;AAC3C,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,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,qDAAmC;AACnC,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC"}
|
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,qDAAm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DAAuC;AACvC,0EAAwD;AACxD,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,+DAA6C;AAC7C,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,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,qDAAmC;AACnC,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC"}
|
@@ -4162,6 +4162,72 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
4162
4162
|
} & {
|
4163
4163
|
data?: string | undefined;
|
4164
4164
|
})[], unknown>, t.UndefinedC]>;
|
4165
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
4166
|
+
intentType: t.KeyofC<{
|
4167
|
+
payment: t.LiteralC<"payment">;
|
4168
|
+
transferToken: t.LiteralC<"transferToken">;
|
4169
|
+
consolidate: t.LiteralC<"consolidate">;
|
4170
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
4171
|
+
fanout: t.LiteralC<"fanout">;
|
4172
|
+
stake: t.LiteralC<"stake">;
|
4173
|
+
unstake: t.LiteralC<"unstake">;
|
4174
|
+
delegate: t.LiteralC<"delegate">;
|
4175
|
+
undelegate: t.LiteralC<"undelegate">;
|
4176
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
4177
|
+
claim: t.LiteralC<"claim">;
|
4178
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
4179
|
+
pledge: t.LiteralC<"pledge">;
|
4180
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
4181
|
+
vote: t.LiteralC<"vote">;
|
4182
|
+
createAccount: t.LiteralC<"createAccount">;
|
4183
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
4184
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
4185
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
4186
|
+
signMessage: t.LiteralC<"signMessage">;
|
4187
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
4188
|
+
enableToken: t.LiteralC<"enableToken">;
|
4189
|
+
authorize: t.LiteralC<"authorize">;
|
4190
|
+
acceleration: t.LiteralC<"acceleration">;
|
4191
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
4192
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
4193
|
+
contractCall: t.LiteralC<"contractCall">;
|
4194
|
+
deactivate: t.LiteralC<"deactivate">;
|
4195
|
+
customTx: t.LiteralC<"customTx">;
|
4196
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
4197
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
4198
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
4199
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
4200
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
4201
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
4202
|
+
}>;
|
4203
|
+
}>, t.PartialC<{
|
4204
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4205
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4206
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4207
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
4208
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4209
|
+
}>, t.TypeC<{
|
4210
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4211
|
+
}>]>, t.TypeC<{
|
4212
|
+
intentType: t.LiteralC<"customTx">;
|
4213
|
+
solVersionedTransactionData: t.TypeC<{
|
4214
|
+
versionedInstructions: t.ArrayC<t.TypeC<{
|
4215
|
+
programIdIndex: t.NumberC;
|
4216
|
+
accountKeyIndexes: t.ArrayC<t.NumberC>;
|
4217
|
+
data: t.StringC;
|
4218
|
+
}>>;
|
4219
|
+
addressLookupTables: t.ArrayC<t.TypeC<{
|
4220
|
+
accountKey: t.StringC;
|
4221
|
+
writableIndexes: t.ArrayC<t.NumberC>;
|
4222
|
+
readonlyIndexes: t.ArrayC<t.NumberC>;
|
4223
|
+
}>>;
|
4224
|
+
staticAccountKeys: t.ArrayC<t.StringC>;
|
4225
|
+
messageHeader: t.TypeC<{
|
4226
|
+
numRequiredSignatures: t.NumberC;
|
4227
|
+
numReadonlySignedAccounts: t.NumberC;
|
4228
|
+
numReadonlyUnsignedAccounts: t.NumberC;
|
4229
|
+
}>;
|
4230
|
+
}>;
|
4165
4231
|
}>]>, t.IntersectionC<[t.PartialC<{
|
4166
4232
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4167
4233
|
}>, t.TypeC<{
|
@@ -75,6 +75,7 @@ const solDelegateIntent_1 = require("./solDelegateIntent");
|
|
75
75
|
const solPaymentIntent_1 = require("./solPaymentIntent");
|
76
76
|
const solStakeIntent_1 = require("./solStakeIntent");
|
77
77
|
const solUnstakeIntent_1 = require("./solUnstakeIntent");
|
78
|
+
const solVersionedCustomTxIntent_1 = require("./solVersionedCustomTxIntent");
|
78
79
|
const suiCustomTxIntent_1 = require("./suiCustomTxIntent");
|
79
80
|
const suiStakingIntent_1 = require("./suiStakingIntent");
|
80
81
|
const suiUnstakingIntent_1 = require("./suiUnstakingIntent");
|
@@ -174,6 +175,7 @@ exports.TransactionIntent = t.union([
|
|
174
175
|
solPaymentIntent_1.SolPaymentIntent,
|
175
176
|
solStakeIntent_1.SolStakeIntent,
|
176
177
|
solUnstakeIntent_1.SolUnstakeIntent,
|
178
|
+
solVersionedCustomTxIntent_1.SolVersionedCustomTxIntent,
|
177
179
|
substrateConsolidateIntent_1.SubstrateConsolidateIntent,
|
178
180
|
substratePaymentIntent_1.SubstratePaymentIntent,
|
179
181
|
suiConsolidateIntent_1.SuiConsolidateIntent,
|
@@ -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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,+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,yEAAsE;AACtE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,y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pB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,mDAAwB;IACxB,mCAAgB;IAChB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,mDAAwB;IACxB,uDAA0B;IAC1B,mCAAgB;IAChB,uCAAkB;IAClB,yCAAmB;IACnB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,qCAAiB;IACjB,yCAAmB;IACnB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mDAAwB;IACxB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,mCAAgB;IAChB,4CAAuB;IACvB,qCAAgB;IAChB,uDAA0B;IAC1B,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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E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nB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const SolVersionedCustomTxIntent: 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
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
35
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
36
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
37
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
38
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
39
|
+
}>;
|
40
|
+
}>, t.PartialC<{
|
41
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
42
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
43
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
44
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
45
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
46
|
+
}>, t.TypeC<{
|
47
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
48
|
+
}>]>, t.TypeC<{
|
49
|
+
intentType: t.LiteralC<"customTx">;
|
50
|
+
solVersionedTransactionData: t.TypeC<{
|
51
|
+
versionedInstructions: t.ArrayC<t.TypeC<{
|
52
|
+
programIdIndex: t.NumberC;
|
53
|
+
accountKeyIndexes: t.ArrayC<t.NumberC>;
|
54
|
+
data: t.StringC;
|
55
|
+
}>>;
|
56
|
+
addressLookupTables: t.ArrayC<t.TypeC<{
|
57
|
+
accountKey: t.StringC;
|
58
|
+
writableIndexes: t.ArrayC<t.NumberC>;
|
59
|
+
readonlyIndexes: t.ArrayC<t.NumberC>;
|
60
|
+
}>>;
|
61
|
+
staticAccountKeys: t.ArrayC<t.StringC>;
|
62
|
+
messageHeader: t.TypeC<{
|
63
|
+
numRequiredSignatures: t.NumberC;
|
64
|
+
numReadonlySignedAccounts: t.NumberC;
|
65
|
+
numReadonlyUnsignedAccounts: t.NumberC;
|
66
|
+
}>;
|
67
|
+
}>;
|
68
|
+
}>]>;
|
69
|
+
export type SolVersionedCustomTxIntent = t.TypeOf<typeof SolVersionedCustomTxIntent>;
|
@@ -0,0 +1,56 @@
|
|
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.SolVersionedCustomTxIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const solBuildOptions_1 = require("./solBuildOptions");
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
30
|
+
const intentType_1 = require("./intentType");
|
31
|
+
exports.SolVersionedCustomTxIntent = t.intersection([
|
32
|
+
baseIntent_1.BaseIntent,
|
33
|
+
solBuildOptions_1.SolBuildOptions,
|
34
|
+
t.type({
|
35
|
+
intentType: intentType_1.intentTypes.customTx,
|
36
|
+
solVersionedTransactionData: t.type({
|
37
|
+
versionedInstructions: t.array(t.type({
|
38
|
+
programIdIndex: t.number,
|
39
|
+
accountKeyIndexes: t.array(t.number),
|
40
|
+
data: t.string,
|
41
|
+
})),
|
42
|
+
addressLookupTables: t.array(t.type({
|
43
|
+
accountKey: t.string,
|
44
|
+
writableIndexes: t.array(t.number),
|
45
|
+
readonlyIndexes: t.array(t.number),
|
46
|
+
})),
|
47
|
+
staticAccountKeys: t.array(t.string),
|
48
|
+
messageHeader: t.type({
|
49
|
+
numRequiredSignatures: t.number,
|
50
|
+
numReadonlySignedAccounts: t.number,
|
51
|
+
numReadonlyUnsignedAccounts: t.number,
|
52
|
+
}),
|
53
|
+
}),
|
54
|
+
}),
|
55
|
+
]);
|
56
|
+
//# sourceMappingURL=solVersionedCustomTxIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"solVersionedCustomTxIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAK9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,2BAA2B,EAAE,CAAC,CAAC,IAAI,CAAC;YAClC,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAC5B,CAAC,CAAC,IAAI,CAAC;gBACL,cAAc,EAAE,CAAC,CAAC,MAAM;gBACxB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;gBACpC,IAAI,EAAE,CAAC,CAAC,MAAM;aACf,CAAC,CACH;YACD,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAC1B,CAAC,CAAC,IAAI,CAAC;gBACL,UAAU,EAAE,CAAC,CAAC,MAAM;gBACpB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;gBAClC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;aACnC,CAAC,CACH;YACD,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;YACpC,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;gBACpB,qBAAqB,EAAE,CAAC,CAAC,MAAM;gBAC/B,yBAAyB,EAAE,CAAC,CAAC,MAAM;gBACnC,2BAA2B,EAAE,CAAC,CAAC,MAAM;aACtC,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
@@ -4260,6 +4260,72 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
4260
4260
|
} & {
|
4261
4261
|
data?: string | undefined;
|
4262
4262
|
})[], unknown>, t.UndefinedC]>;
|
4263
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
4264
|
+
intentType: t.KeyofC<{
|
4265
|
+
payment: t.LiteralC<"payment">;
|
4266
|
+
transferToken: t.LiteralC<"transferToken">;
|
4267
|
+
consolidate: t.LiteralC<"consolidate">;
|
4268
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
4269
|
+
fanout: t.LiteralC<"fanout">;
|
4270
|
+
stake: t.LiteralC<"stake">;
|
4271
|
+
unstake: t.LiteralC<"unstake">;
|
4272
|
+
delegate: t.LiteralC<"delegate">;
|
4273
|
+
undelegate: t.LiteralC<"undelegate">;
|
4274
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
4275
|
+
claim: t.LiteralC<"claim">;
|
4276
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
4277
|
+
pledge: t.LiteralC<"pledge">;
|
4278
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
4279
|
+
vote: t.LiteralC<"vote">;
|
4280
|
+
createAccount: t.LiteralC<"createAccount">;
|
4281
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
4282
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
4283
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
4284
|
+
signMessage: t.LiteralC<"signMessage">;
|
4285
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
4286
|
+
enableToken: t.LiteralC<"enableToken">;
|
4287
|
+
authorize: t.LiteralC<"authorize">;
|
4288
|
+
acceleration: t.LiteralC<"acceleration">;
|
4289
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
4290
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
4291
|
+
contractCall: t.LiteralC<"contractCall">;
|
4292
|
+
deactivate: t.LiteralC<"deactivate">;
|
4293
|
+
customTx: t.LiteralC<"customTx">;
|
4294
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
4295
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
4296
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
4297
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
4298
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
4299
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
4300
|
+
}>;
|
4301
|
+
}>, t.PartialC<{
|
4302
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4303
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4304
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4305
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
4306
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4307
|
+
}>, t.TypeC<{
|
4308
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4309
|
+
}>]>, t.TypeC<{
|
4310
|
+
intentType: t.LiteralC<"customTx">;
|
4311
|
+
solVersionedTransactionData: t.TypeC<{
|
4312
|
+
versionedInstructions: t.ArrayC<t.TypeC<{
|
4313
|
+
programIdIndex: t.NumberC;
|
4314
|
+
accountKeyIndexes: t.ArrayC<t.NumberC>;
|
4315
|
+
data: t.StringC;
|
4316
|
+
}>>;
|
4317
|
+
addressLookupTables: t.ArrayC<t.TypeC<{
|
4318
|
+
accountKey: t.StringC;
|
4319
|
+
writableIndexes: t.ArrayC<t.NumberC>;
|
4320
|
+
readonlyIndexes: t.ArrayC<t.NumberC>;
|
4321
|
+
}>>;
|
4322
|
+
staticAccountKeys: t.ArrayC<t.StringC>;
|
4323
|
+
messageHeader: t.TypeC<{
|
4324
|
+
numRequiredSignatures: t.NumberC;
|
4325
|
+
numReadonlySignedAccounts: t.NumberC;
|
4326
|
+
numReadonlyUnsignedAccounts: t.NumberC;
|
4327
|
+
}>;
|
4328
|
+
}>;
|
4263
4329
|
}>]>, t.IntersectionC<[t.PartialC<{
|
4264
4330
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4265
4331
|
}>, t.TypeC<{
|
@@ -11001,6 +11067,72 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
11001
11067
|
} & {
|
11002
11068
|
data?: string | undefined;
|
11003
11069
|
})[], unknown>, t.UndefinedC]>;
|
11070
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
11071
|
+
intentType: t.KeyofC<{
|
11072
|
+
payment: t.LiteralC<"payment">;
|
11073
|
+
transferToken: t.LiteralC<"transferToken">;
|
11074
|
+
consolidate: t.LiteralC<"consolidate">;
|
11075
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
11076
|
+
fanout: t.LiteralC<"fanout">;
|
11077
|
+
stake: t.LiteralC<"stake">;
|
11078
|
+
unstake: t.LiteralC<"unstake">;
|
11079
|
+
delegate: t.LiteralC<"delegate">;
|
11080
|
+
undelegate: t.LiteralC<"undelegate">;
|
11081
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
11082
|
+
claim: t.LiteralC<"claim">;
|
11083
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
11084
|
+
pledge: t.LiteralC<"pledge">;
|
11085
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
11086
|
+
vote: t.LiteralC<"vote">;
|
11087
|
+
createAccount: t.LiteralC<"createAccount">;
|
11088
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
11089
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
11090
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
11091
|
+
signMessage: t.LiteralC<"signMessage">;
|
11092
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
11093
|
+
enableToken: t.LiteralC<"enableToken">;
|
11094
|
+
authorize: t.LiteralC<"authorize">;
|
11095
|
+
acceleration: t.LiteralC<"acceleration">;
|
11096
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
11097
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
11098
|
+
contractCall: t.LiteralC<"contractCall">;
|
11099
|
+
deactivate: t.LiteralC<"deactivate">;
|
11100
|
+
customTx: t.LiteralC<"customTx">;
|
11101
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
11102
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
11103
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
11104
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
11105
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
11106
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
11107
|
+
}>;
|
11108
|
+
}>, t.PartialC<{
|
11109
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
11110
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
11111
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
11112
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
11113
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
11114
|
+
}>, t.TypeC<{
|
11115
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
11116
|
+
}>]>, t.TypeC<{
|
11117
|
+
intentType: t.LiteralC<"customTx">;
|
11118
|
+
solVersionedTransactionData: t.TypeC<{
|
11119
|
+
versionedInstructions: t.ArrayC<t.TypeC<{
|
11120
|
+
programIdIndex: t.NumberC;
|
11121
|
+
accountKeyIndexes: t.ArrayC<t.NumberC>;
|
11122
|
+
data: t.StringC;
|
11123
|
+
}>>;
|
11124
|
+
addressLookupTables: t.ArrayC<t.TypeC<{
|
11125
|
+
accountKey: t.StringC;
|
11126
|
+
writableIndexes: t.ArrayC<t.NumberC>;
|
11127
|
+
readonlyIndexes: t.ArrayC<t.NumberC>;
|
11128
|
+
}>>;
|
11129
|
+
staticAccountKeys: t.ArrayC<t.StringC>;
|
11130
|
+
messageHeader: t.TypeC<{
|
11131
|
+
numRequiredSignatures: t.NumberC;
|
11132
|
+
numReadonlySignedAccounts: t.NumberC;
|
11133
|
+
numReadonlyUnsignedAccounts: t.NumberC;
|
11134
|
+
}>;
|
11135
|
+
}>;
|
11004
11136
|
}>]>, t.IntersectionC<[t.PartialC<{
|
11005
11137
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
11006
11138
|
}>, t.TypeC<{
|
package/package.json
CHANGED
@@ -98,6 +98,7 @@ export * from "./solGoUnstakeIntent";
|
|
98
98
|
export * from "./solPaymentIntent";
|
99
99
|
export * from "./solStakeIntent";
|
100
100
|
export * from "./solUnstakeIntent";
|
101
|
+
export * from "./solVersionedCustomTxIntent";
|
101
102
|
export * from "./stakeClaimRewardsIntent";
|
102
103
|
export * from "./stakeIntent";
|
103
104
|
export * from "./stakeSwitchValidatorIntent";
|
@@ -52,6 +52,7 @@ import { SolDelegateIntent } from "./solDelegateIntent";
|
|
52
52
|
import { SolPaymentIntent } from "./solPaymentIntent";
|
53
53
|
import { SolStakeIntent } from "./solStakeIntent";
|
54
54
|
import { SolUnstakeIntent } from "./solUnstakeIntent";
|
55
|
+
import { SolVersionedCustomTxIntent } from "./solVersionedCustomTxIntent";
|
55
56
|
import { SuiCustomTxIntent } from "./suiCustomTxIntent";
|
56
57
|
import { SuiStakingIntent } from "./suiStakingIntent";
|
57
58
|
import { SuiUnstakingIntent } from "./suiUnstakingIntent";
|
@@ -152,6 +153,7 @@ export const TransactionIntent = t.union([
|
|
152
153
|
SolPaymentIntent,
|
153
154
|
SolStakeIntent,
|
154
155
|
SolUnstakeIntent,
|
156
|
+
SolVersionedCustomTxIntent,
|
155
157
|
SubstrateConsolidateIntent,
|
156
158
|
SubstratePaymentIntent,
|
157
159
|
SuiConsolidateIntent,
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { SolBuildOptions } from "./solBuildOptions";
|
3
|
+
import { BaseIntent } from "./baseIntent";
|
4
|
+
import { intentTypes } from "./intentType";
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @title SOL Versioned Custom Transaction Intent
|
8
|
+
*/
|
9
|
+
export const SolVersionedCustomTxIntent = t.intersection([
|
10
|
+
BaseIntent,
|
11
|
+
SolBuildOptions,
|
12
|
+
t.type({
|
13
|
+
intentType: intentTypes.customTx,
|
14
|
+
solVersionedTransactionData: t.type({
|
15
|
+
versionedInstructions: t.array(
|
16
|
+
t.type({
|
17
|
+
programIdIndex: t.number,
|
18
|
+
accountKeyIndexes: t.array(t.number),
|
19
|
+
data: t.string,
|
20
|
+
}),
|
21
|
+
),
|
22
|
+
addressLookupTables: t.array(
|
23
|
+
t.type({
|
24
|
+
accountKey: t.string,
|
25
|
+
writableIndexes: t.array(t.number),
|
26
|
+
readonlyIndexes: t.array(t.number),
|
27
|
+
}),
|
28
|
+
),
|
29
|
+
staticAccountKeys: t.array(t.string),
|
30
|
+
messageHeader: t.type({
|
31
|
+
numRequiredSignatures: t.number,
|
32
|
+
numReadonlySignedAccounts: t.number,
|
33
|
+
numReadonlyUnsignedAccounts: t.number,
|
34
|
+
}),
|
35
|
+
}),
|
36
|
+
}),
|
37
|
+
]);
|
38
|
+
|
39
|
+
export type SolVersionedCustomTxIntent = t.TypeOf<
|
40
|
+
typeof SolVersionedCustomTxIntent
|
41
|
+
>;
|