carbon-js-sdk 0.3.53-dev.1 → 0.3.53-dev.2
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/clients/CarbonQueryClient.d.ts +6 -0
- package/lib/clients/CarbonQueryClient.js +36 -30
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/NEOClient.js +7 -7
- package/lib/clients/TokenClient.d.ts +4 -2
- package/lib/clients/TokenClient.js +68 -4
- package/lib/clients/ZILClient.js +17 -17
- package/lib/codec/broker/amm.d.ts +1 -0
- package/lib/codec/broker/amm.js +15 -1
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/tx/v1beta1/tx.js +2 -2
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +39 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.js +138 -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/evm/v1/evm.d.ts +239 -0
- package/lib/codec/ethermint/evm/v1/evm.js +1140 -0
- package/lib/codec/ethermint/evm/v1/genesis.d.ts +43 -0
- package/lib/codec/ethermint/evm/v1/genesis.js +153 -0
- package/lib/codec/ethermint/evm/v1/query.d.ts +424 -0
- package/lib/codec/ethermint/evm/v1/query.js +1637 -0
- package/lib/codec/ethermint/evm/v1/tx.d.ts +219 -0
- package/lib/codec/ethermint/evm/v1/tx.js +935 -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/feemarket.d.ts +51 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +176 -0
- package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +26 -0
- package/lib/codec/ethermint/feemarket/v1/genesis.js +79 -0
- package/lib/codec/ethermint/feemarket/v1/query.d.ts +100 -0
- package/lib/codec/ethermint/feemarket/v1/query.js +276 -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/ethermint/types/v1/account.d.ts +26 -0
- package/lib/codec/ethermint/types/v1/account.js +78 -0
- package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +20 -0
- package/lib/codec/ethermint/types/v1/dynamic_fee.js +60 -0
- package/lib/codec/ethermint/types/v1/indexer.d.ts +41 -0
- package/lib/codec/ethermint/types/v1/indexer.js +153 -0
- package/lib/codec/ethermint/types/v1/web3.d.ts +36 -0
- package/lib/codec/ethermint/types/v1/web3.js +124 -0
- package/lib/codec/evmbank/genesis.d.ts +32 -0
- package/lib/codec/evmbank/genesis.js +152 -0
- package/lib/codec/evmbank/query.d.ts +40 -0
- package/lib/codec/evmbank/query.js +116 -0
- package/lib/codec/evmmerge/event.d.ts +20 -0
- package/lib/codec/evmmerge/event.js +90 -0
- package/lib/codec/evmmerge/genesis.d.ts +48 -0
- package/lib/codec/evmmerge/genesis.js +216 -0
- package/lib/codec/evmmerge/offchain.d.ts +22 -0
- package/lib/codec/evmmerge/offchain.js +105 -0
- package/lib/codec/evmmerge/query.d.ts +43 -0
- package/lib/codec/evmmerge/query.js +117 -0
- package/lib/codec/evmmerge/tx.d.ts +45 -0
- package/lib/codec/evmmerge/tx.js +128 -0
- package/lib/codec/index.d.ts +14 -10
- package/lib/codec/index.js +52 -27
- package/lib/codec/liquiditypool/event.d.ts +12 -0
- package/lib/codec/liquiditypool/event.js +74 -1
- package/lib/codec/liquiditypool/genesis.d.ts +2 -1
- package/lib/codec/liquiditypool/genesis.js +17 -2
- package/lib/codec/liquiditypool/liquiditypool.d.ts +40 -0
- package/lib/codec/liquiditypool/liquiditypool.js +320 -2
- package/lib/codec/liquiditypool/proposal.d.ts +37 -1
- package/lib/codec/liquiditypool/proposal.js +229 -1
- package/lib/codec/liquiditypool/query.d.ts +85 -24
- package/lib/codec/liquiditypool/query.js +338 -23
- package/lib/codec/liquiditypool/tx.d.ts +101 -46
- package/lib/codec/liquiditypool/tx.js +638 -309
- package/lib/codec/order/order.d.ts +1 -0
- package/lib/codec/order/order.js +45 -1
- package/lib/constant/generic.js +1 -1
- package/lib/modules/admin.d.ts +0 -2
- package/lib/modules/admin.js +0 -26
- package/lib/modules/cdp.js +43 -43
- package/lib/modules/coin.d.ts +19 -0
- package/lib/modules/coin.js +39 -0
- package/lib/modules/cosmwasm.js +1 -1
- package/lib/modules/gov.js +12 -26
- package/lib/modules/liquiditypool.d.ts +11 -2
- package/lib/modules/liquiditypool.js +34 -3
- package/lib/modules/market.d.ts +11 -0
- package/lib/modules/market.js +19 -0
- 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 +28 -32
- 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 -40
- 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 -9
- 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/ledger/ledger.js +2 -2
- package/lib/provider/metamask/MetaMask.js +1 -1
- 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 +4 -1
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.js +3 -3
- package/lib/util/gov.d.ts +0 -2
- package/lib/util/gov.js +0 -6
- package/lib/util/number.js +5 -5
- package/lib/util/tx.d.ts +9 -4
- 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/lib/websocket/models.d.ts +7 -2
- package/package.json +1 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Any } from "../../../google/protobuf/any";
|
|
4
|
+
import { Params, AccessTuple, Log } from "./evm";
|
|
5
|
+
export declare const protobufPackage = "ethermint.evm.v1";
|
|
6
|
+
/** MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. */
|
|
7
|
+
export interface MsgEthereumTx {
|
|
8
|
+
/** data is inner transaction data of the Ethereum transaction */
|
|
9
|
+
data?: Any;
|
|
10
|
+
/** size is the encoded storage size of the transaction (DEPRECATED) */
|
|
11
|
+
size: number;
|
|
12
|
+
/** hash of the transaction in hex format */
|
|
13
|
+
hash: string;
|
|
14
|
+
/**
|
|
15
|
+
* from is the ethereum signer address in hex format. This address value is checked
|
|
16
|
+
* against the address derived from the signature (V, R, S) using the
|
|
17
|
+
* secp256k1 elliptic curve
|
|
18
|
+
*/
|
|
19
|
+
from: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* LegacyTx is the transaction data of regular Ethereum transactions.
|
|
23
|
+
* NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the
|
|
24
|
+
* AllowUnprotectedTxs parameter is disabled.
|
|
25
|
+
*/
|
|
26
|
+
export interface LegacyTx {
|
|
27
|
+
/** nonce corresponds to the account nonce (transaction sequence). */
|
|
28
|
+
nonce: Long;
|
|
29
|
+
/** gas_price defines the value for each gas unit */
|
|
30
|
+
gasPrice: string;
|
|
31
|
+
/** gas defines the gas limit defined for the transaction. */
|
|
32
|
+
gas: Long;
|
|
33
|
+
/** to is the hex formatted address of the recipient */
|
|
34
|
+
to: string;
|
|
35
|
+
/** value defines the unsigned integer value of the transaction amount. */
|
|
36
|
+
value: string;
|
|
37
|
+
/** data is the data payload bytes of the transaction. */
|
|
38
|
+
data: Uint8Array;
|
|
39
|
+
/** v defines the signature value */
|
|
40
|
+
v: Uint8Array;
|
|
41
|
+
/** r defines the signature value */
|
|
42
|
+
r: Uint8Array;
|
|
43
|
+
/** s define the signature value */
|
|
44
|
+
s: Uint8Array;
|
|
45
|
+
}
|
|
46
|
+
/** AccessListTx is the data of EIP-2930 access list transactions. */
|
|
47
|
+
export interface AccessListTx {
|
|
48
|
+
/** chain_id of the destination EVM chain */
|
|
49
|
+
chainId: string;
|
|
50
|
+
/** nonce corresponds to the account nonce (transaction sequence). */
|
|
51
|
+
nonce: Long;
|
|
52
|
+
/** gas_price defines the value for each gas unit */
|
|
53
|
+
gasPrice: string;
|
|
54
|
+
/** gas defines the gas limit defined for the transaction. */
|
|
55
|
+
gas: Long;
|
|
56
|
+
/** to is the recipient address in hex format */
|
|
57
|
+
to: string;
|
|
58
|
+
/** value defines the unsigned integer value of the transaction amount. */
|
|
59
|
+
value: string;
|
|
60
|
+
/** data is the data payload bytes of the transaction. */
|
|
61
|
+
data: Uint8Array;
|
|
62
|
+
/** accesses is an array of access tuples */
|
|
63
|
+
accesses: AccessTuple[];
|
|
64
|
+
/** v defines the signature value */
|
|
65
|
+
v: Uint8Array;
|
|
66
|
+
/** r defines the signature value */
|
|
67
|
+
r: Uint8Array;
|
|
68
|
+
/** s define the signature value */
|
|
69
|
+
s: Uint8Array;
|
|
70
|
+
}
|
|
71
|
+
/** DynamicFeeTx is the data of EIP-1559 dinamic fee transactions. */
|
|
72
|
+
export interface DynamicFeeTx {
|
|
73
|
+
/** chain_id of the destination EVM chain */
|
|
74
|
+
chainId: string;
|
|
75
|
+
/** nonce corresponds to the account nonce (transaction sequence). */
|
|
76
|
+
nonce: Long;
|
|
77
|
+
/** gas_tip_cap defines the max value for the gas tip */
|
|
78
|
+
gasTipCap: string;
|
|
79
|
+
/** gas_fee_cap defines the max value for the gas fee */
|
|
80
|
+
gasFeeCap: string;
|
|
81
|
+
/** gas defines the gas limit defined for the transaction. */
|
|
82
|
+
gas: Long;
|
|
83
|
+
/** to is the hex formatted address of the recipient */
|
|
84
|
+
to: string;
|
|
85
|
+
/** value defines the the transaction amount. */
|
|
86
|
+
value: string;
|
|
87
|
+
/** data is the data payload bytes of the transaction. */
|
|
88
|
+
data: Uint8Array;
|
|
89
|
+
/** accesses is an array of access tuples */
|
|
90
|
+
accesses: AccessTuple[];
|
|
91
|
+
/** v defines the signature value */
|
|
92
|
+
v: Uint8Array;
|
|
93
|
+
/** r defines the signature value */
|
|
94
|
+
r: Uint8Array;
|
|
95
|
+
/** s define the signature value */
|
|
96
|
+
s: Uint8Array;
|
|
97
|
+
}
|
|
98
|
+
/** ExtensionOptionsEthereumTx is an extension option for ethereum transactions */
|
|
99
|
+
export interface ExtensionOptionsEthereumTx {
|
|
100
|
+
}
|
|
101
|
+
/** MsgEthereumTxResponse defines the Msg/EthereumTx response type. */
|
|
102
|
+
export interface MsgEthereumTxResponse {
|
|
103
|
+
/**
|
|
104
|
+
* hash of the ethereum transaction in hex format. This hash differs from the
|
|
105
|
+
* Tendermint sha256 hash of the transaction bytes. See
|
|
106
|
+
* https://github.com/tendermint/tendermint/issues/6539 for reference
|
|
107
|
+
*/
|
|
108
|
+
hash: string;
|
|
109
|
+
/**
|
|
110
|
+
* logs contains the transaction hash and the proto-compatible ethereum
|
|
111
|
+
* logs.
|
|
112
|
+
*/
|
|
113
|
+
logs: Log[];
|
|
114
|
+
/**
|
|
115
|
+
* ret is the returned data from evm function (result or data supplied with revert
|
|
116
|
+
* opcode)
|
|
117
|
+
*/
|
|
118
|
+
ret: Uint8Array;
|
|
119
|
+
/** vm_error is the error returned by vm execution */
|
|
120
|
+
vmError: string;
|
|
121
|
+
/** gas_used specifies how much gas was consumed by the transaction */
|
|
122
|
+
gasUsed: Long;
|
|
123
|
+
}
|
|
124
|
+
/** MsgUpdateParams defines a Msg for updating the x/evm module parameters. */
|
|
125
|
+
export interface MsgUpdateParams {
|
|
126
|
+
/** authority is the address of the governance account. */
|
|
127
|
+
authority: string;
|
|
128
|
+
/**
|
|
129
|
+
* params defines the x/evm parameters to update.
|
|
130
|
+
* NOTE: All parameters must be supplied.
|
|
131
|
+
*/
|
|
132
|
+
params?: Params;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
136
|
+
* MsgUpdateParams message.
|
|
137
|
+
*/
|
|
138
|
+
export interface MsgUpdateParamsResponse {
|
|
139
|
+
}
|
|
140
|
+
export declare const MsgEthereumTx: {
|
|
141
|
+
encode(message: MsgEthereumTx, writer?: _m0.Writer): _m0.Writer;
|
|
142
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgEthereumTx;
|
|
143
|
+
fromJSON(object: any): MsgEthereumTx;
|
|
144
|
+
toJSON(message: MsgEthereumTx): unknown;
|
|
145
|
+
fromPartial(object: DeepPartial<MsgEthereumTx>): MsgEthereumTx;
|
|
146
|
+
};
|
|
147
|
+
export declare const LegacyTx: {
|
|
148
|
+
encode(message: LegacyTx, writer?: _m0.Writer): _m0.Writer;
|
|
149
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): LegacyTx;
|
|
150
|
+
fromJSON(object: any): LegacyTx;
|
|
151
|
+
toJSON(message: LegacyTx): unknown;
|
|
152
|
+
fromPartial(object: DeepPartial<LegacyTx>): LegacyTx;
|
|
153
|
+
};
|
|
154
|
+
export declare const AccessListTx: {
|
|
155
|
+
encode(message: AccessListTx, writer?: _m0.Writer): _m0.Writer;
|
|
156
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AccessListTx;
|
|
157
|
+
fromJSON(object: any): AccessListTx;
|
|
158
|
+
toJSON(message: AccessListTx): unknown;
|
|
159
|
+
fromPartial(object: DeepPartial<AccessListTx>): AccessListTx;
|
|
160
|
+
};
|
|
161
|
+
export declare const DynamicFeeTx: {
|
|
162
|
+
encode(message: DynamicFeeTx, writer?: _m0.Writer): _m0.Writer;
|
|
163
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): DynamicFeeTx;
|
|
164
|
+
fromJSON(object: any): DynamicFeeTx;
|
|
165
|
+
toJSON(message: DynamicFeeTx): unknown;
|
|
166
|
+
fromPartial(object: DeepPartial<DynamicFeeTx>): DynamicFeeTx;
|
|
167
|
+
};
|
|
168
|
+
export declare const ExtensionOptionsEthereumTx: {
|
|
169
|
+
encode(_: ExtensionOptionsEthereumTx, writer?: _m0.Writer): _m0.Writer;
|
|
170
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ExtensionOptionsEthereumTx;
|
|
171
|
+
fromJSON(_: any): ExtensionOptionsEthereumTx;
|
|
172
|
+
toJSON(_: ExtensionOptionsEthereumTx): unknown;
|
|
173
|
+
fromPartial(_: DeepPartial<ExtensionOptionsEthereumTx>): ExtensionOptionsEthereumTx;
|
|
174
|
+
};
|
|
175
|
+
export declare const MsgEthereumTxResponse: {
|
|
176
|
+
encode(message: MsgEthereumTxResponse, writer?: _m0.Writer): _m0.Writer;
|
|
177
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgEthereumTxResponse;
|
|
178
|
+
fromJSON(object: any): MsgEthereumTxResponse;
|
|
179
|
+
toJSON(message: MsgEthereumTxResponse): unknown;
|
|
180
|
+
fromPartial(object: DeepPartial<MsgEthereumTxResponse>): MsgEthereumTxResponse;
|
|
181
|
+
};
|
|
182
|
+
export declare const MsgUpdateParams: {
|
|
183
|
+
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
184
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
185
|
+
fromJSON(object: any): MsgUpdateParams;
|
|
186
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
187
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
188
|
+
};
|
|
189
|
+
export declare const MsgUpdateParamsResponse: {
|
|
190
|
+
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
191
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
192
|
+
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
193
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
194
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
195
|
+
};
|
|
196
|
+
/** Msg defines the evm Msg service. */
|
|
197
|
+
export interface Msg {
|
|
198
|
+
/** EthereumTx defines a method submitting Ethereum transactions. */
|
|
199
|
+
EthereumTx(request: MsgEthereumTx): Promise<MsgEthereumTxResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* UpdateParams defined a governance operation for updating the x/evm module parameters.
|
|
202
|
+
* The authority is hard-coded to the Cosmos SDK x/gov module account
|
|
203
|
+
*/
|
|
204
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
205
|
+
}
|
|
206
|
+
export declare class MsgClientImpl implements Msg {
|
|
207
|
+
private readonly rpc;
|
|
208
|
+
constructor(rpc: Rpc);
|
|
209
|
+
EthereumTx(request: MsgEthereumTx): Promise<MsgEthereumTxResponse>;
|
|
210
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
211
|
+
}
|
|
212
|
+
interface Rpc {
|
|
213
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
214
|
+
}
|
|
215
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
216
|
+
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 {} ? {
|
|
217
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
218
|
+
} : Partial<T>;
|
|
219
|
+
export {};
|