@bitgo/public-types 5.75.1 → 5.76.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.
Files changed (22) hide show
  1. package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.d.ts +1 -1
  2. package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.js +1 -1
  3. package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/index.d.ts +2 -0
  5. package/dist/src/schema/transactionRequest/intents/index.js +2 -0
  6. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/intent.d.ts +128 -1
  8. package/dist/src/schema/transactionRequest/intents/intent.js +4 -0
  9. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  10. package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.d.ts +76 -0
  11. package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.js +44 -0
  12. package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.js.map +1 -0
  13. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.d.ts +73 -0
  14. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.js +41 -0
  15. package/dist/src/schema/transactionRequest/intents/irysStakeIntent.js.map +1 -0
  16. package/dist/src/schema/transactionRequest/transactionRequest.d.ts +256 -2
  17. package/package.json +1 -1
  18. package/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.ts +2 -2
  19. package/src/schema/transactionRequest/intents/index.ts +2 -0
  20. package/src/schema/transactionRequest/intents/intent.ts +4 -0
  21. package/src/schema/transactionRequest/intents/irysPledgeIntent.ts +38 -0
  22. package/src/schema/transactionRequest/intents/irysStakeIntent.ts +35 -0
@@ -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
- transferId: t.StringC;
56
+ transferOfferId: 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
- transferId: t.string,
34
+ transferOfferId: t.string,
35
35
  }),
