@bitgo/public-types 2.42.0 → 3.0.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/bscDelegateIntent.d.ts +3 -4
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.js +4 -1
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +2 -4
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.js +3 -1
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/{bscWithdrawIntent.d.ts → bscWithdrawUndelegateIntent.d.ts} +5 -2
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/index.js +1 -1
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +9 -9
- package/dist/src/schema/transactionRequest/intents/intent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/package.json +2 -2
- package/src/schema/transactionRequest/intents/bscDelegateIntent.ts +5 -1
- package/src/schema/transactionRequest/intents/bscUndelegateIntent.ts +4 -1
- package/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.ts +17 -0
- package/src/schema/transactionRequest/intents/index.ts +1 -1
- package/src/schema/transactionRequest/intents/intent.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.js +0 -6
- package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.js.map +0 -1
- package/src/schema/transactionRequest/intents/bscWithdrawIntent.ts +0 -9
@@ -43,9 +43,8 @@ export declare const BscDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
43
43
|
value: t.StringC;
|
44
44
|
symbol: t.StringC;
|
45
45
|
}>;
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
}>;
|
46
|
+
}>, t.PartialC<{
|
47
|
+
relayerFee: t.StringC;
|
48
|
+
delegateVotePower: t.StringC;
|
50
49
|
}>]>;
|
51
50
|
export type BscDelegateIntent = t.TypeOf<typeof BscDelegateIntent>;
|
@@ -34,7 +34,10 @@ exports.BscDelegateIntent = t.intersection([
|
|
34
34
|
intentType: intentType_1.intentTypes.delegate,
|
35
35
|
validatorAddress: t.string,
|
36
36
|
amount: amount_1.Amount,
|
37
|
-
|
37
|
+
}),
|
38
|
+
t.partial({
|
39
|
+
relayerFee: t.string,
|
40
|
+
delegateVotePower: t.string,
|
38
41
|
}),
|
39
42
|
]);
|
40
43
|
//# sourceMappingURL=bscDelegateIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bscDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,uDAAoD;AACpD,6CAA2C;AAK9B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;
|
1
|
+
{"version":3,"file":"bscDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,uDAAoD;AACpD,6CAA2C;AAK9B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAER,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,iBAAiB,EAAE,CAAC,CAAC,MAAM;KAC5B,CAAC;CACH,CAAC,CAAC"}
|
@@ -43,9 +43,7 @@ export declare const BscUnDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.In
|
|
43
43
|
value: t.StringC;
|
44
44
|
symbol: t.StringC;
|
45
45
|
}>;
|
46
|
-
|
47
|
-
|
48
|
-
symbol: t.StringC;
|
49
|
-
}>;
|
46
|
+
}>, t.PartialC<{
|
47
|
+
relayerFee: t.StringC;
|
50
48
|
}>]>;
|
51
49
|
export type BscUnDelegateIntent = t.TypeOf<typeof BscUnDelegateIntent>;
|
@@ -34,7 +34,9 @@ exports.BscUnDelegateIntent = t.intersection([
|
|
34
34
|
intentType: intentType_1.intentTypes.undelegate,
|
35
35
|
validatorAddress: t.string,
|
36
36
|
amount: amount_1.Amount,
|
37
|
-
|
37
|
+
}),
|
38
|
+
t.partial({
|
39
|
+
relayerFee: t.string,
|
38
40
|
}),
|
39
41
|
]);
|
40
42
|
//# sourceMappingURL=bscUndelegateIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bscUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,uDAAoD;AACpD,6CAA2C;AAK9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;
|
1
|
+
{"version":3,"file":"bscUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,uDAAoD;AACpD,6CAA2C;AAK9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAER,UAAU,EAAE,CAAC,CAAC,MAAM;KACrB,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const
|
2
|
+
export declare const BscWithdrawUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -46,5 +46,8 @@ export declare const BscWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
46
46
|
value: string;
|
47
47
|
symbol: string;
|
48
48
|
}, unknown>, t.UndefinedC]>;
|
49
|
+
}>]>, t.TypeC<{
|
50
|
+
validatorAddress: t.StringC;
|
51
|
+
requestNumber: t.NumberC;
|
49
52
|
}>]>;
|
50
|
-
export type
|
53
|
+
export type BscWithdrawUndelegateIntent = t.TypeOf<typeof BscWithdrawUndelegateIntent>;
|
@@ -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.BscWithdrawUndelegateIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const withdrawIntent_1 = require("./withdrawIntent");
|
29
|
+
exports.BscWithdrawUndelegateIntent = t.intersection([
|
30
|
+
withdrawIntent_1.WithdrawIntent,
|
31
|
+
t.type({
|
32
|
+
validatorAddress: t.string,
|
33
|
+
requestNumber: t.number,
|
34
|
+
}),
|
35
|
+
]);
|
36
|
+
//# sourceMappingURL=bscWithdrawUndelegateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"bscWithdrawUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAKrC,QAAA,2BAA2B,GAAG,CAAC,CAAC,YAAY,CAAC;IACxD,+BAAc;IACd,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC"}
|
@@ -20,7 +20,7 @@ export * from "./baseStakeIntent";
|
|
20
20
|
export * from "./bscDelegateIntent";
|
21
21
|
export * from "./bscStakeClaimRewardsIntent";
|
22
22
|
export * from "./bscUndelegateIntent";
|
23
|
-
export * from "./
|
23
|
+
export * from "./bscWithdrawUndelegateIntent";
|
24
24
|
export * from "./consolidateTokenIntent";
|
25
25
|
export * from "./cosmosPaymentIntent";
|
26
26
|
export * from "./cosmosStakeIntent";
|
@@ -36,7 +36,7 @@ __exportStar(require("./baseStakeIntent"), exports);
|
|
36
36
|
__exportStar(require("./bscDelegateIntent"), exports);
|
37
37
|
__exportStar(require("./bscStakeClaimRewardsIntent"), exports);
|
38
38
|
__exportStar(require("./bscUndelegateIntent"), exports);
|
39
|
-
__exportStar(require("./
|
39
|
+
__exportStar(require("./bscWithdrawUndelegateIntent"), exports);
|
40
40
|
__exportStar(require("./consolidateTokenIntent"), exports);
|
41
41
|
__exportStar(require("./cosmosPaymentIntent"), exports);
|
42
42
|
__exportStar(require("./cosmosStakeIntent"), 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,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,
|
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,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,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,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,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,mDAAiC"}
|
@@ -531,10 +531,9 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
531
531
|
value: t.StringC;
|
532
532
|
symbol: t.StringC;
|
533
533
|
}>;
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
}>;
|
534
|
+
}>, t.PartialC<{
|
535
|
+
relayerFee: t.StringC;
|
536
|
+
delegateVotePower: t.StringC;
|
538
537
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
539
538
|
intentType: t.KeyofC<{
|
540
539
|
payment: t.LiteralC<"payment">;
|
@@ -579,11 +578,9 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
579
578
|
value: t.StringC;
|
580
579
|
symbol: t.StringC;
|
581
580
|
}>;
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
}>;
|
586
|
-
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
581
|
+
}>, t.PartialC<{
|
582
|
+
relayerFee: t.StringC;
|
583
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
587
584
|
intentType: t.KeyofC<{
|
588
585
|
payment: t.LiteralC<"payment">;
|
589
586
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -630,6 +627,9 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
630
627
|
value: string;
|
631
628
|
symbol: string;
|
632
629
|
}, unknown>, t.UndefinedC]>;
|
630
|
+
}>]>, t.TypeC<{
|
631
|
+
validatorAddress: t.StringC;
|
632
|
+
requestNumber: t.NumberC;
|
633
633
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
634
634
|
intentType: t.KeyofC<{
|
635
635
|
payment: t.LiteralC<"payment">;
|
@@ -34,7 +34,7 @@ const atomUnstakeIntent_1 = require("./atomUnstakeIntent");
|
|
34
34
|
const atomWithdrawIntent_1 = require("./atomWithdrawIntent");
|
35
35
|
const bscDelegateIntent_1 = require("./bscDelegateIntent");
|
36
36
|
const bscUndelegateIntent_1 = require("./bscUndelegateIntent");
|
37
|
-
const
|
37
|
+
const bscWithdrawUndelegateIntent_1 = require("./bscWithdrawUndelegateIntent");
|
38
38
|
const cosmosPaymentIntent_1 = require("./cosmosPaymentIntent");
|
39
39
|
const cosmosStakeIntent_1 = require("./cosmosStakeIntent");
|
40
40
|
const cosmosSwitchValidatorIntent_1 = require("./cosmosSwitchValidatorIntent");
|
@@ -92,7 +92,7 @@ exports.TransactionIntent = t.union([
|
|
92
92
|
atomWithdrawIntent_1.AtomWithdrawIntent,
|
93
93
|
bscDelegateIntent_1.BscDelegateIntent,
|
94
94
|
bscUndelegateIntent_1.BscUnDelegateIntent,
|
95
|
-
|
95
|
+
bscWithdrawUndelegateIntent_1.BscWithdrawUndelegateIntent,
|
96
96
|
cosmosPaymentIntent_1.CosmosPaymentIntent,
|
97
97
|
cosmosStakeIntent_1.CosmosStakeIntent,
|
98
98
|
cosmosSwitchValidatorIntent_1.CosmosSwitchValidatorIntent,
|
@@ -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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D
|
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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+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,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAEjD,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,qCAAiB;IACjB,yCAAmB;IACnB,yDAA2B;IAC3B,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,+BAAc;IACd,mCAAgB;IAChB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IAIpB,uBAAU;CACX,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bitgo/public-types",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0",
|
4
4
|
"description": "Collection of types exposed externally as part of the BitGo public API",
|
5
5
|
"license": "UNLICENSED",
|
6
6
|
"author": "",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"dependencies": {
|
25
25
|
"@api-ts/io-ts-http": "1.0.0",
|
26
26
|
"fp-ts": "2.16.2",
|
27
|
-
"io-ts": "2.1.
|
27
|
+
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
|
28
28
|
"io-ts-types": "0.5.16",
|
29
29
|
"monocle-ts": "2.3.13",
|
30
30
|
"newtype-ts": "0.3.5"
|
@@ -12,7 +12,11 @@ export const BscDelegateIntent = t.intersection([
|
|
12
12
|
intentType: intentTypes.delegate,
|
13
13
|
validatorAddress: t.string,
|
14
14
|
amount: Amount,
|
15
|
-
|
15
|
+
}),
|
16
|
+
t.partial({
|
17
|
+
// Add optional properties here
|
18
|
+
relayerFee: t.string,
|
19
|
+
delegateVotePower: t.string,
|
16
20
|
}),
|
17
21
|
]);
|
18
22
|
|
@@ -12,7 +12,10 @@ export const BscUnDelegateIntent = t.intersection([
|
|
12
12
|
intentType: intentTypes.undelegate,
|
13
13
|
validatorAddress: t.string,
|
14
14
|
amount: Amount,
|
15
|
-
|
15
|
+
}),
|
16
|
+
t.partial({
|
17
|
+
// Add optional properties here
|
18
|
+
relayerFee: t.string,
|
16
19
|
}),
|
17
20
|
]);
|
18
21
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { WithdrawIntent } from "./withdrawIntent";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @title BSC Withdraw Intent
|
6
|
+
*/
|
7
|
+
export const BscWithdrawUndelegateIntent = t.intersection([
|
8
|
+
WithdrawIntent,
|
9
|
+
t.type({
|
10
|
+
validatorAddress: t.string,
|
11
|
+
requestNumber: t.number,
|
12
|
+
}),
|
13
|
+
]);
|
14
|
+
|
15
|
+
export type BscWithdrawUndelegateIntent = t.TypeOf<
|
16
|
+
typeof BscWithdrawUndelegateIntent
|
17
|
+
>;
|
@@ -20,7 +20,7 @@ export * from "./baseStakeIntent";
|
|
20
20
|
export * from "./bscDelegateIntent";
|
21
21
|
export * from "./bscStakeClaimRewardsIntent";
|
22
22
|
export * from "./bscUndelegateIntent";
|
23
|
-
export * from "./
|
23
|
+
export * from "./bscWithdrawUndelegateIntent";
|
24
24
|
export * from "./consolidateTokenIntent";
|
25
25
|
export * from "./cosmosPaymentIntent";
|
26
26
|
export * from "./cosmosStakeIntent";
|
@@ -8,7 +8,7 @@ import { AtomUnstakeIntent } from "./atomUnstakeIntent";
|
|
8
8
|
import { AtomWithdrawIntent } from "./atomWithdrawIntent";
|
9
9
|
import { BscDelegateIntent } from "./bscDelegateIntent";
|
10
10
|
import { BscUnDelegateIntent } from "./bscUndelegateIntent";
|
11
|
-
import {
|
11
|
+
import { BscWithdrawUndelegateIntent } from "./bscWithdrawUndelegateIntent";
|
12
12
|
import { CosmosPaymentIntent } from "./cosmosPaymentIntent";
|
13
13
|
import { CosmosStakeIntent } from "./cosmosStakeIntent";
|
14
14
|
import { CosmosSwitchValidatorIntent } from "./cosmosSwitchValidatorIntent";
|
@@ -67,7 +67,7 @@ export const TransactionIntent = t.union([
|
|
67
67
|
AtomWithdrawIntent,
|
68
68
|
BscDelegateIntent,
|
69
69
|
BscUnDelegateIntent,
|
70
|
-
|
70
|
+
BscWithdrawUndelegateIntent,
|
71
71
|
CosmosPaymentIntent,
|
72
72
|
CosmosStakeIntent,
|
73
73
|
CosmosSwitchValidatorIntent,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BscWithdrawIntent = void 0;
|
4
|
-
const withdrawIntent_1 = require("./withdrawIntent");
|
5
|
-
exports.BscWithdrawIntent = withdrawIntent_1.WithdrawIntent;
|
6
|
-
//# sourceMappingURL=bscWithdrawIntent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"bscWithdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscWithdrawIntent.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAKrC,QAAA,iBAAiB,GAAG,+BAAc,CAAC"}
|