@bitgo/public-types 6.5.1 → 6.6.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 (75) hide show
  1. package/dist/src/schema/transactionRequest/intents/accelerationIntent.js.map +1 -1
  2. package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js.map +1 -1
  3. package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.js.map +1 -1
  5. package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
  6. package/dist/src/schema/transactionRequest/intents/baseStakeIntent.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.js.map +1 -1
  8. package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +70 -0
  9. package/dist/src/schema/transactionRequest/intents/claimIntent.js +36 -0
  10. package/dist/src/schema/transactionRequest/intents/claimIntent.js.map +1 -0
  11. package/dist/src/schema/transactionRequest/intents/delegateIntent.js.map +1 -1
  12. package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.js.map +1 -1
  13. package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js.map +1 -1
  14. package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js.map +1 -1
  15. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js.map +1 -1
  16. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js.map +1 -1
  17. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js.map +1 -1
  18. package/dist/src/schema/transactionRequest/intents/ethStakingIntent.js.map +1 -1
  19. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js.map +1 -1
  20. package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js.map +1 -1
  21. package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.js.map +1 -1
  22. package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.js.map +1 -1
  23. package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
  24. package/dist/src/schema/transactionRequest/intents/index.js +3 -0
  25. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  26. package/dist/src/schema/transactionRequest/intents/intent.d.ts +412 -1
  27. package/dist/src/schema/transactionRequest/intents/intent.js +12 -0
  28. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  29. package/dist/src/schema/transactionRequest/intents/paymentIntent.js.map +1 -1
  30. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js +1 -1
  31. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js.map +1 -1
  32. package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.js.map +1 -1
  33. package/dist/src/schema/transactionRequest/intents/stakeIntent.js.map +1 -1
  34. package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +72 -0
  35. package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.js +36 -0
  36. package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.js.map +1 -0
  37. package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +72 -0
  38. package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.js +36 -0
  39. package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.js.map +1 -0
  40. package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.js.map +1 -1
  41. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -1
  42. package/dist/src/schema/transactionRequest/intents/undelegateIntent.js.map +1 -1
  43. package/dist/src/schema/transactionRequest/transactionRequest.d.ts +1082 -260
  44. package/package.json +1 -1
  45. package/src/schema/transactionRequest/intents/accelerationIntent.ts +7 -0
  46. package/src/schema/transactionRequest/intents/accountBaseBuildOptions.ts +1 -0
  47. package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +6 -0
  48. package/src/schema/transactionRequest/intents/baseBridgeFundsIntent.ts +4 -5
  49. package/src/schema/transactionRequest/intents/baseIntent.ts +9 -0
  50. package/src/schema/transactionRequest/intents/baseStakeIntent.ts +2 -0
  51. package/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.ts +1 -0
  52. package/src/schema/transactionRequest/intents/claimIntent.ts +20 -0
  53. package/src/schema/transactionRequest/intents/delegateIntent.ts +6 -0
  54. package/src/schema/transactionRequest/intents/ethAccelerationIntent.ts +5 -0
  55. package/src/schema/transactionRequest/intents/ethBuildOptions.ts +10 -0
  56. package/src/schema/transactionRequest/intents/ethConsolidateIntent.ts +4 -0
  57. package/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts +8 -0
  58. package/src/schema/transactionRequest/intents/ethFillNonceIntent.ts +4 -0
  59. package/src/schema/transactionRequest/intents/ethPaymentIntent.ts +5 -0
  60. package/src/schema/transactionRequest/intents/ethStakingIntent.ts +9 -0
  61. package/src/schema/transactionRequest/intents/ethTransferTokenIntent.ts +4 -0
  62. package/src/schema/transactionRequest/intents/fillNonceIntent.ts +8 -0
  63. package/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.ts +4 -4
  64. package/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.ts +4 -0
  65. package/src/schema/transactionRequest/intents/index.ts +3 -0
  66. package/src/schema/transactionRequest/intents/intent.ts +12 -0
  67. package/src/schema/transactionRequest/intents/paymentIntent.ts +3 -0
  68. package/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts +12 -5
  69. package/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts +6 -0
  70. package/src/schema/transactionRequest/intents/stakeIntent.ts +1 -0
  71. package/src/schema/transactionRequest/intents/stakeWithCallDataIntent.ts +20 -0
  72. package/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.ts +22 -0
  73. package/src/schema/transactionRequest/intents/tokenApprovalIntent.ts +5 -1
  74. package/src/schema/transactionRequest/intents/transferTokenIntent.ts +1 -0
  75. package/src/schema/transactionRequest/intents/undelegateIntent.ts +6 -0
