@bitgo/public-types 5.51.0 → 5.53.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/adaPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +69 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.js +23 -1
- package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +77 -222
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/paymentIntent.js +1 -3
- package/dist/src/schema/transactionRequest/intents/paymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +4 -2
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.js +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.js +1 -2
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +3 -18
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js +1 -2
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +154 -444
- package/dist/src/schema/wallet/freeze.d.ts +11 -0
- package/dist/src/schema/wallet/freeze.js +40 -0
- package/dist/src/schema/wallet/freeze.js.map +1 -0
- package/dist/src/schema/wallet/index.d.ts +1 -0
- package/dist/src/schema/wallet/index.js +1 -0
- package/dist/src/schema/wallet/index.js.map +1 -1
- package/dist/src/utils/getAssetsFromIntent.d.ts +1 -0
- package/dist/src/utils/getAssetsFromIntent.js +45 -0
- package/dist/src/utils/getAssetsFromIntent.js.map +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +1 -0
- package/dist/src/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/README.md +180 -8
- package/src/schema/transactionRequest/intents/aptStakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/aptUnstakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/atomStakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/atomUnstakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/atomWithdrawIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/baseIntent.ts +116 -0
- package/src/schema/transactionRequest/intents/bscDelegateIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/bscUndelegateIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/coredaoDelegateIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/coredaoUndelegateIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/cosmosStakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/dotStakingIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/dotUnstakingIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/paymentIntent.ts +2 -4
- package/src/schema/transactionRequest/intents/solClaimIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/solStakeIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/tokenApprovalIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/tonDelegateIntent.ts +2 -3
- package/src/schema/transactionRequest/intents/transferTokenIntent.ts +2 -3
- package/src/schema/transactionRequest/intents/vetStakingIntent.ts +2 -2
- package/src/schema/wallet/freeze.ts +20 -0
- package/src/schema/wallet/index.ts +1 -0
- package/src/utils/getAssetsFromIntent.ts +81 -0
- package/src/utils/index.ts +1 -0
|
@@ -47,8 +47,7 @@ export declare const AdaPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
47
47
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
48
48
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
49
49
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
50
|
-
}>]>, t.
|
|
51
|
-
intentType: t.LiteralC<"payment">;
|
|
50
|
+
}>]>, t.TypeC<{
|
|
52
51
|
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
53
52
|
address: t.PartialC<{
|
|
54
53
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
@@ -65,24 +64,10 @@ export declare const AdaPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
65
64
|
}>, t.PartialC<{
|
|
66
65
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
67
66
|
}>]>>;
|
|
67
|
+
}>, t.UnionC<[t.TypeC<{
|
|
68
|
+
intentType: t.LiteralC<"payment">;
|
|
68
69
|
}>, t.TypeC<{
|
|
69
70
|
intentType: t.LiteralC<"payment">;
|
|
70
|
-
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
71
|
-
address: t.PartialC<{
|
|
72
|
-
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
73
|
-
option: t.UnionC<[t.Type<{
|
|
74
|
-
[x: string]: unknown;
|
|
75
|
-
}, {
|
|
76
|
-
[x: string]: unknown;
|
|
77
|
-
}, unknown>, t.UndefinedC]>;
|
|
78
|
-
}>;
|
|
79
|
-
amount: t.TypeC<{
|
|
80
|
-
value: t.StringC;
|
|
81
|
-
symbol: t.StringC;
|
|
82
|
-
}>;
|
|
83
|
-
}>, t.PartialC<{
|
|
84
|
-
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
85
|
-
}>]>>;
|
|
86
71
|
isTestTransaction: t.BooleanC;
|
|
87
72
|
}>]>]>, t.TypeC<{
|
|
88
73
|
unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
|
@@ -50,10 +50,11 @@ export declare const AdaStakeClaimRewardsIntent: t.IntersectionC<[t.Intersection
|
|
|
50
50
|
}>]>, t.TypeC<{
|
|
51
51
|
stakingRequestId: t.StringC;
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
|
-
intentType: t.LiteralC<"stakeClaimRewards">;
|
|
54
53
|
amount: t.TypeC<{
|
|
55
54
|
value: t.StringC;
|
|
56
55
|
symbol: t.StringC;
|
|
57
56
|
}>;
|
|
57
|
+
}>, t.TypeC<{
|
|
58
|
+
intentType: t.LiteralC<"stakeClaimRewards">;
|
|
58
59
|
}>]>;
|
|
59
60
|
export type AdaStakeClaimRewardsIntent = t.TypeOf<typeof AdaStakeClaimRewardsIntent>;
|
|
@@ -52,10 +52,11 @@ export declare const AptStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
intentType: t.LiteralC<"stake">;
|
|
54
54
|
}>]>, t.TypeC<{
|
|
55
|
-
validatorAddress: t.StringC;
|
|
56
55
|
amount: t.TypeC<{
|
|
57
56
|
value: t.StringC;
|
|
58
57
|
symbol: t.StringC;
|
|
59
58
|
}>;
|
|
59
|
+
}>, t.TypeC<{
|
|
60
|
+
validatorAddress: t.StringC;
|
|
60
61
|
}>]>;
|
|
61
62
|
export type AptStakeIntent = t.TypeOf<typeof AptStakeIntent>;
|
|
@@ -25,13 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AptStakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const stakeIntent_1 = require("./stakeIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
exports.AptStakeIntent = t.intersection([
|
|
31
31
|
stakeIntent_1.StakeIntent,
|
|
32
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
32
33
|
t.type({
|
|
33
34
|
validatorAddress: t.string,
|
|
34
|
-
amount: amount_1.Amount,
|
|
35
35
|
}),
|
|
36
36
|
]);
|
|
37
37
|
//# sourceMappingURL=aptStakeIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aptStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B
|
|
1
|
+
{"version":3,"file":"aptStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,6CAAoD;AAKvC,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -52,10 +52,11 @@ export declare const AptUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
intentType: t.LiteralC<"unstake">;
|
|
54
54
|
}>]>, t.TypeC<{
|
|
55
|
-
validatorAddress: t.StringC;
|
|
56
55
|
amount: t.TypeC<{
|
|
57
56
|
value: t.StringC;
|
|
58
57
|
symbol: t.StringC;
|
|
59
58
|
}>;
|
|
59
|
+
}>, t.TypeC<{
|
|
60
|
+
validatorAddress: t.StringC;
|
|
60
61
|
}>]>;
|
|
61
62
|
export type AptUnstakeIntent = t.TypeOf<typeof AptUnstakeIntent>;
|
|
@@ -25,13 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AptUnstakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const unstakeIntent_1 = require("./unstakeIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
exports.AptUnstakeIntent = t.intersection([
|
|
31
31
|
unstakeIntent_1.UnstakeIntent,
|
|
32
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
32
33
|
t.type({
|
|
33
34
|
validatorAddress: t.string,
|
|
34
|
-
amount: amount_1.Amount,
|
|
35
35
|
}),
|
|
36
36
|
]);
|
|
37
37
|
//# sourceMappingURL=aptUnstakeIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aptUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"aptUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,6CAAoD;AAKvC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -60,10 +60,11 @@ export declare const AptWithdrawStakeIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
|
60
60
|
symbol: string;
|
|
61
61
|
}, unknown>, t.UndefinedC]>;
|
|
62
62
|
}>]>, t.TypeC<{
|
|
63
|
-
validatorAddress: t.StringC;
|
|
64
63
|
amount: t.TypeC<{
|
|
65
64
|
value: t.StringC;
|
|
66
65
|
symbol: t.StringC;
|
|
67
66
|
}>;
|
|
67
|
+
}>, t.TypeC<{
|
|
68
|
+
validatorAddress: t.StringC;
|
|
68
69
|
}>]>;
|
|
69
70
|
export type AptWithdrawStakeIntent = t.TypeOf<typeof AptWithdrawStakeIntent>;
|
|
@@ -25,13 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AptWithdrawStakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const withdrawIntent_1 = require("./withdrawIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
exports.AptWithdrawStakeIntent = t.intersection([
|
|
31
31
|
withdrawIntent_1.WithdrawIntent,
|
|
32
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
32
33
|
t.type({
|
|
33
34
|
validatorAddress: t.string,
|
|
34
|
-
amount: amount_1.Amount,
|
|
35
35
|
}),
|
|
36
36
|
]);
|
|
37
37
|
//# sourceMappingURL=aptWithdrawStakeIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aptWithdrawStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptWithdrawStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"aptWithdrawStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptWithdrawStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,6CAAoD;AAKvC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,+BAAc;IACd,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -47,8 +47,7 @@ export declare const AtomPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
|
47
47
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
48
48
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
49
49
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
50
|
-
}>]>, t.
|
|
51
|
-
intentType: t.LiteralC<"payment">;
|
|
50
|
+
}>]>, t.TypeC<{
|
|
52
51
|
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
53
52
|
address: t.PartialC<{
|
|
54
53
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
@@ -65,24 +64,10 @@ export declare const AtomPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
|
65
64
|
}>, t.PartialC<{
|
|
66
65
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
67
66
|
}>]>>;
|
|
67
|
+
}>, t.UnionC<[t.TypeC<{
|
|
68
|
+
intentType: t.LiteralC<"payment">;
|
|
68
69
|
}>, t.TypeC<{
|
|
69
70
|
intentType: t.LiteralC<"payment">;
|
|
70
|
-
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
71
|
-
address: t.PartialC<{
|
|
72
|
-
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
73
|
-
option: t.UnionC<[t.Type<{
|
|
74
|
-
[x: string]: unknown;
|
|
75
|
-
}, {
|
|
76
|
-
[x: string]: unknown;
|
|
77
|
-
}, unknown>, t.UndefinedC]>;
|
|
78
|
-
}>;
|
|
79
|
-
amount: t.TypeC<{
|
|
80
|
-
value: t.StringC;
|
|
81
|
-
symbol: t.StringC;
|
|
82
|
-
}>;
|
|
83
|
-
}>, t.PartialC<{
|
|
84
|
-
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
85
|
-
}>]>>;
|
|
86
71
|
isTestTransaction: t.BooleanC;
|
|
87
72
|
}>]>]>, t.TypeC<{
|
|
88
73
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
@@ -52,11 +52,12 @@ export declare const AtomStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inters
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
intentType: t.LiteralC<"stake">;
|
|
54
54
|
}>]>, t.TypeC<{
|
|
55
|
-
validatorAddress: t.StringC;
|
|
56
55
|
amount: t.TypeC<{
|
|
57
56
|
value: t.StringC;
|
|
58
57
|
symbol: t.StringC;
|
|
59
58
|
}>;
|
|
59
|
+
}>, t.TypeC<{
|
|
60
|
+
validatorAddress: t.StringC;
|
|
60
61
|
}>, t.PartialC<{
|
|
61
62
|
recipients: t.UnionC<[t.Type<({
|
|
62
63
|
address: {
|
|
@@ -25,15 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AtomStakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const recipientEntry_1 = require("./recipientEntry");
|
|
30
29
|
const utils_1 = require("../../../utils");
|
|
31
30
|
const stakeIntent_1 = require("./stakeIntent");
|
|
31
|
+
const baseIntent_1 = require("./baseIntent");
|
|
32
32
|
exports.AtomStakeIntent = t.intersection([
|
|
33
33
|
stakeIntent_1.StakeIntent,
|
|
34
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
34
35
|
t.type({
|
|
35
36
|
validatorAddress: t.string,
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
}),
|
|
38
38
|
t.partial({
|
|
39
39
|
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atomStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"atomStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,0CAA0C;AAC1C,+CAA4C;AAC5C,6CAAoD;AAKvC,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,yBAAW;IACX,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -52,11 +52,12 @@ export declare const AtomUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
intentType: t.LiteralC<"unstake">;
|
|
54
54
|
}>]>, t.TypeC<{
|
|
55
|
-
validatorAddress: t.StringC;
|
|
56
55
|
amount: t.TypeC<{
|
|
57
56
|
value: t.StringC;
|
|
58
57
|
symbol: t.StringC;
|
|
59
58
|
}>;
|
|
59
|
+
}>, t.TypeC<{
|
|
60
|
+
validatorAddress: t.StringC;
|
|
60
61
|
}>, t.PartialC<{
|
|
61
62
|
recipients: t.UnionC<[t.Type<({
|
|
62
63
|
address: {
|
|
@@ -25,15 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AtomUnstakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const unstakeIntent_1 = require("./unstakeIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
const recipientEntry_1 = require("./recipientEntry");
|
|
31
31
|
const utils_1 = require("../../../utils");
|
|
32
32
|
exports.AtomUnstakeIntent = t.intersection([
|
|
33
33
|
unstakeIntent_1.UnstakeIntent,
|
|
34
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
34
35
|
t.type({
|
|
35
36
|
validatorAddress: t.string,
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
}),
|
|
38
38
|
t.partial({
|
|
39
39
|
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atomUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"atomUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,6CAAoD;AACpD,qDAAkD;AAClD,0CAA0C;AAK7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,6BAAa;IACb,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -60,10 +60,11 @@ export declare const AtomWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
|
60
60
|
symbol: string;
|
|
61
61
|
}, unknown>, t.UndefinedC]>;
|
|
62
62
|
}>]>, t.TypeC<{
|
|
63
|
-
validatorAddress: t.StringC;
|
|
64
63
|
amount: t.TypeC<{
|
|
65
64
|
value: t.StringC;
|
|
66
65
|
symbol: t.StringC;
|
|
67
66
|
}>;
|
|
67
|
+
}>, t.TypeC<{
|
|
68
|
+
validatorAddress: t.StringC;
|
|
68
69
|
}>]>;
|
|
69
70
|
export type AtomWithdrawIntent = t.TypeOf<typeof AtomWithdrawIntent>;
|
|
@@ -25,13 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AtomWithdrawIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const withdrawIntent_1 = require("./withdrawIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
exports.AtomWithdrawIntent = t.intersection([
|
|
31
31
|
withdrawIntent_1.WithdrawIntent,
|
|
32
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
32
33
|
t.type({
|
|
33
34
|
validatorAddress: t.string,
|
|
34
|
-
amount: amount_1.Amount,
|
|
35
35
|
}),
|
|
36
36
|
]);
|
|
37
37
|
//# sourceMappingURL=atomWithdrawIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atomWithdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomWithdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"atomWithdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomWithdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,6CAAoD;AAKvC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,+BAAc;IACd,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -98,3 +98,72 @@ export declare const BaseIntentWithoutNonce: t.IntersectionC<[t.TypeC<{
|
|
|
98
98
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
99
99
|
}>]>;
|
|
100
100
|
export type BaseIntentWithoutNonce = t.TypeOf<typeof BaseIntentWithoutNonce>;
|
|
101
|
+
export declare const BaseIntentWithRecipients: t.TypeC<{
|
|
102
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
103
|
+
address: t.PartialC<{
|
|
104
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
105
|
+
option: t.UnionC<[t.Type<{
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
}, {
|
|
108
|
+
[x: string]: unknown;
|
|
109
|
+
}, unknown>, t.UndefinedC]>;
|
|
110
|
+
}>;
|
|
111
|
+
amount: t.TypeC<{
|
|
112
|
+
value: t.StringC;
|
|
113
|
+
symbol: t.StringC;
|
|
114
|
+
}>;
|
|
115
|
+
}>, t.PartialC<{
|
|
116
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
117
|
+
}>]>>;
|
|
118
|
+
}>;
|
|
119
|
+
export type BaseIntentWithRecipients = t.TypeOf<typeof BaseIntentWithRecipients>;
|
|
120
|
+
export declare const BaseIntentWithTokenRecipients: t.TypeC<{
|
|
121
|
+
recipients: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
122
|
+
address: t.PartialC<{
|
|
123
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
124
|
+
option: t.UnionC<[t.Type<{
|
|
125
|
+
[x: string]: unknown;
|
|
126
|
+
}, {
|
|
127
|
+
[x: string]: unknown;
|
|
128
|
+
}, unknown>, t.UndefinedC]>;
|
|
129
|
+
}>;
|
|
130
|
+
amount: t.TypeC<{
|
|
131
|
+
value: t.StringC;
|
|
132
|
+
symbol: t.StringC;
|
|
133
|
+
}>;
|
|
134
|
+
}>, t.PartialC<{
|
|
135
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
136
|
+
}>]>, t.PartialC<{
|
|
137
|
+
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
138
|
+
tokenQuantity: t.StringC;
|
|
139
|
+
tokenType: t.StringC;
|
|
140
|
+
}>, t.PartialC<{
|
|
141
|
+
tokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
142
|
+
}>]>, t.TypeC<{
|
|
143
|
+
tokenName: t.StringC;
|
|
144
|
+
}>, t.PartialC<{
|
|
145
|
+
tokenContractAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
146
|
+
decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
147
|
+
}>]>;
|
|
148
|
+
}>]>>;
|
|
149
|
+
}>;
|
|
150
|
+
export type BaseIntentWithTokenRecipients = t.TypeOf<typeof BaseIntentWithTokenRecipients>;
|
|
151
|
+
export declare const BaseIntentWithTokenData: t.TypeC<{
|
|
152
|
+
recipients: t.ArrayC<t.PartialC<{
|
|
153
|
+
tokenData: t.PartialC<{
|
|
154
|
+
tokenName: t.StringC;
|
|
155
|
+
}>;
|
|
156
|
+
}>>;
|
|
157
|
+
}>;
|
|
158
|
+
export type BaseIntentWithTokenData = t.TypeOf<typeof BaseIntentWithTokenData>;
|
|
159
|
+
export declare const BaseIntentWithTokenName: t.TypeC<{
|
|
160
|
+
tokenName: t.StringC;
|
|
161
|
+
}>;
|
|
162
|
+
export type BaseIntentWithTokenName = t.TypeOf<typeof BaseIntentWithTokenName>;
|
|
163
|
+
export declare const BaseIntentWithAmount: t.TypeC<{
|
|
164
|
+
amount: t.TypeC<{
|
|
165
|
+
value: t.StringC;
|
|
166
|
+
symbol: t.StringC;
|
|
167
|
+
}>;
|
|
168
|
+
}>;
|
|
169
|
+
export type BaseIntentWithAmount = t.TypeOf<typeof BaseIntentWithAmount>;
|
|
@@ -23,10 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.BaseIntentWithoutNonce = exports.BaseIntent = void 0;
|
|
26
|
+
exports.BaseIntentWithAmount = exports.BaseIntentWithTokenName = exports.BaseIntentWithTokenData = exports.BaseIntentWithTokenRecipients = exports.BaseIntentWithRecipients = exports.BaseIntentWithoutNonce = exports.BaseIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const intentType_1 = require("./intentType");
|
|
29
29
|
const utils_1 = require("../../../utils");
|
|
30
|
+
const recipientEntry_1 = require("./recipientEntry");
|
|
31
|
+
const tokenRecipientEntry_1 = require("./tokenRecipientEntry");
|
|
32
|
+
const amount_1 = require("./amount");
|
|
30
33
|
exports.BaseIntent = t.intersection([
|
|
31
34
|
t.type({
|
|
32
35
|
intentType: intentType_1.IntentType,
|
|
@@ -46,4 +49,23 @@ exports.BaseIntentWithoutNonce = t.intersection([
|
|
|
46
49
|
comment: utils_1.optionalString,
|
|
47
50
|
}),
|
|
48
51
|
]);
|
|
52
|
+
exports.BaseIntentWithRecipients = t.type({
|
|
53
|
+
recipients: t.array(recipientEntry_1.RecipientEntry),
|
|
54
|
+
});
|
|
55
|
+
exports.BaseIntentWithTokenRecipients = t.type({
|
|
56
|
+
recipients: t.array(tokenRecipientEntry_1.TokenRecipientEntry),
|
|
57
|
+
});
|
|
58
|
+
exports.BaseIntentWithTokenData = t.type({
|
|
59
|
+
recipients: t.array(t.partial({
|
|
60
|
+
tokenData: t.partial({
|
|
61
|
+
tokenName: t.string,
|
|
62
|
+
}),
|
|
63
|
+
})),
|
|
64
|
+
});
|
|
65
|
+
exports.BaseIntentWithTokenName = t.type({
|
|
66
|
+
tokenName: t.string,
|
|
67
|
+
});
|
|
68
|
+
exports.BaseIntentWithAmount = t.type({
|
|
69
|
+
amount: amount_1.Amount,
|
|
70
|
+
});
|
|
49
71
|
//# sourceMappingURL=baseIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/baseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,0CAA0D;
|
|
1
|
+
{"version":3,"file":"baseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/baseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,0CAA0D;AAC1D,qDAAkD;AAClD,+DAA4D;AAC5D,qCAAkC;AAKrB,QAAA,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,uBAAU;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,sBAAc;QAC1B,OAAO,EAAE,sBAAc;QACvB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;KAC/C,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,uBAAU;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,sBAAc;QAC1B,OAAO,EAAE,sBAAc;KACxB,CAAC;CACH,CAAC,CAAC;AAiCU,QAAA,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC;CACpC,CAAC,CAAC;AAoBU,QAAA,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,yCAAmB,CAAC;CACzC,CAAC,CAAC;AAUU,QAAA,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,KAAK,CACjB,CAAC,CAAC,OAAO,CAAC;QACR,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC;YACnB,SAAS,EAAE,CAAC,CAAC,MAAM;SACpB,CAAC;KACH,CAAC,CACH;CACF,CAAC,CAAC;AAeU,QAAA,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAC;AAmBU,QAAA,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,MAAM,EAAE,eAAM;CACf,CAAC,CAAC"}
|
|
@@ -50,12 +50,13 @@ export declare const BscDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
|
50
50
|
}>]>, t.TypeC<{
|
|
51
51
|
stakingRequestId: t.StringC;
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
|
-
intentType: t.LiteralC<"delegate">;
|
|
54
|
-
validatorAddress: t.StringC;
|
|
55
53
|
amount: t.TypeC<{
|
|
56
54
|
value: t.StringC;
|
|
57
55
|
symbol: t.StringC;
|
|
58
56
|
}>;
|
|
57
|
+
}>, t.TypeC<{
|
|
58
|
+
intentType: t.LiteralC<"delegate">;
|
|
59
|
+
validatorAddress: t.StringC;
|
|
59
60
|
}>, t.PartialC<{
|
|
60
61
|
relayerFee: t.StringC;
|
|
61
62
|
delegateVotePower: t.StringC;
|
|
@@ -25,15 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.BscDelegateIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const baseStakeIntent_1 = require("./baseStakeIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
const intentType_1 = require("./intentType");
|
|
31
31
|
exports.BscDelegateIntent = t.intersection([
|
|
32
32
|
baseStakeIntent_1.BaseStakeIntent,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
33
34
|
t.type({
|
|
34
35
|
intentType: intentType_1.intentTypes.delegate,
|
|
35
36
|
validatorAddress: t.string,
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
}),
|
|
38
38
|
t.partial({
|
|
39
39
|
relayerFee: t.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bscDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"bscDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAAoD;AACpD,6CAA2C;AAK9B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,iCAAe;IACf,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAER,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,iBAAiB,EAAE,CAAC,CAAC,MAAM;KAC5B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -50,10 +50,11 @@ export declare const BscStakeClaimRewardsIntent: t.IntersectionC<[t.Intersection
|
|
|
50
50
|
}>]>, t.TypeC<{
|
|
51
51
|
stakingRequestId: t.StringC;
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
|
-
intentType: t.LiteralC<"stakeClaimRewards">;
|
|
54
53
|
amount: t.TypeC<{
|
|
55
54
|
value: t.StringC;
|
|
56
55
|
symbol: t.StringC;
|
|
57
56
|
}>;
|
|
57
|
+
}>, t.TypeC<{
|
|
58
|
+
intentType: t.LiteralC<"stakeClaimRewards">;
|
|
58
59
|
}>]>;
|
|
59
60
|
export type BscStakeClaimRewardsIntent = t.TypeOf<typeof BscStakeClaimRewardsIntent>;
|
|
@@ -50,12 +50,13 @@ export declare const BscUnDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.In
|
|
|
50
50
|
}>]>, t.TypeC<{
|
|
51
51
|
stakingRequestId: t.StringC;
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
|
-
intentType: t.LiteralC<"undelegate">;
|
|
54
|
-
validatorAddress: t.StringC;
|
|
55
53
|
amount: t.TypeC<{
|
|
56
54
|
value: t.StringC;
|
|
57
55
|
symbol: t.StringC;
|
|
58
56
|
}>;
|
|
57
|
+
}>, t.TypeC<{
|
|
58
|
+
intentType: t.LiteralC<"undelegate">;
|
|
59
|
+
validatorAddress: t.StringC;
|
|
59
60
|
}>, t.PartialC<{
|
|
60
61
|
relayerFee: t.StringC;
|
|
61
62
|
}>]>;
|
|
@@ -25,15 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.BscUnDelegateIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const amount_1 = require("./amount");
|
|
29
28
|
const baseStakeIntent_1 = require("./baseStakeIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
const intentType_1 = require("./intentType");
|
|
31
31
|
exports.BscUnDelegateIntent = t.intersection([
|
|
32
32
|
baseStakeIntent_1.BaseStakeIntent,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
33
34
|
t.type({
|
|
34
35
|
intentType: intentType_1.intentTypes.undelegate,
|
|
35
36
|
validatorAddress: t.string,
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
}),
|
|
38
38
|
t.partial({
|
|
39
39
|
relayerFee: t.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bscUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"bscUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/bscUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAAoD;AACpD,6CAA2C;AAK9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAER,UAAU,EAAE,CAAC,CAAC,MAAM;KACrB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -52,11 +52,12 @@ export declare const CoreDaoDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
calldata: t.StringC;
|
|
54
54
|
}>]>, t.TypeC<{
|
|
55
|
-
intentType: t.LiteralC<"delegate">;
|
|
56
|
-
validatorAddress: t.StringC;
|
|
57
55
|
amount: t.TypeC<{
|
|
58
56
|
value: t.StringC;
|
|
59
57
|
symbol: t.StringC;
|
|
60
58
|
}>;
|
|
59
|
+
}>, t.TypeC<{
|
|
60
|
+
intentType: t.LiteralC<"delegate">;
|
|
61
|
+
validatorAddress: t.StringC;
|
|
61
62
|
}>]>;
|
|
62
63
|
export type CoreDaoDelegateIntent = t.TypeOf<typeof CoreDaoDelegateIntent>;
|
|
@@ -26,14 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.CoreDaoDelegateIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
|
|
29
|
-
const
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
const intentType_1 = require("./intentType");
|
|
31
31
|
exports.CoreDaoDelegateIntent = t.intersection([
|
|
32
32
|
baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
33
34
|
t.type({
|
|
34
35
|
intentType: intentType_1.intentTypes.delegate,
|
|
35
36
|
validatorAddress: t.string,
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
}),
|
|
38
38
|
]);
|
|
39
39
|
//# sourceMappingURL=coredaoDelegateIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coredaoDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/coredaoDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"coredaoDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/coredaoDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,6CAAoD;AACpD,6CAA2C;AAW9B,QAAA,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,yDAA2B;IAC3B,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -52,11 +52,12 @@ export declare const CoreDaoUndelegateIntent: t.IntersectionC<[t.IntersectionC<[
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
calldata: t.StringC;
|
|
54
54
|
}>]>, t.TypeC<{
|
|
55
|
-
intentType: t.LiteralC<"undelegate">;
|
|
56
|
-
validatorAddress: t.StringC;
|
|
57
55
|
amount: t.TypeC<{
|
|
58
56
|
value: t.StringC;
|
|
59
57
|
symbol: t.StringC;
|
|
60
58
|
}>;
|
|
59
|
+
}>, t.TypeC<{
|
|
60
|
+
intentType: t.LiteralC<"undelegate">;
|
|
61
|
+
validatorAddress: t.StringC;
|
|
61
62
|
}>]>;
|
|
62
63
|
export type CoreDaoUndelegateIntent = t.TypeOf<typeof CoreDaoUndelegateIntent>;
|
|
@@ -26,14 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.CoreDaoUndelegateIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
|
|
29
|
-
const
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
const intentType_1 = require("./intentType");
|
|
31
31
|
exports.CoreDaoUndelegateIntent = t.intersection([
|
|
32
32
|
baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
33
34
|
t.type({
|
|
34
35
|
intentType: intentType_1.intentTypes.undelegate,
|
|
35
36
|
validatorAddress: t.string,
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
}),
|
|
38
38
|
]);
|
|
39
39
|
//# sourceMappingURL=coredaoUndelegateIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coredaoUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/coredaoUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"coredaoUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/coredaoUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,6CAAoD;AACpD,6CAA2C;AAW9B,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,yDAA2B;IAC3B,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
|