@bitgo/public-types 5.40.0 → 5.42.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/delegateIntent.d.ts +53 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +54 -0
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.js +38 -0
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +114 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaFeeOptions.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/iotaFeeOptions.js +31 -0
- package/dist/src/schema/transactionRequest/intents/iotaFeeOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +137 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +58 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.js.map +1 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/delegateIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/iotaBuildOptions.ts +14 -0
- package/src/schema/transactionRequest/intents/iotaConsolidateIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/iotaFeeOptions.ts +7 -0
- package/src/schema/transactionRequest/intents/iotaPaymentIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/vetDelegateIntent.ts +23 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const DelegateIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3
|
+
intentType: t.KeyofC<{
|
|
4
|
+
payment: t.LiteralC<"payment">;
|
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
|
9
|
+
stake: t.LiteralC<"stake">;
|
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
14
|
+
claim: t.LiteralC<"claim">;
|
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
18
|
+
vote: t.LiteralC<"vote">;
|
|
19
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
20
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
21
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
22
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
23
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
24
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
25
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
26
|
+
authorize: t.LiteralC<"authorize">;
|
|
27
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
28
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
29
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
30
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
31
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
32
|
+
customTx: t.LiteralC<"customTx">;
|
|
33
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
34
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
35
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
36
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
37
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
38
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
39
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
40
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
41
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
42
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
43
|
+
}>;
|
|
44
|
+
}>, t.PartialC<{
|
|
45
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
46
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
47
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
48
|
+
}>]>, t.TypeC<{
|
|
49
|
+
stakingRequestId: t.StringC;
|
|
50
|
+
}>]>, t.TypeC<{
|
|
51
|
+
intentType: t.LiteralC<"delegate">;
|
|
52
|
+
}>]>;
|
|
53
|
+
export type DelegateIntent = t.TypeOf<typeof DelegateIntent>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.DelegateIntent = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
|
29
|
+
const intentType_1 = require("./intentType");
|
|
30
|
+
exports.DelegateIntent = t.intersection([
|
|
31
|
+
baseStakeIntent_1.BaseStakeIntent,
|
|
32
|
+
t.type({
|
|
33
|
+
intentType: intentType_1.intentTypes.delegate,
|
|
34
|
+
}),
|
|
35
|
+
]);
|
|
36
|
+
//# sourceMappingURL=delegateIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/delegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAE9B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;KACjC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const IotaBuildOptions: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3
|
+
intentType: t.KeyofC<{
|
|
4
|
+
payment: t.LiteralC<"payment">;
|
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
|
9
|
+
stake: t.LiteralC<"stake">;
|
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
14
|
+
claim: t.LiteralC<"claim">;
|
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
18
|
+
vote: t.LiteralC<"vote">;
|
|
19
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
20
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
21
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
22
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
23
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
24
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
25
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
26
|
+
authorize: t.LiteralC<"authorize">;
|
|
27
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
28
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
29
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
30
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
31
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
32
|
+
customTx: t.LiteralC<"customTx">;
|
|
33
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
34
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
35
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
36
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
37
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
38
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
39
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
40
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
41
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
42
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
43
|
+
}>;
|
|
44
|
+
}>, t.PartialC<{
|
|
45
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
46
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
47
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
48
|
+
}>]>, t.TypeC<{
|
|
49
|
+
feeOptions: t.TypeC<{
|
|
50
|
+
gasLimit: t.NumberC;
|
|
51
|
+
}>;
|
|
52
|
+
lockedAmount: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
53
|
+
}>]>;
|
|
54
|
+
export type IotaBuildOptions = t.TypeOf<typeof IotaBuildOptions>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.IotaBuildOptions = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const baseIntent_1 = require("./baseIntent");
|
|
29
|
+
const utils_1 = require("../../../utils");
|
|
30
|
+
const iotaFeeOptions_1 = require("./iotaFeeOptions");
|
|
31
|
+
exports.IotaBuildOptions = t.intersection([
|
|
32
|
+
baseIntent_1.BaseIntent,
|
|
33
|
+
t.type({
|
|
34
|
+
feeOptions: iotaFeeOptions_1.IotaFeeOptions,
|
|
35
|
+
lockedAmount: utils_1.optionalString,
|
|
36
|
+
}),
|
|
37
|
+
]);
|
|
38
|
+
//# sourceMappingURL=iotaBuildOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/iotaBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,0CAAgD;AAChD,qDAAkD;AAErC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,+BAAc;QAC1B,YAAY,EAAE,sBAAc;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const IotaConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.PartialC<{
|
|
3
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
4
|
+
}>, t.TypeC<{
|
|
5
|
+
intentType: t.LiteralC<"consolidate">;
|
|
6
|
+
receiveAddress: t.StringC;
|
|
7
|
+
}>, t.PartialC<{
|
|
8
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
9
|
+
consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
10
|
+
recipients: t.UnionC<[t.Type<({
|
|
11
|
+
address: {
|
|
12
|
+
address?: string | undefined;
|
|
13
|
+
option?: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
} | undefined;
|
|
16
|
+
};
|
|
17
|
+
amount: {
|
|
18
|
+
value: string;
|
|
19
|
+
symbol: string;
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
data?: string | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
tokenData?: ({
|
|
25
|
+
tokenQuantity: string;
|
|
26
|
+
tokenType: string;
|
|
27
|
+
} & {
|
|
28
|
+
tokenId?: string | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
tokenName: string;
|
|
31
|
+
} & {
|
|
32
|
+
tokenContractAddress?: string | undefined;
|
|
33
|
+
decimals?: number | undefined;
|
|
34
|
+
}) | undefined;
|
|
35
|
+
})[], ({
|
|
36
|
+
address: {
|
|
37
|
+
address?: string | undefined;
|
|
38
|
+
option?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
amount: {
|
|
43
|
+
value: string;
|
|
44
|
+
symbol: string;
|
|
45
|
+
};
|
|
46
|
+
} & {
|
|
47
|
+
data?: string | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
tokenData?: ({
|
|
50
|
+
tokenQuantity: string;
|
|
51
|
+
tokenType: string;
|
|
52
|
+
} & {
|
|
53
|
+
tokenId?: string | undefined;
|
|
54
|
+
} & {
|
|
55
|
+
tokenName: string;
|
|
56
|
+
} & {
|
|
57
|
+
tokenContractAddress?: string | undefined;
|
|
58
|
+
decimals?: number | undefined;
|
|
59
|
+
}) | undefined;
|
|
60
|
+
})[], unknown>, t.UndefinedC]>;
|
|
61
|
+
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
62
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
63
|
+
intentType: t.KeyofC<{
|
|
64
|
+
payment: t.LiteralC<"payment">;
|
|
65
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
66
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
67
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
68
|
+
fanout: t.LiteralC<"fanout">;
|
|
69
|
+
stake: t.LiteralC<"stake">;
|
|
70
|
+
unstake: t.LiteralC<"unstake">;
|
|
71
|
+
delegate: t.LiteralC<"delegate">;
|
|
72
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
73
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
74
|
+
claim: t.LiteralC<"claim">;
|
|
75
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
76
|
+
pledge: t.LiteralC<"pledge">;
|
|
77
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
78
|
+
vote: t.LiteralC<"vote">;
|
|
79
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
80
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
81
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
82
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
83
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
84
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
85
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
86
|
+
authorize: t.LiteralC<"authorize">;
|
|
87
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
88
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
89
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
90
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
91
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
92
|
+
customTx: t.LiteralC<"customTx">;
|
|
93
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
94
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
95
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
96
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
97
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
98
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
99
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
100
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
101
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
102
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
103
|
+
}>;
|
|
104
|
+
}>, t.PartialC<{
|
|
105
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
106
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
107
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
108
|
+
}>]>, t.TypeC<{
|
|
109
|
+
feeOptions: t.TypeC<{
|
|
110
|
+
gasLimit: t.NumberC;
|
|
111
|
+
}>;
|
|
112
|
+
lockedAmount: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
113
|
+
}>]>]>;
|
|
114
|
+
export type IotaConsolidateIntent = t.TypeOf<typeof IotaConsolidateIntent>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.IotaConsolidateIntent = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const iotaBuildOptions_1 = require("./iotaBuildOptions");
|
|
29
|
+
const accountBaseConsolidateIntent_1 = require("./accountBaseConsolidateIntent");
|
|
30
|
+
exports.IotaConsolidateIntent = t.intersection([
|
|
31
|
+
accountBaseConsolidateIntent_1.AccountBaseConsolidateIntent,
|
|
32
|
+
iotaBuildOptions_1.IotaBuildOptions,
|
|
33
|
+
]);
|
|
34
|
+
//# sourceMappingURL=iotaConsolidateIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/iotaConsolidateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yDAAsD;AACtD,iFAA8E;AAKjE,QAAA,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,2DAA4B;IAC5B,mCAAgB;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.IotaFeeOptions = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
exports.IotaFeeOptions = t.type({
|
|
29
|
+
gasLimit: t.number,
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=iotaFeeOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaFeeOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/iotaFeeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const IotaPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3
|
+
intentType: t.KeyofC<{
|
|
4
|
+
payment: t.LiteralC<"payment">;
|
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
|
9
|
+
stake: t.LiteralC<"stake">;
|
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
14
|
+
claim: t.LiteralC<"claim">;
|
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
18
|
+
vote: t.LiteralC<"vote">;
|
|
19
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
20
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
21
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
22
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
23
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
24
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
25
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
26
|
+
authorize: t.LiteralC<"authorize">;
|
|
27
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
28
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
29
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
30
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
31
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
32
|
+
customTx: t.LiteralC<"customTx">;
|
|
33
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
34
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
35
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
36
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
37
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
38
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
39
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
40
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
41
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
42
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
43
|
+
}>;
|
|
44
|
+
}>, t.PartialC<{
|
|
45
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
46
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
47
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
48
|
+
}>]>, t.UnionC<[t.TypeC<{
|
|
49
|
+
intentType: t.LiteralC<"payment">;
|
|
50
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
51
|
+
address: t.PartialC<{
|
|
52
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
53
|
+
option: t.UnionC<[t.Type<{
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
}, {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
}, unknown>, t.UndefinedC]>;
|
|
58
|
+
}>;
|
|
59
|
+
amount: t.TypeC<{
|
|
60
|
+
value: t.StringC;
|
|
61
|
+
symbol: t.StringC;
|
|
62
|
+
}>;
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
65
|
+
}>]>>;
|
|
66
|
+
}>, t.TypeC<{
|
|
67
|
+
intentType: t.LiteralC<"payment">;
|
|
68
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
69
|
+
address: t.PartialC<{
|
|
70
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
71
|
+
option: t.UnionC<[t.Type<{
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
}, {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
}, unknown>, t.UndefinedC]>;
|
|
76
|
+
}>;
|
|
77
|
+
amount: t.TypeC<{
|
|
78
|
+
value: t.StringC;
|
|
79
|
+
symbol: t.StringC;
|
|
80
|
+
}>;
|
|
81
|
+
}>, t.PartialC<{
|
|
82
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
83
|
+
}>]>>;
|
|
84
|
+
isTestTransaction: t.BooleanC;
|
|
85
|
+
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
86
|
+
intentType: t.KeyofC<{
|
|
87
|
+
payment: t.LiteralC<"payment">;
|
|
88
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
89
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
90
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
91
|
+
fanout: t.LiteralC<"fanout">;
|
|
92
|
+
stake: t.LiteralC<"stake">;
|
|
93
|
+
unstake: t.LiteralC<"unstake">;
|
|
94
|
+
delegate: t.LiteralC<"delegate">;
|
|
95
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
96
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
97
|
+
claim: t.LiteralC<"claim">;
|
|
98
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
99
|
+
pledge: t.LiteralC<"pledge">;
|
|
100
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
101
|
+
vote: t.LiteralC<"vote">;
|
|
102
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
103
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
104
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
105
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
106
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
107
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
108
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
109
|
+
authorize: t.LiteralC<"authorize">;
|
|
110
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
111
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
112
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
113
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
114
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
115
|
+
customTx: t.LiteralC<"customTx">;
|
|
116
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
117
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
118
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
119
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
120
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
121
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
122
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
123
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
124
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
125
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
126
|
+
}>;
|
|
127
|
+
}>, t.PartialC<{
|
|
128
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
129
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
130
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
131
|
+
}>]>, t.TypeC<{
|
|
132
|
+
feeOptions: t.TypeC<{
|
|
133
|
+
gasLimit: t.NumberC;
|
|
134
|
+
}>;
|
|
135
|
+
lockedAmount: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
136
|
+
}>]>]>;
|
|
137
|
+
export type IotaPaymentIntent = t.TypeOf<typeof IotaPaymentIntent>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.IotaPaymentIntent = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const iotaBuildOptions_1 = require("./iotaBuildOptions");
|
|
29
|
+
const paymentIntent_1 = require("./paymentIntent");
|
|
30
|
+
exports.IotaPaymentIntent = t.intersection([
|
|
31
|
+
paymentIntent_1.PaymentIntent,
|
|
32
|
+
iotaBuildOptions_1.IotaBuildOptions,
|
|
33
|
+
]);
|
|
34
|
+
//# sourceMappingURL=iotaPaymentIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotaPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/iotaPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yDAAsD;AACtD,mDAAgD;AAKnC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,6BAAa;IACb,mCAAgB;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const VetDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3
|
+
intentType: t.KeyofC<{
|
|
4
|
+
payment: t.LiteralC<"payment">;
|
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
|
9
|
+
stake: t.LiteralC<"stake">;
|
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
14
|
+
claim: t.LiteralC<"claim">;
|
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
18
|
+
vote: t.LiteralC<"vote">;
|
|
19
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
20
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
21
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
22
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
23
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
24
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
25
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
26
|
+
authorize: t.LiteralC<"authorize">;
|
|
27
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
28
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
29
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
30
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
31
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
32
|
+
customTx: t.LiteralC<"customTx">;
|
|
33
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
34
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
35
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
36
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
37
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
38
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
39
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
40
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
41
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
42
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
43
|
+
}>;
|
|
44
|
+
}>, t.PartialC<{
|
|
45
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
46
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
47
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
48
|
+
}>]>, t.TypeC<{
|
|
49
|
+
stakingRequestId: t.StringC;
|
|
50
|
+
}>]>, t.TypeC<{
|
|
51
|
+
intentType: t.LiteralC<"delegate">;
|
|
52
|
+
}>]>, t.TypeC<{
|
|
53
|
+
tokenId: import("io-ts-types").NonEmptyStringC;
|
|
54
|
+
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
|
55
|
+
}>, t.PartialC<{
|
|
56
|
+
delegateForever: t.BooleanC;
|
|
57
|
+
}>]>;
|
|
58
|
+
export type VetDelegateIntent = t.TypeOf<typeof VetDelegateIntent>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.VetDelegateIntent = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const delegateIntent_1 = require("./delegateIntent");
|
|
29
|
+
const io_ts_types_1 = require("io-ts-types");
|
|
30
|
+
exports.VetDelegateIntent = t.intersection([
|
|
31
|
+
delegateIntent_1.DelegateIntent,
|
|
32
|
+
t.type({
|
|
33
|
+
tokenId: io_ts_types_1.NonEmptyString,
|
|
34
|
+
stakingContractAddress: io_ts_types_1.NonEmptyString,
|
|
35
|
+
}),
|
|
36
|
+
t.partial({
|
|
37
|
+
delegateForever: t.boolean,
|
|
38
|
+
}),
|
|
39
|
+
]);
|
|
40
|
+
//# sourceMappingURL=vetDelegateIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vetDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/vetDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,6CAA6C;AAShC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,+BAAc;IACd,CAAC,CAAC,IAAI,CAAC;QACL,OAAO,EAAE,4BAAc;QACvB,sBAAsB,EAAE,4BAAc;KACvC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,eAAe,EAAE,CAAC,CAAC,OAAO;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
export const DelegateIntent = t.intersection([
|
|
6
|
+
BaseStakeIntent,
|
|
7
|
+
t.type({
|
|
8
|
+
intentType: intentTypes.delegate,
|
|
9
|
+
}),
|
|
10
|
+
]);
|
|
11
|
+
|
|
12
|
+
export type DelegateIntent = t.TypeOf<typeof DelegateIntent>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
import { optionalString } from "../../../utils";
|
|
4
|
+
import { IotaFeeOptions } from "./iotaFeeOptions";
|
|
5
|
+
|
|
6
|
+
export const IotaBuildOptions = t.intersection([
|
|
7
|
+
BaseIntent,
|
|
8
|
+
t.type({
|
|
9
|
+
feeOptions: IotaFeeOptions,
|
|
10
|
+
lockedAmount: optionalString,
|
|
11
|
+
}),
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
export type IotaBuildOptions = t.TypeOf<typeof IotaBuildOptions>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { IotaBuildOptions } from "./iotaBuildOptions";
|
|
3
|
+
import { AccountBaseConsolidateIntent } from "./accountBaseConsolidateIntent";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title IOTA Consolidate Intent
|
|
7
|
+
*/
|
|
8
|
+
export const IotaConsolidateIntent = t.intersection([
|
|
9
|
+
AccountBaseConsolidateIntent,
|
|
10
|
+
IotaBuildOptions,
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export type IotaConsolidateIntent = t.TypeOf<typeof IotaConsolidateIntent>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { IotaBuildOptions } from "./iotaBuildOptions";
|
|
3
|
+
import { PaymentIntent } from "./paymentIntent";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title IOTA Payment Intent
|
|
7
|
+
*/
|
|
8
|
+
export const IotaPaymentIntent = t.intersection([
|
|
9
|
+
PaymentIntent,
|
|
10
|
+
IotaBuildOptions,
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export type IotaPaymentIntent = t.TypeOf<typeof IotaPaymentIntent>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { DelegateIntent } from "./delegateIntent";
|
|
3
|
+
import { NonEmptyString } from "io-ts-types";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title VET Delegate Intent
|
|
7
|
+
*
|
|
8
|
+
* @param {string} tokenId - The ID of the NFT token to delegate
|
|
9
|
+
* @param {string} stakingContractAddress - The address of the delegation contract
|
|
10
|
+
* @param {boolean} [delegateForever] - whether the delegation is forever or fixed
|
|
11
|
+
*/
|
|
12
|
+
export const VetDelegateIntent = t.intersection([
|
|
13
|
+
DelegateIntent,
|
|
14
|
+
t.type({
|
|
15
|
+
tokenId: NonEmptyString,
|
|
16
|
+
stakingContractAddress: NonEmptyString,
|
|
17
|
+
}),
|
|
18
|
+
t.partial({
|
|
19
|
+
delegateForever: t.boolean,
|
|
20
|
+
}),
|
|
21
|
+
]);
|
|
22
|
+
|
|
23
|
+
export type VetDelegateIntent = t.TypeOf<typeof VetDelegateIntent>;
|