@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 IotaPaymentIntent: 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 IotaPaymentIntent: 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.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
88
73
|
intentType: t.KeyofC<{
|
|
@@ -47,8 +47,7 @@ export declare const MmiSignTransactionIntent: t.IntersectionC<[t.IntersectionC<
|
|
|
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 MmiSignTransactionIntent: t.IntersectionC<[t.IntersectionC<
|
|
|
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
|
custodianTransactionId: t.StringC;
|
|
@@ -47,8 +47,7 @@ export declare const PaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
|
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 PaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
|
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
|
}>]>]>;
|
|
88
73
|
export type PaymentIntent = t.TypeOf<typeof PaymentIntent>;
|
|
@@ -27,17 +27,15 @@ exports.PaymentIntent = 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 recipientEntry_1 = require("./recipientEntry");
|
|
31
30
|
exports.PaymentIntent = t.intersection([
|
|
32
31
|
baseIntent_1.BaseIntent,
|
|
32
|
+
baseIntent_1.BaseIntentWithRecipients,
|
|
33
33
|
t.union([
|
|
34
34
|
t.type({
|
|
35
35
|
intentType: intentType_1.intentTypes.payment,
|
|
36
|
-
recipients: t.array(recipientEntry_1.RecipientEntry),
|
|
37
36
|
}),
|
|
38
37
|
t.type({
|
|
39
38
|
intentType: intentType_1.intentTypes.payment,
|
|
40
|
-
recipients: t.array(recipientEntry_1.RecipientEntry),
|
|
41
39
|
isTestTransaction: t.boolean,
|
|
42
40
|
}),
|
|
43
41
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/paymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"paymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/paymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAoE;AACpE,6CAA2C;AAE9B,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,uBAAU;IACV,qCAAwB;IACxB,CAAC,CAAC,KAAK,CAAC;QACN,CAAC,CAAC,IAAI,CAAC;YACL,UAAU,EAAE,wBAAW,CAAC,OAAO;SAChC,CAAC;QACF,CAAC,CAAC,IAAI,CAAC;YACL,UAAU,EAAE,wBAAW,CAAC,OAAO;YAC/B,iBAAiB,EAAE,CAAC,CAAC,OAAO;SAC7B,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -64,10 +64,11 @@ export declare const SolClaimIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
|
64
64
|
}>, t.TypeC<{
|
|
65
65
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
66
66
|
}>]>, t.TypeC<{
|
|
67
|
-
stakingAddress: t.StringC;
|
|
68
67
|
amount: t.TypeC<{
|
|
69
68
|
value: t.StringC;
|
|
70
69
|
symbol: t.StringC;
|
|
71
70
|
}>;
|
|
71
|
+
}>, t.TypeC<{
|
|
72
|
+
stakingAddress: t.StringC;
|
|
72
73
|
}>]>;
|
|
73
74
|
export type SolClaimIntent = t.TypeOf<typeof SolClaimIntent>;
|
|
@@ -26,14 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.SolClaimIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const solBuildOptions_1 = require("./solBuildOptions");
|
|
29
|
-
const amount_1 = require("./amount");
|
|
30
29
|
const withdrawIntent_1 = require("./withdrawIntent");
|
|
30
|
+
const baseIntent_1 = require("./baseIntent");
|
|
31
31
|
exports.SolClaimIntent = t.intersection([
|
|
32
32
|
withdrawIntent_1.WithdrawIntent,
|
|
33
33
|
solBuildOptions_1.SolBuildOptions,
|
|
34
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
34
35
|
t.type({
|
|
35
36
|
stakingAddress: t.string,
|
|
36
|
-
amount: amount_1.Amount,
|
|
37
37
|
}),
|
|
38
38
|
]);
|
|
39
39
|
//# sourceMappingURL=solClaimIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solClaimIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solClaimIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"solClaimIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solClaimIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qDAAkD;AAClD,6CAAoD;AAKvC,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,+BAAc;IACd,iCAAe;IACf,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -47,8 +47,7 @@ export declare const SolPaymentIntent: 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 SolPaymentIntent: 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]>;
|
|
@@ -56,11 +56,12 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
|
56
56
|
}>, t.TypeC<{
|
|
57
57
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
58
58
|
}>]>, t.TypeC<{
|
|
59
|
-
validatorAddress: t.StringC;
|
|
60
59
|
amount: t.TypeC<{
|
|
61
60
|
value: t.StringC;
|
|
62
61
|
symbol: t.StringC;
|
|
63
62
|
}>;
|
|
63
|
+
}>, t.TypeC<{
|
|
64
|
+
validatorAddress: t.StringC;
|
|
64
65
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
65
66
|
stakingType: t.UnionC<[t.Type<"NATIVE" | "MARINADE" | "JITO", "NATIVE" | "MARINADE" | "JITO", unknown>, t.UndefinedC]>;
|
|
66
67
|
}>]>;
|
|
@@ -122,11 +123,12 @@ export declare const SolJitoStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
|
122
123
|
}>, t.TypeC<{
|
|
123
124
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
124
125
|
}>]>, t.TypeC<{
|
|
125
|
-
validatorAddress: t.StringC;
|
|
126
126
|
amount: t.TypeC<{
|
|
127
127
|
value: t.StringC;
|
|
128
128
|
symbol: t.StringC;
|
|
129
129
|
}>;
|
|
130
|
+
}>, t.TypeC<{
|
|
131
|
+
validatorAddress: t.StringC;
|
|
130
132
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
131
133
|
stakingType: t.UnionC<[t.Type<"NATIVE" | "MARINADE" | "JITO", "NATIVE" | "MARINADE" | "JITO", unknown>, t.UndefinedC]>;
|
|
132
134
|
}>]>, t.TypeC<{
|
|
@@ -27,15 +27,15 @@ exports.SolJitoStakeIntent = exports.SolStakeIntent = void 0;
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const solBuildOptions_1 = require("./solBuildOptions");
|
|
29
29
|
const stakeIntent_1 = require("./stakeIntent");
|
|
30
|
-
const
|
|
30
|
+
const baseIntent_1 = require("./baseIntent");
|
|
31
31
|
const utils_1 = require("../../../utils");
|
|
32
32
|
const solStakingType_1 = require("./solStakingType");
|
|
33
33
|
exports.SolStakeIntent = t.intersection([
|
|
34
34
|
stakeIntent_1.StakeIntent,
|
|
35
35
|
solBuildOptions_1.SolBuildOptions,
|
|
36
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
36
37
|
t.type({
|
|
37
38
|
validatorAddress: t.string,
|
|
38
|
-
amount: amount_1.Amount,
|
|
39
39
|
isMarinade: (0, utils_1.Optional)(t.boolean),
|
|
40
40
|
stakingType: (0, utils_1.Optional)(solStakingType_1.SolStakingType),
|
|
41
41
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,6CAAoD;AACpD,0CAA0C;AAC1C,qDAAkD;AAKrC,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAe;IACf,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAI1B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAI/B,WAAW,EAAE,IAAA,gBAAQ,EAAC,+BAAc,CAAC;KACtC,CAAC;CACH,CAAC,CAAC;AAOU,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,sBAAc;IACd,CAAC,CAAC,IAAI,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QAC9B,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC;YACtB,QAAQ,EAAE,CAAC,CAAC,MAAM;YAClB,YAAY,EAAE,CAAC,CAAC,MAAM;YACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -50,10 +50,11 @@ export declare const StakeClaimRewardsIntent: t.IntersectionC<[t.IntersectionC<[
|
|
|
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 StakeClaimRewardsIntent = t.TypeOf<typeof StakeClaimRewardsIntent>;
|
|
@@ -27,12 +27,12 @@ exports.StakeClaimRewardsIntent = void 0;
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const intentType_1 = require("./intentType");
|
|
29
29
|
const baseStakeIntent_1 = require("./baseStakeIntent");
|
|
30
|
-
const
|
|
30
|
+
const baseIntent_1 = require("./baseIntent");
|
|
31
31
|
exports.StakeClaimRewardsIntent = t.intersection([
|
|
32
32
|
baseStakeIntent_1.BaseStakeIntent,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
33
34
|
t.type({
|
|
34
35
|
intentType: intentType_1.intentTypes.stakeClaimRewards,
|
|
35
|
-
amount: amount_1.Amount,
|
|
36
36
|
}),
|
|
37
37
|
]);
|
|
38
38
|
//# sourceMappingURL=stakeClaimRewardsIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeClaimRewardsIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,uDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"stakeClaimRewardsIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,uDAAoD;AACpD,6CAAoD;AAEvC,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,iCAAe;IACf,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;KAC1C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -50,11 +50,12 @@ export declare const StakeSwitchValidatorIntent: t.IntersectionC<[t.Intersection
|
|
|
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
|
}>]>;
|
|
@@ -26,13 +26,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.StakeSwitchValidatorIntent = 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
|
exports.StakeSwitchValidatorIntent = t.intersection([
|
|
32
32
|
baseStakeIntent_1.BaseStakeIntent,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
33
34
|
t.type({
|
|
34
35
|
intentType: intentType_1.intentTypes.switchValidator,
|
|
35
|
-
amount: amount_1.Amount,
|
|
36
36
|
validatorAddress: t.string,
|
|
37
37
|
destValidatorAddress: t.string,
|
|
38
38
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeSwitchValidatorIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"stakeSwitchValidatorIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAAoD;AACpD,6CAA2C;AAE9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,iCAAe;IACf,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,eAAe;QACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,oBAAoB,EAAE,CAAC,CAAC,MAAM;KAC/B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -47,8 +47,7 @@ export declare const SubstratePaymentIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
|
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 SubstratePaymentIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
|
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]>;
|
|
@@ -47,8 +47,7 @@ export declare const SuiPaymentIntent: 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 SuiPaymentIntent: 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.IntersectionC<[t.TypeC<{
|
|
88
73
|
intentType: t.KeyofC<{
|
|
@@ -48,7 +48,8 @@ export declare const TokenApprovalIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
|
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<"tokenApproval">;
|
|
52
51
|
tokenName: t.StringC;
|
|
52
|
+
}>, t.TypeC<{
|
|
53
|
+
intentType: t.LiteralC<"tokenApproval">;
|
|
53
54
|
}>]>;
|
|
54
55
|
export type TokenApprovalIntent = t.TypeOf<typeof TokenApprovalIntent>;
|
|
@@ -29,9 +29,9 @@ const baseIntent_1 = require("./baseIntent");
|
|
|
29
29
|
const intentType_1 = require("./intentType");
|
|
30
30
|
exports.TokenApprovalIntent = t.intersection([
|
|
31
31
|
baseIntent_1.BaseIntent,
|
|
32
|
+
baseIntent_1.BaseIntentWithTokenName,
|
|
32
33
|
t.type({
|
|
33
34
|
intentType: intentType_1.intentTypes.tokenApproval,
|
|
34
|
-
tokenName: t.string,
|
|
35
35
|
}),
|
|
36
36
|
]);
|
|
37
37
|
//# sourceMappingURL=tokenApprovalIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenApprovalIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tokenApprovalIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"tokenApprovalIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tokenApprovalIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAmE;AACnE,6CAA2C;AAM9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,oCAAuB;IACvB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,aAAa;KACtC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -48,12 +48,13 @@ export declare const TonDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
|
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<"delegate">;
|
|
52
|
-
validatorAddress: t.StringC;
|
|
53
51
|
amount: t.TypeC<{
|
|
54
52
|
value: t.StringC;
|
|
55
53
|
symbol: t.StringC;
|
|
56
54
|
}>;
|
|
55
|
+
}>, t.TypeC<{
|
|
56
|
+
intentType: t.LiteralC<"delegate">;
|
|
57
|
+
validatorAddress: t.StringC;
|
|
57
58
|
useSingleNominator: t.BooleanC;
|
|
58
59
|
}>, t.PartialC<{
|
|
59
60
|
ownerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
@@ -26,15 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.TonDelegateIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
|
29
|
-
const amount_1 = require("./amount");
|
|
30
29
|
const intentType_1 = require("./intentType");
|
|
31
30
|
const utils_1 = require("../../../utils");
|
|
32
31
|
exports.TonDelegateIntent = t.intersection([
|
|
33
32
|
baseIntent_1.BaseIntent,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
34
34
|
t.type({
|
|
35
35
|
intentType: intentType_1.intentTypes.delegate,
|
|
36
36
|
validatorAddress: t.string,
|
|
37
|
-
amount: amount_1.Amount,
|
|
38
37
|
useSingleNominator: t.boolean,
|
|
39
38
|
}),
|
|
40
39
|
t.partial({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tonDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"tonDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgE;AAChE,6CAA2C;AAC3C,0CAAgD;AAanC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,kBAAkB,EAAE,CAAC,CAAC,OAAO;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,YAAY,EAAE,sBAAc;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -47,8 +47,7 @@ export declare const TonPaymentIntent: 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 TonPaymentIntent: 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]>;
|
|
@@ -48,7 +48,6 @@ export declare const TransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
|
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,5 +76,7 @@ export declare const TransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
|
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
|
}>]>;
|
|
81
82
|
export type TransferTokenIntent = t.TypeOf<typeof TransferTokenIntent>;
|
|
@@ -26,13 +26,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.TransferTokenIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
|
29
|
-
const tokenRecipientEntry_1 = require("./tokenRecipientEntry");
|
|
30
29
|
const intentType_1 = require("./intentType");
|
|
31
30
|
exports.TransferTokenIntent = t.intersection([
|
|
32
31
|
baseIntent_1.BaseIntent,
|
|
32
|
+
baseIntent_1.BaseIntentWithTokenRecipients,
|
|
33
33
|
t.type({
|
|
34
34
|
intentType: intentType_1.intentTypes.transferToken,
|
|
35
|
-
recipients: t.array(tokenRecipientEntry_1.TokenRecipientEntry),
|
|
36
35
|
}),
|
|
37
36
|
]);
|
|
38
37
|
//# sourceMappingURL=transferTokenIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/transferTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"transferTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/transferTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAyE;AACzE,6CAA2C;AAE9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,0CAA6B;IAC7B,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,aAAa;KACtC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -50,11 +50,12 @@ export declare const VetStakeClaimRewardsIntent: 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
|
}>]>, t.TypeC<{
|
|
59
60
|
tokenId: import("io-ts-types").NonEmptyStringC;
|
|
60
61
|
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
|
@@ -56,6 +56,7 @@ export declare const VetStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
56
56
|
value: t.StringC;
|
|
57
57
|
symbol: t.StringC;
|
|
58
58
|
}>;
|
|
59
|
+
}>, t.TypeC<{
|
|
59
60
|
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
|
60
61
|
levelId: import("io-ts-types").NonEmptyStringC;
|
|
61
62
|
}>]>;
|
|
@@ -26,12 +26,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.VetStakingIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const stakeIntent_1 = require("./stakeIntent");
|
|
29
|
-
const
|
|
29
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
const io_ts_types_1 = require("io-ts-types");
|
|
31
31
|
exports.VetStakingIntent = t.intersection([
|
|
32
32
|
stakeIntent_1.StakeIntent,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
33
34
|
t.type({
|
|
34
|
-
amount: amount_1.Amount,
|
|
35
35
|
stakingContractAddress: io_ts_types_1.NonEmptyString,
|
|
36
36
|
levelId: io_ts_types_1.NonEmptyString,
|
|
37
37
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vetStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/vetStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"vetStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/vetStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,6CAAoD;AACpD,6CAA6C;AAWhC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,sBAAsB,EAAE,4BAAc;QACtC,OAAO,EAAE,4BAAc;KACxB,CAAC;CACH,CAAC,CAAC"}
|