carbon-js-sdk 0.7.7 → 0.7.8
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/lib/codec/Switcheo/carbon/evmcontract/evm_hooks.d.ts +67 -0
- package/lib/codec/Switcheo/carbon/evmcontract/evm_hooks.js +407 -0
- package/lib/codec/Switcheo/carbon/evmcontract/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/evmcontract/export.js +29 -0
- package/lib/codec/Switcheo/carbon/evmcontract/params.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/evmcontract/params.js +62 -0
- package/lib/codec/Switcheo/carbon/order/evm_hooks.d.ts +57 -0
- package/lib/codec/Switcheo/carbon/order/evm_hooks.js +356 -0
- package/lib/codec/Switcheo/carbon/position/evm_hooks.d.ts +32 -0
- package/lib/codec/Switcheo/carbon/position/evm_hooks.js +195 -0
- package/lib/codec/alliance/alliance/alliance.d.ts +65 -0
- package/lib/codec/alliance/alliance/alliance.js +354 -0
- package/lib/codec/alliance/alliance/delegations.d.ts +63 -0
- package/lib/codec/alliance/alliance/delegations.js +344 -0
- package/lib/codec/alliance/alliance/events.d.ts +71 -0
- package/lib/codec/alliance/alliance/events.js +452 -0
- package/lib/codec/alliance/alliance/export.d.ts +10 -0
- package/lib/codec/alliance/alliance/export.js +83 -0
- package/lib/codec/alliance/alliance/genesis.d.ts +75 -0
- package/lib/codec/alliance/alliance/genesis.js +470 -0
- package/lib/codec/alliance/alliance/gov.d.ts +78 -0
- package/lib/codec/alliance/alliance/gov.js +380 -0
- package/lib/codec/alliance/alliance/params.d.ts +34 -0
- package/lib/codec/alliance/alliance/params.js +182 -0
- package/lib/codec/alliance/alliance/query.d.ts +416 -0
- package/lib/codec/alliance/alliance/query.js +1970 -0
- package/lib/codec/alliance/alliance/redelegations.d.ts +57 -0
- package/lib/codec/alliance/alliance/redelegations.js +294 -0
- package/lib/codec/alliance/alliance/tx.d.ts +228 -0
- package/lib/codec/alliance/alliance/tx.js +1030 -0
- package/lib/codec/alliance/alliance/unbonding.d.ts +24 -0
- package/lib/codec/alliance/alliance/unbonding.js +110 -0
- package/lib/codec/amino/amino.d.ts +1 -0
- package/lib/codec/amino/amino.js +14 -0
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +66 -0
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +198 -0
- package/lib/codec/cosmos/auth/module/v1/module.d.ts +41 -0
- package/lib/codec/cosmos/auth/module/v1/module.js +149 -0
- package/lib/codec/cosmos/auth/v1beta1/tx.d.ts +64 -0
- package/lib/codec/cosmos/auth/v1beta1/tx.js +120 -0
- package/lib/codec/cosmos/authz/module/v1/module.d.ts +18 -0
- package/lib/codec/cosmos/authz/module/v1/module.js +46 -0
- package/lib/codec/cosmos/autocli/v1/options.d.ts +186 -0
- package/lib/codec/cosmos/autocli/v1/options.js +701 -0
- package/lib/codec/cosmos/autocli/v1/query.d.ts +60 -0
- package/lib/codec/cosmos/autocli/v1/query.js +180 -0
- package/lib/codec/cosmos/bank/module/v1/module.d.ts +26 -0
- package/lib/codec/cosmos/bank/module/v1/module.js +76 -0
- package/lib/codec/cosmos/capability/module/v1/module.d.ts +23 -0
- package/lib/codec/cosmos/capability/module/v1/module.js +59 -0
- package/lib/codec/cosmos/consensus/module/v1/module.d.ts +20 -0
- package/lib/codec/cosmos/consensus/module/v1/module.js +59 -0
- package/lib/codec/cosmos/consensus/v1/export.d.ts +2 -0
- package/lib/codec/cosmos/consensus/v1/export.js +9 -0
- package/lib/codec/cosmos/consensus/v1/query.d.ts +49 -0
- package/lib/codec/cosmos/consensus/v1/query.js +109 -0
- package/lib/codec/cosmos/consensus/v1/tx.d.ts +63 -0
- package/lib/codec/cosmos/consensus/v1/tx.js +158 -0
- package/lib/codec/cosmos/crisis/module/v1/module.d.ts +22 -0
- package/lib/codec/cosmos/crisis/module/v1/module.js +72 -0
- package/lib/codec/cosmos/distribution/module/v1/module.d.ts +21 -0
- package/lib/codec/cosmos/distribution/module/v1/module.js +72 -0
- package/lib/codec/cosmos/evidence/module/v1/module.d.ts +18 -0
- package/lib/codec/cosmos/evidence/module/v1/module.js +46 -0
- package/lib/codec/cosmos/feegrant/module/v1/module.d.ts +18 -0
- package/lib/codec/cosmos/feegrant/module/v1/module.js +46 -0
- package/lib/codec/cosmos/genutil/module/v1/module.d.ts +18 -0
- package/lib/codec/cosmos/genutil/module/v1/module.js +46 -0
- package/lib/codec/cosmos/gov/module/v1/module.d.ts +25 -0
- package/lib/codec/cosmos/gov/module/v1/module.js +75 -0
- package/lib/codec/cosmos/group/module/v1/module.d.ts +29 -0
- package/lib/codec/cosmos/group/module/v1/module.js +83 -0
- package/lib/codec/cosmos/ics23/v1/proofs.d.ts +325 -0
- package/lib/codec/cosmos/ics23/v1/proofs.js +1347 -0
- package/lib/codec/cosmos/mint/module/v1/module.d.ts +21 -0
- package/lib/codec/cosmos/mint/module/v1/module.js +72 -0
- package/lib/codec/cosmos/mint/v1beta1/tx.d.ts +64 -0
- package/lib/codec/cosmos/mint/v1beta1/tx.js +120 -0
- package/lib/codec/cosmos/nft/module/v1/module.d.ts +18 -0
- package/lib/codec/cosmos/nft/module/v1/module.js +46 -0
- package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +173 -0
- package/lib/codec/cosmos/orm/query/v1alpha1/query.js +652 -0
- package/lib/codec/cosmos/params/module/v1/module.d.ts +18 -0
- package/lib/codec/cosmos/params/module/v1/module.js +46 -0
- package/lib/codec/cosmos/query/v1/query.d.ts +1 -0
- package/lib/codec/cosmos/query/v1/query.js +14 -0
- package/lib/codec/cosmos/reflection/v1/reflection.d.ts +50 -0
- package/lib/codec/cosmos/reflection/v1/reflection.js +108 -0
- package/lib/codec/cosmos/slashing/module/v1/module.d.ts +20 -0
- package/lib/codec/cosmos/slashing/module/v1/module.js +59 -0
- package/lib/codec/cosmos/staking/module/v1/module.d.ts +26 -0
- package/lib/codec/cosmos/staking/module/v1/module.js +75 -0
- package/lib/codec/cosmos/tx/config/v1/config.d.ts +28 -0
- package/lib/codec/cosmos/tx/config/v1/config.js +73 -0
- package/lib/codec/cosmos/upgrade/module/v1/module.d.ts +20 -0
- package/lib/codec/cosmos/upgrade/module/v1/module.js +59 -0
- package/lib/codec/cosmos/vesting/module/v1/module.d.ts +18 -0
- package/lib/codec/cosmos/vesting/module/v1/module.js +46 -0
- package/lib/codec/ethermint/evm/v1/events.d.ts +72 -0
- package/lib/codec/ethermint/evm/v1/events.js +303 -0
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +34 -0
- package/lib/codec/ethermint/feemarket/v1/events.js +116 -0
- package/lib/codec/ethermint/feemarket/v1/tx.d.ts +55 -0
- package/lib/codec/ethermint/feemarket/v1/tx.js +120 -0
- package/lib/codec/google/protobuf/descriptor.d.ts +1034 -0
- package/lib/codec/google/protobuf/descriptor.js +3171 -0
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +24 -0
- package/lib/codec/ibc/applications/fee/v1/ack.js +125 -0
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +68 -0
- package/lib/codec/ibc/applications/fee/v1/fee.js +289 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +93 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.js +390 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +25 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.js +71 -0
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +312 -0
- package/lib/codec/ibc/applications/fee/v1/query.js +1187 -0
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +171 -0
- package/lib/codec/ibc/applications/fee/v1/tx.js +524 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +79 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +311 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +80 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +439 -0
- package/lib/codec/ibc/applications/transfer/v1/authz.d.ts +42 -0
- package/lib/codec/ibc/applications/transfer/v1/authz.js +157 -0
- package/lib/codec/ibc/lightclients/localhost/v2/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/localhost/v2/export.js +5 -0
- package/lib/codec/ibc/lightclients/localhost/v2/localhost.d.ts +21 -0
- package/lib/codec/ibc/lightclients/localhost/v2/localhost.js +65 -0
- package/lib/codec/ibc/lightclients/solomachine/v2/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/solomachine/v2/export.js +23 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/export.js +12 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.d.ts +146 -0
- package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.js +712 -0
- package/lib/constant/signless.d.ts +2 -0
- package/lib/constant/signless.js +10 -0
- package/lib/modules/signless.d.ts +18 -0
- package/lib/modules/signless.js +90 -0
- package/lib/provider/amino/types/signless.d.ts +4 -0
- package/lib/provider/amino/types/signless.js +50 -0
- package/lib/websocket/connector.js +11 -7
- package/package.json +1 -1
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.EVMContract = exports.QueryEVMOrderRequest = exports.QueryEVMOrderQueue = exports.IncomingEVMOrder = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "Switcheo.carbon.order";
|
|
11
|
+
const baseIncomingEVMOrder = { orderKey: "", orderId: "" };
|
|
12
|
+
exports.IncomingEVMOrder = {
|
|
13
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
if (message.orderKey !== "") {
|
|
15
|
+
writer.uint32(10).string(message.orderKey);
|
|
16
|
+
}
|
|
17
|
+
if (message.orderId !== "") {
|
|
18
|
+
writer.uint32(18).string(message.orderId);
|
|
19
|
+
}
|
|
20
|
+
if (message.contract.length !== 0) {
|
|
21
|
+
writer.uint32(26).bytes(message.contract);
|
|
22
|
+
}
|
|
23
|
+
if (message.evmCreator.length !== 0) {
|
|
24
|
+
writer.uint32(34).bytes(message.evmCreator);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = Object.assign({}, baseIncomingEVMOrder);
|
|
32
|
+
message.contract = new Uint8Array();
|
|
33
|
+
message.evmCreator = new Uint8Array();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
case 1:
|
|
38
|
+
message.orderKey = reader.string();
|
|
39
|
+
break;
|
|
40
|
+
case 2:
|
|
41
|
+
message.orderId = reader.string();
|
|
42
|
+
break;
|
|
43
|
+
case 3:
|
|
44
|
+
message.contract = reader.bytes();
|
|
45
|
+
break;
|
|
46
|
+
case 4:
|
|
47
|
+
message.evmCreator = reader.bytes();
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
reader.skipType(tag & 7);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
const message = Object.assign({}, baseIncomingEVMOrder);
|
|
58
|
+
message.orderKey =
|
|
59
|
+
object.orderKey !== undefined && object.orderKey !== null
|
|
60
|
+
? String(object.orderKey)
|
|
61
|
+
: "";
|
|
62
|
+
message.orderId =
|
|
63
|
+
object.orderId !== undefined && object.orderId !== null
|
|
64
|
+
? String(object.orderId)
|
|
65
|
+
: "";
|
|
66
|
+
message.contract =
|
|
67
|
+
object.contract !== undefined && object.contract !== null
|
|
68
|
+
? bytesFromBase64(object.contract)
|
|
69
|
+
: new Uint8Array();
|
|
70
|
+
message.evmCreator =
|
|
71
|
+
object.evmCreator !== undefined && object.evmCreator !== null
|
|
72
|
+
? bytesFromBase64(object.evmCreator)
|
|
73
|
+
: new Uint8Array();
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
toJSON(message) {
|
|
77
|
+
const obj = {};
|
|
78
|
+
message.orderKey !== undefined && (obj.orderKey = message.orderKey);
|
|
79
|
+
message.orderId !== undefined && (obj.orderId = message.orderId);
|
|
80
|
+
message.contract !== undefined &&
|
|
81
|
+
(obj.contract = base64FromBytes(message.contract !== undefined ? message.contract : new Uint8Array()));
|
|
82
|
+
message.evmCreator !== undefined &&
|
|
83
|
+
(obj.evmCreator = base64FromBytes(message.evmCreator !== undefined ? message.evmCreator : new Uint8Array()));
|
|
84
|
+
return obj;
|
|
85
|
+
},
|
|
86
|
+
fromPartial(object) {
|
|
87
|
+
var _a, _b, _c, _d;
|
|
88
|
+
const message = Object.assign({}, baseIncomingEVMOrder);
|
|
89
|
+
message.orderKey = (_a = object.orderKey) !== null && _a !== void 0 ? _a : "";
|
|
90
|
+
message.orderId = (_b = object.orderId) !== null && _b !== void 0 ? _b : "";
|
|
91
|
+
message.contract = (_c = object.contract) !== null && _c !== void 0 ? _c : new Uint8Array();
|
|
92
|
+
message.evmCreator = (_d = object.evmCreator) !== null && _d !== void 0 ? _d : new Uint8Array();
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
const baseQueryEVMOrderQueue = {};
|
|
97
|
+
exports.QueryEVMOrderQueue = {
|
|
98
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
99
|
+
if (message.contractAddress.length !== 0) {
|
|
100
|
+
writer.uint32(10).bytes(message.contractAddress);
|
|
101
|
+
}
|
|
102
|
+
for (const v of message.requests) {
|
|
103
|
+
exports.QueryEVMOrderRequest.encode(v, writer.uint32(18).fork()).ldelim();
|
|
104
|
+
}
|
|
105
|
+
return writer;
|
|
106
|
+
},
|
|
107
|
+
decode(input, length) {
|
|
108
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
109
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
110
|
+
const message = Object.assign({}, baseQueryEVMOrderQueue);
|
|
111
|
+
message.requests = [];
|
|
112
|
+
message.contractAddress = new Uint8Array();
|
|
113
|
+
while (reader.pos < end) {
|
|
114
|
+
const tag = reader.uint32();
|
|
115
|
+
switch (tag >>> 3) {
|
|
116
|
+
case 1:
|
|
117
|
+
message.contractAddress = reader.bytes();
|
|
118
|
+
break;
|
|
119
|
+
case 2:
|
|
120
|
+
message.requests.push(exports.QueryEVMOrderRequest.decode(reader, reader.uint32()));
|
|
121
|
+
break;
|
|
122
|
+
default:
|
|
123
|
+
reader.skipType(tag & 7);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
fromJSON(object) {
|
|
130
|
+
var _a;
|
|
131
|
+
const message = Object.assign({}, baseQueryEVMOrderQueue);
|
|
132
|
+
message.contractAddress =
|
|
133
|
+
object.contractAddress !== undefined && object.contractAddress !== null
|
|
134
|
+
? bytesFromBase64(object.contractAddress)
|
|
135
|
+
: new Uint8Array();
|
|
136
|
+
message.requests = ((_a = object.requests) !== null && _a !== void 0 ? _a : []).map((e) => exports.QueryEVMOrderRequest.fromJSON(e));
|
|
137
|
+
return message;
|
|
138
|
+
},
|
|
139
|
+
toJSON(message) {
|
|
140
|
+
const obj = {};
|
|
141
|
+
message.contractAddress !== undefined &&
|
|
142
|
+
(obj.contractAddress = base64FromBytes(message.contractAddress !== undefined
|
|
143
|
+
? message.contractAddress
|
|
144
|
+
: new Uint8Array()));
|
|
145
|
+
if (message.requests) {
|
|
146
|
+
obj.requests = message.requests.map((e) => e ? exports.QueryEVMOrderRequest.toJSON(e) : undefined);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
obj.requests = [];
|
|
150
|
+
}
|
|
151
|
+
return obj;
|
|
152
|
+
},
|
|
153
|
+
fromPartial(object) {
|
|
154
|
+
var _a, _b;
|
|
155
|
+
const message = Object.assign({}, baseQueryEVMOrderQueue);
|
|
156
|
+
message.contractAddress = (_a = object.contractAddress) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
157
|
+
message.requests = ((_b = object.requests) !== null && _b !== void 0 ? _b : []).map((e) => exports.QueryEVMOrderRequest.fromPartial(e));
|
|
158
|
+
return message;
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
const baseQueryEVMOrderRequest = { orderId: "", orderKey: "" };
|
|
162
|
+
exports.QueryEVMOrderRequest = {
|
|
163
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
164
|
+
if (message.orderId !== "") {
|
|
165
|
+
writer.uint32(10).string(message.orderId);
|
|
166
|
+
}
|
|
167
|
+
if (message.orderKey !== "") {
|
|
168
|
+
writer.uint32(18).string(message.orderKey);
|
|
169
|
+
}
|
|
170
|
+
if (message.caller.length !== 0) {
|
|
171
|
+
writer.uint32(26).bytes(message.caller);
|
|
172
|
+
}
|
|
173
|
+
return writer;
|
|
174
|
+
},
|
|
175
|
+
decode(input, length) {
|
|
176
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
177
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
178
|
+
const message = Object.assign({}, baseQueryEVMOrderRequest);
|
|
179
|
+
message.caller = new Uint8Array();
|
|
180
|
+
while (reader.pos < end) {
|
|
181
|
+
const tag = reader.uint32();
|
|
182
|
+
switch (tag >>> 3) {
|
|
183
|
+
case 1:
|
|
184
|
+
message.orderId = reader.string();
|
|
185
|
+
break;
|
|
186
|
+
case 2:
|
|
187
|
+
message.orderKey = reader.string();
|
|
188
|
+
break;
|
|
189
|
+
case 3:
|
|
190
|
+
message.caller = reader.bytes();
|
|
191
|
+
break;
|
|
192
|
+
default:
|
|
193
|
+
reader.skipType(tag & 7);
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return message;
|
|
198
|
+
},
|
|
199
|
+
fromJSON(object) {
|
|
200
|
+
const message = Object.assign({}, baseQueryEVMOrderRequest);
|
|
201
|
+
message.orderId =
|
|
202
|
+
object.orderId !== undefined && object.orderId !== null
|
|
203
|
+
? String(object.orderId)
|
|
204
|
+
: "";
|
|
205
|
+
message.orderKey =
|
|
206
|
+
object.orderKey !== undefined && object.orderKey !== null
|
|
207
|
+
? String(object.orderKey)
|
|
208
|
+
: "";
|
|
209
|
+
message.caller =
|
|
210
|
+
object.caller !== undefined && object.caller !== null
|
|
211
|
+
? bytesFromBase64(object.caller)
|
|
212
|
+
: new Uint8Array();
|
|
213
|
+
return message;
|
|
214
|
+
},
|
|
215
|
+
toJSON(message) {
|
|
216
|
+
const obj = {};
|
|
217
|
+
message.orderId !== undefined && (obj.orderId = message.orderId);
|
|
218
|
+
message.orderKey !== undefined && (obj.orderKey = message.orderKey);
|
|
219
|
+
message.caller !== undefined &&
|
|
220
|
+
(obj.caller = base64FromBytes(message.caller !== undefined ? message.caller : new Uint8Array()));
|
|
221
|
+
return obj;
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object) {
|
|
224
|
+
var _a, _b, _c;
|
|
225
|
+
const message = Object.assign({}, baseQueryEVMOrderRequest);
|
|
226
|
+
message.orderId = (_a = object.orderId) !== null && _a !== void 0 ? _a : "";
|
|
227
|
+
message.orderKey = (_b = object.orderKey) !== null && _b !== void 0 ? _b : "";
|
|
228
|
+
message.caller = (_c = object.caller) !== null && _c !== void 0 ? _c : new Uint8Array();
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
const baseEVMContract = {
|
|
233
|
+
version: long_1.default.UZERO,
|
|
234
|
+
contractType: "",
|
|
235
|
+
address: "",
|
|
236
|
+
active: false,
|
|
237
|
+
};
|
|
238
|
+
exports.EVMContract = {
|
|
239
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
240
|
+
if (!message.version.isZero()) {
|
|
241
|
+
writer.uint32(8).uint64(message.version);
|
|
242
|
+
}
|
|
243
|
+
if (message.contractType !== "") {
|
|
244
|
+
writer.uint32(18).string(message.contractType);
|
|
245
|
+
}
|
|
246
|
+
if (message.address !== "") {
|
|
247
|
+
writer.uint32(26).string(message.address);
|
|
248
|
+
}
|
|
249
|
+
if (message.active === true) {
|
|
250
|
+
writer.uint32(32).bool(message.active);
|
|
251
|
+
}
|
|
252
|
+
return writer;
|
|
253
|
+
},
|
|
254
|
+
decode(input, length) {
|
|
255
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
256
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
257
|
+
const message = Object.assign({}, baseEVMContract);
|
|
258
|
+
while (reader.pos < end) {
|
|
259
|
+
const tag = reader.uint32();
|
|
260
|
+
switch (tag >>> 3) {
|
|
261
|
+
case 1:
|
|
262
|
+
message.version = reader.uint64();
|
|
263
|
+
break;
|
|
264
|
+
case 2:
|
|
265
|
+
message.contractType = reader.string();
|
|
266
|
+
break;
|
|
267
|
+
case 3:
|
|
268
|
+
message.address = reader.string();
|
|
269
|
+
break;
|
|
270
|
+
case 4:
|
|
271
|
+
message.active = reader.bool();
|
|
272
|
+
break;
|
|
273
|
+
default:
|
|
274
|
+
reader.skipType(tag & 7);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return message;
|
|
279
|
+
},
|
|
280
|
+
fromJSON(object) {
|
|
281
|
+
const message = Object.assign({}, baseEVMContract);
|
|
282
|
+
message.version =
|
|
283
|
+
object.version !== undefined && object.version !== null
|
|
284
|
+
? long_1.default.fromString(object.version)
|
|
285
|
+
: long_1.default.UZERO;
|
|
286
|
+
message.contractType =
|
|
287
|
+
object.contractType !== undefined && object.contractType !== null
|
|
288
|
+
? String(object.contractType)
|
|
289
|
+
: "";
|
|
290
|
+
message.address =
|
|
291
|
+
object.address !== undefined && object.address !== null
|
|
292
|
+
? String(object.address)
|
|
293
|
+
: "";
|
|
294
|
+
message.active =
|
|
295
|
+
object.active !== undefined && object.active !== null
|
|
296
|
+
? Boolean(object.active)
|
|
297
|
+
: false;
|
|
298
|
+
return message;
|
|
299
|
+
},
|
|
300
|
+
toJSON(message) {
|
|
301
|
+
const obj = {};
|
|
302
|
+
message.version !== undefined &&
|
|
303
|
+
(obj.version = (message.version || long_1.default.UZERO).toString());
|
|
304
|
+
message.contractType !== undefined &&
|
|
305
|
+
(obj.contractType = message.contractType);
|
|
306
|
+
message.address !== undefined && (obj.address = message.address);
|
|
307
|
+
message.active !== undefined && (obj.active = message.active);
|
|
308
|
+
return obj;
|
|
309
|
+
},
|
|
310
|
+
fromPartial(object) {
|
|
311
|
+
var _a, _b, _c;
|
|
312
|
+
const message = Object.assign({}, baseEVMContract);
|
|
313
|
+
message.version =
|
|
314
|
+
object.version !== undefined && object.version !== null
|
|
315
|
+
? long_1.default.fromValue(object.version)
|
|
316
|
+
: long_1.default.UZERO;
|
|
317
|
+
message.contractType = (_a = object.contractType) !== null && _a !== void 0 ? _a : "";
|
|
318
|
+
message.address = (_b = object.address) !== null && _b !== void 0 ? _b : "";
|
|
319
|
+
message.active = (_c = object.active) !== null && _c !== void 0 ? _c : false;
|
|
320
|
+
return message;
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
var globalThis = (() => {
|
|
324
|
+
if (typeof globalThis !== "undefined")
|
|
325
|
+
return globalThis;
|
|
326
|
+
if (typeof self !== "undefined")
|
|
327
|
+
return self;
|
|
328
|
+
if (typeof window !== "undefined")
|
|
329
|
+
return window;
|
|
330
|
+
if (typeof global !== "undefined")
|
|
331
|
+
return global;
|
|
332
|
+
throw "Unable to locate global object";
|
|
333
|
+
})();
|
|
334
|
+
const atob = globalThis.atob ||
|
|
335
|
+
((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
|
|
336
|
+
function bytesFromBase64(b64) {
|
|
337
|
+
const bin = atob(b64);
|
|
338
|
+
const arr = new Uint8Array(bin.length);
|
|
339
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
340
|
+
arr[i] = bin.charCodeAt(i);
|
|
341
|
+
}
|
|
342
|
+
return arr;
|
|
343
|
+
}
|
|
344
|
+
const btoa = globalThis.btoa ||
|
|
345
|
+
((bin) => globalThis.Buffer.from(bin, "binary").toString("base64"));
|
|
346
|
+
function base64FromBytes(arr) {
|
|
347
|
+
const bin = [];
|
|
348
|
+
for (const byte of arr) {
|
|
349
|
+
bin.push(String.fromCharCode(byte));
|
|
350
|
+
}
|
|
351
|
+
return btoa(bin.join(""));
|
|
352
|
+
}
|
|
353
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
354
|
+
minimal_1.default.util.Long = long_1.default;
|
|
355
|
+
minimal_1.default.configure();
|
|
356
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.position";
|
|
4
|
+
export interface QueryEVMPositionRequest {
|
|
5
|
+
evmAddress: Uint8Array;
|
|
6
|
+
carbonAddress: string;
|
|
7
|
+
market: string;
|
|
8
|
+
caller: Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
export interface QueryEVMPositionQueue {
|
|
11
|
+
contractAddress: Uint8Array;
|
|
12
|
+
requests: QueryEVMPositionRequest[];
|
|
13
|
+
}
|
|
14
|
+
export declare const QueryEVMPositionRequest: {
|
|
15
|
+
encode(message: QueryEVMPositionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryEVMPositionRequest;
|
|
17
|
+
fromJSON(object: any): QueryEVMPositionRequest;
|
|
18
|
+
toJSON(message: QueryEVMPositionRequest): unknown;
|
|
19
|
+
fromPartial(object: DeepPartial<QueryEVMPositionRequest>): QueryEVMPositionRequest;
|
|
20
|
+
};
|
|
21
|
+
export declare const QueryEVMPositionQueue: {
|
|
22
|
+
encode(message: QueryEVMPositionQueue, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryEVMPositionQueue;
|
|
24
|
+
fromJSON(object: any): QueryEVMPositionQueue;
|
|
25
|
+
toJSON(message: QueryEVMPositionQueue): unknown;
|
|
26
|
+
fromPartial(object: DeepPartial<QueryEVMPositionQueue>): QueryEVMPositionQueue;
|
|
27
|
+
};
|
|
28
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
29
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
30
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
31
|
+
} : Partial<T>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QueryEVMPositionQueue = exports.QueryEVMPositionRequest = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "Switcheo.carbon.position";
|
|
11
|
+
const baseQueryEVMPositionRequest = { carbonAddress: "", market: "" };
|
|
12
|
+
exports.QueryEVMPositionRequest = {
|
|
13
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
if (message.evmAddress.length !== 0) {
|
|
15
|
+
writer.uint32(10).bytes(message.evmAddress);
|
|
16
|
+
}
|
|
17
|
+
if (message.carbonAddress !== "") {
|
|
18
|
+
writer.uint32(18).string(message.carbonAddress);
|
|
19
|
+
}
|
|
20
|
+
if (message.market !== "") {
|
|
21
|
+
writer.uint32(26).string(message.market);
|
|
22
|
+
}
|
|
23
|
+
if (message.caller.length !== 0) {
|
|
24
|
+
writer.uint32(34).bytes(message.caller);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = Object.assign({}, baseQueryEVMPositionRequest);
|
|
32
|
+
message.evmAddress = new Uint8Array();
|
|
33
|
+
message.caller = new Uint8Array();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
case 1:
|
|
38
|
+
message.evmAddress = reader.bytes();
|
|
39
|
+
break;
|
|
40
|
+
case 2:
|
|
41
|
+
message.carbonAddress = reader.string();
|
|
42
|
+
break;
|
|
43
|
+
case 3:
|
|
44
|
+
message.market = reader.string();
|
|
45
|
+
break;
|
|
46
|
+
case 4:
|
|
47
|
+
message.caller = reader.bytes();
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
reader.skipType(tag & 7);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
const message = Object.assign({}, baseQueryEVMPositionRequest);
|
|
58
|
+
message.evmAddress =
|
|
59
|
+
object.evmAddress !== undefined && object.evmAddress !== null
|
|
60
|
+
? bytesFromBase64(object.evmAddress)
|
|
61
|
+
: new Uint8Array();
|
|
62
|
+
message.carbonAddress =
|
|
63
|
+
object.carbonAddress !== undefined && object.carbonAddress !== null
|
|
64
|
+
? String(object.carbonAddress)
|
|
65
|
+
: "";
|
|
66
|
+
message.market =
|
|
67
|
+
object.market !== undefined && object.market !== null
|
|
68
|
+
? String(object.market)
|
|
69
|
+
: "";
|
|
70
|
+
message.caller =
|
|
71
|
+
object.caller !== undefined && object.caller !== null
|
|
72
|
+
? bytesFromBase64(object.caller)
|
|
73
|
+
: new Uint8Array();
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
toJSON(message) {
|
|
77
|
+
const obj = {};
|
|
78
|
+
message.evmAddress !== undefined &&
|
|
79
|
+
(obj.evmAddress = base64FromBytes(message.evmAddress !== undefined ? message.evmAddress : new Uint8Array()));
|
|
80
|
+
message.carbonAddress !== undefined &&
|
|
81
|
+
(obj.carbonAddress = message.carbonAddress);
|
|
82
|
+
message.market !== undefined && (obj.market = message.market);
|
|
83
|
+
message.caller !== undefined &&
|
|
84
|
+
(obj.caller = base64FromBytes(message.caller !== undefined ? message.caller : new Uint8Array()));
|
|
85
|
+
return obj;
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
var _a, _b, _c, _d;
|
|
89
|
+
const message = Object.assign({}, baseQueryEVMPositionRequest);
|
|
90
|
+
message.evmAddress = (_a = object.evmAddress) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
91
|
+
message.carbonAddress = (_b = object.carbonAddress) !== null && _b !== void 0 ? _b : "";
|
|
92
|
+
message.market = (_c = object.market) !== null && _c !== void 0 ? _c : "";
|
|
93
|
+
message.caller = (_d = object.caller) !== null && _d !== void 0 ? _d : new Uint8Array();
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
const baseQueryEVMPositionQueue = {};
|
|
98
|
+
exports.QueryEVMPositionQueue = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.contractAddress.length !== 0) {
|
|
101
|
+
writer.uint32(10).bytes(message.contractAddress);
|
|
102
|
+
}
|
|
103
|
+
for (const v of message.requests) {
|
|
104
|
+
exports.QueryEVMPositionRequest.encode(v, writer.uint32(18).fork()).ldelim();
|
|
105
|
+
}
|
|
106
|
+
return writer;
|
|
107
|
+
},
|
|
108
|
+
decode(input, length) {
|
|
109
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
110
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
111
|
+
const message = Object.assign({}, baseQueryEVMPositionQueue);
|
|
112
|
+
message.requests = [];
|
|
113
|
+
message.contractAddress = new Uint8Array();
|
|
114
|
+
while (reader.pos < end) {
|
|
115
|
+
const tag = reader.uint32();
|
|
116
|
+
switch (tag >>> 3) {
|
|
117
|
+
case 1:
|
|
118
|
+
message.contractAddress = reader.bytes();
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
message.requests.push(exports.QueryEVMPositionRequest.decode(reader, reader.uint32()));
|
|
122
|
+
break;
|
|
123
|
+
default:
|
|
124
|
+
reader.skipType(tag & 7);
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
fromJSON(object) {
|
|
131
|
+
var _a;
|
|
132
|
+
const message = Object.assign({}, baseQueryEVMPositionQueue);
|
|
133
|
+
message.contractAddress =
|
|
134
|
+
object.contractAddress !== undefined && object.contractAddress !== null
|
|
135
|
+
? bytesFromBase64(object.contractAddress)
|
|
136
|
+
: new Uint8Array();
|
|
137
|
+
message.requests = ((_a = object.requests) !== null && _a !== void 0 ? _a : []).map((e) => exports.QueryEVMPositionRequest.fromJSON(e));
|
|
138
|
+
return message;
|
|
139
|
+
},
|
|
140
|
+
toJSON(message) {
|
|
141
|
+
const obj = {};
|
|
142
|
+
message.contractAddress !== undefined &&
|
|
143
|
+
(obj.contractAddress = base64FromBytes(message.contractAddress !== undefined
|
|
144
|
+
? message.contractAddress
|
|
145
|
+
: new Uint8Array()));
|
|
146
|
+
if (message.requests) {
|
|
147
|
+
obj.requests = message.requests.map((e) => e ? exports.QueryEVMPositionRequest.toJSON(e) : undefined);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
obj.requests = [];
|
|
151
|
+
}
|
|
152
|
+
return obj;
|
|
153
|
+
},
|
|
154
|
+
fromPartial(object) {
|
|
155
|
+
var _a, _b;
|
|
156
|
+
const message = Object.assign({}, baseQueryEVMPositionQueue);
|
|
157
|
+
message.contractAddress = (_a = object.contractAddress) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
158
|
+
message.requests = ((_b = object.requests) !== null && _b !== void 0 ? _b : []).map((e) => exports.QueryEVMPositionRequest.fromPartial(e));
|
|
159
|
+
return message;
|
|
160
|
+
},
|
|
161
|
+
};
|
|
162
|
+
var globalThis = (() => {
|
|
163
|
+
if (typeof globalThis !== "undefined")
|
|
164
|
+
return globalThis;
|
|
165
|
+
if (typeof self !== "undefined")
|
|
166
|
+
return self;
|
|
167
|
+
if (typeof window !== "undefined")
|
|
168
|
+
return window;
|
|
169
|
+
if (typeof global !== "undefined")
|
|
170
|
+
return global;
|
|
171
|
+
throw "Unable to locate global object";
|
|
172
|
+
})();
|
|
173
|
+
const atob = globalThis.atob ||
|
|
174
|
+
((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
|
|
175
|
+
function bytesFromBase64(b64) {
|
|
176
|
+
const bin = atob(b64);
|
|
177
|
+
const arr = new Uint8Array(bin.length);
|
|
178
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
179
|
+
arr[i] = bin.charCodeAt(i);
|
|
180
|
+
}
|
|
181
|
+
return arr;
|
|
182
|
+
}
|
|
183
|
+
const btoa = globalThis.btoa ||
|
|
184
|
+
((bin) => globalThis.Buffer.from(bin, "binary").toString("base64"));
|
|
185
|
+
function base64FromBytes(arr) {
|
|
186
|
+
const bin = [];
|
|
187
|
+
for (const byte of arr) {
|
|
188
|
+
bin.push(String.fromCharCode(byte));
|
|
189
|
+
}
|
|
190
|
+
return btoa(bin.join(""));
|
|
191
|
+
}
|
|
192
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
193
|
+
minimal_1.default.util.Long = long_1.default;
|
|
194
|
+
minimal_1.default.configure();
|
|
195
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Duration } from "../../google/protobuf/duration";
|
|
4
|
+
import { RewardHistory } from "./params";
|
|
5
|
+
export declare const protobufPackage = "alliance.alliance";
|
|
6
|
+
export interface RewardWeightRange {
|
|
7
|
+
min: string;
|
|
8
|
+
max: string;
|
|
9
|
+
}
|
|
10
|
+
/** key: denom value: AllianceAsset */
|
|
11
|
+
export interface AllianceAsset {
|
|
12
|
+
/** Denom of the asset. It could either be a native token or an IBC token */
|
|
13
|
+
denom: string;
|
|
14
|
+
/**
|
|
15
|
+
* The reward weight specifies the ratio of rewards that will be given to each alliance asset
|
|
16
|
+
* It does not need to sum to 1. rate = weight / total_weight
|
|
17
|
+
* Native asset is always assumed to have a weight of 1.s
|
|
18
|
+
*/
|
|
19
|
+
rewardWeight: string;
|
|
20
|
+
/**
|
|
21
|
+
* A positive take rate is used for liquid staking derivatives. It defines an rate that is applied per take_rate_interval
|
|
22
|
+
* that will be redirected to the distribution rewards pool
|
|
23
|
+
*/
|
|
24
|
+
takeRate: string;
|
|
25
|
+
totalTokens: string;
|
|
26
|
+
totalValidatorShares: string;
|
|
27
|
+
rewardStartTime?: Date;
|
|
28
|
+
rewardChangeRate: string;
|
|
29
|
+
rewardChangeInterval?: Duration;
|
|
30
|
+
lastRewardChangeTime?: Date;
|
|
31
|
+
/** set a bound of weight range to limit how much reward weights can scale. */
|
|
32
|
+
rewardWeightRange?: RewardWeightRange;
|
|
33
|
+
/** flag to check if an asset has completed the initialization process after the reward delay */
|
|
34
|
+
isInitialized: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface RewardWeightChangeSnapshot {
|
|
37
|
+
prevRewardWeight: string;
|
|
38
|
+
rewardHistories: RewardHistory[];
|
|
39
|
+
}
|
|
40
|
+
export declare const RewardWeightRange: {
|
|
41
|
+
encode(message: RewardWeightRange, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RewardWeightRange;
|
|
43
|
+
fromJSON(object: any): RewardWeightRange;
|
|
44
|
+
toJSON(message: RewardWeightRange): unknown;
|
|
45
|
+
fromPartial(object: DeepPartial<RewardWeightRange>): RewardWeightRange;
|
|
46
|
+
};
|
|
47
|
+
export declare const AllianceAsset: {
|
|
48
|
+
encode(message: AllianceAsset, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AllianceAsset;
|
|
50
|
+
fromJSON(object: any): AllianceAsset;
|
|
51
|
+
toJSON(message: AllianceAsset): unknown;
|
|
52
|
+
fromPartial(object: DeepPartial<AllianceAsset>): AllianceAsset;
|
|
53
|
+
};
|
|
54
|
+
export declare const RewardWeightChangeSnapshot: {
|
|
55
|
+
encode(message: RewardWeightChangeSnapshot, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RewardWeightChangeSnapshot;
|
|
57
|
+
fromJSON(object: any): RewardWeightChangeSnapshot;
|
|
58
|
+
toJSON(message: RewardWeightChangeSnapshot): unknown;
|
|
59
|
+
fromPartial(object: DeepPartial<RewardWeightChangeSnapshot>): RewardWeightChangeSnapshot;
|
|
60
|
+
};
|
|
61
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
62
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
63
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
64
|
+
} : Partial<T>;
|
|
65
|
+
export {};
|