@bitgo/public-types 6.5.2 → 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.
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +70 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +412 -1
- package/dist/src/schema/transactionRequest/intents/intent.js +12 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/paymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/undelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +1082 -260
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/accelerationIntent.ts +7 -0
- package/src/schema/transactionRequest/intents/accountBaseBuildOptions.ts +1 -0
- package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/baseBridgeFundsIntent.ts +4 -5
- package/src/schema/transactionRequest/intents/baseIntent.ts +9 -0
- package/src/schema/transactionRequest/intents/baseStakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.ts +1 -0
- package/src/schema/transactionRequest/intents/claimIntent.ts +20 -0
- package/src/schema/transactionRequest/intents/delegateIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/ethAccelerationIntent.ts +5 -0
- package/src/schema/transactionRequest/intents/ethBuildOptions.ts +10 -0
- package/src/schema/transactionRequest/intents/ethConsolidateIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/ethFillNonceIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/ethPaymentIntent.ts +5 -0
- package/src/schema/transactionRequest/intents/ethStakingIntent.ts +9 -0
- package/src/schema/transactionRequest/intents/ethTransferTokenIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/fillNonceIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.ts +4 -4
- package/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/index.ts +3 -0
- package/src/schema/transactionRequest/intents/intent.ts +12 -0
- package/src/schema/transactionRequest/intents/paymentIntent.ts +3 -0
- package/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/stakeIntent.ts +1 -0
- package/src/schema/transactionRequest/intents/stakeWithCallDataIntent.ts +20 -0
- package/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.ts +22 -0
- package/src/schema/transactionRequest/intents/tokenApprovalIntent.ts +5 -1
- package/src/schema/transactionRequest/intents/transferTokenIntent.ts +1 -0
- package/src/schema/transactionRequest/intents/undelegateIntent.ts +6 -0
|
@@ -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;
|
|
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;
|
|
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;
|
|
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"}
|