@@ -0,0 +1,36 @@
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.StakeWithCallDataIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
29
+ const intentType_1 = require("./intentType");
30
+ exports.StakeWithCallDataIntent = t.intersection([
31
+ baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
32
+ t.type({
33
+ intentType: intentType_1.intentTypes.stakeWithCallData,
34
+ }),
35
+ ]);
36
+ //# sourceMappingURL=stakeWithCallDataIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stakeWithCallDataIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/stakeWithCallDataIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,6CAA2C;AAS9B,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,yDAA2B;IAC3B,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;KAC1C,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,72 @@
1
+ import * as t from "io-ts";
2
+ export declare const SwitchValidatorWithCallDataIntent: t.IntersectionC<[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
+ increaseStake: t.LiteralC<"increaseStake">;
42
+ decreaseStake: t.LiteralC<"decreaseStake">;
43
+ signalExit: t.LiteralC<"signalExit">;
44
+ withdrawStake: t.LiteralC<"withdrawStake">;
45
+ spotTransfer: t.LiteralC<"spotTransfer">;
46
+ bridgeFunds: t.LiteralC<"bridgeFunds">;
47
+ enableBridging: t.LiteralC<"enableBridging">;
48
+ goUnstake: t.LiteralC<"goUnstake">;
49
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
50
+ transferAccept: t.LiteralC<"transferAccept">;
51
+ transferReject: t.LiteralC<"transferReject">;
52
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
53
+ transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
54
+ "defi-deposit": t.LiteralC<"defi-deposit">;
55
+ "defi-redeem": t.LiteralC<"defi-redeem">;
56
+ delegateResource: t.LiteralC<"delegateResource">;
57
+ undelegateResource: t.LiteralC<"undelegateResource">;
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.PartialC<{
66
+ source: t.KeyofC<typeof import("./stakingRequestSource").StakingRequestSourceEnum>;
67
+ }>]>, t.TypeC<{
68
+ calldata: t.StringC;
69
+ }>]>, t.TypeC<{
70
+ intentType: t.LiteralC<"switchValidatorWithCallData">;
71
+ }>]>;
72
+ export type SwitchValidatorWithCallDataIntent = t.TypeOf<typeof SwitchValidatorWithCallDataIntent>;
@@ -0,0 +1,36 @@
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.SwitchValidatorWithCallDataIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
29
+ const intentType_1 = require("./intentType");
30
+ exports.SwitchValidatorWithCallDataIntent = t.intersection([
31
+ baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
32
+ t.type({
33
+ intentType: intentType_1.intentTypes.switchValidatorWithCallData,
34
+ }),
35
+ ]);
36
+ //# sourceMappingURL=switchValidatorWithCallDataIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switchValidatorWithCallDataIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,6CAA2C;AAS9B,QAAA,iCAAiC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9D,yDAA2B;IAC3B,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,2BAA2B;KACpD,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokenApprovalIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tokenApprovalIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAmE;AACnE,6CAA2C;AAM9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,oCAAuB;IACvB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,aAAa;KACtC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"tokenApprovalIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tokenApprovalIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAmE;AACnE,6CAA2C;AAS9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,oCAAuB;IACvB,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,aAAa;KACtC,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transferTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/transferTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAyE;AACzE,6CAA2C;AAE9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,0CAA6B;IAC7B,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,aAAa;KACtC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"transferTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/transferTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAyE;AACzE,6CAA2C;AAE9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,0CAA6B;IAC7B,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,aAAa;KACtC,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"undelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/undelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAE9B,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;KACnC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"undelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/undelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAO9B,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,UAAU;KACnC,CAAC;CACH,CAAC,CAAC"}