@bitgo/public-types 5.83.0 → 5.84.1
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.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.js +1 -2
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.js +1 -2
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +4 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/accelerationIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/defiDepositIntent.ts +1 -2
- package/src/schema/transactionRequest/intents/defiRedeemIntent.ts +1 -2
- package/src/schema/transactionRequest/intents/fillNonceIntent.ts +2 -0
|
@@ -60,5 +60,6 @@ export declare const AccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
|
|
|
60
60
|
}>]>, t.TypeC<{
|
|
61
61
|
intentType: t.LiteralC<"acceleration">;
|
|
62
62
|
txid: t.StringC;
|
|
63
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
63
64
|
}>]>;
|
|
64
65
|
export type AccelerationIntent = t.TypeOf<typeof AccelerationIntent>;
|
|
@@ -27,11 +27,13 @@ exports.AccelerationIntent = void 0;
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
|
29
29
|
const intentType_1 = require("./intentType");
|
|
30
|
+
const utils_1 = require("../../../utils");
|
|
30
31
|
exports.AccelerationIntent = t.intersection([
|
|
31
32
|
baseIntent_1.BaseIntent,
|
|
32
33
|
t.type({
|
|
33
34
|
intentType: intentType_1.intentTypes.acceleration,
|
|
34
35
|
txid: t.string,
|
|
36
|
+
senderAddress: utils_1.optionalString,
|
|
35
37
|
}),
|
|
36
38
|
]);
|
|
37
39
|
//# sourceMappingURL=accelerationIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accelerationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accelerationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"accelerationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accelerationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,YAAY;QACpC,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,aAAa,EAAE,sBAAc;KAC9B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -26,11 +26,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.DefiDepositIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
|
29
|
-
const intentType_1 = require("./intentType");
|
|
30
29
|
exports.DefiDepositIntent = t.intersection([
|
|
31
30
|
baseIntent_1.BaseIntent,
|
|
32
31
|
t.type({
|
|
33
|
-
intentType:
|
|
32
|
+
intentType: t.literal("defi-deposit"),
|
|
34
33
|
protocol: t.string,
|
|
35
34
|
amount: t.string,
|
|
36
35
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiDepositIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/defiDepositIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;
|
|
1
|
+
{"version":3,"file":"defiDepositIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/defiDepositIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAE7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACrC,QAAQ,EAAE,CAAC,CAAC,MAAM;QAElB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -26,11 +26,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.DefiRedeemIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
|
29
|
-
const intentType_1 = require("./intentType");
|
|
30
29
|
exports.DefiRedeemIntent = t.intersection([
|
|
31
30
|
baseIntent_1.BaseIntent,
|
|
32
31
|
t.type({
|
|
33
|
-
intentType:
|
|
32
|
+
intentType: t.literal("defi-redeem"),
|
|
34
33
|
protocol: t.string,
|
|
35
34
|
amount: t.string,
|
|
36
35
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiRedeemIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/defiRedeemIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;
|
|
1
|
+
{"version":3,"file":"defiRedeemIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/defiRedeemIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAE7B,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QACpC,QAAQ,EAAE,CAAC,CAAC,MAAM;QAElB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -60,6 +60,7 @@ export declare const EthAccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.
|
|
|
60
60
|
}>]>, t.TypeC<{
|
|
61
61
|
intentType: t.LiteralC<"acceleration">;
|
|
62
62
|
txid: t.StringC;
|
|
63
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
63
64
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
64
65
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
65
66
|
}>, t.PartialC<{
|
|
@@ -59,6 +59,7 @@ export declare const EthFillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
|
59
59
|
}>]>, t.TypeC<{
|
|
60
60
|
intentType: t.LiteralC<"fillNonce">;
|
|
61
61
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
62
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
62
63
|
}>]>, t.PartialC<{
|
|
63
64
|
feeOptions: t.UnionC<[t.Type<{
|
|
64
65
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
|
@@ -59,5 +59,6 @@ export declare const FillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<
|
|
|
59
59
|
}>]>, t.TypeC<{
|
|
60
60
|
intentType: t.LiteralC<"fillNonce">;
|
|
61
61
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
62
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
62
63
|
}>]>;
|
|
63
64
|
export type FillNonceIntent = t.TypeOf<typeof FillNonceIntent>;
|
|
@@ -27,11 +27,13 @@ exports.FillNonceIntent = void 0;
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
|
29
29
|
const intentType_1 = require("./intentType");
|
|
30
|
+
const utils_1 = require("../../../utils");
|
|
30
31
|
exports.FillNonceIntent = t.intersection([
|
|
31
32
|
baseIntent_1.BaseIntentWithoutNonce,
|
|
32
33
|
t.type({
|
|
33
34
|
intentType: intentType_1.intentTypes.fillNonce,
|
|
34
35
|
nonce: t.union([t.string, t.number]),
|
|
36
|
+
senderAddress: utils_1.optionalString,
|
|
35
37
|
}),
|
|
36
38
|
]);
|
|
37
39
|
//# sourceMappingURL=fillNonceIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/fillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAsD;AACtD,6CAA2C;
|
|
1
|
+
{"version":3,"file":"fillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/fillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAsD;AACtD,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,mCAAsB;IACtB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,SAAS;QACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;QACpC,aAAa,EAAE,sBAAc;KAC9B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2583,6 +2583,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2583
2583
|
}>]>, t.TypeC<{
|
|
2584
2584
|
intentType: t.LiteralC<"acceleration">;
|
|
2585
2585
|
txid: t.StringC;
|
|
2586
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
2586
2587
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
2587
2588
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
2588
2589
|
}>, t.PartialC<{
|
|
@@ -2889,6 +2890,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2889
2890
|
}>]>, t.TypeC<{
|
|
2890
2891
|
intentType: t.LiteralC<"fillNonce">;
|
|
2891
2892
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
2893
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
2892
2894
|
}>]>, t.PartialC<{
|
|
2893
2895
|
feeOptions: t.UnionC<[t.Type<{
|
|
2894
2896
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
|
@@ -2681,6 +2681,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2681
2681
|
}>]>, t.TypeC<{
|
|
2682
2682
|
intentType: t.LiteralC<"acceleration">;
|
|
2683
2683
|
txid: t.StringC;
|
|
2684
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
2684
2685
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
2685
2686
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
2686
2687
|
}>, t.PartialC<{
|
|
@@ -2987,6 +2988,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2987
2988
|
}>]>, t.TypeC<{
|
|
2988
2989
|
intentType: t.LiteralC<"fillNonce">;
|
|
2989
2990
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
2991
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
2990
2992
|
}>]>, t.PartialC<{
|
|
2991
2993
|
feeOptions: t.UnionC<[t.Type<{
|
|
2992
2994
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
|
@@ -12669,6 +12671,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
12669
12671
|
}>]>, t.TypeC<{
|
|
12670
12672
|
intentType: t.LiteralC<"acceleration">;
|
|
12671
12673
|
txid: t.StringC;
|
|
12674
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
12672
12675
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
12673
12676
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
12674
12677
|
}>, t.PartialC<{
|
|
@@ -12975,6 +12978,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
12975
12978
|
}>]>, t.TypeC<{
|
|
12976
12979
|
intentType: t.LiteralC<"fillNonce">;
|
|
12977
12980
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
12981
|
+
senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
12978
12982
|
}>]>, t.PartialC<{
|
|
12979
12983
|
feeOptions: t.UnionC<[t.Type<{
|
|
12980
12984
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { BaseIntent } from "./baseIntent";
|
|
3
3
|
import { intentTypes } from "./intentType";
|
|
4
|
+
import { optionalString } from "../../../utils";
|
|
4
5
|
|
|
5
6
|
export const AccelerationIntent = t.intersection([
|
|
6
7
|
BaseIntent,
|
|
7
8
|
t.type({
|
|
8
9
|
intentType: intentTypes.acceleration,
|
|
9
10
|
txid: t.string,
|
|
11
|
+
senderAddress: optionalString,
|
|
10
12
|
}),
|
|
11
13
|
]);
|
|
12
14
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { BaseIntent } from "./baseIntent";
|
|
3
|
-
import { intentTypes } from "./intentType";
|
|
4
3
|
|
|
5
4
|
export const DefiDepositIntent = t.intersection([
|
|
6
5
|
BaseIntent,
|
|
7
6
|
t.type({
|
|
8
|
-
intentType:
|
|
7
|
+
intentType: t.literal("defi-deposit"),
|
|
9
8
|
protocol: t.string,
|
|
10
9
|
// Raw amount string in base units (wei). Asset is identified by protocol, not amount.symbol.
|
|
11
10
|
amount: t.string,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { BaseIntent } from "./baseIntent";
|
|
3
|
-
import { intentTypes } from "./intentType";
|
|
4
3
|
|
|
5
4
|
export const DefiRedeemIntent = t.intersection([
|
|
6
5
|
BaseIntent,
|
|
7
6
|
t.type({
|
|
8
|
-
intentType:
|
|
7
|
+
intentType: t.literal("defi-redeem"),
|
|
9
8
|
protocol: t.string,
|
|
10
9
|
// Raw amount string in base units (wei). Asset is identified by protocol, not amount.symbol.
|
|
11
10
|
amount: t.string,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { BaseIntentWithoutNonce } from "./baseIntent";
|
|
3
3
|
import { intentTypes } from "./intentType";
|
|
4
|
+
import { optionalString } from "../../../utils";
|
|
4
5
|
|
|
5
6
|
export const FillNonceIntent = t.intersection([
|
|
6
7
|
BaseIntentWithoutNonce,
|
|
7
8
|
t.type({
|
|
8
9
|
intentType: intentTypes.fillNonce,
|
|
9
10
|
nonce: t.union([t.string, t.number]),
|
|
11
|
+
senderAddress: optionalString,
|
|
10
12
|
}),
|
|
11
13
|
]);
|
|
12
14
|
|