@bitgo/public-types 4.1.0 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +43 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.js +35 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +45 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +50 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +50 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/index.js +4 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +176 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +8 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/webhook/webhookType.d.ts +1 -0
- package/dist/src/schema/webhook/webhookType.js +1 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.ts +20 -0
- package/src/schema/transactionRequest/intents/coredaoClaimIntent.ts +19 -0
- package/src/schema/transactionRequest/intents/coredaoDelegateIntent.ts +24 -0
- package/src/schema/transactionRequest/intents/coredaoUndelegateIntent.ts +24 -0
- package/src/schema/transactionRequest/intents/index.ts +4 -0
- package/src/schema/transactionRequest/intents/intent.ts +8 -0
- package/src/schema/webhook/webhookType.ts +1 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const BaseStakeIntentWithCalldata: 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
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
33
|
+
}>;
|
34
|
+
}>, t.PartialC<{
|
35
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
36
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
stakingRequestId: t.StringC;
|
40
|
+
}>]>, t.TypeC<{
|
41
|
+
calldata: t.StringC;
|
42
|
+
}>]>;
|
43
|
+
export type BaseStakeIntentWithCalldata = t.TypeOf<typeof BaseStakeIntentWithCalldata>;
|
@@ -0,0 +1,35 @@
|
|
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.BaseStakeIntentWithCalldata = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
29
|
+
exports.BaseStakeIntentWithCalldata = t.intersection([
|
30
|
+
baseStakeIntent_1.BaseStakeIntent,
|
31
|
+
t.type({
|
32
|
+
calldata: t.string,
|
33
|
+
}),
|
34
|
+
]);
|
35
|
+
//# sourceMappingURL=baseStakeIntentWithCalldata.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"baseStakeIntentWithCalldata.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AASvC,QAAA,2BAA2B,GAAG,CAAC,CAAC,YAAY,CAAC;IACxD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const CoreDaoClaimIntent: 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
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
33
|
+
}>;
|
34
|
+
}>, t.PartialC<{
|
35
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
36
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
stakingRequestId: t.StringC;
|
40
|
+
}>]>, t.TypeC<{
|
41
|
+
calldata: t.StringC;
|
42
|
+
}>]>, t.TypeC<{
|
43
|
+
intentType: t.LiteralC<"stakeClaimRewards">;
|
44
|
+
}>]>;
|
45
|
+
export type CoreDaoClaimIntent = t.TypeOf<typeof CoreDaoClaimIntent>;
|
@@ -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.CoreDaoClaimIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
exports.CoreDaoClaimIntent = t.intersection([
|
31
|
+
baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
|
32
|
+
t.type({
|
33
|
+
intentType: intentType_1.intentTypes.stakeClaimRewards,
|
34
|
+
}),
|
35
|
+
]);
|
36
|
+
//# sourceMappingURL=coredaoClaimIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"coredaoClaimIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/coredaoClaimIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,6CAA2C;AAS9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,yDAA2B;IAC3B,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;KAC1C,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const CoreDaoDelegateIntent: 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
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
33
|
+
}>;
|
34
|
+
}>, t.PartialC<{
|
35
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
36
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
stakingRequestId: t.StringC;
|
40
|
+
}>]>, t.TypeC<{
|
41
|
+
calldata: t.StringC;
|
42
|
+
}>]>, t.TypeC<{
|
43
|
+
intentType: t.LiteralC<"delegate">;
|
44
|
+
validatorAddress: t.StringC;
|
45
|
+
amount: t.TypeC<{
|
46
|
+
value: t.StringC;
|
47
|
+
symbol: t.StringC;
|
48
|
+
}>;
|
49
|
+
}>]>;
|
50
|
+
export type CoreDaoDelegateIntent = t.TypeOf<typeof CoreDaoDelegateIntent>;
|
@@ -0,0 +1,39 @@
|
|
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.CoreDaoDelegateIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
|
29
|
+
const amount_1 = require("./amount");
|
30
|
+
const intentType_1 = require("./intentType");
|
31
|
+
exports.CoreDaoDelegateIntent = t.intersection([
|
32
|
+
baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
|
33
|
+
t.type({
|
34
|
+
intentType: intentType_1.intentTypes.delegate,
|
35
|
+
validatorAddress: t.string,
|
36
|
+
amount: amount_1.Amount,
|
37
|
+
}),
|
38
|
+
]);
|
39
|
+
//# sourceMappingURL=coredaoDelegateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"coredaoDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/coredaoDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,qCAAkC;AAClC,6CAA2C;AAW9B,QAAA,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,yDAA2B;IAC3B,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const CoreDaoUndelegateIntent: 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
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
33
|
+
}>;
|
34
|
+
}>, t.PartialC<{
|
35
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
36
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
stakingRequestId: t.StringC;
|
40
|
+
}>]>, t.TypeC<{
|
41
|
+
calldata: t.StringC;
|
42
|
+
}>]>, t.TypeC<{
|
43
|
+
intentType: t.LiteralC<"undelegate">;
|
44
|
+
validatorAddress: t.StringC;
|
45
|
+
amount: t.TypeC<{
|
46
|
+
value: t.StringC;
|
47
|
+
symbol: t.StringC;
|
48
|
+
}>;
|
49
|
+
}>]>;
|
50
|
+
export type CoreDaoUndelegateIntent = t.TypeOf<typeof CoreDaoUndelegateIntent>;
|
@@ -0,0 +1,39 @@
|
|
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.CoreDaoUndelegateIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
|
29
|
+
const amount_1 = require("./amount");
|
30
|
+
const intentType_1 = require("./intentType");
|
31
|
+
exports.CoreDaoUndelegateIntent = t.intersection([
|
32
|
+
baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
|
33
|
+
t.type({
|
34
|
+
intentType: intentType_1.intentTypes.undelegate,
|
35
|
+
validatorAddress: t.string,
|
36
|
+
amount: amount_1.Amount,
|
37
|
+
}),
|
38
|
+
]);
|
39
|
+
//# sourceMappingURL=coredaoUndelegateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"coredaoUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/coredaoUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,qCAAkC;AAClC,6CAA2C;AAW9B,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,yDAA2B;IAC3B,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;CACH,CAAC,CAAC"}
|
@@ -17,11 +17,15 @@ export * from "./atomUnstakeIntent";
|
|
17
17
|
export * from "./atomWithdrawIntent";
|
18
18
|
export * from "./baseIntent";
|
19
19
|
export * from "./baseStakeIntent";
|
20
|
+
export * from "./baseStakeIntentWithCalldata";
|
20
21
|
export * from "./bscDelegateIntent";
|
21
22
|
export * from "./bscStakeClaimRewardsIntent";
|
22
23
|
export * from "./bscUndelegateIntent";
|
23
24
|
export * from "./bscWithdrawUndelegateIntent";
|
24
25
|
export * from "./consolidateTokenIntent";
|
26
|
+
export * from "./coredaoClaimIntent";
|
27
|
+
export * from "./coredaoDelegateIntent";
|
28
|
+
export * from "./coredaoUndelegateIntent";
|
25
29
|
export * from "./cosmosPaymentIntent";
|
26
30
|
export * from "./cosmosStakeIntent";
|
27
31
|
export * from "./cosmosSwitchValidatorIntent";
|
@@ -33,11 +33,15 @@ __exportStar(require("./atomUnstakeIntent"), exports);
|
|
33
33
|
__exportStar(require("./atomWithdrawIntent"), exports);
|
34
34
|
__exportStar(require("./baseIntent"), exports);
|
35
35
|
__exportStar(require("./baseStakeIntent"), exports);
|
36
|
+
__exportStar(require("./baseStakeIntentWithCalldata"), exports);
|
36
37
|
__exportStar(require("./bscDelegateIntent"), exports);
|
37
38
|
__exportStar(require("./bscStakeClaimRewardsIntent"), exports);
|
38
39
|
__exportStar(require("./bscUndelegateIntent"), exports);
|
39
40
|
__exportStar(require("./bscWithdrawUndelegateIntent"), exports);
|
40
41
|
__exportStar(require("./consolidateTokenIntent"), exports);
|
42
|
+
__exportStar(require("./coredaoClaimIntent"), exports);
|
43
|
+
__exportStar(require("./coredaoDelegateIntent"), exports);
|
44
|
+
__exportStar(require("./coredaoUndelegateIntent"), exports);
|
41
45
|
__exportStar(require("./cosmosPaymentIntent"), exports);
|
42
46
|
__exportStar(require("./cosmosStakeIntent"), exports);
|
43
47
|
__exportStar(require("./cosmosSwitchValidatorIntent"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC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C;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,mDAAiC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,mDAAiC"}
|
@@ -3332,6 +3332,182 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3332
3332
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3333
3333
|
}>]>, t.TypeC<{
|
3334
3334
|
intentType: t.LiteralC<"walletRecovery">;
|
3335
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3336
|
+
intentType: t.KeyofC<{
|
3337
|
+
payment: t.LiteralC<"payment">;
|
3338
|
+
transferToken: t.LiteralC<"transferToken">;
|
3339
|
+
consolidate: t.LiteralC<"consolidate">;
|
3340
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
3341
|
+
fanout: t.LiteralC<"fanout">;
|
3342
|
+
stake: t.LiteralC<"stake">;
|
3343
|
+
unstake: t.LiteralC<"unstake">;
|
3344
|
+
delegate: t.LiteralC<"delegate">;
|
3345
|
+
undelegate: t.LiteralC<"undelegate">;
|
3346
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
3347
|
+
claim: t.LiteralC<"claim">;
|
3348
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
3349
|
+
pledge: t.LiteralC<"pledge">;
|
3350
|
+
vote: t.LiteralC<"vote">;
|
3351
|
+
createAccount: t.LiteralC<"createAccount">;
|
3352
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
3353
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
3354
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
3355
|
+
signMessage: t.LiteralC<"signMessage">;
|
3356
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
3357
|
+
enableToken: t.LiteralC<"enableToken">;
|
3358
|
+
authorize: t.LiteralC<"authorize">;
|
3359
|
+
acceleration: t.LiteralC<"acceleration">;
|
3360
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
3361
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
3362
|
+
contractCall: t.LiteralC<"contractCall">;
|
3363
|
+
deactivate: t.LiteralC<"deactivate">;
|
3364
|
+
customTx: t.LiteralC<"customTx">;
|
3365
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
3366
|
+
}>;
|
3367
|
+
}>, t.PartialC<{
|
3368
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3369
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3370
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3371
|
+
}>]>, t.TypeC<{
|
3372
|
+
stakingRequestId: t.StringC;
|
3373
|
+
}>]>, t.TypeC<{
|
3374
|
+
calldata: t.StringC;
|
3375
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3376
|
+
intentType: t.KeyofC<{
|
3377
|
+
payment: t.LiteralC<"payment">;
|
3378
|
+
transferToken: t.LiteralC<"transferToken">;
|
3379
|
+
consolidate: t.LiteralC<"consolidate">;
|
3380
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
3381
|
+
fanout: t.LiteralC<"fanout">;
|
3382
|
+
stake: t.LiteralC<"stake">;
|
3383
|
+
unstake: t.LiteralC<"unstake">;
|
3384
|
+
delegate: t.LiteralC<"delegate">;
|
3385
|
+
undelegate: t.LiteralC<"undelegate">;
|
3386
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
3387
|
+
claim: t.LiteralC<"claim">;
|
3388
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
3389
|
+
pledge: t.LiteralC<"pledge">;
|
3390
|
+
vote: t.LiteralC<"vote">;
|
3391
|
+
createAccount: t.LiteralC<"createAccount">;
|
3392
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
3393
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
3394
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
3395
|
+
signMessage: t.LiteralC<"signMessage">;
|
3396
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
3397
|
+
enableToken: t.LiteralC<"enableToken">;
|
3398
|
+
authorize: t.LiteralC<"authorize">;
|
3399
|
+
acceleration: t.LiteralC<"acceleration">;
|
3400
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
3401
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
3402
|
+
contractCall: t.LiteralC<"contractCall">;
|
3403
|
+
deactivate: t.LiteralC<"deactivate">;
|
3404
|
+
customTx: t.LiteralC<"customTx">;
|
3405
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
3406
|
+
}>;
|
3407
|
+
}>, t.PartialC<{
|
3408
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3409
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3410
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3411
|
+
}>]>, t.TypeC<{
|
3412
|
+
stakingRequestId: t.StringC;
|
3413
|
+
}>]>, t.TypeC<{
|
3414
|
+
calldata: t.StringC;
|
3415
|
+
}>]>, t.TypeC<{
|
3416
|
+
intentType: t.LiteralC<"delegate">;
|
3417
|
+
validatorAddress: t.StringC;
|
3418
|
+
amount: t.TypeC<{
|
3419
|
+
value: t.StringC;
|
3420
|
+
symbol: t.StringC;
|
3421
|
+
}>;
|
3422
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3423
|
+
intentType: t.KeyofC<{
|
3424
|
+
payment: t.LiteralC<"payment">;
|
3425
|
+
transferToken: t.LiteralC<"transferToken">;
|
3426
|
+
consolidate: t.LiteralC<"consolidate">;
|
3427
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
3428
|
+
fanout: t.LiteralC<"fanout">;
|
3429
|
+
stake: t.LiteralC<"stake">;
|
3430
|
+
unstake: t.LiteralC<"unstake">;
|
3431
|
+
delegate: t.LiteralC<"delegate">;
|
3432
|
+
undelegate: t.LiteralC<"undelegate">;
|
3433
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
3434
|
+
claim: t.LiteralC<"claim">;
|
3435
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
3436
|
+
pledge: t.LiteralC<"pledge">;
|
3437
|
+
vote: t.LiteralC<"vote">;
|
3438
|
+
createAccount: t.LiteralC<"createAccount">;
|
3439
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
3440
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
3441
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
3442
|
+
signMessage: t.LiteralC<"signMessage">;
|
3443
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
3444
|
+
enableToken: t.LiteralC<"enableToken">;
|
3445
|
+
authorize: t.LiteralC<"authorize">;
|
3446
|
+
acceleration: t.LiteralC<"acceleration">;
|
3447
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
3448
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
3449
|
+
contractCall: t.LiteralC<"contractCall">;
|
3450
|
+
deactivate: t.LiteralC<"deactivate">;
|
3451
|
+
customTx: t.LiteralC<"customTx">;
|
3452
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
3453
|
+
}>;
|
3454
|
+
}>, t.PartialC<{
|
3455
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3456
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3457
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3458
|
+
}>]>, t.TypeC<{
|
3459
|
+
stakingRequestId: t.StringC;
|
3460
|
+
}>]>, t.TypeC<{
|
3461
|
+
calldata: t.StringC;
|
3462
|
+
}>]>, t.TypeC<{
|
3463
|
+
intentType: t.LiteralC<"undelegate">;
|
3464
|
+
validatorAddress: t.StringC;
|
3465
|
+
amount: t.TypeC<{
|
3466
|
+
value: t.StringC;
|
3467
|
+
symbol: t.StringC;
|
3468
|
+
}>;
|
3469
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3470
|
+
intentType: t.KeyofC<{
|
3471
|
+
payment: t.LiteralC<"payment">;
|
3472
|
+
transferToken: t.LiteralC<"transferToken">;
|
3473
|
+
consolidate: t.LiteralC<"consolidate">;
|
3474
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
3475
|
+
fanout: t.LiteralC<"fanout">;
|
3476
|
+
stake: t.LiteralC<"stake">;
|
3477
|
+
unstake: t.LiteralC<"unstake">;
|
3478
|
+
delegate: t.LiteralC<"delegate">;
|
3479
|
+
undelegate: t.LiteralC<"undelegate">;
|
3480
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
3481
|
+
claim: t.LiteralC<"claim">;
|
3482
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
3483
|
+
pledge: t.LiteralC<"pledge">;
|
3484
|
+
vote: t.LiteralC<"vote">;
|
3485
|
+
createAccount: t.LiteralC<"createAccount">;
|
3486
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
3487
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
3488
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
3489
|
+
signMessage: t.LiteralC<"signMessage">;
|
3490
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
3491
|
+
enableToken: t.LiteralC<"enableToken">;
|
3492
|
+
authorize: t.LiteralC<"authorize">;
|
3493
|
+
acceleration: t.LiteralC<"acceleration">;
|
3494
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
3495
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
3496
|
+
contractCall: t.LiteralC<"contractCall">;
|
3497
|
+
deactivate: t.LiteralC<"deactivate">;
|
3498
|
+
customTx: t.LiteralC<"customTx">;
|
3499
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
3500
|
+
}>;
|
3501
|
+
}>, t.PartialC<{
|
3502
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3503
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3504
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3505
|
+
}>]>, t.TypeC<{
|
3506
|
+
stakingRequestId: t.StringC;
|
3507
|
+
}>]>, t.TypeC<{
|
3508
|
+
calldata: t.StringC;
|
3509
|
+
}>]>, t.TypeC<{
|
3510
|
+
intentType: t.LiteralC<"stakeClaimRewards">;
|
3335
3511
|
}>]>, t.IntersectionC<[t.TypeC<{
|
3336
3512
|
intentType: t.KeyofC<{
|
3337
3513
|
payment: t.LiteralC<"payment">;
|
@@ -82,6 +82,10 @@ const ethTransferTokenIntent_1 = require("./ethTransferTokenIntent");
|
|
82
82
|
const baseIntent_1 = require("./baseIntent");
|
83
83
|
const dotConsolidateIntent_1 = require("./dotConsolidateIntent");
|
84
84
|
const solCloseAssociatedTokenAccountIntent_1 = require("./solCloseAssociatedTokenAccountIntent");
|
85
|
+
const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
|
86
|
+
const coredaoDelegateIntent_1 = require("./coredaoDelegateIntent");
|
87
|
+
const coredaoUndelegateIntent_1 = require("./coredaoUndelegateIntent");
|
88
|
+
const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
|
85
89
|
exports.TransactionIntent = t.union([
|
86
90
|
adaConsolidateIntent_1.AdaConsolidateIntent,
|
87
91
|
adaPaymentIntent_1.AdaPaymentIntent,
|
@@ -139,6 +143,10 @@ exports.TransactionIntent = t.union([
|
|
139
143
|
tonPaymentIntent_1.TonPaymentIntent,
|
140
144
|
tonUndelegateIntent_1.TonUndelegateIntent,
|
141
145
|
walletRecoveryIntent_1.WalletRecoveryIntent,
|
146
|
+
baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
|
147
|
+
coredaoDelegateIntent_1.CoreDaoDelegateIntent,
|
148
|
+
coredaoUndelegateIntent_1.CoreDaoUndelegateIntent,
|
149
|
+
coredaoClaimIntent_1.CoreDaoClaimIntent,
|
142
150
|
baseIntent_1.BaseIntent,
|
143
151
|
]);
|
144
152
|
//# sourceMappingURL=intent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAC9D,iGAA8F;
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACp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,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAIlB,uBAAU;CACX,CAAC,CAAC"}
|
@@ -21,6 +21,7 @@ export declare enum WebhookTypeEnum {
|
|
21
21
|
"accountCreated" = "accountCreated",
|
22
22
|
"contractAgreed" = "contractAgreed",
|
23
23
|
"fundsDeposited" = "fundsDeposited",
|
24
|
+
"kycResult" = "kycResult",
|
24
25
|
"policyBalanceChange" = "policyBalanceChange",
|
25
26
|
"transaction_finality_on_l1" = "transaction_finality_on_l1"
|
26
27
|
}
|
@@ -48,6 +48,7 @@ var WebhookTypeEnum;
|
|
48
48
|
WebhookTypeEnum["accountCreated"] = "accountCreated";
|
49
49
|
WebhookTypeEnum["contractAgreed"] = "contractAgreed";
|
50
50
|
WebhookTypeEnum["fundsDeposited"] = "fundsDeposited";
|
51
|
+
WebhookTypeEnum["kycResult"] = "kycResult";
|
51
52
|
WebhookTypeEnum["policyBalanceChange"] = "policyBalanceChange";
|
52
53
|
WebhookTypeEnum["transaction_finality_on_l1"] = "transaction_finality_on_l1";
|
53
54
|
})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,
|
1
|
+
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAkCX;AAlCD,WAAY,eAAe;IAEzB,0CAAyB,CAAA;IAEzB,gEAA+C,CAAA;I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AAK,CAC1C,yBAAyB,EACzB,uBAAuB,CACxB,CAAC"}
|
package/package.json
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @title Base Stake Intent with Calldata
|
6
|
+
*
|
7
|
+
* @description The base intent used for staking requests that have precomputed calldata
|
8
|
+
*
|
9
|
+
* @param {string} calldata The precomputed calldata
|
10
|
+
*/
|
11
|
+
export const BaseStakeIntentWithCalldata = t.intersection([
|
12
|
+
BaseStakeIntent,
|
13
|
+
t.type({
|
14
|
+
calldata: t.string,
|
15
|
+
}),
|
16
|
+
]);
|
17
|
+
|
18
|
+
export type BaseStakeIntentWithCalldata = t.TypeOf<
|
19
|
+
typeof BaseStakeIntentWithCalldata
|
20
|
+
>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @title CoreDAO Claim Rewards Intent
|
7
|
+
*
|
8
|
+
* @description The intent for claim rewards requests and transactions for CoreDAO
|
9
|
+
*
|
10
|
+
* @param {string} intentType The type of intent (always set to stakeClaimRewards)
|
11
|
+
*/
|
12
|
+
export const CoreDaoClaimIntent = t.intersection([
|
13
|
+
BaseStakeIntentWithCalldata,
|
14
|
+
t.type({
|
15
|
+
intentType: intentTypes.stakeClaimRewards,
|
16
|
+
}),
|
17
|
+
]);
|
18
|
+
|
19
|
+
export type CoreDaoClaimIntent = t.TypeOf<typeof CoreDaoClaimIntent>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
|
3
|
+
import { Amount } from "./amount";
|
4
|
+
import { intentTypes } from "./intentType";
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @title CoreDAO Delegate Intent
|
8
|
+
*
|
9
|
+
* @description The intent for delegate (stake) requests and transactions for CoreDAO
|
10
|
+
*
|
11
|
+
* @param {string} intentType The type of intent (always set to delegate)
|
12
|
+
* @param {string} validatorAddress The address of the validator
|
13
|
+
* @param {Amount} amount The amount to delegate
|
14
|
+
*/
|
15
|
+
export const CoreDaoDelegateIntent = t.intersection([
|
16
|
+
BaseStakeIntentWithCalldata,
|
17
|
+
t.type({
|
18
|
+
intentType: intentTypes.delegate,
|
19
|
+
validatorAddress: t.string,
|
20
|
+
amount: Amount,
|
21
|
+
}),
|
22
|
+
]);
|
23
|
+
|
24
|
+
export type CoreDaoDelegateIntent = t.TypeOf<typeof CoreDaoDelegateIntent>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
|
3
|
+
import { Amount } from "./amount";
|
4
|
+
import { intentTypes } from "./intentType";
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @title CoreDAO Undelegate Intent
|
8
|
+
*
|
9
|
+
* @description The intent for undelegate (unstake) requests and transactions for CoreDAO
|
10
|
+
*
|
11
|
+
* @param {string} intentType The type of intent (always set to undelegate)
|
12
|
+
* @param {string} validatorAddress The address of the validator
|
13
|
+
* @param {Amonut} amount The amount to undelegate from the validator
|
14
|
+
*/
|
15
|
+
export const CoreDaoUndelegateIntent = t.intersection([
|
16
|
+
BaseStakeIntentWithCalldata,
|
17
|
+
t.type({
|
18
|
+
intentType: intentTypes.undelegate,
|
19
|
+
validatorAddress: t.string,
|
20
|
+
amount: Amount,
|
21
|
+
}),
|
22
|
+
]);
|
23
|
+
|
24
|
+
export type CoreDaoUndelegateIntent = t.TypeOf<typeof CoreDaoUndelegateIntent>;
|
@@ -17,11 +17,15 @@ export * from "./atomUnstakeIntent";
|
|
17
17
|
export * from "./atomWithdrawIntent";
|
18
18
|
export * from "./baseIntent";
|
19
19
|
export * from "./baseStakeIntent";
|
20
|
+
export * from "./baseStakeIntentWithCalldata";
|
20
21
|
export * from "./bscDelegateIntent";
|
21
22
|
export * from "./bscStakeClaimRewardsIntent";
|
22
23
|
export * from "./bscUndelegateIntent";
|
23
24
|
export * from "./bscWithdrawUndelegateIntent";
|
24
25
|
export * from "./consolidateTokenIntent";
|
26
|
+
export * from "./coredaoClaimIntent";
|
27
|
+
export * from "./coredaoDelegateIntent";
|
28
|
+
export * from "./coredaoUndelegateIntent";
|
25
29
|
export * from "./cosmosPaymentIntent";
|
26
30
|
export * from "./cosmosStakeIntent";
|
27
31
|
export * from "./cosmosSwitchValidatorIntent";
|
@@ -56,6 +56,10 @@ import { EthTransferTokenIntent } from "./ethTransferTokenIntent";
|
|
56
56
|
import { BaseIntent } from "./baseIntent";
|
57
57
|
import { DotConsolidateIntent } from "./dotConsolidateIntent";
|
58
58
|
import { SolCloseAssociatedTokenAccountIntent } from "./solCloseAssociatedTokenAccountIntent";
|
59
|
+
import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
|
60
|
+
import { CoreDaoDelegateIntent } from "./coredaoDelegateIntent";
|
61
|
+
import { CoreDaoUndelegateIntent } from "./coredaoUndelegateIntent";
|
62
|
+
import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
|
59
63
|
|
60
64
|
export const TransactionIntent = t.union([
|
61
65
|
AdaConsolidateIntent,
|
@@ -114,6 +118,10 @@ export const TransactionIntent = t.union([
|
|
114
118
|
TonPaymentIntent,
|
115
119
|
TonUndelegateIntent,
|
116
120
|
WalletRecoveryIntent,
|
121
|
+
BaseStakeIntentWithCalldata,
|
122
|
+
CoreDaoDelegateIntent,
|
123
|
+
CoreDaoUndelegateIntent,
|
124
|
+
CoreDaoClaimIntent,
|
117
125
|
/**
|
118
126
|
* Catch all for past intents that have not been converted to codecs
|
119
127
|
*/
|