@bitgo/public-types 5.13.0 → 5.15.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 +2 -1
- package/dist/src/schema/transactionRequest/intents/index.js +2 -1
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +96 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +5 -2
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/{solCustomInstructionIntent.d.ts → solCustomTxIntent.d.ts} +2 -2
- package/dist/src/schema/transactionRequest/intents/{solCustomInstructionIntent.js → solCustomTxIntent.js} +3 -3
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +101 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.js +46 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.js.map +1 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/index.ts +2 -1
- package/src/schema/transactionRequest/intents/intent.ts +8 -2
- package/src/schema/transactionRequest/intents/{solCustomInstructionIntent.ts → solCustomTxIntent.ts} +3 -5
- package/src/schema/transactionRequest/intents/vetUnstakingIntent.ts +43 -0
- package/dist/src/schema/transactionRequest/intents/solCustomInstructionIntent.js.map +0 -1
@@ -87,7 +87,7 @@ export * from "./solClaimIntent";
|
|
87
87
|
export * from "./solCloseAssociatedTokenAccountIntent";
|
88
88
|
export * from "./solConsolidateIntent";
|
89
89
|
export * from "./solCreateAssociatedTokenAccountIntent";
|
90
|
-
export * from "./
|
90
|
+
export * from "./solCustomTxIntent";
|
91
91
|
export * from "./solDeactivateIntent";
|
92
92
|
export * from "./solDelegateIntent";
|
93
93
|
export * from "./solGoUnstakeIntent";
|
@@ -134,3 +134,4 @@ export * from "./walrusUndelegateIntent";
|
|
134
134
|
export * from "./walrusWithdrawIntent";
|
135
135
|
export * from "./withdrawIntent";
|
136
136
|
export * from "./tokenApprovalIntent";
|
137
|
+
export * from "./vetUnstakingIntent";
|
@@ -103,7 +103,7 @@ __exportStar(require("./solClaimIntent"), exports);
|
|
103
103
|
__exportStar(require("./solCloseAssociatedTokenAccountIntent"), exports);
|
104
104
|
__exportStar(require("./solConsolidateIntent"), exports);
|
105
105
|
__exportStar(require("./solCreateAssociatedTokenAccountIntent"), exports);
|
106
|
-
__exportStar(require("./
|
106
|
+
__exportStar(require("./solCustomTxIntent"), exports);
|
107
107
|
__exportStar(require("./solDeactivateIntent"), exports);
|
108
108
|
__exportStar(require("./solDelegateIntent"), exports);
|
109
109
|
__exportStar(require("./solGoUnstakeIntent"), exports);
|
@@ -150,4 +150,5 @@ __exportStar(require("./walrusUndelegateIntent"), exports);
|
|
150
150
|
__exportStar(require("./walrusWithdrawIntent"), exports);
|
151
151
|
__exportStar(require("./withdrawIntent"), exports);
|
152
152
|
__exportStar(require("./tokenApprovalIntent"), exports);
|
153
|
+
__exportStar(require("./vetUnstakingIntent"), exports);
|
153
154
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,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,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD
|
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,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,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,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,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,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC"}
|
@@ -5134,6 +5134,102 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
5134
5134
|
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
5135
5135
|
}>, t.PartialC<{
|
5136
5136
|
nftTokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5137
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
5138
|
+
intentType: t.KeyofC<{
|
5139
|
+
payment: t.LiteralC<"payment">;
|
5140
|
+
transferToken: t.LiteralC<"transferToken">;
|
5141
|
+
consolidate: t.LiteralC<"consolidate">;
|
5142
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
5143
|
+
fanout: t.LiteralC<"fanout">;
|
5144
|
+
stake: t.LiteralC<"stake">;
|
5145
|
+
unstake: t.LiteralC<"unstake">;
|
5146
|
+
delegate: t.LiteralC<"delegate">;
|
5147
|
+
undelegate: t.LiteralC<"undelegate">;
|
5148
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
5149
|
+
claim: t.LiteralC<"claim">;
|
5150
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
5151
|
+
pledge: t.LiteralC<"pledge">;
|
5152
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
5153
|
+
vote: t.LiteralC<"vote">;
|
5154
|
+
createAccount: t.LiteralC<"createAccount">;
|
5155
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
5156
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
5157
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
5158
|
+
signMessage: t.LiteralC<"signMessage">;
|
5159
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
5160
|
+
enableToken: t.LiteralC<"enableToken">;
|
5161
|
+
authorize: t.LiteralC<"authorize">;
|
5162
|
+
acceleration: t.LiteralC<"acceleration">;
|
5163
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
5164
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
5165
|
+
contractCall: t.LiteralC<"contractCall">;
|
5166
|
+
deactivate: t.LiteralC<"deactivate">;
|
5167
|
+
customTx: t.LiteralC<"customTx">;
|
5168
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
5169
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
5170
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
5171
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
5172
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
5173
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
5174
|
+
}>;
|
5175
|
+
}>, t.PartialC<{
|
5176
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5177
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5178
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
5179
|
+
}>]>, t.TypeC<{
|
5180
|
+
stakingRequestId: t.StringC;
|
5181
|
+
}>]>, t.TypeC<{
|
5182
|
+
intentType: t.LiteralC<"undelegate">;
|
5183
|
+
tokenId: t.StringC;
|
5184
|
+
delegationContractAddress: t.StringC;
|
5185
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
5186
|
+
intentType: t.KeyofC<{
|
5187
|
+
payment: t.LiteralC<"payment">;
|
5188
|
+
transferToken: t.LiteralC<"transferToken">;
|
5189
|
+
consolidate: t.LiteralC<"consolidate">;
|
5190
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
5191
|
+
fanout: t.LiteralC<"fanout">;
|
5192
|
+
stake: t.LiteralC<"stake">;
|
5193
|
+
unstake: t.LiteralC<"unstake">;
|
5194
|
+
delegate: t.LiteralC<"delegate">;
|
5195
|
+
undelegate: t.LiteralC<"undelegate">;
|
5196
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
5197
|
+
claim: t.LiteralC<"claim">;
|
5198
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
5199
|
+
pledge: t.LiteralC<"pledge">;
|
5200
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
5201
|
+
vote: t.LiteralC<"vote">;
|
5202
|
+
createAccount: t.LiteralC<"createAccount">;
|
5203
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
5204
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
5205
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
5206
|
+
signMessage: t.LiteralC<"signMessage">;
|
5207
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
5208
|
+
enableToken: t.LiteralC<"enableToken">;
|
5209
|
+
authorize: t.LiteralC<"authorize">;
|
5210
|
+
acceleration: t.LiteralC<"acceleration">;
|
5211
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
5212
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
5213
|
+
contractCall: t.LiteralC<"contractCall">;
|
5214
|
+
deactivate: t.LiteralC<"deactivate">;
|
5215
|
+
customTx: t.LiteralC<"customTx">;
|
5216
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
5217
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
5218
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
5219
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
5220
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
5221
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
5222
|
+
}>;
|
5223
|
+
}>, t.PartialC<{
|
5224
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5225
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5226
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
5227
|
+
}>]>, t.TypeC<{
|
5228
|
+
stakingRequestId: t.StringC;
|
5229
|
+
}>]>, t.TypeC<{
|
5230
|
+
intentType: t.LiteralC<"unstake">;
|
5231
|
+
tokenId: t.StringC;
|
5232
|
+
nftContractAddress: t.StringC;
|
5137
5233
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
5138
5234
|
intentType: t.KeyofC<{
|
5139
5235
|
payment: t.LiteralC<"payment">;
|
@@ -38,6 +38,7 @@ const babyWithdrawRewardIntent_1 = require("./babyWithdrawRewardIntent");
|
|
38
38
|
const bscDelegateIntent_1 = require("./bscDelegateIntent");
|
39
39
|
const bscUndelegateIntent_1 = require("./bscUndelegateIntent");
|
40
40
|
const bscWithdrawUndelegateIntent_1 = require("./bscWithdrawUndelegateIntent");
|
41
|
+
const vetUnstakingIntent_1 = require("./vetUnstakingIntent");
|
41
42
|
const cosmosPaymentIntent_1 = require("./cosmosPaymentIntent");
|
42
43
|
const cosmosStakeIntent_1 = require("./cosmosStakeIntent");
|
43
44
|
const cosmosSwitchValidatorIntent_1 = require("./cosmosSwitchValidatorIntent");
|
@@ -66,7 +67,7 @@ const polyxWithdrawIntent_1 = require("./polyxWithdrawIntent");
|
|
66
67
|
const solAuthorizeIntent_1 = require("./solAuthorizeIntent");
|
67
68
|
const solClaimIntent_1 = require("./solClaimIntent");
|
68
69
|
const solCreateAssociatedTokenAccountIntent_1 = require("./solCreateAssociatedTokenAccountIntent");
|
69
|
-
const
|
70
|
+
const solCustomTxIntent_1 = require("./solCustomTxIntent");
|
70
71
|
const solDeactivateIntent_1 = require("./solDeactivateIntent");
|
71
72
|
const solDelegateIntent_1 = require("./solDelegateIntent");
|
72
73
|
const solPaymentIntent_1 = require("./solPaymentIntent");
|
@@ -160,7 +161,7 @@ exports.TransactionIntent = t.union([
|
|
160
161
|
solCloseAssociatedTokenAccountIntent_1.SolCloseAssociatedTokenAccountIntent,
|
161
162
|
solConsolidateIntent_1.SolConsolidateIntent,
|
162
163
|
solCreateAssociatedTokenAccountIntent_1.SolCreateAssociatedTokenAccountIntent,
|
163
|
-
|
164
|
+
solCustomTxIntent_1.SolCustomTxIntent,
|
164
165
|
solDeactivateIntent_1.SolDeactivateIntent,
|
165
166
|
solDelegateIntent_1.SolDelegateIntent,
|
166
167
|
solGoUnstakeIntent_1.SolGoUnstakeIntent,
|
@@ -183,6 +184,8 @@ exports.TransactionIntent = t.union([
|
|
183
184
|
tonPaymentIntent_1.TonPaymentIntent,
|
184
185
|
tonUndelegateIntent_1.TonUndelegateIntent,
|
185
186
|
vetStakingIntent_1.VetStakingIntent,
|
187
|
+
vetUnstakingIntent_1.VetExitDelegationIntent,
|
188
|
+
vetUnstakingIntent_1.VetBurnNFTIntent,
|
186
189
|
walletRecoveryIntent_1.WalletRecoveryIntent,
|
187
190
|
baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
|
188
191
|
coredaoDelegateIntent_1.CoreDaoDelegateIntent,
|
@@ -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,mFAAgF;AAChF,yEAAsE;AACtE,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,yEAAsE;AACtE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":"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"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const
|
2
|
+
export declare const SolCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -57,4 +57,4 @@ export declare const SolCustomInstructionIntent: t.IntersectionC<[t.Intersection
|
|
57
57
|
data: t.StringC;
|
58
58
|
}>>;
|
59
59
|
}>]>;
|
60
|
-
export type
|
60
|
+
export type SolCustomTxIntent = t.TypeOf<typeof SolCustomTxIntent>;
|
@@ -23,12 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.
|
26
|
+
exports.SolCustomTxIntent = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const solBuildOptions_1 = require("./solBuildOptions");
|
29
29
|
const baseIntent_1 = require("./baseIntent");
|
30
30
|
const intentType_1 = require("./intentType");
|
31
|
-
exports.
|
31
|
+
exports.SolCustomTxIntent = t.intersection([
|
32
32
|
baseIntent_1.BaseIntent,
|
33
33
|
solBuildOptions_1.SolBuildOptions,
|
34
34
|
t.type({
|
@@ -44,4 +44,4 @@ exports.SolCustomInstructionIntent = t.intersection([
|
|
44
44
|
})),
|
45
45
|
}),
|
46
46
|
]);
|
47
|
-
//# sourceMappingURL=
|
47
|
+
//# sourceMappingURL=solCustomTxIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"solCustomTxIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCustomTxIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAK9B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,eAAe,EAAE,CAAC,CAAC,KAAK,CACtB,CAAC,CAAC,IAAI,CAAC;YACL,SAAS,EAAE,CAAC,CAAC,MAAM;YACnB,IAAI,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,IAAI,CAAC;gBACL,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,QAAQ,EAAE,CAAC,CAAC,OAAO;gBACnB,UAAU,EAAE,CAAC,CAAC,OAAO;aACtB,CAAC,CACH;YACD,IAAI,EAAE,CAAC,CAAC,MAAM;SACf,CAAC,CACH;KACF,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const VetExitDelegationIntent: 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
|
+
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.TypeC<{
|
45
|
+
stakingRequestId: t.StringC;
|
46
|
+
}>]>, t.TypeC<{
|
47
|
+
intentType: t.LiteralC<"undelegate">;
|
48
|
+
tokenId: t.StringC;
|
49
|
+
delegationContractAddress: t.StringC;
|
50
|
+
}>]>;
|
51
|
+
export type VetExitDelegationIntent = t.TypeOf<typeof VetExitDelegationIntent>;
|
52
|
+
export declare const VetBurnNFTIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
53
|
+
intentType: t.KeyofC<{
|
54
|
+
payment: t.LiteralC<"payment">;
|
55
|
+
transferToken: t.LiteralC<"transferToken">;
|
56
|
+
consolidate: t.LiteralC<"consolidate">;
|
57
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
58
|
+
fanout: t.LiteralC<"fanout">;
|
59
|
+
stake: t.LiteralC<"stake">;
|
60
|
+
unstake: t.LiteralC<"unstake">;
|
61
|
+
delegate: t.LiteralC<"delegate">;
|
62
|
+
undelegate: t.LiteralC<"undelegate">;
|
63
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
64
|
+
claim: t.LiteralC<"claim">;
|
65
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
66
|
+
pledge: t.LiteralC<"pledge">;
|
67
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
68
|
+
vote: t.LiteralC<"vote">;
|
69
|
+
createAccount: t.LiteralC<"createAccount">;
|
70
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
71
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
72
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
73
|
+
signMessage: t.LiteralC<"signMessage">;
|
74
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
75
|
+
enableToken: t.LiteralC<"enableToken">;
|
76
|
+
authorize: t.LiteralC<"authorize">;
|
77
|
+
acceleration: t.LiteralC<"acceleration">;
|
78
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
79
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
80
|
+
contractCall: t.LiteralC<"contractCall">;
|
81
|
+
deactivate: t.LiteralC<"deactivate">;
|
82
|
+
customTx: t.LiteralC<"customTx">;
|
83
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
84
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
85
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
86
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
87
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
88
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
89
|
+
}>;
|
90
|
+
}>, t.PartialC<{
|
91
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
92
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
93
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
94
|
+
}>]>, t.TypeC<{
|
95
|
+
stakingRequestId: t.StringC;
|
96
|
+
}>]>, t.TypeC<{
|
97
|
+
intentType: t.LiteralC<"unstake">;
|
98
|
+
tokenId: t.StringC;
|
99
|
+
nftContractAddress: t.StringC;
|
100
|
+
}>]>;
|
101
|
+
export type VetBurnNFTIntent = t.TypeOf<typeof VetBurnNFTIntent>;
|
@@ -0,0 +1,46 @@
|
|
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.VetBurnNFTIntent = exports.VetExitDelegationIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const intentType_1 = require("./intentType");
|
29
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
30
|
+
exports.VetExitDelegationIntent = t.intersection([
|
31
|
+
baseStakeIntent_1.BaseStakeIntent,
|
32
|
+
t.type({
|
33
|
+
intentType: intentType_1.intentTypes.undelegate,
|
34
|
+
tokenId: t.string,
|
35
|
+
delegationContractAddress: t.string,
|
36
|
+
}),
|
37
|
+
]);
|
38
|
+
exports.VetBurnNFTIntent = t.intersection([
|
39
|
+
baseStakeIntent_1.BaseStakeIntent,
|
40
|
+
t.type({
|
41
|
+
intentType: intentType_1.intentTypes.unstake,
|
42
|
+
tokenId: t.string,
|
43
|
+
nftContractAddress: t.string,
|
44
|
+
}),
|
45
|
+
]);
|
46
|
+
//# sourceMappingURL=vetUnstakingIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"vetUnstakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/vetUnstakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,uDAAoD;AAWvC,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,yBAAyB,EAAE,CAAC,CAAC,MAAM;KACpC,CAAC;CACH,CAAC,CAAC;AAaU,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;QAC/B,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,kBAAkB,EAAE,CAAC,CAAC,MAAM;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -87,7 +87,7 @@ export * from "./solClaimIntent";
|
|
87
87
|
export * from "./solCloseAssociatedTokenAccountIntent";
|
88
88
|
export * from "./solConsolidateIntent";
|
89
89
|
export * from "./solCreateAssociatedTokenAccountIntent";
|
90
|
-
export * from "./
|
90
|
+
export * from "./solCustomTxIntent";
|
91
91
|
export * from "./solDeactivateIntent";
|
92
92
|
export * from "./solDelegateIntent";
|
93
93
|
export * from "./solGoUnstakeIntent";
|
@@ -134,3 +134,4 @@ export * from "./walrusUndelegateIntent";
|
|
134
134
|
export * from "./walrusWithdrawIntent";
|
135
135
|
export * from "./withdrawIntent";
|
136
136
|
export * from "./tokenApprovalIntent";
|
137
|
+
export * from "./vetUnstakingIntent";
|
@@ -12,6 +12,10 @@ import { BabyWithdrawRewardIntent } from "./babyWithdrawRewardIntent";
|
|
12
12
|
import { BscDelegateIntent } from "./bscDelegateIntent";
|
13
13
|
import { BscUnDelegateIntent } from "./bscUndelegateIntent";
|
14
14
|
import { BscWithdrawUndelegateIntent } from "./bscWithdrawUndelegateIntent";
|
15
|
+
import {
|
16
|
+
VetExitDelegationIntent,
|
17
|
+
VetBurnNFTIntent,
|
18
|
+
} from "./vetUnstakingIntent";
|
15
19
|
import { CosmosPaymentIntent } from "./cosmosPaymentIntent";
|
16
20
|
import { CosmosStakeIntent } from "./cosmosStakeIntent";
|
17
21
|
import { CosmosSwitchValidatorIntent } from "./cosmosSwitchValidatorIntent";
|
@@ -40,7 +44,7 @@ import { PolyxWithdrawIntent } from "./polyxWithdrawIntent";
|
|
40
44
|
import { SolAuthorizeIntent } from "./solAuthorizeIntent";
|
41
45
|
import { SolClaimIntent } from "./solClaimIntent";
|
42
46
|
import { SolCreateAssociatedTokenAccountIntent } from "./solCreateAssociatedTokenAccountIntent";
|
43
|
-
import {
|
47
|
+
import { SolCustomTxIntent } from "./solCustomTxIntent";
|
44
48
|
import { SolDeactivateIntent } from "./solDeactivateIntent";
|
45
49
|
import { SolDelegateIntent } from "./solDelegateIntent";
|
46
50
|
import { SolPaymentIntent } from "./solPaymentIntent";
|
@@ -135,7 +139,7 @@ export const TransactionIntent = t.union([
|
|
135
139
|
SolCloseAssociatedTokenAccountIntent,
|
136
140
|
SolConsolidateIntent,
|
137
141
|
SolCreateAssociatedTokenAccountIntent,
|
138
|
-
|
142
|
+
SolCustomTxIntent,
|
139
143
|
SolDeactivateIntent,
|
140
144
|
SolDelegateIntent,
|
141
145
|
SolGoUnstakeIntent,
|
@@ -158,6 +162,8 @@ export const TransactionIntent = t.union([
|
|
158
162
|
TonPaymentIntent,
|
159
163
|
TonUndelegateIntent,
|
160
164
|
VetStakingIntent,
|
165
|
+
VetExitDelegationIntent,
|
166
|
+
VetBurnNFTIntent,
|
161
167
|
WalletRecoveryIntent,
|
162
168
|
BaseStakeIntentWithCalldata,
|
163
169
|
CoreDaoDelegateIntent,
|
package/src/schema/transactionRequest/intents/{solCustomInstructionIntent.ts → solCustomTxIntent.ts}
RENAMED
@@ -4,9 +4,9 @@ import { BaseIntent } from "./baseIntent";
|
|
4
4
|
import { intentTypes } from "./intentType";
|
5
5
|
|
6
6
|
/**
|
7
|
-
* @title SOL Custom
|
7
|
+
* @title SOL Custom Transaction Intent
|
8
8
|
*/
|
9
|
-
export const
|
9
|
+
export const SolCustomTxIntent = t.intersection([
|
10
10
|
BaseIntent,
|
11
11
|
SolBuildOptions,
|
12
12
|
t.type({
|
@@ -27,6 +27,4 @@ export const SolCustomInstructionIntent = t.intersection([
|
|
27
27
|
}),
|
28
28
|
]);
|
29
29
|
|
30
|
-
export type
|
31
|
-
typeof SolCustomInstructionIntent
|
32
|
-
>;
|
30
|
+
export type SolCustomTxIntent = t.TypeOf<typeof SolCustomTxIntent>;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { intentTypes } from "./intentType";
|
3
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @title VET Exit Delegation Intent
|
7
|
+
*
|
8
|
+
* Intent for the first step of VET unstaking process - exiting delegation
|
9
|
+
* This calls the exitDelegation function on the delegation contract
|
10
|
+
*
|
11
|
+
* @param {string} tokenId - The ID of the NFT token representing the stake
|
12
|
+
* @param {string} delegationContractAddress - The address of the delegation contract
|
13
|
+
*/
|
14
|
+
export const VetExitDelegationIntent = t.intersection([
|
15
|
+
BaseStakeIntent,
|
16
|
+
t.type({
|
17
|
+
intentType: intentTypes.undelegate,
|
18
|
+
tokenId: t.string,
|
19
|
+
delegationContractAddress: t.string,
|
20
|
+
}),
|
21
|
+
]);
|
22
|
+
|
23
|
+
export type VetExitDelegationIntent = t.TypeOf<typeof VetExitDelegationIntent>;
|
24
|
+
|
25
|
+
/**
|
26
|
+
* @title VET Burn NFT Intent
|
27
|
+
*
|
28
|
+
* Intent for the second step of VET unstaking process - burning the NFT
|
29
|
+
* This calls the burn function on the NFT contract after the cooldown period
|
30
|
+
*
|
31
|
+
* @param {string} tokenId - The ID of the NFT token to burn
|
32
|
+
* @param {string} nftContractAddress - The address of the NFT contract
|
33
|
+
*/
|
34
|
+
export const VetBurnNFTIntent = t.intersection([
|
35
|
+
BaseStakeIntent,
|
36
|
+
t.type({
|
37
|
+
intentType: intentTypes.unstake,
|
38
|
+
tokenId: t.string,
|
39
|
+
nftContractAddress: t.string,
|
40
|
+
}),
|
41
|
+
]);
|
42
|
+
|
43
|
+
export type VetBurnNFTIntent = t.TypeOf<typeof VetBurnNFTIntent>;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"solCustomInstructionIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCustomInstructionIntent.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,eAAe,EAAE,CAAC,CAAC,KAAK,CACtB,CAAC,CAAC,IAAI,CAAC;YACL,SAAS,EAAE,CAAC,CAAC,MAAM;YACnB,IAAI,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,IAAI,CAAC;gBACL,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,QAAQ,EAAE,CAAC,CAAC,OAAO;gBACnB,UAAU,EAAE,CAAC,CAAC,OAAO;aACtB,CAAC,CACH;YACD,IAAI,EAAE,CAAC,CAAC,MAAM;SACf,CAAC,CACH;KACF,CAAC;CACH,CAAC,CAAC"}
|