36
36
  t.partial({
37
37
  token: t.string,
@@ -1 +1 @@
1
- {"version":3,"file":"cantonTransferOfferWithdrawnIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAY9B,QAAA,kCAAkC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,sBAAsB;QAC9C,UAAU,EAAE,CAAC,CAAC,MAAM;KACrB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonTransferOfferWithdrawnIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAY9B,QAAA,kCAAkC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,sBAAsB;QAC9C,eAAe,EAAE,CAAC,CAAC,MAAM;KAC1B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
@@ -88,6 +88,8 @@ export * from "./iotaBuildOptions";
88
88
  export * from "./iotaConsolidateIntent";
89
89
  export * from "./iotaFeeOptions";
90
90
  export * from "./iotaPaymentIntent";
91
+ export * from "./irysPledgeIntent";
92
+ export * from "./irysStakeIntent";
91
93
  export * from "./lightningPaymentIntent";
92
94
  export * from "./mmiSignMessageIntent";
93
95
  export * from "./mmiSignTransactionIntent";
@@ -104,6 +104,8 @@ __exportStar(require("./iotaBuildOptions"), exports);
104
104
  __exportStar(require("./iotaConsolidateIntent"), exports);
105
105
  __exportStar(require("./iotaFeeOptions"), exports);
106
106
  __exportStar(require("./iotaPaymentIntent"), exports);
107
+ __exportStar(require("./irysPledgeIntent"), exports);
108
+ __exportStar(require("./irysStakeIntent"), exports);
107
109
  __exportStar(require("./lightningPaymentIntent"), exports);
108
110
  __exportStar(require("./mmiSignMessageIntent"), exports);
109
111
  __exportStar(require("./mmiSignTransactionIntent"), 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,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,qDAAmC;AACnC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,0DAAwC;AACxC,sDAAoC;AACpC,+CAA6B;AAC7B,oDAA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,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;AACnC,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,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AA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.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
- transferId: t.StringC;
1275
+ transferOfferId: t.StringC;
1276
1276
  }>, t.PartialC<{
1277
1277
  token: t.StringC;
1278
1278
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -3220,6 +3220,133 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3220
3220
  isTestTransaction: t.BooleanC;
3221
3221
  }>]>]>, t.PartialC<{
3222
3222
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3223
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3224
+ intentType: t.KeyofC<{
3225
+ payment: t.LiteralC<"payment">;
3226
+ transferToken: t.LiteralC<"transferToken">;
3227
+ consolidate: t.LiteralC<"consolidate">;
3228
+ consolidateToken: t.LiteralC<"consolidateToken">;
3229
+ fanout: t.LiteralC<"fanout">;
3230
+ stake: t.LiteralC<"stake">;
3231
+ unstake: t.LiteralC<"unstake">;
3232
+ delegate: t.LiteralC<"delegate">;
3233
+ undelegate: t.LiteralC<"undelegate">;
3234
+ switchValidator: t.LiteralC<"switchValidator">;
3235
+ claim: t.LiteralC<"claim">;
3236
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3237
+ pledge: t.LiteralC<"pledge">;
3238
+ voteDelegation: t.LiteralC<"voteDelegation">;
3239
+ vote: t.LiteralC<"vote">;
3240
+ createAccount: t.LiteralC<"createAccount">;
3241
+ updateAccount: t.LiteralC<"updateAccount">;
3242
+ addTrustLine: t.LiteralC<"addTrustLine">;
3243
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3244
+ signMessage: t.LiteralC<"signMessage">;
3245
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3246
+ enableToken: t.LiteralC<"enableToken">;
3247
+ authorize: t.LiteralC<"authorize">;
3248
+ acceleration: t.LiteralC<"acceleration">;
3249
+ fillNonce: t.LiteralC<"fillNonce">;
3250
+ walletRecovery: t.LiteralC<"walletRecovery">;
3251
+ contractCall: t.LiteralC<"contractCall">;
3252
+ deactivate: t.LiteralC<"deactivate">;
3253
+ customTx: t.LiteralC<"customTx">;
3254
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3255
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
3256
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
3257
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
3258
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
3259
+ tokenApproval: t.LiteralC<"tokenApproval">;
3260
+ transferStake: t.LiteralC<"transferStake">;
3261
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
3262
+ spotTransfer: t.LiteralC<"spotTransfer">;
3263
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
3264
+ goUnstake: t.LiteralC<"goUnstake">;
3265
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
3266
+ transferAccept: t.LiteralC<"transferAccept">;
3267
+ transferReject: t.LiteralC<"transferReject">;
3268
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
3269
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
3270
+ }>;
3271
+ }>, t.PartialC<{
3272
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3273
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3274
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3275
+ }>]>, t.TypeC<{
3276
+ stakingRequestId: t.StringC;
3277
+ }>]>, t.TypeC<{
3278
+ intentType: t.LiteralC<"pledge">;
3279
+ commitmentParams: t.IntersectionC<[t.TypeC<{
3280
+ commitmentFee: t.StringC;
3281
+ commitmentValue: t.StringC;
3282
+ signerAddress: t.StringC;
3283
+ chainId: t.NumberC;
3284
+ }>, t.TypeC<{
3285
+ pledgeCount: t.NumberC;
3286
+ }>]>;
3287
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3288
+ intentType: t.KeyofC<{
3289
+ payment: t.LiteralC<"payment">;
3290
+ transferToken: t.LiteralC<"transferToken">;
3291
+ consolidate: t.LiteralC<"consolidate">;
3292
+ consolidateToken: t.LiteralC<"consolidateToken">;
3293
+ fanout: t.LiteralC<"fanout">;
3294
+ stake: t.LiteralC<"stake">;
3295
+ unstake: t.LiteralC<"unstake">;
3296
+ delegate: t.LiteralC<"delegate">;
3297
+ undelegate: t.LiteralC<"undelegate">;
3298
+ switchValidator: t.LiteralC<"switchValidator">;
3299
+ claim: t.LiteralC<"claim">;
3300
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3301
+ pledge: t.LiteralC<"pledge">;
3302
+ voteDelegation: t.LiteralC<"voteDelegation">;
3303
+ vote: t.LiteralC<"vote">;
3304
+ createAccount: t.LiteralC<"createAccount">;
3305
+ updateAccount: t.LiteralC<"updateAccount">;
3306
+ addTrustLine: t.LiteralC<"addTrustLine">;
3307
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3308
+ signMessage: t.LiteralC<"signMessage">;
3309
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3310
+ enableToken: t.LiteralC<"enableToken">;
3311
+ authorize: t.LiteralC<"authorize">;
3312
+ acceleration: t.LiteralC<"acceleration">;
3313
+ fillNonce: t.LiteralC<"fillNonce">;
3314
+ walletRecovery: t.LiteralC<"walletRecovery">;
3315
+ contractCall: t.LiteralC<"contractCall">;
3316
+ deactivate: t.LiteralC<"deactivate">;
3317
+ customTx: t.LiteralC<"customTx">;
3318
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3319
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
3320
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
3321
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
3322
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
3323
+ tokenApproval: t.LiteralC<"tokenApproval">;
3324
+ transferStake: t.LiteralC<"transferStake">;
3325
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
3326
+ spotTransfer: t.LiteralC<"spotTransfer">;
3327
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
3328
+ goUnstake: t.LiteralC<"goUnstake">;
3329
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
3330
+ transferAccept: t.LiteralC<"transferAccept">;
3331
+ transferReject: t.LiteralC<"transferReject">;
3332
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
3333
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
3334
+ }>;
3335
+ }>, t.PartialC<{
3336
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3337
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3338
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3339
+ }>]>, t.TypeC<{
3340
+ stakingRequestId: t.StringC;
3341
+ }>]>, t.TypeC<{
3342
+ intentType: t.LiteralC<"stake">;
3343
+ }>]>, t.TypeC<{
3344
+ commitmentParams: t.TypeC<{
3345
+ commitmentFee: t.StringC;
3346
+ commitmentValue: t.StringC;
3347
+ signerAddress: t.StringC;
3348
+ chainId: t.NumberC;
3349
+ }>;
3223
3350
  }>]>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3224
