@bitgo/public-types 4.15.0 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/schema/transactionRequest/intents/index.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/index.js +6 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.d.ts +19 -0
- package/dist/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.js +37 -0
- package/dist/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.d.ts +39 -0
- package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +74 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.js.map +1 -0
- package/package.json +2 -2
- package/src/schema/transactionRequest/intents/index.ts +6 -0
- package/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.ts +15 -0
- package/src/schema/transactionRequest/intents/substrateBaseIntent.ts +1 -1
- package/src/schema/transactionRequest/intents/substrateConsolidateIntent.ts +11 -0
- package/src/schema/transactionRequest/intents/substratePaymentIntent.ts +13 -0
@@ -86,6 +86,12 @@ export * from "./solUnstakeIntent";
|
|
86
86
|
export * from "./stakeClaimRewardsIntent";
|
87
87
|
export * from "./stakeIntent";
|
88
88
|
export * from "./stakeSwitchValidatorIntent";
|
89
|
+
export * from "./substrateAccountBaseBuildOptions";
|
90
|
+
export * from "./substrateBaseIntent";
|
91
|
+
export * from "./substrateConsolidateIntent";
|
92
|
+
export * from "./substrateFeeOptionFormula";
|
93
|
+
export * from "./substrateFeeOptions";
|
94
|
+
export * from "./substratePaymentIntent";
|
89
95
|
export * from "./suiBuildOptions";
|
90
96
|
export * from "./suiConsolidateIntent";
|
91
97
|
export * from "./suiCustomTxIntent";
|
@@ -102,6 +102,12 @@ __exportStar(require("./solUnstakeIntent"), exports);
|
|
102
102
|
__exportStar(require("./stakeClaimRewardsIntent"), exports);
|
103
103
|
__exportStar(require("./stakeIntent"), exports);
|
104
104
|
__exportStar(require("./stakeSwitchValidatorIntent"), exports);
|
105
|
+
__exportStar(require("./substrateAccountBaseBuildOptions"), exports);
|
106
|
+
__exportStar(require("./substrateBaseIntent"), exports);
|
107
|
+
__exportStar(require("./substrateConsolidateIntent"), exports);
|
108
|
+
__exportStar(require("./substrateFeeOptionFormula"), exports);
|
109
|
+
__exportStar(require("./substrateFeeOptions"), exports);
|
110
|
+
__exportStar(require("./substratePaymentIntent"), exports);
|
105
111
|
__exportStar(require("./suiBuildOptions"), exports);
|
106
112
|
__exportStar(require("./suiConsolidateIntent"), exports);
|
107
113
|
__exportStar(require("./suiCustomTxIntent"), 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,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,mDAAiC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,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,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,mDAAiC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const SubstrateAccountBaseBuildOptions: t.IntersectionC<[t.PartialC<{
|
3
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4
|
+
}>, t.PartialC<{
|
5
|
+
fee: t.UnionC<[t.Type<{
|
6
|
+
amount: string | number;
|
7
|
+
} & {
|
8
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
9
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
10
|
+
type?: "max" | "base" | "tip" | undefined;
|
11
|
+
}, {
|
12
|
+
amount: string | number;
|
13
|
+
} & {
|
14
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
15
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
16
|
+
type?: "max" | "base" | "tip" | undefined;
|
17
|
+
}, unknown>, t.UndefinedC]>;
|
18
|
+
}>]>;
|
19
|
+
export type SubstrateAccountBaseBuildOptions = t.TypeOf<typeof SubstrateAccountBaseBuildOptions>;
|
@@ -0,0 +1,37 @@
|
|
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.SubstrateAccountBaseBuildOptions = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const accountBaseBuildOptions_1 = require("./accountBaseBuildOptions");
|
29
|
+
const substrateFeeOptions_1 = require("./substrateFeeOptions");
|
30
|
+
const utils_1 = require("../../../utils");
|
31
|
+
exports.SubstrateAccountBaseBuildOptions = t.intersection([
|
32
|
+
accountBaseBuildOptions_1.AccountBaseBuildOptions,
|
33
|
+
t.partial({
|
34
|
+
fee: (0, utils_1.Optional)(substrateFeeOptions_1.SubstrateFeeOptions),
|
35
|
+
}),
|
36
|
+
]);
|
37
|
+
//# sourceMappingURL=substrateAccountBaseBuildOptions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"substrateAccountBaseBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,+DAA4D;AAC5D,0CAA0C;AAE7B,QAAA,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,GAAG,EAAE,IAAA,gBAAQ,EAAC,yCAAmB,CAAC;KACnC,CAAC;CACH,CAAC,CAAC"}
|
@@ -79,4 +79,4 @@ export declare const SubstrateBaseIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
79
79
|
data?: string | undefined;
|
80
80
|
})[], unknown>, t.UndefinedC]>;
|
81
81
|
}>]>;
|
82
|
-
export type
|
82
|
+
export type SubstrateBaseIntent = t.TypeOf<typeof SubstrateBaseIntent>;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const SubstrateConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
3
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4
|
+
}>, t.TypeC<{
|
5
|
+
intentType: t.LiteralC<"consolidate">;
|
6
|
+
receiveAddress: t.StringC;
|
7
|
+
}>, t.PartialC<{
|
8
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
9
|
+
consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
10
|
+
recipients: t.UnionC<[t.Type<({
|
11
|
+
address: {
|
12
|
+
address?: string | undefined;
|
13
|
+
option?: {
|
14
|
+
[x: string]: unknown;
|
15
|
+
} | undefined;
|
16
|
+
};
|
17
|
+
amount: {
|
18
|
+
value: string;
|
19
|
+
symbol: string;
|
20
|
+
};
|
21
|
+
} & {
|
22
|
+
data?: string | undefined;
|
23
|
+
})[], ({
|
24
|
+
address: {
|
25
|
+
address?: string | undefined;
|
26
|
+
option?: {
|
27
|
+
[x: string]: unknown;
|
28
|
+
} | undefined;
|
29
|
+
};
|
30
|
+
amount: {
|
31
|
+
value: string;
|
32
|
+
symbol: string;
|
33
|
+
};
|
34
|
+
} & {
|
35
|
+
data?: string | undefined;
|
36
|
+
})[], unknown>, t.UndefinedC]>;
|
37
|
+
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
|
+
}>]>;
|
39
|
+
export type SubstrateConsolidateIntent = t.TypeOf<typeof SubstrateConsolidateIntent>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubstrateConsolidateIntent = void 0;
|
4
|
+
const accountBaseConsolidateIntent_1 = require("./accountBaseConsolidateIntent");
|
5
|
+
exports.SubstrateConsolidateIntent = accountBaseConsolidateIntent_1.AccountBaseConsolidateIntent;
|
6
|
+
//# sourceMappingURL=substrateConsolidateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"substrateConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substrateConsolidateIntent.ts"],"names":[],"mappings":";;;AACA,iFAA8E;AAKjE,QAAA,0BAA0B,GAAG,2DAA4B,CAAC"}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const SubstratePaymentIntent: 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
|
+
}>;
|
35
|
+
}>, t.PartialC<{
|
36
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
38
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
39
|
+
}>]>, t.TypeC<{
|
40
|
+
intentType: t.LiteralC<"payment">;
|
41
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
42
|
+
address: t.PartialC<{
|
43
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
44
|
+
option: t.UnionC<[t.Type<{
|
45
|
+
[x: string]: unknown;
|
46
|
+
}, {
|
47
|
+
[x: string]: unknown;
|
48
|
+
}, unknown>, t.UndefinedC]>;
|
49
|
+
}>;
|
50
|
+
amount: t.TypeC<{
|
51
|
+
value: t.StringC;
|
52
|
+
symbol: t.StringC;
|
53
|
+
}>;
|
54
|
+
}>, t.PartialC<{
|
55
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
56
|
+
}>]>>;
|
57
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
58
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
59
|
+
}>, t.PartialC<{
|
60
|
+
fee: t.UnionC<[t.Type<{
|
61
|
+
amount: string | number;
|
62
|
+
} & {
|
63
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
64
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
65
|
+
type?: "max" | "base" | "tip" | undefined;
|
66
|
+
}, {
|
67
|
+
amount: string | number;
|
68
|
+
} & {
|
69
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
70
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
71
|
+
type?: "max" | "base" | "tip" | undefined;
|
72
|
+
}, unknown>, t.UndefinedC]>;
|
73
|
+
}>]>]>;
|
74
|
+
export type SubstratePaymentIntent = t.TypeOf<typeof SubstratePaymentIntent>;
|
@@ -0,0 +1,34 @@
|
|
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.SubstratePaymentIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
|
29
|
+
const paymentIntent_1 = require("./paymentIntent");
|
30
|
+
exports.SubstratePaymentIntent = t.intersection([
|
31
|
+
paymentIntent_1.PaymentIntent,
|
32
|
+
substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
|
33
|
+
]);
|
34
|
+
//# sourceMappingURL=substratePaymentIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"substratePaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substratePaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,mDAAgD;AAKnC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,6BAAa;IACb,mEAAgC;CACjC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bitgo/public-types",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.16.0",
|
4
4
|
"description": "Collection of types exposed externally as part of the BitGo public API",
|
5
5
|
"license": "UNLICENSED",
|
6
6
|
"author": "",
|
@@ -36,6 +36,6 @@
|
|
36
36
|
"prettier": "^3.2.4",
|
37
37
|
"semantic-release": "23.0.2",
|
38
38
|
"typescript": "5.6.3",
|
39
|
-
"vitest": "1.
|
39
|
+
"vitest": "1.6.1"
|
40
40
|
}
|
41
41
|
}
|
@@ -86,6 +86,12 @@ export * from "./solUnstakeIntent";
|
|
86
86
|
export * from "./stakeClaimRewardsIntent";
|
87
87
|
export * from "./stakeIntent";
|
88
88
|
export * from "./stakeSwitchValidatorIntent";
|
89
|
+
export * from "./substrateAccountBaseBuildOptions";
|
90
|
+
export * from "./substrateBaseIntent";
|
91
|
+
export * from "./substrateConsolidateIntent";
|
92
|
+
export * from "./substrateFeeOptionFormula";
|
93
|
+
export * from "./substrateFeeOptions";
|
94
|
+
export * from "./substratePaymentIntent";
|
89
95
|
export * from "./suiBuildOptions";
|
90
96
|
export * from "./suiConsolidateIntent";
|
91
97
|
export * from "./suiCustomTxIntent";
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { AccountBaseBuildOptions } from "./accountBaseBuildOptions";
|
3
|
+
import { SubstrateFeeOptions } from "./substrateFeeOptions";
|
4
|
+
import { Optional } from "../../../utils";
|
5
|
+
|
6
|
+
export const SubstrateAccountBaseBuildOptions = t.intersection([
|
7
|
+
AccountBaseBuildOptions,
|
8
|
+
t.partial({
|
9
|
+
fee: Optional(SubstrateFeeOptions),
|
10
|
+
}),
|
11
|
+
]);
|
12
|
+
|
13
|
+
export type SubstrateAccountBaseBuildOptions = t.TypeOf<
|
14
|
+
typeof SubstrateAccountBaseBuildOptions
|
15
|
+
>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { AccountBaseConsolidateIntent } from "./accountBaseConsolidateIntent";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @title Substrate Consolidate Intent
|
6
|
+
*/
|
7
|
+
export const SubstrateConsolidateIntent = AccountBaseConsolidateIntent;
|
8
|
+
|
9
|
+
export type SubstrateConsolidateIntent = t.TypeOf<
|
10
|
+
typeof SubstrateConsolidateIntent
|
11
|
+
>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
|
3
|
+
import { PaymentIntent } from "./paymentIntent";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @title Substrate Payment Intent
|
7
|
+
*/
|
8
|
+
export const SubstratePaymentIntent = t.intersection([
|
9
|
+
PaymentIntent,
|
10
|
+
SubstrateAccountBaseBuildOptions,
|
11
|
+
]);
|
12
|
+
|
13
|
+
export type SubstratePaymentIntent = t.TypeOf<typeof SubstratePaymentIntent>;
|