@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 CosmosPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.In
|
|
|
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 CosmosPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.In
|
|
|
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]>;
|
|
@@ -50,12 +50,13 @@ export declare const CosmosStakeIntent: 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
|
recipients: t.UnionC<[t.Type<({
|
|
61
62
|
address: {
|
|
@@ -26,16 +26,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.CosmosStakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseStakeIntent_1 = require("./baseStakeIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
29
30
|
const intentType_1 = require("./intentType");
|
|
30
|
-
const amount_1 = require("./amount");
|
|
31
31
|
const recipientEntry_1 = require("./recipientEntry");
|
|
32
32
|
const utils_1 = require("../../../utils");
|
|
33
33
|
exports.CosmosStakeIntent = t.intersection([
|
|
34
34
|
baseStakeIntent_1.BaseStakeIntent,
|
|
35
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
35
36
|
t.type({
|
|
36
37
|
intentType: intentType_1.intentTypes.delegate,
|
|
37
38
|
validatorAddress: t.string,
|
|
38
|
-
amount: amount_1.Amount,
|
|
39
39
|
}),
|
|
40
40
|
t.partial({
|
|
41
41
|
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmosStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"cosmosStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAAoD;AACpD,6CAA2C;AAC3C,qDAAkD;AAClD,0CAA0C;AAK7B,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;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -50,11 +50,12 @@ export declare const CosmosSwitchValidatorIntent: t.IntersectionC<[t.Intersectio
|
|
|
50
50
|
}>]>, t.TypeC<{
|
|
51
51
|
stakingRequestId: t.StringC;
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
|
-
intentType: t.LiteralC<"switchValidator">;
|
|
54
53
|
amount: t.TypeC<{
|
|
55
54
|
value: t.StringC;
|
|
56
55
|
symbol: t.StringC;
|
|
57
56
|
}>;
|
|
57
|
+
}>, t.TypeC<{
|
|
58
|
+
intentType: t.LiteralC<"switchValidator">;
|
|
58
59
|
validatorAddress: t.StringC;
|
|
59
60
|
destValidatorAddress: t.StringC;
|
|
60
61
|
}>]>;
|
|
@@ -50,12 +50,13 @@ export declare const CosmosUnstakeIntent: 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
|
recipients: t.UnionC<[t.Type<({
|
|
61
62
|
address: {
|
|
@@ -26,16 +26,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.CosmosUnstakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseStakeIntent_1 = require("./baseStakeIntent");
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
29
30
|
const intentType_1 = require("./intentType");
|
|
30
|
-
const amount_1 = require("./amount");
|
|
31
31
|
const recipientEntry_1 = require("./recipientEntry");
|
|
32
32
|
const utils_1 = require("../../../utils");
|
|
33
33
|
exports.CosmosUnstakeIntent = t.intersection([
|
|
34
34
|
baseStakeIntent_1.BaseStakeIntent,
|
|
35
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
35
36
|
t.type({
|
|
36
37
|
intentType: intentType_1.intentTypes.undelegate,
|
|
37
38
|
validatorAddress: t.string,
|
|
38
|
-
amount: amount_1.Amount,
|
|
39
39
|
}),
|
|
40
40
|
t.partial({
|
|
41
41
|
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmosUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"cosmosUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAAoD;AACpD,6CAA2C;AAC3C,qDAAkD;AAClD,0CAA0C;AAK7B,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;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -47,8 +47,7 @@ export declare const DotPaymentIntent: 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 DotPaymentIntent: 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.IntersectionC<[t.PartialC<{
|
|
88
73
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
@@ -72,6 +72,7 @@ export declare const DotStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
72
72
|
value: t.StringC;
|
|
73
73
|
symbol: t.StringC;
|
|
74
74
|
}>;
|
|
75
|
+
}>, t.TypeC<{
|
|
75
76
|
stakingProxy: t.StringC;
|
|
76
77
|
}>, t.PartialC<{
|
|
77
78
|
addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
@@ -26,14 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.DotStakingIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const dotAccountBaseBuildOptions_1 = require("./dotAccountBaseBuildOptions");
|
|
29
|
-
const amount_1 = require("./amount");
|
|
30
29
|
const stakeIntent_1 = require("./stakeIntent");
|
|
30
|
+
const baseIntent_1 = require("./baseIntent");
|
|
31
31
|
const utils_1 = require("../../../utils");
|
|
32
32
|
exports.DotStakingIntent = t.intersection([
|
|
33
33
|
stakeIntent_1.StakeIntent,
|
|
34
34
|
dotAccountBaseBuildOptions_1.DotAccountBaseBuildOptions,
|
|
35
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
35
36
|
t.type({
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
stakingProxy: t.string,
|
|
38
38
|
}),
|
|
39
39
|
t.partial({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dotStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E
|
|
1
|
+
{"version":3,"file":"dotStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,+CAA4C;AAC5C,6CAAoD;AACpD,0CAAiD;AAKpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,uDAA0B;IAC1B,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;QAC3B,QAAQ,EAAE,uBAAe;KAC1B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -72,6 +72,7 @@ export declare const DotUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
|
72
72
|
value: t.StringC;
|
|
73
73
|
symbol: t.StringC;
|
|
74
74
|
}>;
|
|
75
|
+
}>, t.TypeC<{
|
|
75
76
|
stakingProxy: t.StringC;
|
|
76
77
|
}>, t.PartialC<{
|
|
77
78
|
stopStaking: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
@@ -27,13 +27,13 @@ exports.DotUnstakingIntent = void 0;
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const unstakeIntent_1 = require("./unstakeIntent");
|
|
29
29
|
const dotAccountBaseBuildOptions_1 = require("./dotAccountBaseBuildOptions");
|
|
30
|
-
const
|
|
30
|
+
const baseIntent_1 = require("./baseIntent");
|
|
31
31
|
const utils_1 = require("../../../utils");
|
|
32
32
|
exports.DotUnstakingIntent = t.intersection([
|
|
33
33
|
unstakeIntent_1.UnstakeIntent,
|
|
34
34
|
dotAccountBaseBuildOptions_1.DotAccountBaseBuildOptions,
|
|
35
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
35
36
|
t.type({
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
stakingProxy: t.string,
|
|
38
38
|
}),
|
|
39
39
|
t.partial({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dotUnstakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotUnstakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,6EAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"dotUnstakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotUnstakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,6EAA0E;AAC1E,6CAAoD;AACpD,0CAAiD;AAKpC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,6BAAa;IACb,uDAA0B;IAC1B,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,WAAW,EAAE,uBAAe;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -47,8 +47,7 @@ export declare const EthPaymentIntent: 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 EthPaymentIntent: 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.IntersectionC<[t.PartialC<{
|
|
88
73
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
@@ -48,7 +48,6 @@ export declare const EthTransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
|
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
50
|
}>]>, t.TypeC<{
|
|
51
|
-
intentType: t.LiteralC<"transferToken">;
|
|
52
51
|
recipients: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
53
52
|
address: t.PartialC<{
|
|
54
53
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
@@ -77,6 +76,8 @@ export declare const EthTransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
|
77
76
|
decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
78
77
|
}>]>;
|
|
79
78
|
}>]>>;
|
|
79
|
+
}>, t.TypeC<{
|
|
80
|
+
intentType: t.LiteralC<"transferToken">;
|
|
80
81
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
81
82
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
82
83
|
}>, t.PartialC<{
|
|
@@ -47,8 +47,7 @@ export declare const IcpPaymentIntent: 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 IcpPaymentIntent: 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.PartialC<{
|
|
88
73
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|