3351
  intentType: t.KeyofC<{
3225
3352
  payment: t.LiteralC<"payment">;
@@ -57,6 +57,8 @@ const ethStakingIntent_1 = require("./ethStakingIntent");
57
57
  const feeAddressTransferIntent_1 = require("./feeAddressTransferIntent");
58
58
  const hypeevmSpotTransferIntent_1 = require("./hypeevmSpotTransferIntent");
59
59
  const icpPaymentIntent_1 = require("./icpPaymentIntent");
60
+ const irysPledgeIntent_1 = require("./irysPledgeIntent");
61
+ const irysStakeIntent_1 = require("./irysStakeIntent");
60
62
  const lightningPaymentIntent_1 = require("./lightningPaymentIntent");
61
63
  const mmiSignMessageIntent_1 = require("./mmiSignMessageIntent");
62
64
  const nearStakeIntent_1 = require("./nearStakeIntent");
@@ -177,6 +179,8 @@ exports.TransactionIntent = t.union([
177
179
  hypeevmBridgeFundsIntent_1.HypeevmBridgeFundsIntent,
178
180
  hypeevmSpotTransferIntent_1.HypeevmSpotTransferIntent,
179
181
  icpPaymentIntent_1.IcpPaymentIntent,
182
+ irysPledgeIntent_1.IrysPledgeIntent,
183
+ irysStakeIntent_1.IrysStakeIntent,
180
184
  lightningPaymentIntent_1.LightningPaymentIntent,
181
185
  mmiSignMessageIntent_1.MmiSignMessageIntent,
182
186
  mmiSignTransactionIntent_1.MmiSignTransactionIntent,
@@ -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,2EAAwE;AACxE,yDAAsD;AACtD,q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B;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;IAChB,oCAAe;IACf,sCAAiB;IAKjB,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,yDAAsD;AACtD,uDAAoD;AACpD,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;AACt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ACnB,+CAAsB;IACtB,2CAAoB;IACpB,qCAAkB;IAClB,mCAAgB;IAChB,oCAAe;IACf,sCAAiB;IAKjB,uBAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,76 @@
1
+ import * as t from "io-ts";
2
+ export declare const IrysPledgeCommitmentParams: t.IntersectionC<[t.TypeC<{
3
+ commitmentFee: t.StringC;
4
+ commitmentValue: t.StringC;
5
+ signerAddress: t.StringC;
6
+ chainId: t.NumberC;
7
+ }>, t.TypeC<{
8
+ pledgeCount: t.NumberC;
9
+ }>]>;
10
+ export type IrysPledgeCommitmentParams = t.TypeOf<typeof IrysPledgeCommitmentParams>;
11
+ export declare const IrysPledgeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
12
+ intentType: t.KeyofC<{
13
+ payment: t.LiteralC<"payment">;
14
+ transferToken: t.LiteralC<"transferToken">;
15
+ consolidate: t.LiteralC<"consolidate">;
16
+ consolidateToken: t.LiteralC<"consolidateToken">;
17
+ fanout: t.LiteralC<"fanout">;
18
+ stake: t.LiteralC<"stake">;
19
+ unstake: t.LiteralC<"unstake">;
20
+ delegate: t.LiteralC<"delegate">;
21
+ undelegate: t.LiteralC<"undelegate">;
22
+ switchValidator: t.LiteralC<"switchValidator">;
23
+ claim: t.LiteralC<"claim">;
24
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
25
+ pledge: t.LiteralC<"pledge">;
26
+ voteDelegation: t.LiteralC<"voteDelegation">;
27
+ vote: t.LiteralC<"vote">;
28
+ createAccount: t.LiteralC<"createAccount">;
29
+ updateAccount: t.LiteralC<"updateAccount">;
30
+ addTrustLine: t.LiteralC<"addTrustLine">;
31
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
32
+ signMessage: t.LiteralC<"signMessage">;
33
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
34
+ enableToken: t.LiteralC<"enableToken">;
35
+ authorize: t.LiteralC<"authorize">;
36
+ acceleration: t.LiteralC<"acceleration">;
37
+ fillNonce: t.LiteralC<"fillNonce">;
38
+ walletRecovery: t.LiteralC<"walletRecovery">;
39
+ contractCall: t.LiteralC<"contractCall">;
40
+ deactivate: t.LiteralC<"deactivate">;
41
+ customTx: t.LiteralC<"customTx">;
42
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
43
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
44
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
45
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
46
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
47
+ tokenApproval: t.LiteralC<"tokenApproval">;
48
+ transferStake: t.LiteralC<"transferStake">;
49
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
50
+ spotTransfer: t.LiteralC<"spotTransfer">;
51
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
52
+ goUnstake: t.LiteralC<"goUnstake">;
53
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
54
+ transferAccept: t.LiteralC<"transferAccept">;
55
+ transferReject: t.LiteralC<"transferReject">;
56
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
57
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
58
+ }>;
59
+ }>, t.PartialC<{
60
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
61
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
62
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
63
+ }>]>, t.TypeC<{
64
+ stakingRequestId: t.StringC;
65
+ }>]>, t.TypeC<{
66
+ intentType: t.LiteralC<"pledge">;
67
+ commitmentParams: t.IntersectionC<[t.TypeC<{
68
+ commitmentFee: t.StringC;
69
+ commitmentValue: t.StringC;
70
+ signerAddress: t.StringC;
71
+ chainId: t.NumberC;
72
+ }>, t.TypeC<{
73
+ pledgeCount: t.NumberC;
74
+ }>]>;
75
+ }>]>;
76
+ export type IrysPledgeIntent = t.TypeOf<typeof IrysPledgeIntent>;
@@ -0,0 +1,44 @@
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.IrysPledgeIntent = exports.IrysPledgeCommitmentParams = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntent_1 = require("./baseStakeIntent");
29
+ const intentType_1 = require("./intentType");
30
+ const irysStakeIntent_1 = require("./irysStakeIntent");
31
+ exports.IrysPledgeCommitmentParams = t.intersection([
32
+ irysStakeIntent_1.IrysCommitmentParams,
33
+ t.type({
34
+ pledgeCount: t.number,
35
+ }),
36
+ ]);
37
+ exports.IrysPledgeIntent = t.intersection([
38
+ baseStakeIntent_1.BaseStakeIntent,
39
+ t.type({
40
+ intentType: intentType_1.intentTypes.pledge,
41
+ commitmentParams: exports.IrysPledgeCommitmentParams,
42
+ }),
43
+ ]);
44
+ //# sourceMappingURL=irysPledgeIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"irysPledgeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/irysPledgeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,uDAAyD;AAM5C,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,sCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QAEL,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC;AAcU,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,MAAM;QAC9B,gBAAgB,EAAE,kCAA0B;KAC7C,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,73 @@
1
+ import * as t from "io-ts";
2
+ export declare const IrysCommitmentParams: t.TypeC<{
3
+ commitmentFee: t.StringC;
4
+ commitmentValue: t.StringC;
5
+ signerAddress: t.StringC;
6
+ chainId: t.NumberC;
7
+ }>;
8
+ export type IrysCommitmentParams = t.TypeOf<typeof IrysCommitmentParams>;
9
+ export declare const IrysStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
10
+ intentType: t.KeyofC<{
11
+ payment: t.LiteralC<"payment">;
12
+ transferToken: t.LiteralC<"transferToken">;
13
+ consolidate: t.LiteralC<"consolidate">;
14
+ consolidateToken: t.LiteralC<"consolidateToken">;
15
+ fanout: t.LiteralC<"fanout">;
16
+ stake: t.LiteralC<"stake">;
17
+ unstake: t.LiteralC<"unstake">;
18
+ delegate: t.LiteralC<"delegate">;
19
+ undelegate: t.LiteralC<"undelegate">;
20
+ switchValidator: t.LiteralC<"switchValidator">;
21
+ claim: t.LiteralC<"claim">;
22
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
23
+ pledge: t.LiteralC<"pledge">;
24
+ voteDelegation: t.LiteralC<"voteDelegation">;
25
+ vote: t.LiteralC<"vote">;
26
+ createAccount: t.LiteralC<"createAccount">;
27
+ updateAccount: t.LiteralC<"updateAccount">;
28
+ addTrustLine: t.LiteralC<"addTrustLine">;
29
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
30
+ signMessage: t.LiteralC<"signMessage">;
31
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
32
+ enableToken: t.LiteralC<"enableToken">;
33
+ authorize: t.LiteralC<"authorize">;
34
+ acceleration: t.LiteralC<"acceleration">;
35
+ fillNonce: t.LiteralC<"fillNonce">;
36
+ walletRecovery: t.LiteralC<"walletRecovery">;
37
+ contractCall: t.LiteralC<"contractCall">;
38
+ deactivate: t.LiteralC<"deactivate">;
39
+ customTx: t.LiteralC<"customTx">;
40
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
41
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
42
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
43
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
44
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
45
+ tokenApproval: t.LiteralC<"tokenApproval">;
46
+ transferStake: t.LiteralC<"transferStake">;
47
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
48
+ spotTransfer: t.LiteralC<"spotTransfer">;
49
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
50
+ goUnstake: t.LiteralC<"goUnstake">;
51
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
52
+ transferAccept: t.LiteralC<"transferAccept">;
53
+ transferReject: t.LiteralC<"transferReject">;
54
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
55
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
56
+ }>;
57
+ }>, t.PartialC<{
58
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
59
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
60
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
61
+ }>]>, t.TypeC<{
62
+ stakingRequestId: t.StringC;
63
+ }>]>, t.TypeC<{
64
+ intentType: t.LiteralC<"stake">;
65
+ }>]>, t.TypeC<{
66
+ commitmentParams: t.TypeC<{
67
+ commitmentFee: t.StringC;
68
+ commitmentValue: t.StringC;
69
+ signerAddress: t.StringC;
70
+ chainId: t.NumberC;
71
+ }>;
72
+ }>]>;
73
+ export type IrysStakeIntent = t.TypeOf<typeof IrysStakeIntent>;
@@ -0,0 +1,41 @@
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.IrysStakeIntent = exports.IrysCommitmentParams = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const stakeIntent_1 = require("./stakeIntent");
29
+ exports.IrysCommitmentParams = t.type({
30
+ commitmentFee: t.string,
31
+ commitmentValue: t.string,
32
+ signerAddress: t.string,
33
+ chainId: t.number,
34
+ });
35
+ exports.IrysStakeIntent = t.intersection([
36
+ stakeIntent_1.StakeIntent,
37
+ t.type({
38
+ commitmentParams: exports.IrysCommitmentParams,
39
+ }),
40
+ ]);
41
+ //# sourceMappingURL=irysStakeIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"irysStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/irysStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAM/B,QAAA,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IAEzC,aAAa,EAAE,CAAC,CAAC,MAAM;IAEvB,eAAe,EAAE,CAAC,CAAC,MAAM;IAEzB,aAAa,EAAE,CAAC,CAAC,MAAM;IAEvB,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,CAAC;AAWU,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,yBAAW;IACX,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,4BAAoB;KACvC,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
- transferId: t.StringC;
1373
+ transferOfferId: t.StringC;
1374
1374
  }>, t.PartialC<{
1375
1375
  token: t.StringC;
1376
1376
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -3318,6 +3318,133 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
3318
3318
  isTestTransaction: t.BooleanC;
3319
3319
  }>]>]>, t.PartialC<{
3320
3320
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3321
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3322
+ intentType: t.KeyofC<{
3323
+ payment: t.LiteralC<"payment">;
3324
+ transferToken: t.LiteralC<"transferToken">;
3325
+ consolidate: t.LiteralC<"consolidate">;
3326
+ consolidateToken: t.LiteralC<"consolidateToken">;
3327
+ fanout: t.LiteralC<"fanout">;
3328
+ stake: t.LiteralC<"stake">;
3329
+ unstake: t.LiteralC<"unstake">;
3330
+ delegate: t.LiteralC<"delegate">;
3331
+ undelegate: t.LiteralC<"undelegate">;
3332
+ switchValidator: t.LiteralC<"switchValidator">;
3333
+ claim: t.LiteralC<"claim">;
3334
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3335
+ pledge: t.LiteralC<"pledge">;
3336
+ voteDelegation: t.LiteralC<"voteDelegation">;
3337
+ vote: t.LiteralC<"vote">;
3338
+ createAccount: t.LiteralC<"createAccount">;
3339
+ updateAccount: t.LiteralC<"updateAccount">;
3340
+ addTrustLine: t.LiteralC<"addTrustLine">;
3341
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3342
+ signMessage: t.LiteralC<"signMessage">;
3343
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3344
+ enableToken: t.LiteralC<"enableToken">;
3345
+ authorize: t.LiteralC<"authorize">;
3346
+ acceleration: t.LiteralC<"acceleration">;
3347
+ fillNonce: t.LiteralC<"fillNonce">;
3348
+ walletRecovery: t.LiteralC<"walletRecovery">;
3349
+ contractCall: t.LiteralC<"contractCall">;
3350
+ deactivate: t.LiteralC<"deactivate">;
3351
+ customTx: t.LiteralC<"customTx">;
3352
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3353
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
3354
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
3355
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
3356
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
3357
+ tokenApproval: t.LiteralC<"tokenApproval">;
3358
+ transferStake: t.LiteralC<"transferStake">;
3359
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
3360
+ spotTransfer: t.LiteralC<"spotTransfer">;
3361
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
3362
+ goUnstake: t.LiteralC<"goUnstake">;
3363
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
3364
+ transferAccept: t.LiteralC<"transferAccept">;
3365
+ transferReject: t.LiteralC<"transferReject">;
3366
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
3367
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
3368
+ }>;
3369
+ }>, t.PartialC<{
3370
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3371
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3372
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3373
+ }>]>, t.TypeC<{
3374
+ stakingRequestId: t.StringC;
3375
+ }>]>, t.TypeC<{
3376
+ intentType: t.LiteralC<"pledge">;
3377
+ commitmentParams: t.IntersectionC<[t.TypeC<{
3378
+ commitmentFee: t.StringC;
3379
+ commitmentValue: t.StringC;
3380
+ signerAddress: t.StringC;
3381
+ chainId: t.NumberC;
3382
+ }>, t.TypeC<{
3383
+ pledgeCount: t.NumberC;
3384
+ }>]>;
3385
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3386
+ intentType: t.KeyofC<{
3387
+ payment: t.LiteralC<"payment">;
3388
+ transferToken: t.LiteralC<"transferToken">;
3389
+ consolidate: t.LiteralC<"consolidate">;
3390
+ consolidateToken: t.LiteralC<"consolidateToken">;
3391
+ fanout: t.LiteralC<"fanout">;
3392
+ stake: t.LiteralC<"stake">;
3393
+ unstake: t.LiteralC<"unstake">;
3394
+ delegate: t.LiteralC<"delegate">;
3395
+ undelegate: t.LiteralC<"undelegate">;
3396
+ switchValidator: t.LiteralC<"switchValidator">;
3397
+ claim: t.LiteralC<"claim">;
3398
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3399
+ pledge: t.LiteralC<"pledge">;
3400
+ voteDelegation: t.LiteralC<"voteDelegation">;
3401
+ vote: t.LiteralC<"vote">;
3402
+ createAccount: t.LiteralC<"createAccount">;
3403
+ updateAccount: t.LiteralC<"updateAccount">;
3404
+ addTrustLine: t.LiteralC<"addTrustLine">;
3405
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3406
+ signMessage: t.LiteralC<"signMessage">;
3407
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3408
+ enableToken: t.LiteralC<"enableToken">;
3409
+ authorize: t.LiteralC<"authorize">;
3410
+ acceleration: t.LiteralC<"acceleration">;
3411
+ fillNonce: t.LiteralC<"fillNonce">;
3412
+ walletRecovery: t.LiteralC<"walletRecovery">;
3413
+ contractCall: t.LiteralC<"contractCall">;
3414
+ deactivate: t.LiteralC<"deactivate">;
3415
+ customTx: t.LiteralC<"customTx">;
3416
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3417
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
3418
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
3419
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
3420
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
3421
+ tokenApproval: t.LiteralC<"tokenApproval">;
3422
+ transferStake: t.LiteralC<"transferStake">;
3423
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
3424
+ spotTransfer: t.LiteralC<"spotTransfer">;
3425
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
3426
+ goUnstake: t.LiteralC<"goUnstake">;
3427
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
3428
+ transferAccept: t.LiteralC<"transferAccept">;
3429
+ transferReject: t.LiteralC<"transferReject">;
3430
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
3431
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
3432
+ }>;
3433
+ }>, t.PartialC<{
3434
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3435
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3436
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3437
+ }>]>, t.TypeC<{
3438
+ stakingRequestId: t.StringC;
3439
+ }>]>, t.TypeC<{
3440
+ intentType: t.LiteralC<"stake">;
3441
+ }>]>, t.TypeC<{
3442
+ commitmentParams: t.TypeC<{
3443
+ commitmentFee: t.StringC;
3444
+ commitmentValue: t.StringC;
3445
+ signerAddress: t.StringC;
3446
+ chainId: t.NumberC;
3447
+ }>;
3321
3448
  }>]>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3322
