@bitgo/public-types 5.74.0 → 5.75.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.
@@ -53,7 +53,7 @@ export declare const CantonTransferOfferWithdrawnIntent: t.IntersectionC<[t.Inte
53
53
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
54
54
  }>]>, t.TypeC<{
55
55
  intentType: t.LiteralC<"transferOfferWithdrawn">;
56
- contractId: t.StringC;
56
+ transferId: t.StringC;
57
57
  }>, t.PartialC<{
58
58
  token: t.StringC;
59
59
  }>]>;
@@ -31,7 +31,7 @@ exports.CantonTransferOfferWithdrawnIntent = t.intersection([
31
31
  baseIntent_1.BaseIntent,
32
32
  t.type({
33
33
  intentType: intentType_1.intentTypes.transferOfferWithdrawn,
34
- contractId: t.string,
34
+ transferId: t.string,
35
35
  }),
36
36
  t.partial({
37
37
  token: t.string,
@@ -173,3 +173,4 @@ export * from "./walrusUndelegateIntent";
173
173
  export * from "./walrusWithdrawIntent";
174
174
  export * from "./withdrawIntent";
175
175
  export * from "./xdcStakingIntent";
176
+ export * from "./xdcUnstakingIntent";
@@ -189,4 +189,5 @@ __exportStar(require("./walrusUndelegateIntent"), exports);
189
189
  __exportStar(require("./walrusWithdrawIntent"), exports);
190
190
  __exportStar(require("./withdrawIntent"), exports);
191
191
  __exportStar(require("./xdcStakingIntent"), exports);
192
+ __exportStar(require("./xdcUnstakingIntent"), exports);
192
193
  //# 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;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uDAAqC;AACrC,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,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,mDAAiC;AACjC,qDAAmC;AACnC,+DAA6C;AAC7C,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,mDAAiC;AACjC,yDAAuC;AACvC,6DAA2C;AAC3C,2DAAyC;AACzC,qDAAmC;AACnC,wDAAsC;AACtC,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,oEAAkD;AAClD,sEAAoD;AACpD,qDAAmC;AACnC,qEAAmD;AACnD,uEAAqD;AACrD,mDAAiC;AACjC,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index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6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC"}
@@ -1272,7 +1272,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
1272
1272
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
1273
1273
  }>]>, t.TypeC<{
1274
1274
  intentType: t.LiteralC<"transferOfferWithdrawn">;
1275
- contractId: t.StringC;
1275
+ transferId: t.StringC;
1276
1276
  }>, t.PartialC<{
1277
1277
  token: t.StringC;
1278
1278
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -8236,6 +8236,128 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
8236
8236
  }>, t.TypeC<{
8237
8237
  candidateAddress: import("io-ts-types").NonEmptyStringC;
8238
8238
  validatorContractAddress: import("io-ts-types").NonEmptyStringC;
8239
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
8240
+ intentType: t.KeyofC<{
8241
+ payment: t.LiteralC<"payment">;
8242
+ transferToken: t.LiteralC<"transferToken">;
8243
+ consolidate: t.LiteralC<"consolidate">;
8244
+ consolidateToken: t.LiteralC<"consolidateToken">;
8245
+ fanout: t.LiteralC<"fanout">;
8246
+ stake: t.LiteralC<"stake">;
8247
+ unstake: t.LiteralC<"unstake">;
8248
+ delegate: t.LiteralC<"delegate">;
8249
+ undelegate: t.LiteralC<"undelegate">;
8250
+ switchValidator: t.LiteralC<"switchValidator">;
8251
+ claim: t.LiteralC<"claim">;
8252
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
8253
+ pledge: t.LiteralC<"pledge">;
8254
+ voteDelegation: t.LiteralC<"voteDelegation">;
8255
+ vote: t.LiteralC<"vote">;
8256
+ createAccount: t.LiteralC<"createAccount">;
8257
+ updateAccount: t.LiteralC<"updateAccount">;
8258
+ addTrustLine: t.LiteralC<"addTrustLine">;
8259
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
8260
+ signMessage: t.LiteralC<"signMessage">;
8261
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
8262
+ enableToken: t.LiteralC<"enableToken">;
8263
+ authorize: t.LiteralC<"authorize">;
8264
+ acceleration: t.LiteralC<"acceleration">;
8265
+ fillNonce: t.LiteralC<"fillNonce">;
8266
+ walletRecovery: t.LiteralC<"walletRecovery">;
8267
+ contractCall: t.LiteralC<"contractCall">;
8268
+ deactivate: t.LiteralC<"deactivate">;
8269
+ customTx: t.LiteralC<"customTx">;
8270
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
8271
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
8272
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
8273
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
8274
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
8275
+ tokenApproval: t.LiteralC<"tokenApproval">;
8276
+ transferStake: t.LiteralC<"transferStake">;
8277
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
8278
+ spotTransfer: t.LiteralC<"spotTransfer">;
8279
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
8280
+ goUnstake: t.LiteralC<"goUnstake">;
8281
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
8282
+ transferAccept: t.LiteralC<"transferAccept">;
8283
+ transferReject: t.LiteralC<"transferReject">;
8284
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
8285
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
8286
+ }>;
8287
+ }>, t.PartialC<{
8288
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8289
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8290
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
8291
+ }>]>, t.TypeC<{
8292
+ stakingRequestId: t.StringC;
8293
+ }>]>, t.TypeC<{
8294
+ intentType: t.LiteralC<"undelegate">;
8295
+ candidateAddress: import("io-ts-types").NonEmptyStringC;
8296
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
8297
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
8298
+ intentType: t.KeyofC<{
8299
+ payment: t.LiteralC<"payment">;
8300
+ transferToken: t.LiteralC<"transferToken">;
8301
+ consolidate: t.LiteralC<"consolidate">;
8302
+ consolidateToken: t.LiteralC<"consolidateToken">;
8303
+ fanout: t.LiteralC<"fanout">;
8304
+ stake: t.LiteralC<"stake">;
8305
+ unstake: t.LiteralC<"unstake">;
8306
+ delegate: t.LiteralC<"delegate">;
8307
+ undelegate: t.LiteralC<"undelegate">;
8308
+ switchValidator: t.LiteralC<"switchValidator">;
8309
+ claim: t.LiteralC<"claim">;
8310
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
8311
+ pledge: t.LiteralC<"pledge">;
8312
+ voteDelegation: t.LiteralC<"voteDelegation">;
8313
+ vote: t.LiteralC<"vote">;
8314
+ createAccount: t.LiteralC<"createAccount">;
8315
+ updateAccount: t.LiteralC<"updateAccount">;
8316
+ addTrustLine: t.LiteralC<"addTrustLine">;
8317
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
8318
+ signMessage: t.LiteralC<"signMessage">;
8319
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
8320
+ enableToken: t.LiteralC<"enableToken">;
8321
+ authorize: t.LiteralC<"authorize">;
8322
+ acceleration: t.LiteralC<"acceleration">;
8323
+ fillNonce: t.LiteralC<"fillNonce">;
8324
+ walletRecovery: t.LiteralC<"walletRecovery">;
8325
+ contractCall: t.LiteralC<"contractCall">;
8326
+ deactivate: t.LiteralC<"deactivate">;
8327
+ customTx: t.LiteralC<"customTx">;
8328
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
8329
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
8330
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
8331
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
8332
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
8333
+ tokenApproval: t.LiteralC<"tokenApproval">;
8334
+ transferStake: t.LiteralC<"transferStake">;
8335
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
8336
+ spotTransfer: t.LiteralC<"spotTransfer">;
8337
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
8338
+ goUnstake: t.LiteralC<"goUnstake">;
8339
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
8340
+ transferAccept: t.LiteralC<"transferAccept">;
8341
+ transferReject: t.LiteralC<"transferReject">;
8342
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
8343
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
8344
+ }>;
8345
+ }>, t.PartialC<{
8346
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8347
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8348
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
8349
+ }>]>, t.TypeC<{
8350
+ stakingRequestId: t.StringC;
8351
+ }>]>, t.TypeC<{
8352
+ amount: t.TypeC<{
8353
+ value: t.StringC;
8354
+ symbol: t.StringC;
8355
+ }>;
8356
+ }>, t.TypeC<{
8357
+ intentType: t.LiteralC<"unstake">;
8358
+ blockNumber: import("io-ts-types").NonEmptyStringC;
8359
+ index: import("io-ts-types").NonEmptyStringC;
8360
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
8239
8361
  }>]>, t.IntersectionC<[t.TypeC<{
8240
8362
  intentType: t.KeyofC<{
8241
8363
  payment: t.LiteralC<"payment">;
@@ -131,6 +131,8 @@ const tonWhalesDelegateIntent_1 = require("./tonWhalesDelegateIntent");
131
131
  const tonWhalesUndelegateIntent_1 = require("./tonWhalesUndelegateIntent");
132
132
  const xdcStakingIntent_1 = require("./xdcStakingIntent");
133
133
  const xdcStakingIntent_2 = require("./xdcStakingIntent");
134
+ const xdcUnstakingIntent_1 = require("./xdcUnstakingIntent");
135
+ const xdcUnstakingIntent_2 = require("./xdcUnstakingIntent");
134
136
  const hypeevmBridgeFundsIntent_1 = require("./hypeevmBridgeFundsIntent");
135
137
  exports.TransactionIntent = t.union([
136
138
  adaConsolidateIntent_1.AdaConsolidateIntent,
@@ -240,6 +242,8 @@ exports.TransactionIntent = t.union([
240
242
  walrusWithdrawIntent_1.WalrusWithdrawIntent,
241
243
  xdcStakingIntent_1.XdcUploadKycIntent,
242
244
  xdcStakingIntent_2.XdcProposeIntent,
245
+ xdcUnstakingIntent_1.XdcResignIntent,
246
+ xdcUnstakingIntent_2.XdcWithdrawIntent,
243
247
  baseIntent_1.BaseIntent,
244
248
  ]);
245
249
  //# sourceMappingURL=intent.js.map
@@ -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;AACt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AAkC;IAClC,yCAAmB;IACnB,iDAAuB;IACvB,qDAAyB;IACzB,mCAAgB;IAChB,qCAAiB;IACjB,4CAAuB;IACvB,qCAAgB;IAChB,uDAA0B;IAC1B,+DAA8B;IAC9B,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IACpB,qCAAkB;IAClB,mCAAgB;IAKhB,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;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,2EAAwE;AACxE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAs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CAAgB;IAChB,oCAAe;IACf,sCAAiB;IAKjB,uBAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,127 @@
1
+ import * as t from "io-ts";
2
+ export declare const XdcResignIntent: 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
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
36
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
37
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
38
+ tokenApproval: t.LiteralC<"tokenApproval">;
39
+ transferStake: t.LiteralC<"transferStake">;
40
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
41
+ spotTransfer: t.LiteralC<"spotTransfer">;
42
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
43
+ goUnstake: t.LiteralC<"goUnstake">;
44
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
45
+ transferAccept: t.LiteralC<"transferAccept">;
46
+ transferReject: t.LiteralC<"transferReject">;
47
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
48
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
49
+ }>;
50
+ }>, t.PartialC<{
51
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
52
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
53
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
54
+ }>]>, t.TypeC<{
55
+ stakingRequestId: t.StringC;
56
+ }>]>, t.TypeC<{
57
+ intentType: t.LiteralC<"undelegate">;
58
+ candidateAddress: import("io-ts-types").NonEmptyStringC;
59
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
60
+ }>]>;
61
+ export type XdcResignIntent = t.TypeOf<typeof XdcResignIntent>;
62
+ export declare const XdcWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
63
+ intentType: t.KeyofC<{
64
+ payment: t.LiteralC<"payment">;
65
+ transferToken: t.LiteralC<"transferToken">;
66
+ consolidate: t.LiteralC<"consolidate">;
67
+ consolidateToken: t.LiteralC<"consolidateToken">;
68
+ fanout: t.LiteralC<"fanout">;
69
+ stake: t.LiteralC<"stake">;
70
+ unstake: t.LiteralC<"unstake">;
71
+ delegate: t.LiteralC<"delegate">;
72
+ undelegate: t.LiteralC<"undelegate">;
73
+ switchValidator: t.LiteralC<"switchValidator">;
74
+ claim: t.LiteralC<"claim">;
75
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
76
+ pledge: t.LiteralC<"pledge">;
77
+ voteDelegation: t.LiteralC<"voteDelegation">;
78
+ vote: t.LiteralC<"vote">;
79
+ createAccount: t.LiteralC<"createAccount">;
80
+ updateAccount: t.LiteralC<"updateAccount">;
81
+ addTrustLine: t.LiteralC<"addTrustLine">;
82
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
83
+ signMessage: t.LiteralC<"signMessage">;
84
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
85
+ enableToken: t.LiteralC<"enableToken">;
86
+ authorize: t.LiteralC<"authorize">;
87
+ acceleration: t.LiteralC<"acceleration">;
88
+ fillNonce: t.LiteralC<"fillNonce">;
89
+ walletRecovery: t.LiteralC<"walletRecovery">;
90
+ contractCall: t.LiteralC<"contractCall">;
91
+ deactivate: t.LiteralC<"deactivate">;
92
+ customTx: t.LiteralC<"customTx">;
93
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
94
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
95
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
96
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
97
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
98
+ tokenApproval: t.LiteralC<"tokenApproval">;
99
+ transferStake: t.LiteralC<"transferStake">;
100
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
101
+ spotTransfer: t.LiteralC<"spotTransfer">;
102
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
103
+ goUnstake: t.LiteralC<"goUnstake">;
104
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
105
+ transferAccept: t.LiteralC<"transferAccept">;
106
+ transferReject: t.LiteralC<"transferReject">;
107
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
108
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
109
+ }>;
110
+ }>, t.PartialC<{
111
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
112
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
113
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
114
+ }>]>, t.TypeC<{
115
+ stakingRequestId: t.StringC;
116
+ }>]>, t.TypeC<{
117
+ amount: t.TypeC<{
118
+ value: t.StringC;
119
+ symbol: t.StringC;
120
+ }>;
121
+ }>, t.TypeC<{
122
+ intentType: t.LiteralC<"unstake">;
123
+ blockNumber: import("io-ts-types").NonEmptyStringC;
124
+ index: import("io-ts-types").NonEmptyStringC;
125
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
126
+ }>]>;
127
+ export type XdcWithdrawIntent = t.TypeOf<typeof XdcWithdrawIntent>;
@@ -0,0 +1,50 @@
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.XdcWithdrawIntent = exports.XdcResignIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntent_1 = require("./baseStakeIntent");
29
+ const intentType_1 = require("./intentType");
30
+ const io_ts_types_1 = require("io-ts-types");
31
+ const baseIntent_1 = require("./baseIntent");
32
+ exports.XdcResignIntent = t.intersection([
33
+ baseStakeIntent_1.BaseStakeIntent,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.undelegate,
36
+ candidateAddress: io_ts_types_1.NonEmptyString,
37
+ validatorContractAddress: io_ts_types_1.NonEmptyString,
38
+ }),
39
+ ]);
40
+ exports.XdcWithdrawIntent = t.intersection([
41
+ baseStakeIntent_1.BaseStakeIntent,
42
+ baseIntent_1.BaseIntentWithAmount,
43
+ t.type({
44
+ intentType: intentType_1.intentTypes.unstake,
45
+ blockNumber: io_ts_types_1.NonEmptyString,
46
+ index: io_ts_types_1.NonEmptyString,
47
+ validatorContractAddress: io_ts_types_1.NonEmptyString,
48
+ }),
49
+ ]);
50
+ //# sourceMappingURL=xdcUnstakingIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xdcUnstakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/xdcUnstakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,6CAA6C;AAC7C,6CAAoD;AAcvC,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,4BAAc;QAChC,wBAAwB,EAAE,4BAAc;KACzC,CAAC;CACH,CAAC,CAAC;AAiBU,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,iCAAe;IACf,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;QAC/B,WAAW,EAAE,4BAAc;QAC3B,KAAK,EAAE,4BAAc;QACrB,wBAAwB,EAAE,4BAAc;KACzC,CAAC;CACH,CAAC,CAAC"}
@@ -1370,7 +1370,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
1370
1370
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
1371
1371
  }>]>, t.TypeC<{
1372
1372
  intentType: t.LiteralC<"transferOfferWithdrawn">;
1373
- contractId: t.StringC;
1373
+ transferId: t.StringC;
1374
1374
  }>, t.PartialC<{
1375
1375
  token: t.StringC;
1376
1376
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -8334,6 +8334,128 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
8334
8334
  }>, t.TypeC<{
8335
8335
  candidateAddress: import("io-ts-types").NonEmptyStringC;
8336
8336
  validatorContractAddress: import("io-ts-types").NonEmptyStringC;
8337
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
8338
+ intentType: t.KeyofC<{
8339
+ payment: t.LiteralC<"payment">;
8340
+ transferToken: t.LiteralC<"transferToken">;
8341
+ consolidate: t.LiteralC<"consolidate">;
8342
+ consolidateToken: t.LiteralC<"consolidateToken">;
8343
+ fanout: t.LiteralC<"fanout">;
8344
+ stake: t.LiteralC<"stake">;
8345
+ unstake: t.LiteralC<"unstake">;
8346
+ delegate: t.LiteralC<"delegate">;
8347
+ undelegate: t.LiteralC<"undelegate">;
8348
+ switchValidator: t.LiteralC<"switchValidator">;
8349
+ claim: t.LiteralC<"claim">;
8350
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
8351
+ pledge: t.LiteralC<"pledge">;
8352
+ voteDelegation: t.LiteralC<"voteDelegation">;
8353
+ vote: t.LiteralC<"vote">;
8354
+ createAccount: t.LiteralC<"createAccount">;
8355
+ updateAccount: t.LiteralC<"updateAccount">;
8356
+ addTrustLine: t.LiteralC<"addTrustLine">;
8357
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
8358
+ signMessage: t.LiteralC<"signMessage">;
8359
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
8360
+ enableToken: t.LiteralC<"enableToken">;
8361
+ authorize: t.LiteralC<"authorize">;
8362
+ acceleration: t.LiteralC<"acceleration">;
8363
+ fillNonce: t.LiteralC<"fillNonce">;
8364
+ walletRecovery: t.LiteralC<"walletRecovery">;
8365
+ contractCall: t.LiteralC<"contractCall">;
8366
+ deactivate: t.LiteralC<"deactivate">;
8367
+ customTx: t.LiteralC<"customTx">;
8368
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
8369
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
8370
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
8371
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
8372
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
8373
+ tokenApproval: t.LiteralC<"tokenApproval">;
8374
+ transferStake: t.LiteralC<"transferStake">;
8375
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
8376
+ spotTransfer: t.LiteralC<"spotTransfer">;
8377
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
8378
+ goUnstake: t.LiteralC<"goUnstake">;
8379
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
8380
+ transferAccept: t.LiteralC<"transferAccept">;
8381
+ transferReject: t.LiteralC<"transferReject">;
8382
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
8383
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
8384
+ }>;
8385
+ }>, t.PartialC<{
8386
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8387
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8388
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
8389
+ }>]>, t.TypeC<{
8390
+ stakingRequestId: t.StringC;
8391
+ }>]>, t.TypeC<{
8392
+ intentType: t.LiteralC<"undelegate">;
8393
+ candidateAddress: import("io-ts-types").NonEmptyStringC;
8394
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
8395
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
8396
+ intentType: t.KeyofC<{
8397
+ payment: t.LiteralC<"payment">;
8398
+ transferToken: t.LiteralC<"transferToken">;
8399
+ consolidate: t.LiteralC<"consolidate">;
8400
+ consolidateToken: t.LiteralC<"consolidateToken">;
8401
+ fanout: t.LiteralC<"fanout">;
8402
+ stake: t.LiteralC<"stake">;
8403
+ unstake: t.LiteralC<"unstake">;
8404
+ delegate: t.LiteralC<"delegate">;
8405
+ undelegate: t.LiteralC<"undelegate">;
8406
+ switchValidator: t.LiteralC<"switchValidator">;
8407
+ claim: t.LiteralC<"claim">;
8408
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
8409
+ pledge: t.LiteralC<"pledge">;
8410
+ voteDelegation: t.LiteralC<"voteDelegation">;
8411
+ vote: t.LiteralC<"vote">;
8412
+ createAccount: t.LiteralC<"createAccount">;
8413
+ updateAccount: t.LiteralC<"updateAccount">;
8414
+ addTrustLine: t.LiteralC<"addTrustLine">;
8415
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
8416
+ signMessage: t.LiteralC<"signMessage">;
8417
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
8418
+ enableToken: t.LiteralC<"enableToken">;
8419
+ authorize: t.LiteralC<"authorize">;
8420
+ acceleration: t.LiteralC<"acceleration">;
8421
+ fillNonce: t.LiteralC<"fillNonce">;
8422
+ walletRecovery: t.LiteralC<"walletRecovery">;
8423
+ contractCall: t.LiteralC<"contractCall">;
8424
+ deactivate: t.LiteralC<"deactivate">;
8425
+ customTx: t.LiteralC<"customTx">;
8426
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
8427
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
8428
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
8429
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
8430
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
8431
+ tokenApproval: t.LiteralC<"tokenApproval">;
8432
+ transferStake: t.LiteralC<"transferStake">;
8433
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
8434
+ spotTransfer: t.LiteralC<"spotTransfer">;
8435
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
8436
+ goUnstake: t.LiteralC<"goUnstake">;
8437
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
8438
+ transferAccept: t.LiteralC<"transferAccept">;
8439
+ transferReject: t.LiteralC<"transferReject">;
8440
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
8441
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
8442
+ }>;
8443
+ }>, t.PartialC<{
8444
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8445
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
8446
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
8447
+ }>]>, t.TypeC<{
8448
+ stakingRequestId: t.StringC;
8449
+ }>]>, t.TypeC<{
8450
+ amount: t.TypeC<{
8451
+ value: t.StringC;
8452
+ symbol: t.StringC;
8453
+ }>;
8454
+ }>, t.TypeC<{
8455
+ intentType: t.LiteralC<"unstake">;
8456
+ blockNumber: import("io-ts-types").NonEmptyStringC;
8457
+ index: import("io-ts-types").NonEmptyStringC;
8458
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
8337
8459
  }>]>, t.IntersectionC<[t.TypeC<{
8338
8460
  intentType: t.KeyofC<{
8339
8461
  payment: t.LiteralC<"payment">;
@@ -10041,7 +10163,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
10041
10163
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
10042
10164
  }>]>, t.TypeC<{
10043
10165
  intentType: t.LiteralC<"transferOfferWithdrawn">;
10044
- contractId: t.StringC;
10166
+ transferId: t.StringC;
10045
10167
  }>, t.PartialC<{
10046
10168
  token: t.StringC;
10047
10169
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -17005,6 +17127,128 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
17005
17127
  }>, t.TypeC<{
17006
17128
  candidateAddress: import("io-ts-types").NonEmptyStringC;
17007
17129
  validatorContractAddress: import("io-ts-types").NonEmptyStringC;
17130
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
17131
+ intentType: t.KeyofC<{
17132
+ payment: t.LiteralC<"payment">;
17133
+ transferToken: t.LiteralC<"transferToken">;
17134
+ consolidate: t.LiteralC<"consolidate">;
17135
+ consolidateToken: t.LiteralC<"consolidateToken">;
17136
+ fanout: t.LiteralC<"fanout">;
17137
+ stake: t.LiteralC<"stake">;
17138
+ unstake: t.LiteralC<"unstake">;
17139
+ delegate: t.LiteralC<"delegate">;
17140
+ undelegate: t.LiteralC<"undelegate">;
17141
+ switchValidator: t.LiteralC<"switchValidator">;
17142
+ claim: t.LiteralC<"claim">;
17143
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
17144
+ pledge: t.LiteralC<"pledge">;
17145
+ voteDelegation: t.LiteralC<"voteDelegation">;
17146
+ vote: t.LiteralC<"vote">;
17147
+ createAccount: t.LiteralC<"createAccount">;
17148
+ updateAccount: t.LiteralC<"updateAccount">;
17149
+ addTrustLine: t.LiteralC<"addTrustLine">;
17150
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
17151
+ signMessage: t.LiteralC<"signMessage">;
17152
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
17153
+ enableToken: t.LiteralC<"enableToken">;
17154
+ authorize: t.LiteralC<"authorize">;
17155
+ acceleration: t.LiteralC<"acceleration">;
17156
+ fillNonce: t.LiteralC<"fillNonce">;
17157
+ walletRecovery: t.LiteralC<"walletRecovery">;
17158
+ contractCall: t.LiteralC<"contractCall">;
17159
+ deactivate: t.LiteralC<"deactivate">;
17160
+ customTx: t.LiteralC<"customTx">;
17161
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
17162
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
17163
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
17164
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
17165
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
17166
+ tokenApproval: t.LiteralC<"tokenApproval">;
17167
+ transferStake: t.LiteralC<"transferStake">;
17168
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
17169
+ spotTransfer: t.LiteralC<"spotTransfer">;
17170
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
17171
+ goUnstake: t.LiteralC<"goUnstake">;
17172
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
17173
+ transferAccept: t.LiteralC<"transferAccept">;
17174
+ transferReject: t.LiteralC<"transferReject">;
17175
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
17176
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
17177
+ }>;
17178
+ }>, t.PartialC<{
17179
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
17180
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
17181
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
17182
+ }>]>, t.TypeC<{
17183
+ stakingRequestId: t.StringC;
17184
+ }>]>, t.TypeC<{
17185
+ intentType: t.LiteralC<"undelegate">;
17186
+ candidateAddress: import("io-ts-types").NonEmptyStringC;
17187
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
17188
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
17189
+ intentType: t.KeyofC<{
17190
+ payment: t.LiteralC<"payment">;
17191
+ transferToken: t.LiteralC<"transferToken">;
17192
+ consolidate: t.LiteralC<"consolidate">;
17193
+ consolidateToken: t.LiteralC<"consolidateToken">;
17194
+ fanout: t.LiteralC<"fanout">;
17195
+ stake: t.LiteralC<"stake">;
17196
+ unstake: t.LiteralC<"unstake">;
17197
+ delegate: t.LiteralC<"delegate">;
17198
+ undelegate: t.LiteralC<"undelegate">;
17199
+ switchValidator: t.LiteralC<"switchValidator">;
17200
+ claim: t.LiteralC<"claim">;
17201
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
17202
+ pledge: t.LiteralC<"pledge">;
17203
+ voteDelegation: t.LiteralC<"voteDelegation">;
17204
+ vote: t.LiteralC<"vote">;
17205
+ createAccount: t.LiteralC<"createAccount">;
17206
+ updateAccount: t.LiteralC<"updateAccount">;
17207
+ addTrustLine: t.LiteralC<"addTrustLine">;
17208
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
17209
+ signMessage: t.LiteralC<"signMessage">;
17210
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
17211
+ enableToken: t.LiteralC<"enableToken">;
17212
+ authorize: t.LiteralC<"authorize">;
17213
+ acceleration: t.LiteralC<"acceleration">;
17214
+ fillNonce: t.LiteralC<"fillNonce">;
17215
+ walletRecovery: t.LiteralC<"walletRecovery">;
17216
+ contractCall: t.LiteralC<"contractCall">;
17217
+ deactivate: t.LiteralC<"deactivate">;
17218
+ customTx: t.LiteralC<"customTx">;
17219
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
17220
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
17221
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
17222
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
17223
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
17224
+ tokenApproval: t.LiteralC<"tokenApproval">;
17225
+ transferStake: t.LiteralC<"transferStake">;
17226
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
17227
+ spotTransfer: t.LiteralC<"spotTransfer">;
17228
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
17229
+ goUnstake: t.LiteralC<"goUnstake">;
17230
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
17231
+ transferAccept: t.LiteralC<"transferAccept">;
17232
+ transferReject: t.LiteralC<"transferReject">;
17233
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
17234
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
17235
+ }>;
17236
+ }>, t.PartialC<{
17237
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
17238
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
17239
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
17240
+ }>]>, t.TypeC<{
17241
+ stakingRequestId: t.StringC;
17242
+ }>]>, t.TypeC<{
17243
+ amount: t.TypeC<{
17244
+ value: t.StringC;
17245
+ symbol: t.StringC;
17246
+ }>;
17247
+ }>, t.TypeC<{
17248
+ intentType: t.LiteralC<"unstake">;
17249
+ blockNumber: import("io-ts-types").NonEmptyStringC;
17250
+ index: import("io-ts-types").NonEmptyStringC;
17251
+ validatorContractAddress: import("io-ts-types").NonEmptyStringC;
17008
17252
  }>]>, t.IntersectionC<[t.TypeC<{
17009
17253
  intentType: t.KeyofC<{
17010
17254
  payment: t.LiteralC<"payment">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.74.0",
3
+ "version": "5.75.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -9,14 +9,14 @@ import { intentTypes } from "./intentType";
9
9
  * In canton, the `offer` can be withdrawn by doing a cancellation of offer transaction
10
10
  *
11
11
  * @param {String} intentType - The type of intent (always set to transferOfferWithdrawn)
12
- * @param {string} contractId - The offer contractId that needs to be cancelled
12
+ * @param {string} transferId - The offer transferId that needs to be cancelled
13
13
  * @param {String} [token] - The optional token
14
14
  */
15
15
  export const CantonTransferOfferWithdrawnIntent = t.intersection([
16
16
  BaseIntent,
17
17
  t.type({
18
18
  intentType: intentTypes.transferOfferWithdrawn,
19
- contractId: t.string,
19
+ transferId: t.string,
20
20
  }),
21
21
  t.partial({
22
22
  token: t.string,
@@ -173,3 +173,4 @@ export * from "./walrusUndelegateIntent";
173
173
  export * from "./walrusWithdrawIntent";
174
174
  export * from "./withdrawIntent";
175
175
  export * from "./xdcStakingIntent";
176
+ export * from "./xdcUnstakingIntent";
@@ -108,6 +108,8 @@ import { TonWhalesDelegateIntent } from "./tonWhalesDelegateIntent";
108
108
  import { TonWhalesUndelegateIntent } from "./tonWhalesUndelegateIntent";
109
109
  import { XdcUploadKycIntent } from "./xdcStakingIntent";
110
110
  import { XdcProposeIntent } from "./xdcStakingIntent";
111
+ import { XdcResignIntent } from "./xdcUnstakingIntent";
112
+ import { XdcWithdrawIntent } from "./xdcUnstakingIntent";
111
113
  import { HypeevmBridgeFundsIntent } from "./hypeevmBridgeFundsIntent";
112
114
 
113
115
  export const TransactionIntent = t.union([
@@ -218,6 +220,8 @@ export const TransactionIntent = t.union([
218
220
  WalrusWithdrawIntent,
219
221
  XdcUploadKycIntent,
220
222
  XdcProposeIntent,
223
+ XdcResignIntent,
224
+ XdcWithdrawIntent,
221
225
 
222
226
  /**
223
227
  * Catch all for past intents that have not been converted to codecs
@@ -0,0 +1,54 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { intentTypes } from "./intentType";
4
+ import { NonEmptyString } from "io-ts-types";
5
+ import { BaseIntentWithAmount } from "./baseIntent";
6
+
7
+ /**
8
+ * @title XDC Resign Intent
9
+ *
10
+ * Intent for resigning a masternode candidate on XDC network.
11
+ * This calls resign(address _candidate) on the system validator contract
12
+ * to initiate the unstaking process.
13
+ *
14
+ * @param {string} intentType - The type of intent (undelegate)
15
+ * @param {string} stakingRequestId - The staking request identifier
16
+ * @param {string} candidateAddress - The address of the masternode candidate to resign
17
+ * @param {string} validatorContractAddress - The address of the XDC Validator contract
18
+ */
19
+ export const XdcResignIntent = t.intersection([
20
+ BaseStakeIntent,
21
+ t.type({
22
+ intentType: intentTypes.undelegate,
23
+ candidateAddress: NonEmptyString,
24
+ validatorContractAddress: NonEmptyString,
25
+ }),
26
+ ]);
27
+
28
+ export type XdcResignIntent = t.TypeOf<typeof XdcResignIntent>;
29
+
30
+ /**
31
+ * @title XDC Withdraw Intent
32
+ *
33
+ * Intent for withdrawing staked XDC after the lock period expires.
34
+ * This calls withdraw(uint256 _blockNumber, uint256 _index) on the
35
+ * system validator contract to reclaim the 10M XDC stake.
36
+ *
37
+ * @param {string} intentType - The type of intent (unstake)
38
+ * @param {string} stakingRequestId - The staking request identifier
39
+ * @param {string} blockNumber - The block number when the resignation was confirmed
40
+ * @param {string} index - The withdrawal index
41
+ * @param {string} validatorContractAddress - The address of the XDC Validator contract
42
+ */
43
+ export const XdcWithdrawIntent = t.intersection([
44
+ BaseStakeIntent,
45
+ BaseIntentWithAmount,
46
+ t.type({
47
+ intentType: intentTypes.unstake,
48
+ blockNumber: NonEmptyString,
49
+ index: NonEmptyString,
50
+ validatorContractAddress: NonEmptyString,
51
+ }),
52
+ ]);
53
+
54
+ export type XdcWithdrawIntent = t.TypeOf<typeof XdcWithdrawIntent>;