@bitgo/public-types 6.39.0 → 6.40.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/defi/index.d.ts +1 -0
- package/dist/src/schema/defi/index.js +18 -0
- package/dist/src/schema/defi/index.js.map +1 -0
- package/dist/src/schema/defi/vault.d.ts +135 -0
- package/dist/src/schema/defi/vault.js +114 -0
- package/dist/src/schema/defi/vault.js.map +1 -0
- package/dist/src/schema/index.d.ts +1 -0
- package/dist/src/schema/index.js +1 -0
- package/dist/src/schema/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.js +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.js +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.js +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +5 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +10 -0
- package/package.json +1 -1
- package/src/schema/defi/index.ts +1 -0
- package/src/schema/defi/vault.ts +115 -0
- package/src/schema/index.ts +1 -0
- package/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.ts +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vault";
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./vault"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/defi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare enum VaultProtocol {
|
|
3
|
+
MORPHO = "morpho",
|
|
4
|
+
CONCRETE_BTCCX = "concrete_btccx"
|
|
5
|
+
}
|
|
6
|
+
export declare const VaultProtocolType: t.UnionC<[t.LiteralC<VaultProtocol.MORPHO>, t.LiteralC<VaultProtocol.CONCRETE_BTCCX>]>;
|
|
7
|
+
export type VaultProtocolType = t.TypeOf<typeof VaultProtocolType>;
|
|
8
|
+
export declare enum VaultStatus {
|
|
9
|
+
ACTIVE = "active",
|
|
10
|
+
PAUSED = "paused",
|
|
11
|
+
DISABLED = "disabled"
|
|
12
|
+
}
|
|
13
|
+
export declare const VaultStatusType: t.UnionC<[t.LiteralC<VaultStatus.ACTIVE>, t.LiteralC<VaultStatus.PAUSED>, t.LiteralC<VaultStatus.DISABLED>]>;
|
|
14
|
+
export type VaultStatusType = t.TypeOf<typeof VaultStatusType>;
|
|
15
|
+
export declare enum VaultCustody {
|
|
16
|
+
QUALIFIED = "qualified",
|
|
17
|
+
NON_QUALIFIED = "non-qualified"
|
|
18
|
+
}
|
|
19
|
+
export declare const VaultCustodyType: t.UnionC<[t.LiteralC<VaultCustody.QUALIFIED>, t.LiteralC<VaultCustody.NON_QUALIFIED>]>;
|
|
20
|
+
export type VaultCustodyType = t.TypeOf<typeof VaultCustodyType>;
|
|
21
|
+
export declare const VaultUrls: t.PartialC<{
|
|
22
|
+
riskManager: t.StringC;
|
|
23
|
+
protocol: t.StringC;
|
|
24
|
+
audits: t.StringC;
|
|
25
|
+
protocolDisclaimers: t.StringC;
|
|
26
|
+
}>;
|
|
27
|
+
export type VaultUrls = t.TypeOf<typeof VaultUrls>;
|
|
28
|
+
export declare const VaultComposition: t.IntersectionC<[t.TypeC<{
|
|
29
|
+
asset: t.StringC;
|
|
30
|
+
apy: t.NumberC;
|
|
31
|
+
tvlUsd: t.NumberC;
|
|
32
|
+
}>, t.PartialC<{
|
|
33
|
+
iconUrl: t.StringC;
|
|
34
|
+
}>]>;
|
|
35
|
+
export type VaultComposition = t.TypeOf<typeof VaultComposition>;
|
|
36
|
+
export declare const ConcreteVaultConfig: t.TypeC<{
|
|
37
|
+
sourceWalletId: t.StringC;
|
|
38
|
+
escrowWalletId: t.StringC;
|
|
39
|
+
escrowDepositAddress: t.StringC;
|
|
40
|
+
positionWalletId: t.StringC;
|
|
41
|
+
positionBaseAddress: t.StringC;
|
|
42
|
+
}>;
|
|
43
|
+
export type ConcreteVaultConfig = t.TypeOf<typeof ConcreteVaultConfig>;
|
|
44
|
+
export declare const Vault: t.IntersectionC<[t.TypeC<{
|
|
45
|
+
id: t.StringC;
|
|
46
|
+
name: t.StringC;
|
|
47
|
+
provider: t.UnionC<[t.LiteralC<VaultProtocol.MORPHO>, t.LiteralC<VaultProtocol.CONCRETE_BTCCX>]>;
|
|
48
|
+
status: t.UnionC<[t.LiteralC<VaultStatus.ACTIVE>, t.LiteralC<VaultStatus.PAUSED>, t.LiteralC<VaultStatus.DISABLED>]>;
|
|
49
|
+
coin: t.StringC;
|
|
50
|
+
assetToken: t.StringC;
|
|
51
|
+
shareToken: t.StringC;
|
|
52
|
+
riskManager: t.StringC;
|
|
53
|
+
custodyType: t.UnionC<[t.LiteralC<VaultCustody.QUALIFIED>, t.LiteralC<VaultCustody.NON_QUALIFIED>]>;
|
|
54
|
+
vaultContractAddress: t.StringC;
|
|
55
|
+
}>, t.PartialC<{
|
|
56
|
+
apy: t.NumberC;
|
|
57
|
+
tvl: t.NumberC;
|
|
58
|
+
tvlUsd: t.NumberC;
|
|
59
|
+
concreteConfig: t.TypeC<{
|
|
60
|
+
sourceWalletId: t.StringC;
|
|
61
|
+
escrowWalletId: t.StringC;
|
|
62
|
+
escrowDepositAddress: t.StringC;
|
|
63
|
+
positionWalletId: t.StringC;
|
|
64
|
+
positionBaseAddress: t.StringC;
|
|
65
|
+
}>;
|
|
66
|
+
}>]>;
|
|
67
|
+
export type Vault = t.TypeOf<typeof Vault>;
|
|
68
|
+
export declare const GetVaultResponse: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
69
|
+
id: t.StringC;
|
|
70
|
+
name: t.StringC;
|
|
71
|
+
provider: t.UnionC<[t.LiteralC<VaultProtocol.MORPHO>, t.LiteralC<VaultProtocol.CONCRETE_BTCCX>]>;
|
|
72
|
+
status: t.UnionC<[t.LiteralC<VaultStatus.ACTIVE>, t.LiteralC<VaultStatus.PAUSED>, t.LiteralC<VaultStatus.DISABLED>]>;
|
|
73
|
+
coin: t.StringC;
|
|
74
|
+
assetToken: t.StringC;
|
|
75
|
+
shareToken: t.StringC;
|
|
76
|
+
riskManager: t.StringC;
|
|
77
|
+
custodyType: t.UnionC<[t.LiteralC<VaultCustody.QUALIFIED>, t.LiteralC<VaultCustody.NON_QUALIFIED>]>;
|
|
78
|
+
vaultContractAddress: t.StringC;
|
|
79
|
+
}>, t.PartialC<{
|
|
80
|
+
apy: t.NumberC;
|
|
81
|
+
tvl: t.NumberC;
|
|
82
|
+
tvlUsd: t.NumberC;
|
|
83
|
+
concreteConfig: t.TypeC<{
|
|
84
|
+
sourceWalletId: t.StringC;
|
|
85
|
+
escrowWalletId: t.StringC;
|
|
86
|
+
escrowDepositAddress: t.StringC;
|
|
87
|
+
positionWalletId: t.StringC;
|
|
88
|
+
positionBaseAddress: t.StringC;
|
|
89
|
+
}>;
|
|
90
|
+
}>]>, t.PartialC<{
|
|
91
|
+
deployedAt: t.StringC;
|
|
92
|
+
urls: t.PartialC<{
|
|
93
|
+
riskManager: t.StringC;
|
|
94
|
+
protocol: t.StringC;
|
|
95
|
+
audits: t.StringC;
|
|
96
|
+
protocolDisclaimers: t.StringC;
|
|
97
|
+
}>;
|
|
98
|
+
performanceFee: t.NumberC;
|
|
99
|
+
managementFee: t.NumberC;
|
|
100
|
+
composition: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
101
|
+
asset: t.StringC;
|
|
102
|
+
apy: t.NumberC;
|
|
103
|
+
tvlUsd: t.NumberC;
|
|
104
|
+
}>, t.PartialC<{
|
|
105
|
+
iconUrl: t.StringC;
|
|
106
|
+
}>]>>;
|
|
107
|
+
}>]>;
|
|
108
|
+
export type GetVaultResponse = t.TypeOf<typeof GetVaultResponse>;
|
|
109
|
+
export declare const ListVaultsResponse: t.TypeC<{
|
|
110
|
+
vaults: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
111
|
+
id: t.StringC;
|
|
112
|
+
name: t.StringC;
|
|
113
|
+
provider: t.UnionC<[t.LiteralC<VaultProtocol.MORPHO>, t.LiteralC<VaultProtocol.CONCRETE_BTCCX>]>;
|
|
114
|
+
status: t.UnionC<[t.LiteralC<VaultStatus.ACTIVE>, t.LiteralC<VaultStatus.PAUSED>, t.LiteralC<VaultStatus.DISABLED>]>;
|
|
115
|
+
coin: t.StringC;
|
|
116
|
+
assetToken: t.StringC;
|
|
117
|
+
shareToken: t.StringC;
|
|
118
|
+
riskManager: t.StringC;
|
|
119
|
+
custodyType: t.UnionC<[t.LiteralC<VaultCustody.QUALIFIED>, t.LiteralC<VaultCustody.NON_QUALIFIED>]>;
|
|
120
|
+
vaultContractAddress: t.StringC;
|
|
121
|
+
}>, t.PartialC<{
|
|
122
|
+
apy: t.NumberC;
|
|
123
|
+
tvl: t.NumberC;
|
|
124
|
+
tvlUsd: t.NumberC;
|
|
125
|
+
concreteConfig: t.TypeC<{
|
|
126
|
+
sourceWalletId: t.StringC;
|
|
127
|
+
escrowWalletId: t.StringC;
|
|
128
|
+
escrowDepositAddress: t.StringC;
|
|
129
|
+
positionWalletId: t.StringC;
|
|
130
|
+
positionBaseAddress: t.StringC;
|
|
131
|
+
}>;
|
|
132
|
+
}>]>>;
|
|
133
|
+
totalVaultCount: t.NumberC;
|
|
134
|
+
}>;
|
|
135
|
+
export type ListVaultsResponse = t.TypeOf<typeof ListVaultsResponse>;
|
|
@@ -0,0 +1,114 @@
|
|
|
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.ListVaultsResponse = exports.GetVaultResponse = exports.Vault = exports.ConcreteVaultConfig = exports.VaultComposition = exports.VaultUrls = exports.VaultCustodyType = exports.VaultCustody = exports.VaultStatusType = exports.VaultStatus = exports.VaultProtocolType = exports.VaultProtocol = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
var VaultProtocol;
|
|
29
|
+
(function (VaultProtocol) {
|
|
30
|
+
VaultProtocol["MORPHO"] = "morpho";
|
|
31
|
+
VaultProtocol["CONCRETE_BTCCX"] = "concrete_btccx";
|
|
32
|
+
})(VaultProtocol || (exports.VaultProtocol = VaultProtocol = {}));
|
|
33
|
+
exports.VaultProtocolType = t.union([
|
|
34
|
+
t.literal(VaultProtocol.MORPHO),
|
|
35
|
+
t.literal(VaultProtocol.CONCRETE_BTCCX),
|
|
36
|
+
]);
|
|
37
|
+
var VaultStatus;
|
|
38
|
+
(function (VaultStatus) {
|
|
39
|
+
VaultStatus["ACTIVE"] = "active";
|
|
40
|
+
VaultStatus["PAUSED"] = "paused";
|
|
41
|
+
VaultStatus["DISABLED"] = "disabled";
|
|
42
|
+
})(VaultStatus || (exports.VaultStatus = VaultStatus = {}));
|
|
43
|
+
exports.VaultStatusType = t.union([
|
|
44
|
+
t.literal(VaultStatus.ACTIVE),
|
|
45
|
+
t.literal(VaultStatus.PAUSED),
|
|
46
|
+
t.literal(VaultStatus.DISABLED),
|
|
47
|
+
]);
|
|
48
|
+
var VaultCustody;
|
|
49
|
+
(function (VaultCustody) {
|
|
50
|
+
VaultCustody["QUALIFIED"] = "qualified";
|
|
51
|
+
VaultCustody["NON_QUALIFIED"] = "non-qualified";
|
|
52
|
+
})(VaultCustody || (exports.VaultCustody = VaultCustody = {}));
|
|
53
|
+
exports.VaultCustodyType = t.union([
|
|
54
|
+
t.literal(VaultCustody.QUALIFIED),
|
|
55
|
+
t.literal(VaultCustody.NON_QUALIFIED),
|
|
56
|
+
]);
|
|
57
|
+
exports.VaultUrls = t.partial({
|
|
58
|
+
riskManager: t.string,
|
|
59
|
+
protocol: t.string,
|
|
60
|
+
audits: t.string,
|
|
61
|
+
protocolDisclaimers: t.string,
|
|
62
|
+
});
|
|
63
|
+
exports.VaultComposition = t.intersection([
|
|
64
|
+
t.type({
|
|
65
|
+
asset: t.string,
|
|
66
|
+
apy: t.number,
|
|
67
|
+
tvlUsd: t.number,
|
|
68
|
+
}),
|
|
69
|
+
t.partial({
|
|
70
|
+
iconUrl: t.string,
|
|
71
|
+
}),
|
|
72
|
+
]);
|
|
73
|
+
exports.ConcreteVaultConfig = t.type({
|
|
74
|
+
sourceWalletId: t.string,
|
|
75
|
+
escrowWalletId: t.string,
|
|
76
|
+
escrowDepositAddress: t.string,
|
|
77
|
+
positionWalletId: t.string,
|
|
78
|
+
positionBaseAddress: t.string,
|
|
79
|
+
});
|
|
80
|
+
exports.Vault = t.intersection([
|
|
81
|
+
t.type({
|
|
82
|
+
id: t.string,
|
|
83
|
+
name: t.string,
|
|
84
|
+
provider: exports.VaultProtocolType,
|
|
85
|
+
status: exports.VaultStatusType,
|
|
86
|
+
coin: t.string,
|
|
87
|
+
assetToken: t.string,
|
|
88
|
+
shareToken: t.string,
|
|
89
|
+
riskManager: t.string,
|
|
90
|
+
custodyType: exports.VaultCustodyType,
|
|
91
|
+
vaultContractAddress: t.string,
|
|
92
|
+
}),
|
|
93
|
+
t.partial({
|
|
94
|
+
apy: t.number,
|
|
95
|
+
tvl: t.number,
|
|
96
|
+
tvlUsd: t.number,
|
|
97
|
+
concreteConfig: exports.ConcreteVaultConfig,
|
|
98
|
+
}),
|
|
99
|
+
]);
|
|
100
|
+
exports.GetVaultResponse = t.intersection([
|
|
101
|
+
exports.Vault,
|
|
102
|
+
t.partial({
|
|
103
|
+
deployedAt: t.string,
|
|
104
|
+
urls: exports.VaultUrls,
|
|
105
|
+
performanceFee: t.number,
|
|
106
|
+
managementFee: t.number,
|
|
107
|
+
composition: t.array(exports.VaultComposition),
|
|
108
|
+
}),
|
|
109
|
+
]);
|
|
110
|
+
exports.ListVaultsResponse = t.type({
|
|
111
|
+
vaults: t.array(exports.Vault),
|
|
112
|
+
totalVaultCount: t.number,
|
|
113
|
+
});
|
|
114
|
+
//# sourceMappingURL=vault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.js","sourceRoot":"","sources":["../../../../src/schema/defi/vault.ts"],"names":[],"mappings":"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"}
|
package/dist/src/schema/index.js
CHANGED
|
@@ -24,4 +24,5 @@ __exportStar(require("./tss"), exports);
|
|
|
24
24
|
__exportStar(require("./lightning"), exports);
|
|
25
25
|
__exportStar(require("./enterprise"), exports);
|
|
26
26
|
__exportStar(require("./webauthn"), exports);
|
|
27
|
+
__exportStar(require("./defi"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,yCAAuB"}
|
package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.d.ts
CHANGED
|
@@ -79,5 +79,7 @@ export declare const CantonEndInvestorOnboardingAcceptIntent: t.IntersectionC<[t
|
|
|
79
79
|
}>]>, t.TypeC<{
|
|
80
80
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingAccept">;
|
|
81
81
|
txRequestId: t.StringC;
|
|
82
|
+
}>, t.PartialC<{
|
|
83
|
+
participantPartyId: t.StringC;
|
|
82
84
|
}>]>;
|
|
83
85
|
export type CantonEndInvestorOnboardingAcceptIntent = t.TypeOf<typeof CantonEndInvestorOnboardingAcceptIntent>;
|
package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.js
CHANGED
|
@@ -33,5 +33,8 @@ exports.CantonEndInvestorOnboardingAcceptIntent = t.intersection([
|
|
|
33
33
|
intentType: intentType_1.intentTypes.cantonEndInvestorOnboardingAccept,
|
|
34
34
|
txRequestId: t.string,
|
|
35
35
|
}),
|
|
36
|
+
t.partial({
|
|
37
|
+
participantPartyId: t.string,
|
|
38
|
+
}),
|
|
36
39
|
]);
|
|
37
40
|
//# sourceMappingURL=cantonEndInvestorOnboardingAcceptIntent.js.map
|
package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonEndInvestorOnboardingAcceptIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonEndInvestorOnboardingAcceptIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAY9B,QAAA,uCAAuC,GAAG,CAAC,CAAC,YAAY,CAAC;IACpE,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iCAAiC;QACzD,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,kBAAkB,EAAE,CAAC,CAAC,MAAM;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export declare const CantonEndInvestorOnboardingOfferIntent: t.IntersectionC<[t.
|
|
|
80
80
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingOffer">;
|
|
81
81
|
endInvestorPartyId: t.StringC;
|
|
82
82
|
}>, t.PartialC<{
|
|
83
|
+
participantPartyId: t.StringC;
|
|
83
84
|
comment: t.StringC;
|
|
84
85
|
}>]>;
|
|
85
86
|
export type CantonEndInvestorOnboardingOfferIntent = t.TypeOf<typeof CantonEndInvestorOnboardingOfferIntent>;
|
package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonEndInvestorOnboardingOfferIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonEndInvestorOnboardingOfferIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,sCAAsC,GAAG,CAAC,CAAC,YAAY,CAAC;IACnE,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,gCAAgC;QACxD,kBAAkB,EAAE,CAAC,CAAC,MAAM;KAC7B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,kBAAkB,EAAE,CAAC,CAAC,MAAM;QAC5B,OAAO,EAAE,CAAC,CAAC,MAAM;KAClB,CAAC;CACH,CAAC,CAAC"}
|
package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.d.ts
CHANGED
|
@@ -80,5 +80,7 @@ export declare const CantonEndInvestorOnboardingRejectIntent: t.IntersectionC<[t
|
|
|
80
80
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingReject">;
|
|
81
81
|
txRequestId: t.StringC;
|
|
82
82
|
reason: t.StringC;
|
|
83
|
+
}>, t.PartialC<{
|
|
84
|
+
participantPartyId: t.StringC;
|
|
83
85
|
}>]>;
|
|
84
86
|
export type CantonEndInvestorOnboardingRejectIntent = t.TypeOf<typeof CantonEndInvestorOnboardingRejectIntent>;
|
package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonEndInvestorOnboardingRejectIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonEndInvestorOnboardingRejectIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,uCAAuC,GAAG,CAAC,CAAC,YAAY,CAAC;IACpE,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iCAAiC;QACzD,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,kBAAkB,EAAE,CAAC,CAAC,MAAM;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2564,6 +2564,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2564
2564
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingOffer">;
|
|
2565
2565
|
endInvestorPartyId: t.StringC;
|
|
2566
2566
|
}>, t.PartialC<{
|
|
2567
|
+
participantPartyId: t.StringC;
|
|
2567
2568
|
comment: t.StringC;
|
|
2568
2569
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2569
2570
|
intentType: t.KeyofC<{
|
|
@@ -2645,6 +2646,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2645
2646
|
}>]>, t.TypeC<{
|
|
2646
2647
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingAccept">;
|
|
2647
2648
|
txRequestId: t.StringC;
|
|
2649
|
+
}>, t.PartialC<{
|
|
2650
|
+
participantPartyId: t.StringC;
|
|
2648
2651
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2649
2652
|
intentType: t.KeyofC<{
|
|
2650
2653
|
payment: t.LiteralC<"payment">;
|
|
@@ -2726,6 +2729,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2726
2729
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingReject">;
|
|
2727
2730
|
txRequestId: t.StringC;
|
|
2728
2731
|
reason: t.StringC;
|
|
2732
|
+
}>, t.PartialC<{
|
|
2733
|
+
participantPartyId: t.StringC;
|
|
2729
2734
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2730
2735
|
intentType: t.KeyofC<{
|
|
2731
2736
|
payment: t.LiteralC<"payment">;
|
|
@@ -2662,6 +2662,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2662
2662
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingOffer">;
|
|
2663
2663
|
endInvestorPartyId: t.StringC;
|
|
2664
2664
|
}>, t.PartialC<{
|
|
2665
|
+
participantPartyId: t.StringC;
|
|
2665
2666
|
comment: t.StringC;
|
|
2666
2667
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2667
2668
|
intentType: t.KeyofC<{
|
|
@@ -2743,6 +2744,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2743
2744
|
}>]>, t.TypeC<{
|
|
2744
2745
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingAccept">;
|
|
2745
2746
|
txRequestId: t.StringC;
|
|
2747
|
+
}>, t.PartialC<{
|
|
2748
|
+
participantPartyId: t.StringC;
|
|
2746
2749
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2747
2750
|
intentType: t.KeyofC<{
|
|
2748
2751
|
payment: t.LiteralC<"payment">;
|
|
@@ -2824,6 +2827,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2824
2827
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingReject">;
|
|
2825
2828
|
txRequestId: t.StringC;
|
|
2826
2829
|
reason: t.StringC;
|
|
2830
|
+
}>, t.PartialC<{
|
|
2831
|
+
participantPartyId: t.StringC;
|
|
2827
2832
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2828
2833
|
intentType: t.KeyofC<{
|
|
2829
2834
|
payment: t.LiteralC<"payment">;
|
|
@@ -17998,6 +18003,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
17998
18003
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingOffer">;
|
|
17999
18004
|
endInvestorPartyId: t.StringC;
|
|
18000
18005
|
}>, t.PartialC<{
|
|
18006
|
+
participantPartyId: t.StringC;
|
|
18001
18007
|
comment: t.StringC;
|
|
18002
18008
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
18003
18009
|
intentType: t.KeyofC<{
|
|
@@ -18079,6 +18085,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
18079
18085
|
}>]>, t.TypeC<{
|
|
18080
18086
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingAccept">;
|
|
18081
18087
|
txRequestId: t.StringC;
|
|
18088
|
+
}>, t.PartialC<{
|
|
18089
|
+
participantPartyId: t.StringC;
|
|
18082
18090
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
18083
18091
|
intentType: t.KeyofC<{
|
|
18084
18092
|
payment: t.LiteralC<"payment">;
|
|
@@ -18160,6 +18168,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
18160
18168
|
intentType: t.LiteralC<"cantonEndInvestorOnboardingReject">;
|
|
18161
18169
|
txRequestId: t.StringC;
|
|
18162
18170
|
reason: t.StringC;
|
|
18171
|
+
}>, t.PartialC<{
|
|
18172
|
+
participantPartyId: t.StringC;
|
|
18163
18173
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
18164
18174
|
intentType: t.KeyofC<{
|
|
18165
18175
|
payment: t.LiteralC<"payment">;
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vault";
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
// ── Enums ──────────────────────────────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
export enum VaultProtocol {
|
|
6
|
+
MORPHO = "morpho",
|
|
7
|
+
CONCRETE_BTCCX = "concrete_btccx",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const VaultProtocolType = t.union([
|
|
11
|
+
t.literal(VaultProtocol.MORPHO),
|
|
12
|
+
t.literal(VaultProtocol.CONCRETE_BTCCX),
|
|
13
|
+
]);
|
|
14
|
+
export type VaultProtocolType = t.TypeOf<typeof VaultProtocolType>;
|
|
15
|
+
|
|
16
|
+
export enum VaultStatus {
|
|
17
|
+
ACTIVE = "active",
|
|
18
|
+
PAUSED = "paused",
|
|
19
|
+
DISABLED = "disabled",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const VaultStatusType = t.union([
|
|
23
|
+
t.literal(VaultStatus.ACTIVE),
|
|
24
|
+
t.literal(VaultStatus.PAUSED),
|
|
25
|
+
t.literal(VaultStatus.DISABLED),
|
|
26
|
+
]);
|
|
27
|
+
export type VaultStatusType = t.TypeOf<typeof VaultStatusType>;
|
|
28
|
+
|
|
29
|
+
export enum VaultCustody {
|
|
30
|
+
QUALIFIED = "qualified",
|
|
31
|
+
NON_QUALIFIED = "non-qualified",
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const VaultCustodyType = t.union([
|
|
35
|
+
t.literal(VaultCustody.QUALIFIED),
|
|
36
|
+
t.literal(VaultCustody.NON_QUALIFIED),
|
|
37
|
+
]);
|
|
38
|
+
export type VaultCustodyType = t.TypeOf<typeof VaultCustodyType>;
|
|
39
|
+
|
|
40
|
+
// ── Sub-shapes ─────────────────────────────────────────────────────────────
|
|
41
|
+
|
|
42
|
+
export const VaultUrls = t.partial({
|
|
43
|
+
riskManager: t.string,
|
|
44
|
+
protocol: t.string,
|
|
45
|
+
audits: t.string,
|
|
46
|
+
protocolDisclaimers: t.string,
|
|
47
|
+
});
|
|
48
|
+
export type VaultUrls = t.TypeOf<typeof VaultUrls>;
|
|
49
|
+
|
|
50
|
+
export const VaultComposition = t.intersection([
|
|
51
|
+
t.type({
|
|
52
|
+
asset: t.string,
|
|
53
|
+
apy: t.number,
|
|
54
|
+
tvlUsd: t.number,
|
|
55
|
+
}),
|
|
56
|
+
t.partial({
|
|
57
|
+
iconUrl: t.string,
|
|
58
|
+
}),
|
|
59
|
+
]);
|
|
60
|
+
export type VaultComposition = t.TypeOf<typeof VaultComposition>;
|
|
61
|
+
|
|
62
|
+
/** Wallet-mapping block present only on concrete_btccx vaults */
|
|
63
|
+
export const ConcreteVaultConfig = t.type({
|
|
64
|
+
sourceWalletId: t.string,
|
|
65
|
+
escrowWalletId: t.string,
|
|
66
|
+
escrowDepositAddress: t.string,
|
|
67
|
+
positionWalletId: t.string,
|
|
68
|
+
positionBaseAddress: t.string,
|
|
69
|
+
});
|
|
70
|
+
export type ConcreteVaultConfig = t.TypeOf<typeof ConcreteVaultConfig>;
|
|
71
|
+
|
|
72
|
+
// ── API response shapes ────────────────────────────────────────────────────
|
|
73
|
+
|
|
74
|
+
/** Shape of each item returned by GET /vaults */
|
|
75
|
+
export const Vault = t.intersection([
|
|
76
|
+
t.type({
|
|
77
|
+
id: t.string,
|
|
78
|
+
name: t.string,
|
|
79
|
+
provider: VaultProtocolType,
|
|
80
|
+
status: VaultStatusType,
|
|
81
|
+
coin: t.string,
|
|
82
|
+
assetToken: t.string,
|
|
83
|
+
shareToken: t.string,
|
|
84
|
+
riskManager: t.string,
|
|
85
|
+
custodyType: VaultCustodyType,
|
|
86
|
+
vaultContractAddress: t.string,
|
|
87
|
+
}),
|
|
88
|
+
t.partial({
|
|
89
|
+
apy: t.number,
|
|
90
|
+
tvl: t.number,
|
|
91
|
+
tvlUsd: t.number,
|
|
92
|
+
concreteConfig: ConcreteVaultConfig,
|
|
93
|
+
}),
|
|
94
|
+
]);
|
|
95
|
+
export type Vault = t.TypeOf<typeof Vault>;
|
|
96
|
+
|
|
97
|
+
/** Shape returned by GET /vaults/:id — extends Vault with enriched detail */
|
|
98
|
+
export const GetVaultResponse = t.intersection([
|
|
99
|
+
Vault,
|
|
100
|
+
t.partial({
|
|
101
|
+
deployedAt: t.string,
|
|
102
|
+
urls: VaultUrls,
|
|
103
|
+
performanceFee: t.number,
|
|
104
|
+
managementFee: t.number,
|
|
105
|
+
composition: t.array(VaultComposition),
|
|
106
|
+
}),
|
|
107
|
+
]);
|
|
108
|
+
export type GetVaultResponse = t.TypeOf<typeof GetVaultResponse>;
|
|
109
|
+
|
|
110
|
+
/** Shape returned by GET /vaults */
|
|
111
|
+
export const ListVaultsResponse = t.type({
|
|
112
|
+
vaults: t.array(Vault),
|
|
113
|
+
totalVaultCount: t.number,
|
|
114
|
+
});
|
|
115
|
+
export type ListVaultsResponse = t.TypeOf<typeof ListVaultsResponse>;
|
package/src/schema/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { intentTypes } from "./intentType";
|
|
|
10
10
|
*
|
|
11
11
|
* @param {String} intentType - The type of intent (always set to cantonEndInvestorOnboardingAccept)
|
|
12
12
|
* @param {string} txRequestId - The txRequestId of the corresponding onboarding offer
|
|
13
|
+
* @param {string} [participantPartyId] - The Canton party ID of the participant involved in the onboarding
|
|
13
14
|
*/
|
|
14
15
|
export const CantonEndInvestorOnboardingAcceptIntent = t.intersection([
|
|
15
16
|
BaseIntent,
|
|
@@ -17,6 +18,9 @@ export const CantonEndInvestorOnboardingAcceptIntent = t.intersection([
|
|
|
17
18
|
intentType: intentTypes.cantonEndInvestorOnboardingAccept,
|
|
18
19
|
txRequestId: t.string,
|
|
19
20
|
}),
|
|
21
|
+
t.partial({
|
|
22
|
+
participantPartyId: t.string,
|
|
23
|
+
}),
|
|
20
24
|
]);
|
|
21
25
|
|
|
22
26
|
export type CantonEndInvestorOnboardingAcceptIntent = t.TypeOf<
|
|
@@ -10,6 +10,7 @@ import { intentTypes } from "./intentType";
|
|
|
10
10
|
*
|
|
11
11
|
* @param {String} intentType - The type of intent (always set to cantonEndInvestorOnboardingOffer)
|
|
12
12
|
* @param {string} endInvestorPartyId - The Canton party ID of the end investor to onboard
|
|
13
|
+
* @param {string} [participantPartyId] - The Canton party ID of the participant making the offer
|
|
13
14
|
* @param {string} [comment] - Optional human-readable comment
|
|
14
15
|
*/
|
|
15
16
|
export const CantonEndInvestorOnboardingOfferIntent = t.intersection([
|
|
@@ -19,6 +20,7 @@ export const CantonEndInvestorOnboardingOfferIntent = t.intersection([
|
|
|
19
20
|
endInvestorPartyId: t.string,
|
|
20
21
|
}),
|
|
21
22
|
t.partial({
|
|
23
|
+
participantPartyId: t.string,
|
|
22
24
|
comment: t.string,
|
|
23
25
|
}),
|
|
24
26
|
]);
|
|
@@ -11,6 +11,7 @@ import { intentTypes } from "./intentType";
|
|
|
11
11
|
* @param {String} intentType - The type of intent (always set to cantonEndInvestorOnboardingReject)
|
|
12
12
|
* @param {string} txRequestId - The txRequestId of the corresponding onboarding offer
|
|
13
13
|
* @param {string} reason - The reason for rejecting the onboarding offer
|
|
14
|
+
* @param {string} [participantPartyId] - The Canton party ID of the participant involved in the onboarding
|
|
14
15
|
*/
|
|
15
16
|
export const CantonEndInvestorOnboardingRejectIntent = t.intersection([
|
|
16
17
|
BaseIntent,
|
|
@@ -19,6 +20,9 @@ export const CantonEndInvestorOnboardingRejectIntent = t.intersection([
|
|
|
19
20
|
txRequestId: t.string,
|
|
20
21
|
reason: t.string,
|
|
21
22
|
}),
|
|
23
|
+
t.partial({
|
|
24
|
+
participantPartyId: t.string,
|
|
25
|
+
}),
|
|
22
26
|
]);
|
|
23
27
|
|
|
24
28
|
export type CantonEndInvestorOnboardingRejectIntent = t.TypeOf<
|