3449
  intentType: t.KeyofC<{
3323
3450
  payment: t.LiteralC<"payment">;
@@ -10163,7 +10290,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
10163
10290
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
10164
10291
  }>]>, t.TypeC<{
10165
10292
  intentType: t.LiteralC<"transferOfferWithdrawn">;
10166
- transferId: t.StringC;
10293
+ transferOfferId: t.StringC;
10167
10294
  }>, t.PartialC<{
10168
10295
  token: t.StringC;
10169
10296
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -12111,6 +12238,133 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
12111
12238
  isTestTransaction: t.BooleanC;
12112
12239
  }>]>]>, t.PartialC<{
12113
12240
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
12241
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
12242
+ intentType: t.KeyofC<{
12243
+ payment: t.LiteralC<"payment">;
12244
+ transferToken: t.LiteralC<"transferToken">;
12245
+ consolidate: t.LiteralC<"consolidate">;
12246
+ consolidateToken: t.LiteralC<"consolidateToken">;
12247
+ fanout: t.LiteralC<"fanout">;
12248
+ stake: t.LiteralC<"stake">;
12249
+ unstake: t.LiteralC<"unstake">;
12250
+ delegate: t.LiteralC<"delegate">;
12251
+ undelegate: t.LiteralC<"undelegate">;
12252
+ switchValidator: t.LiteralC<"switchValidator">;
12253
+ claim: t.LiteralC<"claim">;
12254
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
12255
+ pledge: t.LiteralC<"pledge">;
12256
+ voteDelegation: t.LiteralC<"voteDelegation">;
12257
+ vote: t.LiteralC<"vote">;
12258
+ createAccount: t.LiteralC<"createAccount">;
12259
+ updateAccount: t.LiteralC<"updateAccount">;
12260
+ addTrustLine: t.LiteralC<"addTrustLine">;
12261
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
12262
+ signMessage: t.LiteralC<"signMessage">;
12263
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
12264
+ enableToken: t.LiteralC<"enableToken">;
12265
+ authorize: t.LiteralC<"authorize">;
12266
+ acceleration: t.LiteralC<"acceleration">;
12267
+ fillNonce: t.LiteralC<"fillNonce">;
12268
+ walletRecovery: t.LiteralC<"walletRecovery">;
12269
+ contractCall: t.LiteralC<"contractCall">;
12270
+ deactivate: t.LiteralC<"deactivate">;
12271
+ customTx: t.LiteralC<"customTx">;
12272
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
12273
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
12274
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
12275
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
12276
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
12277
+ tokenApproval: t.LiteralC<"tokenApproval">;
12278
+ transferStake: t.LiteralC<"transferStake">;
12279
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
12280
+ spotTransfer: t.LiteralC<"spotTransfer">;
12281
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
12282
+ goUnstake: t.LiteralC<"goUnstake">;
12283
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
12284
+ transferAccept: t.LiteralC<"transferAccept">;
12285
+ transferReject: t.LiteralC<"transferReject">;
12286
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
12287
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
12288
+ }>;
12289
+ }>, t.PartialC<{
12290
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
12291
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
12292
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
12293
+ }>]>, t.TypeC<{
12294
+ stakingRequestId: t.StringC;
12295
+ }>]>, t.TypeC<{
12296
+ intentType: t.LiteralC<"pledge">;
12297
+ commitmentParams: t.IntersectionC<[t.TypeC<{
12298
+ commitmentFee: t.StringC;
12299
+ commitmentValue: t.StringC;
12300
+ signerAddress: t.StringC;
12301
+ chainId: t.NumberC;
12302
+ }>, t.TypeC<{
12303
+ pledgeCount: t.NumberC;
12304
+ }>]>;
12305
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
12306
+ intentType: t.KeyofC<{
12307
+ payment: t.LiteralC<"payment">;
12308
+ transferToken: t.LiteralC<"transferToken">;
12309
+ consolidate: t.LiteralC<"consolidate">;
12310
+ consolidateToken: t.LiteralC<"consolidateToken">;
12311
+ fanout: t.LiteralC<"fanout">;
12312
+ stake: t.LiteralC<"stake">;
12313
+ unstake: t.LiteralC<"unstake">;
12314
+ delegate: t.LiteralC<"delegate">;
12315
+ undelegate: t.LiteralC<"undelegate">;
12316
+ switchValidator: t.LiteralC<"switchValidator">;
12317
+ claim: t.LiteralC<"claim">;
12318
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
12319
+ pledge: t.LiteralC<"pledge">;
12320
+ voteDelegation: t.LiteralC<"voteDelegation">;
12321
+ vote: t.LiteralC<"vote">;
12322
+ createAccount: t.LiteralC<"createAccount">;
12323
+ updateAccount: t.LiteralC<"updateAccount">;
12324
+ addTrustLine: t.LiteralC<"addTrustLine">;
12325
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
12326
+ signMessage: t.LiteralC<"signMessage">;
12327
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
12328
+ enableToken: t.LiteralC<"enableToken">;
12329
+ authorize: t.LiteralC<"authorize">;
12330
+ acceleration: t.LiteralC<"acceleration">;
12331
+ fillNonce: t.LiteralC<"fillNonce">;
12332
+ walletRecovery: t.LiteralC<"walletRecovery">;
12333
+ contractCall: t.LiteralC<"contractCall">;
12334
+ deactivate: t.LiteralC<"deactivate">;
12335
+ customTx: t.LiteralC<"customTx">;
12336
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
12337
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
12338
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
12339
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
12340
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
12341
+ tokenApproval: t.LiteralC<"tokenApproval">;
12342
+ transferStake: t.LiteralC<"transferStake">;
12343
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
12344
+ spotTransfer: t.LiteralC<"spotTransfer">;
12345
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
12346
+ goUnstake: t.LiteralC<"goUnstake">;
12347
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
12348
+ transferAccept: t.LiteralC<"transferAccept">;
12349
+ transferReject: t.LiteralC<"transferReject">;
12350
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
12351
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
12352
+ }>;
12353
+ }>, t.PartialC<{
12354
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
12355
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
12356
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
12357
+ }>]>, t.TypeC<{
12358
+ stakingRequestId: t.StringC;
12359
+ }>]>, t.TypeC<{
12360
+ intentType: t.LiteralC<"stake">;
12361
+ }>]>, t.TypeC<{
12362
+ commitmentParams: t.TypeC<{
12363
+ commitmentFee: t.StringC;
12364
+ commitmentValue: t.StringC;
12365
+ signerAddress: t.StringC;
12366
+ chainId: t.NumberC;
12367
+ }>;
12114
12368
  }>]>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
