carbon-js-sdk 0.4.5 → 0.4.6-dev.1
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/CarbonSDK.js +1 -1
- package/lib/clients/CarbonQueryClient.js +2 -2
- package/lib/clients/ETHClient.d.ts +11 -4
- package/lib/clients/ETHClient.js +32 -18
- package/lib/clients/HydrogenClient.d.ts +16 -7
- package/lib/clients/HydrogenClient.js +56 -10
- package/lib/clients/InsightsQueryClient.d.ts +1 -0
- package/lib/clients/InsightsQueryClient.js +8 -0
- package/lib/clients/NEOClient.d.ts +1 -1
- package/lib/clients/NEOClient.js +15 -10
- package/lib/clients/TokenClient.d.ts +29 -5
- package/lib/clients/TokenClient.js +258 -53
- package/lib/clients/ZILClient.d.ts +1 -1
- package/lib/clients/ZILClient.js +25 -20
- package/lib/codec/cdp/e_mode_category.d.ts +23 -0
- package/lib/codec/cdp/e_mode_category.js +135 -0
- package/lib/codec/cosmos/gov/v1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1/tx.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/group/v1/events.js +2 -2
- package/lib/codec/cosmos/group/v1/tx.js +4 -4
- package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.d.ts +1 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.js +6 -0
- package/lib/codec/ethermint/evm/v1/export.d.ts +5 -0
- package/lib/codec/ethermint/evm/v1/export.js +53 -0
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +4 -0
- package/lib/codec/ethermint/feemarket/v1/export.js +18 -0
- package/lib/codec/ethermint/types/v1/export.d.ts +4 -0
- package/lib/codec/ethermint/types/v1/export.js +11 -0
- package/lib/codec/ethermint-models.d.ts +4 -0
- package/lib/codec/ethermint-models.js +26 -0
- package/lib/constant/eip712.d.ts +28 -0
- package/lib/constant/eip712.js +40 -0
- package/lib/constant/generic.js +1 -1
- package/lib/constant/ibc.d.ts +7 -0
- package/lib/constant/ibc.js +4 -1
- package/lib/constant/network.d.ts +2 -0
- package/lib/constant/network.js +5 -1
- package/lib/hydrogen/transfer.d.ts +5 -5
- package/lib/insights/common.d.ts +1 -0
- package/lib/insights/common.js +1 -0
- package/lib/insights/competition.d.ts +20 -0
- package/lib/modules/cdp.js +43 -43
- package/lib/modules/cosmwasm.js +1 -1
- package/lib/modules/evm.d.ts +46 -0
- package/lib/modules/evm.js +127 -0
- package/lib/modules/evmmerge.d.ts +12 -0
- package/lib/modules/evmmerge.js +35 -0
- package/lib/modules/feemarket.d.ts +20 -0
- package/lib/modules/feemarket.js +45 -0
- package/lib/modules/gov.js +12 -12
- package/lib/modules/ibc.d.ts +5 -1
- package/lib/modules/ibc.js +78 -0
- package/lib/modules/liquiditypool.js +1 -1
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/amino/types/admin.js +27 -27
- package/lib/provider/amino/types/bank.js +1 -1
- package/lib/provider/amino/types/broker.js +1 -1
- package/lib/provider/amino/types/cdp.js +22 -22
- package/lib/provider/amino/types/coin.js +4 -4
- package/lib/provider/amino/types/gov.js +4 -4
- package/lib/provider/amino/types/ibc.js +1 -1
- package/lib/provider/amino/types/leverage.js +1 -1
- package/lib/provider/amino/types/liquidityPool.js +7 -7
- package/lib/provider/amino/types/market.js +1 -1
- package/lib/provider/amino/types/oracle.js +1 -1
- package/lib/provider/amino/types/order.js +4 -4
- package/lib/provider/amino/types/position.js +1 -1
- package/lib/provider/amino/types/profile.js +1 -1
- package/lib/provider/amino/types/staking.js +4 -4
- package/lib/provider/amino/types/subaccount.js +3 -3
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/keplr/KeplrStore.d.ts +1 -1
- package/lib/provider/keplr/KeplrStore.js +2 -5
- package/lib/provider/ledger/ledger.js +2 -2
- package/lib/provider/metamask/MetaMask.d.ts +5 -5
- package/lib/provider/metamask/MetaMask.js +37 -37
- package/lib/provider/o3/O3Wallet.js +2 -2
- package/lib/util/address.js +13 -13
- package/lib/util/api.js +4 -4
- package/lib/util/blockchain.d.ts +26 -0
- package/lib/util/blockchain.js +160 -1
- package/lib/util/eip712.d.ts +10 -0
- package/lib/util/eip712.js +46 -0
- package/lib/util/ethermint.d.ts +4 -0
- package/lib/util/ethermint.js +26 -0
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.js +3 -3
- package/lib/util/ibc.d.ts +5 -3
- package/lib/util/ibc.js +26 -1
- package/lib/util/number.js +5 -5
- package/lib/wallet/CarbonSigner.js +2 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +6 -6
- package/lib/websocket/connector.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
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.EModeCategory = 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.cdp";
|
|
11
|
+
const baseEModeCategory = {
|
|
12
|
+
name: "",
|
|
13
|
+
denoms: "",
|
|
14
|
+
loanToValue: "",
|
|
15
|
+
liquidationThreshold: "",
|
|
16
|
+
liquidationDiscount: "",
|
|
17
|
+
isActive: false,
|
|
18
|
+
};
|
|
19
|
+
exports.EModeCategory = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.name !== "") {
|
|
22
|
+
writer.uint32(10).string(message.name);
|
|
23
|
+
}
|
|
24
|
+
for (const v of message.denoms) {
|
|
25
|
+
writer.uint32(18).string(v);
|
|
26
|
+
}
|
|
27
|
+
if (message.loanToValue !== "") {
|
|
28
|
+
writer.uint32(26).string(message.loanToValue);
|
|
29
|
+
}
|
|
30
|
+
if (message.liquidationThreshold !== "") {
|
|
31
|
+
writer.uint32(34).string(message.liquidationThreshold);
|
|
32
|
+
}
|
|
33
|
+
if (message.liquidationDiscount !== "") {
|
|
34
|
+
writer.uint32(42).string(message.liquidationDiscount);
|
|
35
|
+
}
|
|
36
|
+
if (message.isActive === true) {
|
|
37
|
+
writer.uint32(48).bool(message.isActive);
|
|
38
|
+
}
|
|
39
|
+
return writer;
|
|
40
|
+
},
|
|
41
|
+
decode(input, length) {
|
|
42
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
43
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
|
+
const message = Object.assign({}, baseEModeCategory);
|
|
45
|
+
message.denoms = [];
|
|
46
|
+
while (reader.pos < end) {
|
|
47
|
+
const tag = reader.uint32();
|
|
48
|
+
switch (tag >>> 3) {
|
|
49
|
+
case 1:
|
|
50
|
+
message.name = reader.string();
|
|
51
|
+
break;
|
|
52
|
+
case 2:
|
|
53
|
+
message.denoms.push(reader.string());
|
|
54
|
+
break;
|
|
55
|
+
case 3:
|
|
56
|
+
message.loanToValue = reader.string();
|
|
57
|
+
break;
|
|
58
|
+
case 4:
|
|
59
|
+
message.liquidationThreshold = reader.string();
|
|
60
|
+
break;
|
|
61
|
+
case 5:
|
|
62
|
+
message.liquidationDiscount = reader.string();
|
|
63
|
+
break;
|
|
64
|
+
case 6:
|
|
65
|
+
message.isActive = reader.bool();
|
|
66
|
+
break;
|
|
67
|
+
default:
|
|
68
|
+
reader.skipType(tag & 7);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
fromJSON(object) {
|
|
75
|
+
var _a;
|
|
76
|
+
const message = Object.assign({}, baseEModeCategory);
|
|
77
|
+
message.name =
|
|
78
|
+
object.name !== undefined && object.name !== null
|
|
79
|
+
? String(object.name)
|
|
80
|
+
: "";
|
|
81
|
+
message.denoms = ((_a = object.denoms) !== null && _a !== void 0 ? _a : []).map((e) => String(e));
|
|
82
|
+
message.loanToValue =
|
|
83
|
+
object.loanToValue !== undefined && object.loanToValue !== null
|
|
84
|
+
? String(object.loanToValue)
|
|
85
|
+
: "";
|
|
86
|
+
message.liquidationThreshold =
|
|
87
|
+
object.liquidationThreshold !== undefined &&
|
|
88
|
+
object.liquidationThreshold !== null
|
|
89
|
+
? String(object.liquidationThreshold)
|
|
90
|
+
: "";
|
|
91
|
+
message.liquidationDiscount =
|
|
92
|
+
object.liquidationDiscount !== undefined &&
|
|
93
|
+
object.liquidationDiscount !== null
|
|
94
|
+
? String(object.liquidationDiscount)
|
|
95
|
+
: "";
|
|
96
|
+
message.isActive =
|
|
97
|
+
object.isActive !== undefined && object.isActive !== null
|
|
98
|
+
? Boolean(object.isActive)
|
|
99
|
+
: false;
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
toJSON(message) {
|
|
103
|
+
const obj = {};
|
|
104
|
+
message.name !== undefined && (obj.name = message.name);
|
|
105
|
+
if (message.denoms) {
|
|
106
|
+
obj.denoms = message.denoms.map((e) => e);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
obj.denoms = [];
|
|
110
|
+
}
|
|
111
|
+
message.loanToValue !== undefined &&
|
|
112
|
+
(obj.loanToValue = message.loanToValue);
|
|
113
|
+
message.liquidationThreshold !== undefined &&
|
|
114
|
+
(obj.liquidationThreshold = message.liquidationThreshold);
|
|
115
|
+
message.liquidationDiscount !== undefined &&
|
|
116
|
+
(obj.liquidationDiscount = message.liquidationDiscount);
|
|
117
|
+
message.isActive !== undefined && (obj.isActive = message.isActive);
|
|
118
|
+
return obj;
|
|
119
|
+
},
|
|
120
|
+
fromPartial(object) {
|
|
121
|
+
var _a, _b, _c, _d, _e, _f;
|
|
122
|
+
const message = Object.assign({}, baseEModeCategory);
|
|
123
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
124
|
+
message.denoms = ((_b = object.denoms) !== null && _b !== void 0 ? _b : []).map((e) => e);
|
|
125
|
+
message.loanToValue = (_c = object.loanToValue) !== null && _c !== void 0 ? _c : "";
|
|
126
|
+
message.liquidationThreshold = (_d = object.liquidationThreshold) !== null && _d !== void 0 ? _d : "";
|
|
127
|
+
message.liquidationDiscount = (_e = object.liquidationDiscount) !== null && _e !== void 0 ? _e : "";
|
|
128
|
+
message.isActive = (_f = object.isActive) !== null && _f !== void 0 ? _f : false;
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
133
|
+
minimal_1.default.util.Long = long_1.default;
|
|
134
|
+
minimal_1.default.configure();
|
|
135
|
+
}
|
|
@@ -159,7 +159,7 @@ exports.QueryProposalsRequest = {
|
|
|
159
159
|
const message = Object.assign({}, baseQueryProposalsRequest);
|
|
160
160
|
message.proposalStatus =
|
|
161
161
|
object.proposalStatus !== undefined && object.proposalStatus !== null
|
|
162
|
-
?
|
|
162
|
+
? gov_1.proposalStatusFromJSON(object.proposalStatus)
|
|
163
163
|
: 0;
|
|
164
164
|
message.voter =
|
|
165
165
|
object.voter !== undefined && object.voter !== null
|
|
@@ -178,7 +178,7 @@ exports.QueryProposalsRequest = {
|
|
|
178
178
|
toJSON(message) {
|
|
179
179
|
const obj = {};
|
|
180
180
|
message.proposalStatus !== undefined &&
|
|
181
|
-
(obj.proposalStatus =
|
|
181
|
+
(obj.proposalStatus = gov_1.proposalStatusToJSON(message.proposalStatus));
|
|
182
182
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
183
183
|
message.depositor !== undefined && (obj.depositor = message.depositor);
|
|
184
184
|
message.pagination !== undefined &&
|
|
@@ -300,7 +300,7 @@ exports.MsgVote = {
|
|
|
300
300
|
: "";
|
|
301
301
|
message.option =
|
|
302
302
|
object.option !== undefined && object.option !== null
|
|
303
|
-
?
|
|
303
|
+
? gov_1.voteOptionFromJSON(object.option)
|
|
304
304
|
: 0;
|
|
305
305
|
message.metadata =
|
|
306
306
|
object.metadata !== undefined && object.metadata !== null
|
|
@@ -314,7 +314,7 @@ exports.MsgVote = {
|
|
|
314
314
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
315
315
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
316
316
|
message.option !== undefined &&
|
|
317
|
-
(obj.option =
|
|
317
|
+
(obj.option = gov_1.voteOptionToJSON(message.option));
|
|
318
318
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
319
319
|
return obj;
|
|
320
320
|
},
|
|
@@ -159,7 +159,7 @@ exports.QueryProposalsRequest = {
|
|
|
159
159
|
const message = Object.assign({}, baseQueryProposalsRequest);
|
|
160
160
|
message.proposalStatus =
|
|
161
161
|
object.proposalStatus !== undefined && object.proposalStatus !== null
|
|
162
|
-
?
|
|
162
|
+
? gov_1.proposalStatusFromJSON(object.proposalStatus)
|
|
163
163
|
: 0;
|
|
164
164
|
message.voter =
|
|
165
165
|
object.voter !== undefined && object.voter !== null
|
|
@@ -178,7 +178,7 @@ exports.QueryProposalsRequest = {
|
|
|
178
178
|
toJSON(message) {
|
|
179
179
|
const obj = {};
|
|
180
180
|
message.proposalStatus !== undefined &&
|
|
181
|
-
(obj.proposalStatus =
|
|
181
|
+
(obj.proposalStatus = gov_1.proposalStatusToJSON(message.proposalStatus));
|
|
182
182
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
183
183
|
message.depositor !== undefined && (obj.depositor = message.depositor);
|
|
184
184
|
message.pagination !== undefined &&
|
|
@@ -185,7 +185,7 @@ exports.MsgVote = {
|
|
|
185
185
|
: "";
|
|
186
186
|
message.option =
|
|
187
187
|
object.option !== undefined && object.option !== null
|
|
188
|
-
?
|
|
188
|
+
? gov_1.voteOptionFromJSON(object.option)
|
|
189
189
|
: 0;
|
|
190
190
|
return message;
|
|
191
191
|
},
|
|
@@ -195,7 +195,7 @@ exports.MsgVote = {
|
|
|
195
195
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
196
196
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
197
197
|
message.option !== undefined &&
|
|
198
|
-
(obj.option =
|
|
198
|
+
(obj.option = gov_1.voteOptionToJSON(message.option));
|
|
199
199
|
return obj;
|
|
200
200
|
},
|
|
201
201
|
fromPartial(object) {
|
|
@@ -384,7 +384,7 @@ exports.EventExec = {
|
|
|
384
384
|
: long_1.default.UZERO;
|
|
385
385
|
message.result =
|
|
386
386
|
object.result !== undefined && object.result !== null
|
|
387
|
-
?
|
|
387
|
+
? types_1.proposalExecutorResultFromJSON(object.result)
|
|
388
388
|
: 0;
|
|
389
389
|
message.logs =
|
|
390
390
|
object.logs !== undefined && object.logs !== null
|
|
@@ -397,7 +397,7 @@ exports.EventExec = {
|
|
|
397
397
|
message.proposalId !== undefined &&
|
|
398
398
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
399
399
|
message.result !== undefined &&
|
|
400
|
-
(obj.result =
|
|
400
|
+
(obj.result = types_1.proposalExecutorResultToJSON(message.result));
|
|
401
401
|
message.logs !== undefined && (obj.logs = message.logs);
|
|
402
402
|
return obj;
|
|
403
403
|
},
|
|
@@ -1474,7 +1474,7 @@ exports.MsgVote = {
|
|
|
1474
1474
|
: "";
|
|
1475
1475
|
message.option =
|
|
1476
1476
|
object.option !== undefined && object.option !== null
|
|
1477
|
-
?
|
|
1477
|
+
? types_1.voteOptionFromJSON(object.option)
|
|
1478
1478
|
: 0;
|
|
1479
1479
|
message.metadata =
|
|
1480
1480
|
object.metadata !== undefined && object.metadata !== null
|
|
@@ -1492,7 +1492,7 @@ exports.MsgVote = {
|
|
|
1492
1492
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
1493
1493
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
1494
1494
|
message.option !== undefined &&
|
|
1495
|
-
(obj.option =
|
|
1495
|
+
(obj.option = types_1.voteOptionToJSON(message.option));
|
|
1496
1496
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
1497
1497
|
message.exec !== undefined && (obj.exec = execToJSON(message.exec));
|
|
1498
1498
|
return obj;
|
|
@@ -1633,14 +1633,14 @@ exports.MsgExecResponse = {
|
|
|
1633
1633
|
const message = Object.assign({}, baseMsgExecResponse);
|
|
1634
1634
|
message.result =
|
|
1635
1635
|
object.result !== undefined && object.result !== null
|
|
1636
|
-
?
|
|
1636
|
+
? types_1.proposalExecutorResultFromJSON(object.result)
|
|
1637
1637
|
: 0;
|
|
1638
1638
|
return message;
|
|
1639
1639
|
},
|
|
1640
1640
|
toJSON(message) {
|
|
1641
1641
|
const obj = {};
|
|
1642
1642
|
message.result !== undefined &&
|
|
1643
|
-
(obj.result =
|
|
1643
|
+
(obj.result = types_1.proposalExecutorResultToJSON(message.result));
|
|
1644
1644
|
return obj;
|
|
1645
1645
|
},
|
|
1646
1646
|
fromPartial(object) {
|
|
@@ -763,13 +763,13 @@ exports.ModeInfo_Single = {
|
|
|
763
763
|
const message = Object.assign({}, baseModeInfo_Single);
|
|
764
764
|
message.mode =
|
|
765
765
|
object.mode !== undefined && object.mode !== null
|
|
766
|
-
?
|
|
766
|
+
? signing_1.signModeFromJSON(object.mode)
|
|
767
767
|
: 0;
|
|
768
768
|
return message;
|
|
769
769
|
},
|
|
770
770
|
toJSON(message) {
|
|
771
771
|
const obj = {};
|
|
772
|
-
message.mode !== undefined && (obj.mode =
|
|
772
|
+
message.mode !== undefined && (obj.mode = signing_1.signModeToJSON(message.mode));
|
|
773
773
|
return obj;
|
|
774
774
|
},
|
|
775
775
|
fromPartial(object) {
|
|
@@ -1052,7 +1052,7 @@ exports.AuxSignerData = {
|
|
|
1052
1052
|
: undefined;
|
|
1053
1053
|
message.mode =
|
|
1054
1054
|
object.mode !== undefined && object.mode !== null
|
|
1055
|
-
?
|
|
1055
|
+
? signing_1.signModeFromJSON(object.mode)
|
|
1056
1056
|
: 0;
|
|
1057
1057
|
message.sig =
|
|
1058
1058
|
object.sig !== undefined && object.sig !== null
|
|
@@ -1067,7 +1067,7 @@ exports.AuxSignerData = {
|
|
|
1067
1067
|
(obj.signDoc = message.signDoc
|
|
1068
1068
|
? exports.SignDocDirectAux.toJSON(message.signDoc)
|
|
1069
1069
|
: undefined);
|
|
1070
|
-
message.mode !== undefined && (obj.mode =
|
|
1070
|
+
message.mode !== undefined && (obj.mode = signing_1.signModeToJSON(message.mode));
|
|
1071
1071
|
message.sig !== undefined &&
|
|
1072
1072
|
(obj.sig = base64FromBytes(message.sig !== undefined ? message.sig : new Uint8Array()));
|
|
1073
1073
|
return obj;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PubKey, PrivKey } from "./keys";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivKey = exports.PubKey = void 0;
|
|
4
|
+
var keys_1 = require("./keys");
|
|
5
|
+
Object.defineProperty(exports, "PubKey", { enumerable: true, get: function () { return keys_1.PubKey; } });
|
|
6
|
+
Object.defineProperty(exports, "PrivKey", { enumerable: true, get: function () { return keys_1.PrivKey; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { EventEthereumTx, EventTxLog, EventMessage, EventBlockBloom } from "./events";
|
|
2
|
+
export { Params, ChainConfig, State, TransactionLogs, Log, TxResult, AccessTuple, TraceConfig } from "./evm";
|
|
3
|
+
export { GenesisAccount } from "./genesis";
|
|
4
|
+
export { QueryAccountRequest, QueryAccountResponse, QueryCosmosAccountRequest, QueryCosmosAccountResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse, QueryBalanceRequest, QueryBalanceResponse, QueryStorageRequest, QueryStorageResponse, QueryCodeRequest, QueryCodeResponse, QueryTxLogsRequest, QueryTxLogsResponse, QueryParamsRequest, QueryParamsResponse, EthCallRequest, EstimateGasResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryBaseFeeRequest, QueryBaseFeeResponse } from "./query";
|
|
5
|
+
export { MsgEthereumTx, LegacyTx, AccessListTx, DynamicFeeTx, ExtensionOptionsEthereumTx, MsgEthereumTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgEthereumTxResponse = exports.ExtensionOptionsEthereumTx = exports.DynamicFeeTx = exports.AccessListTx = exports.LegacyTx = exports.MsgEthereumTx = exports.QueryBaseFeeResponse = exports.QueryBaseFeeRequest = exports.QueryTraceBlockResponse = exports.QueryTraceBlockRequest = exports.QueryTraceTxResponse = exports.QueryTraceTxRequest = exports.EstimateGasResponse = exports.EthCallRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryTxLogsResponse = exports.QueryTxLogsRequest = exports.QueryCodeResponse = exports.QueryCodeRequest = exports.QueryStorageResponse = exports.QueryStorageRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.QueryValidatorAccountResponse = exports.QueryValidatorAccountRequest = exports.QueryCosmosAccountResponse = exports.QueryCosmosAccountRequest = exports.QueryAccountResponse = exports.QueryAccountRequest = exports.GenesisAccount = exports.TraceConfig = exports.AccessTuple = exports.TxResult = exports.Log = exports.TransactionLogs = exports.State = exports.ChainConfig = exports.Params = exports.EventBlockBloom = exports.EventMessage = exports.EventTxLog = exports.EventEthereumTx = void 0;
|
|
4
|
+
var events_1 = require("./events");
|
|
5
|
+
Object.defineProperty(exports, "EventEthereumTx", { enumerable: true, get: function () { return events_1.EventEthereumTx; } });
|
|
6
|
+
Object.defineProperty(exports, "EventTxLog", { enumerable: true, get: function () { return events_1.EventTxLog; } });
|
|
7
|
+
Object.defineProperty(exports, "EventMessage", { enumerable: true, get: function () { return events_1.EventMessage; } });
|
|
8
|
+
Object.defineProperty(exports, "EventBlockBloom", { enumerable: true, get: function () { return events_1.EventBlockBloom; } });
|
|
9
|
+
var evm_1 = require("./evm");
|
|
10
|
+
Object.defineProperty(exports, "Params", { enumerable: true, get: function () { return evm_1.Params; } });
|
|
11
|
+
Object.defineProperty(exports, "ChainConfig", { enumerable: true, get: function () { return evm_1.ChainConfig; } });
|
|
12
|
+
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return evm_1.State; } });
|
|
13
|
+
Object.defineProperty(exports, "TransactionLogs", { enumerable: true, get: function () { return evm_1.TransactionLogs; } });
|
|
14
|
+
Object.defineProperty(exports, "Log", { enumerable: true, get: function () { return evm_1.Log; } });
|
|
15
|
+
Object.defineProperty(exports, "TxResult", { enumerable: true, get: function () { return evm_1.TxResult; } });
|
|
16
|
+
Object.defineProperty(exports, "AccessTuple", { enumerable: true, get: function () { return evm_1.AccessTuple; } });
|
|
17
|
+
Object.defineProperty(exports, "TraceConfig", { enumerable: true, get: function () { return evm_1.TraceConfig; } });
|
|
18
|
+
var genesis_1 = require("./genesis");
|
|
19
|
+
Object.defineProperty(exports, "GenesisAccount", { enumerable: true, get: function () { return genesis_1.GenesisAccount; } });
|
|
20
|
+
var query_1 = require("./query");
|
|
21
|
+
Object.defineProperty(exports, "QueryAccountRequest", { enumerable: true, get: function () { return query_1.QueryAccountRequest; } });
|
|
22
|
+
Object.defineProperty(exports, "QueryAccountResponse", { enumerable: true, get: function () { return query_1.QueryAccountResponse; } });
|
|
23
|
+
Object.defineProperty(exports, "QueryCosmosAccountRequest", { enumerable: true, get: function () { return query_1.QueryCosmosAccountRequest; } });
|
|
24
|
+
Object.defineProperty(exports, "QueryCosmosAccountResponse", { enumerable: true, get: function () { return query_1.QueryCosmosAccountResponse; } });
|
|
25
|
+
Object.defineProperty(exports, "QueryValidatorAccountRequest", { enumerable: true, get: function () { return query_1.QueryValidatorAccountRequest; } });
|
|
26
|
+
Object.defineProperty(exports, "QueryValidatorAccountResponse", { enumerable: true, get: function () { return query_1.QueryValidatorAccountResponse; } });
|
|
27
|
+
Object.defineProperty(exports, "QueryBalanceRequest", { enumerable: true, get: function () { return query_1.QueryBalanceRequest; } });
|
|
28
|
+
Object.defineProperty(exports, "QueryBalanceResponse", { enumerable: true, get: function () { return query_1.QueryBalanceResponse; } });
|
|
29
|
+
Object.defineProperty(exports, "QueryStorageRequest", { enumerable: true, get: function () { return query_1.QueryStorageRequest; } });
|
|
30
|
+
Object.defineProperty(exports, "QueryStorageResponse", { enumerable: true, get: function () { return query_1.QueryStorageResponse; } });
|
|
31
|
+
Object.defineProperty(exports, "QueryCodeRequest", { enumerable: true, get: function () { return query_1.QueryCodeRequest; } });
|
|
32
|
+
Object.defineProperty(exports, "QueryCodeResponse", { enumerable: true, get: function () { return query_1.QueryCodeResponse; } });
|
|
33
|
+
Object.defineProperty(exports, "QueryTxLogsRequest", { enumerable: true, get: function () { return query_1.QueryTxLogsRequest; } });
|
|
34
|
+
Object.defineProperty(exports, "QueryTxLogsResponse", { enumerable: true, get: function () { return query_1.QueryTxLogsResponse; } });
|
|
35
|
+
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
36
|
+
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
37
|
+
Object.defineProperty(exports, "EthCallRequest", { enumerable: true, get: function () { return query_1.EthCallRequest; } });
|
|
38
|
+
Object.defineProperty(exports, "EstimateGasResponse", { enumerable: true, get: function () { return query_1.EstimateGasResponse; } });
|
|
39
|
+
Object.defineProperty(exports, "QueryTraceTxRequest", { enumerable: true, get: function () { return query_1.QueryTraceTxRequest; } });
|
|
40
|
+
Object.defineProperty(exports, "QueryTraceTxResponse", { enumerable: true, get: function () { return query_1.QueryTraceTxResponse; } });
|
|
41
|
+
Object.defineProperty(exports, "QueryTraceBlockRequest", { enumerable: true, get: function () { return query_1.QueryTraceBlockRequest; } });
|
|
42
|
+
Object.defineProperty(exports, "QueryTraceBlockResponse", { enumerable: true, get: function () { return query_1.QueryTraceBlockResponse; } });
|
|
43
|
+
Object.defineProperty(exports, "QueryBaseFeeRequest", { enumerable: true, get: function () { return query_1.QueryBaseFeeRequest; } });
|
|
44
|
+
Object.defineProperty(exports, "QueryBaseFeeResponse", { enumerable: true, get: function () { return query_1.QueryBaseFeeResponse; } });
|
|
45
|
+
var tx_1 = require("./tx");
|
|
46
|
+
Object.defineProperty(exports, "MsgEthereumTx", { enumerable: true, get: function () { return tx_1.MsgEthereumTx; } });
|
|
47
|
+
Object.defineProperty(exports, "LegacyTx", { enumerable: true, get: function () { return tx_1.LegacyTx; } });
|
|
48
|
+
Object.defineProperty(exports, "AccessListTx", { enumerable: true, get: function () { return tx_1.AccessListTx; } });
|
|
49
|
+
Object.defineProperty(exports, "DynamicFeeTx", { enumerable: true, get: function () { return tx_1.DynamicFeeTx; } });
|
|
50
|
+
Object.defineProperty(exports, "ExtensionOptionsEthereumTx", { enumerable: true, get: function () { return tx_1.ExtensionOptionsEthereumTx; } });
|
|
51
|
+
Object.defineProperty(exports, "MsgEthereumTxResponse", { enumerable: true, get: function () { return tx_1.MsgEthereumTxResponse; } });
|
|
52
|
+
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
53
|
+
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { EventFeeMarket, EventBlockGas } from "./events";
|
|
2
|
+
export { Params } from "./feemarket";
|
|
3
|
+
export { QueryParamsRequest, QueryParamsResponse, QueryBaseFeeRequest, QueryBaseFeeResponse, QueryBlockGasRequest, QueryBlockGasResponse } from "./query";
|
|
4
|
+
export { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.QueryBlockGasResponse = exports.QueryBlockGasRequest = exports.QueryBaseFeeResponse = exports.QueryBaseFeeRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.Params = exports.EventBlockGas = exports.EventFeeMarket = void 0;
|
|
4
|
+
var events_1 = require("./events");
|
|
5
|
+
Object.defineProperty(exports, "EventFeeMarket", { enumerable: true, get: function () { return events_1.EventFeeMarket; } });
|
|
6
|
+
Object.defineProperty(exports, "EventBlockGas", { enumerable: true, get: function () { return events_1.EventBlockGas; } });
|
|
7
|
+
var feemarket_1 = require("./feemarket");
|
|
8
|
+
Object.defineProperty(exports, "Params", { enumerable: true, get: function () { return feemarket_1.Params; } });
|
|
9
|
+
var query_1 = require("./query");
|
|
10
|
+
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
11
|
+
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
12
|
+
Object.defineProperty(exports, "QueryBaseFeeRequest", { enumerable: true, get: function () { return query_1.QueryBaseFeeRequest; } });
|
|
13
|
+
Object.defineProperty(exports, "QueryBaseFeeResponse", { enumerable: true, get: function () { return query_1.QueryBaseFeeResponse; } });
|
|
14
|
+
Object.defineProperty(exports, "QueryBlockGasRequest", { enumerable: true, get: function () { return query_1.QueryBlockGasRequest; } });
|
|
15
|
+
Object.defineProperty(exports, "QueryBlockGasResponse", { enumerable: true, get: function () { return query_1.QueryBlockGasResponse; } });
|
|
16
|
+
var tx_1 = require("./tx");
|
|
17
|
+
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
18
|
+
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExtensionOptionsWeb3Tx = exports.TxResult = exports.ExtensionOptionDynamicFeeTx = exports.EthAccount = void 0;
|
|
4
|
+
var account_1 = require("./account");
|
|
5
|
+
Object.defineProperty(exports, "EthAccount", { enumerable: true, get: function () { return account_1.EthAccount; } });
|
|
6
|
+
var dynamic_fee_1 = require("./dynamic_fee");
|
|
7
|
+
Object.defineProperty(exports, "ExtensionOptionDynamicFeeTx", { enumerable: true, get: function () { return dynamic_fee_1.ExtensionOptionDynamicFeeTx; } });
|
|
8
|
+
var indexer_1 = require("./indexer");
|
|
9
|
+
Object.defineProperty(exports, "TxResult", { enumerable: true, get: function () { return indexer_1.TxResult; } });
|
|
10
|
+
var web3_1 = require("./web3");
|
|
11
|
+
Object.defineProperty(exports, "ExtensionOptionsWeb3Tx", { enumerable: true, get: function () { return web3_1.ExtensionOptionsWeb3Tx; } });
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.Types = exports.FeeMarket = exports.Evm = exports.Crypto = void 0;
|
|
23
|
+
exports.Crypto = __importStar(require("./ethermint/crypto/v1/ethsecp256k1/export"));
|
|
24
|
+
exports.Evm = __importStar(require("./ethermint/evm/v1/export"));
|
|
25
|
+
exports.FeeMarket = __importStar(require("./ethermint/feemarket/v1/export"));
|
|
26
|
+
exports.Types = __importStar(require("./ethermint/types/v1/export"));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const DEFAULT_EIP712_TYPES: {
|
|
2
|
+
EIP712Domain: {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
}[];
|
|
6
|
+
Tx: {
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}[];
|
|
10
|
+
Fee: {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}[];
|
|
14
|
+
Coin: {
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
}[];
|
|
18
|
+
Msg: {
|
|
19
|
+
name: string;
|
|
20
|
+
type: string;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
export declare const DEFAULT_CARBON_DOMAIN_FIELDS: {
|
|
24
|
+
name: string;
|
|
25
|
+
version: string;
|
|
26
|
+
verifyingContract: string;
|
|
27
|
+
salt: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_CARBON_DOMAIN_FIELDS = exports.DEFAULT_EIP712_TYPES = void 0;
|
|
4
|
+
exports.DEFAULT_EIP712_TYPES = {
|
|
5
|
+
EIP712Domain: [
|
|
6
|
+
{ name: 'name', type: 'string' },
|
|
7
|
+
{ name: 'version', type: 'string' },
|
|
8
|
+
{ name: 'chainId', type: 'uint256' },
|
|
9
|
+
{ name: 'verifyingContract', type: 'string' },
|
|
10
|
+
{ name: 'salt', type: 'string' },
|
|
11
|
+
],
|
|
12
|
+
Tx: [
|
|
13
|
+
{ name: 'account_number', type: 'string' },
|
|
14
|
+
{ name: 'chain_id', type: 'string' },
|
|
15
|
+
{ name: 'fee', type: 'Fee' },
|
|
16
|
+
{ name: 'memo', type: 'string' },
|
|
17
|
+
{ name: 'msgs', type: 'Msg[]' },
|
|
18
|
+
{ name: 'sequence', type: 'string' },
|
|
19
|
+
],
|
|
20
|
+
Fee: [
|
|
21
|
+
{ name: 'feePayer', type: 'string' },
|
|
22
|
+
{ name: 'amount', type: 'Coin[]' },
|
|
23
|
+
{ name: 'gas', type: 'string' },
|
|
24
|
+
],
|
|
25
|
+
Coin: [
|
|
26
|
+
{ name: 'denom', type: 'string' },
|
|
27
|
+
{ name: 'amount', type: 'string' },
|
|
28
|
+
],
|
|
29
|
+
Msg: [
|
|
30
|
+
{ name: 'type', type: 'string' },
|
|
31
|
+
{ name: 'value', type: 'MsgValue' },
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
// Note that the chainId field is delibrately omitted because it is dynamic
|
|
35
|
+
exports.DEFAULT_CARBON_DOMAIN_FIELDS = {
|
|
36
|
+
name: "Carbon",
|
|
37
|
+
version: "1.0.0",
|
|
38
|
+
verifyingContract: "cosmos",
|
|
39
|
+
salt: "1",
|
|
40
|
+
};
|
package/lib/constant/generic.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.DEFAULT_FEE_DENOM = "swth";
|
|
|
12
12
|
exports.DEFAULT_GAS_PRICE = new bignumber_js_1.default(10);
|
|
13
13
|
exports.DEFAULT_GAS = new bignumber_js_1.default(10000000);
|
|
14
14
|
exports.DEFAULT_FEE = {
|
|
15
|
-
amount:
|
|
15
|
+
amount: proto_signing_1.coins(exports.DEFAULT_GAS_PRICE.times(exports.DEFAULT_GAS).dp(0).toString(), "swth"),
|
|
16
16
|
gas: exports.DEFAULT_GAS.toString(10),
|
|
17
17
|
};
|
|
18
18
|
exports.CARBON_GAS_PRICE = {
|
package/lib/constant/ibc.d.ts
CHANGED
|
@@ -78,6 +78,13 @@ export interface CosmWasmChannelSet extends ChannelSet {
|
|
|
78
78
|
export declare const swthChannels: SimpleMap<ChannelConfig>;
|
|
79
79
|
export declare const cibtIbcTokenRegex: RegExp;
|
|
80
80
|
export declare const ibcTokenRegex: RegExp;
|
|
81
|
+
export declare const cw20TokenRegex: RegExp;
|
|
82
|
+
export declare const cosmBridgeRegex: RegExp;
|
|
81
83
|
export declare const ibcNetworkRegex: RegExp;
|
|
84
|
+
export declare const ibcTransferChannelRegex: RegExp;
|
|
82
85
|
export declare const ibcDefaultGas: number;
|
|
83
86
|
export declare const DefaultGasPriceStep: GasPriceStep;
|
|
87
|
+
export declare type MinimalDenomMap = SimpleMap<string>;
|
|
88
|
+
export interface ExtendedChainInfo extends ChainInfo {
|
|
89
|
+
minimalDenomMap: MinimalDenomMap;
|
|
90
|
+
}
|
package/lib/constant/ibc.js
CHANGED
|
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.DefaultGasPriceStep = exports.ibcDefaultGas = exports.ibcNetworkRegex = exports.ibcTokenRegex = exports.cibtIbcTokenRegex = exports.swthChannels = exports.EmbedChainInfosInit = exports.ibcWhitelist = exports.swthIbcWhitelist = exports.ChainIds = exports.IBCAddress = void 0;
|
|
22
|
+
exports.DefaultGasPriceStep = exports.ibcDefaultGas = exports.ibcTransferChannelRegex = exports.ibcNetworkRegex = exports.cosmBridgeRegex = exports.cw20TokenRegex = exports.ibcTokenRegex = exports.cibtIbcTokenRegex = exports.swthChannels = exports.EmbedChainInfosInit = exports.ibcWhitelist = exports.swthIbcWhitelist = exports.ChainIds = exports.IBCAddress = void 0;
|
|
23
23
|
const bech32 = __importStar(require("bech32"));
|
|
24
24
|
const generic_1 = require("./generic");
|
|
25
25
|
const token_1 = require("./token");
|
|
@@ -2116,7 +2116,10 @@ exports.swthChannels = {
|
|
|
2116
2116
|
};
|
|
2117
2117
|
exports.cibtIbcTokenRegex = RegExp(`^${token_1.DenomPrefix.CDPToken}/ibc/([a-f\\d]+)$`, "i");
|
|
2118
2118
|
exports.ibcTokenRegex = /^ibc\/([a-f\d]+)$/i;
|
|
2119
|
+
exports.cw20TokenRegex = /^cw20:([a-z\d]+)$/i;
|
|
2120
|
+
exports.cosmBridgeRegex = /^wasm\.([a-z\d]+)$/i;
|
|
2119
2121
|
exports.ibcNetworkRegex = /^([a-z\d_-]+)-([\d]+)$/i;
|
|
2122
|
+
exports.ibcTransferChannelRegex = /^transfer\/channel-(\d+)/i;
|
|
2120
2123
|
exports.ibcDefaultGas = 300000;
|
|
2121
2124
|
exports.DefaultGasPriceStep = {
|
|
2122
2125
|
low: 0.01,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SimpleMap } from "../util/type";
|
|
1
2
|
export declare enum Network {
|
|
2
3
|
MainNet = "mainnet",
|
|
3
4
|
TestNet = "testnet",
|
|
@@ -64,3 +65,4 @@ export interface NetworkConfigProvider {
|
|
|
64
65
|
export declare const NetworkConfigs: {
|
|
65
66
|
[key in Network]: NetworkConfig;
|
|
66
67
|
};
|
|
68
|
+
export declare const publicRpcNodes: SimpleMap<string>;
|
package/lib/constant/network.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NetworkConfigs = exports.DEFAULT_NETWORK = exports.CarbonChainIDs = exports.Network = void 0;
|
|
3
|
+
exports.publicRpcNodes = exports.NetworkConfigs = exports.DEFAULT_NETWORK = exports.CarbonChainIDs = exports.Network = void 0;
|
|
4
4
|
const neon_core_next_1 = require("@cityofzion/neon-core-next");
|
|
5
5
|
var Network;
|
|
6
6
|
(function (Network) {
|
|
@@ -318,3 +318,7 @@ exports.NetworkConfigs = {
|
|
|
318
318
|
},
|
|
319
319
|
},
|
|
320
320
|
};
|
|
321
|
+
exports.publicRpcNodes = {
|
|
322
|
+
Osmosis: "https://rpc.osmosis.zone/",
|
|
323
|
+
Terra: "https://terra-rpc.lavenderfive.com:443/",
|
|
324
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Blockchain } from "../util/blockchain";
|
|
1
|
+
import { Blockchain, BlockchainV2 } from "../util/blockchain";
|
|
2
2
|
export interface GetTransfersRequest {
|
|
3
3
|
bridging_blockchain?: string;
|
|
4
4
|
source_blockchain?: string;
|
|
@@ -53,9 +53,9 @@ export interface CrossChainTransfer {
|
|
|
53
53
|
nonce: string;
|
|
54
54
|
created_at: Date;
|
|
55
55
|
updated_at: Date;
|
|
56
|
-
source_blockchain: Blockchain | null;
|
|
57
|
-
bridging_blockchain: Blockchain | null;
|
|
58
|
-
destination_blockchain: Blockchain | null;
|
|
56
|
+
source_blockchain: Blockchain | BlockchainV2 | null;
|
|
57
|
+
bridging_blockchain: Blockchain | BlockchainV2 | null;
|
|
58
|
+
destination_blockchain: Blockchain | BlockchainV2 | null;
|
|
59
59
|
status: CrossChainFlowStatus;
|
|
60
60
|
carbon_token_id: string;
|
|
61
61
|
recovery_address_hash: string;
|
|
@@ -68,7 +68,7 @@ export interface CrossChainTransferDetailed extends CrossChainTransfer {
|
|
|
68
68
|
}
|
|
69
69
|
export interface ChainTransaction {
|
|
70
70
|
id: string;
|
|
71
|
-
blockchain: Blockchain;
|
|
71
|
+
blockchain: Blockchain | BlockchainV2;
|
|
72
72
|
contract: string;
|
|
73
73
|
block_height: number;
|
|
74
74
|
tx_hash: string;
|
package/lib/insights/common.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const InsightsEndpoints: {
|
|
|
26
26
|
"competition/list": string;
|
|
27
27
|
"competition/leaderboard": string;
|
|
28
28
|
"competition/leaderboardpnl": string;
|
|
29
|
+
"competition/leaderboardlottery": string;
|
|
29
30
|
"info/denom_gecko_map": string;
|
|
30
31
|
"market/funding": string;
|
|
31
32
|
};
|