12115
12369
  intentType: t.KeyofC<{
12116
12370
  payment: t.LiteralC<"payment">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.75.1",
3
+ "version": "5.76.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} transferId - The offer transferId that needs to be cancelled
12
+ * @param {string} transferOfferId - The offer transferOfferId 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
- transferId: t.string,
19
+ transferOfferId: t.string,
20
20
  }),
21
21
  t.partial({
22
22
  token: t.string,
@@ -88,6 +88,8 @@ export * from "./iotaBuildOptions";
88
88
  export * from "./iotaConsolidateIntent";
89
89
  export * from "./iotaFeeOptions";
90
90
  export * from "./iotaPaymentIntent";
91
+ export * from "./irysPledgeIntent";
92
+ export * from "./irysStakeIntent";
91
93
  export * from "./lightningPaymentIntent";
92
94
  export * from "./mmiSignMessageIntent";
93
95
  export * from "./mmiSignTransactionIntent";
@@ -34,6 +34,8 @@ import { EthStakingIntent } from "./ethStakingIntent";
34
34
  import { FeeAddressTransferIntent } from "./feeAddressTransferIntent";
35
35
  import { HypeevmSpotTransferIntent } from "./hypeevmSpotTransferIntent";
36
36
  import { IcpPaymentIntent } from "./icpPaymentIntent";
37
+ import { IrysPledgeIntent } from "./irysPledgeIntent";
38
+ import { IrysStakeIntent } from "./irysStakeIntent";
37
39
  import { LightningPaymentIntent } from "./lightningPaymentIntent";
38
40
  import { MmiSignMessageIntent } from "./mmiSignMessageIntent";
39
41
  import { NearStakeIntent } from "./nearStakeIntent";
@@ -155,6 +157,8 @@ export const TransactionIntent = t.union([
155
157
  HypeevmBridgeFundsIntent,
156
158
  HypeevmSpotTransferIntent,
157
159
  IcpPaymentIntent,
160
+ IrysPledgeIntent,
161
+ IrysStakeIntent,
158
162
  LightningPaymentIntent,
159
163
  MmiSignMessageIntent,
160
164
  MmiSignTransactionIntent,
@@ -0,0 +1,38 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { intentTypes } from "./intentType";
4
+ import { IrysCommitmentParams } from "./irysStakeIntent";
5
+
6
+ /**
7
+ * Extended commitment parameters for Irys PLEDGE transactions.
8
+ * Includes pledgeCount (number of partitions to pledge).
9
+ */
10
+ export const IrysPledgeCommitmentParams = t.intersection([
11
+ IrysCommitmentParams,
12
+ t.type({
13
+ /** Number of partitions to pledge (each is 16TB). */
14
+ pledgeCount: t.number,
15
+ }),
16
+ ]);
17
+
18
+ export type IrysPledgeCommitmentParams = t.TypeOf<
19
+ typeof IrysPledgeCommitmentParams
20
+ >;
21
+
22
+ /**
23
+ * @title Irys Pledge Intent
24
+ *
25
+ * Intent for Irys PLEDGE commitment transactions.
26
+ * PLEDGE commits to store a 16TB partition (repeatable, each adds a partition).
27
+ * Requires an active STAKE delegation first.
28
+ * Routes to BGM_IRYS (mechanism 86) via irys/signtx keyserver path.
29
+ */
30
+ export const IrysPledgeIntent = t.intersection([
31
+ BaseStakeIntent,
32
+ t.type({
33
+ intentType: intentTypes.pledge,
34
+ commitmentParams: IrysPledgeCommitmentParams,
35
+ }),
36
+ ]);
37
+
38
+ export type IrysPledgeIntent = t.TypeOf<typeof IrysPledgeIntent>;
@@ -0,0 +1,35 @@
1
+ import * as t from "io-ts";
2
+ import { StakeIntent } from "./stakeIntent";
3
+
4
+ /**
5
+ * Parameters for Irys commitment transactions.
6
+ * These values originate from the Irys pricing APIs called by staking-service.
7
+ */
8
+ export const IrysCommitmentParams = t.type({
9
+ /** Commitment fee as a bigint string (wei), from Irys price API. */
10
+ commitmentFee: t.string,
11
+ /** Commitment value as a bigint string (wei), from Irys price API. */
12
+ commitmentValue: t.string,
13
+ /** 0x-prefixed hex Ethereum address of the signer. */
14
+ signerAddress: t.string,
15
+ /** Irys chain ID: 1270 (testnet) or 3282 (mainnet). */
16
+ chainId: t.number,
17
+ });
18
+
19
+ export type IrysCommitmentParams = t.TypeOf<typeof IrysCommitmentParams>;
20
+
21
+ /**
22
+ * @title Irys Stake Intent
23
+ *
24
+ * Intent for Irys STAKE commitment transactions.
25
+ * STAKE locks tokens as collateral (done once per wallet).
26
+ * Routes to BGM_IRYS (mechanism 86) via irys/signtx keyserver path.
27
+ */
28
+ export const IrysStakeIntent = t.intersection([
29
+ StakeIntent,
30
+ t.type({
31
+ commitmentParams: IrysCommitmentParams,
32
+ }),
33
+ ]);
34
+
35
+ export type IrysStakeIntent = t.TypeOf<typeof IrysStakeIntent>;