juno-network 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/types/codegen/JunoSwap.client.d.ts +122 -0
- package/types/codegen/JunoSwap.types.d.ts +142 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +32 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +57 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +25545 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +51 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +80 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +36 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +43 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +5227 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +48 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/bundle.d.ts +8939 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +21744 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +88 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +50 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +41 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +723 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.query.d.ts +24 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +19673 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
@@ -0,0 +1,339 @@
|
|
1
|
+
import { Tx, TxSDKType } from "./tx";
|
2
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
3
|
+
import { TxResponse, TxResponseSDKType, GasInfo, GasInfoSDKType, Result, ResultSDKType } from "../../base/abci/v1beta1/abci";
|
4
|
+
import { BlockID, BlockIDSDKType } from "../../../tendermint/types/types";
|
5
|
+
import { Block, BlockSDKType } from "../../../tendermint/types/block";
|
6
|
+
import * as _m0 from "protobufjs/minimal";
|
7
|
+
import { DeepPartial, Long } from "../../../helpers";
|
8
|
+
/** OrderBy defines the sorting order */
|
9
|
+
export declare enum OrderBy {
|
10
|
+
/** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */
|
11
|
+
ORDER_BY_UNSPECIFIED = 0,
|
12
|
+
/** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */
|
13
|
+
ORDER_BY_ASC = 1,
|
14
|
+
/** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */
|
15
|
+
ORDER_BY_DESC = 2,
|
16
|
+
UNRECOGNIZED = -1
|
17
|
+
}
|
18
|
+
/** OrderBy defines the sorting order */
|
19
|
+
export declare enum OrderBySDKType {
|
20
|
+
/** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */
|
21
|
+
ORDER_BY_UNSPECIFIED = 0,
|
22
|
+
/** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */
|
23
|
+
ORDER_BY_ASC = 1,
|
24
|
+
/** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */
|
25
|
+
ORDER_BY_DESC = 2,
|
26
|
+
UNRECOGNIZED = -1
|
27
|
+
}
|
28
|
+
export declare function orderByFromJSON(object: any): OrderBy;
|
29
|
+
export declare function orderByToJSON(object: OrderBy): string;
|
30
|
+
/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */
|
31
|
+
export declare enum BroadcastMode {
|
32
|
+
/** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */
|
33
|
+
BROADCAST_MODE_UNSPECIFIED = 0,
|
34
|
+
/**
|
35
|
+
* BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
|
36
|
+
* the tx to be committed in a block.
|
37
|
+
*/
|
38
|
+
BROADCAST_MODE_BLOCK = 1,
|
39
|
+
/**
|
40
|
+
* BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
|
41
|
+
* a CheckTx execution response only.
|
42
|
+
*/
|
43
|
+
BROADCAST_MODE_SYNC = 2,
|
44
|
+
/**
|
45
|
+
* BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
|
46
|
+
* immediately.
|
47
|
+
*/
|
48
|
+
BROADCAST_MODE_ASYNC = 3,
|
49
|
+
UNRECOGNIZED = -1
|
50
|
+
}
|
51
|
+
/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */
|
52
|
+
export declare enum BroadcastModeSDKType {
|
53
|
+
/** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */
|
54
|
+
BROADCAST_MODE_UNSPECIFIED = 0,
|
55
|
+
/**
|
56
|
+
* BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for
|
57
|
+
* the tx to be committed in a block.
|
58
|
+
*/
|
59
|
+
BROADCAST_MODE_BLOCK = 1,
|
60
|
+
/**
|
61
|
+
* BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
|
62
|
+
* a CheckTx execution response only.
|
63
|
+
*/
|
64
|
+
BROADCAST_MODE_SYNC = 2,
|
65
|
+
/**
|
66
|
+
* BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
|
67
|
+
* immediately.
|
68
|
+
*/
|
69
|
+
BROADCAST_MODE_ASYNC = 3,
|
70
|
+
UNRECOGNIZED = -1
|
71
|
+
}
|
72
|
+
export declare function broadcastModeFromJSON(object: any): BroadcastMode;
|
73
|
+
export declare function broadcastModeToJSON(object: BroadcastMode): string;
|
74
|
+
/**
|
75
|
+
* GetTxsEventRequest is the request type for the Service.TxsByEvents
|
76
|
+
* RPC method.
|
77
|
+
*/
|
78
|
+
export interface GetTxsEventRequest {
|
79
|
+
/** events is the list of transaction event type. */
|
80
|
+
events: string[];
|
81
|
+
/** pagination defines a pagination for the request. */
|
82
|
+
pagination?: PageRequest;
|
83
|
+
orderBy: OrderBy;
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* GetTxsEventRequest is the request type for the Service.TxsByEvents
|
87
|
+
* RPC method.
|
88
|
+
*/
|
89
|
+
export interface GetTxsEventRequestSDKType {
|
90
|
+
/** events is the list of transaction event type. */
|
91
|
+
events: string[];
|
92
|
+
/** pagination defines a pagination for the request. */
|
93
|
+
pagination?: PageRequestSDKType;
|
94
|
+
order_by: OrderBySDKType;
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* GetTxsEventResponse is the response type for the Service.TxsByEvents
|
98
|
+
* RPC method.
|
99
|
+
*/
|
100
|
+
export interface GetTxsEventResponse {
|
101
|
+
/** txs is the list of queried transactions. */
|
102
|
+
txs: Tx[];
|
103
|
+
/** tx_responses is the list of queried TxResponses. */
|
104
|
+
txResponses: TxResponse[];
|
105
|
+
/** pagination defines a pagination for the response. */
|
106
|
+
pagination?: PageResponse;
|
107
|
+
}
|
108
|
+
/**
|
109
|
+
* GetTxsEventResponse is the response type for the Service.TxsByEvents
|
110
|
+
* RPC method.
|
111
|
+
*/
|
112
|
+
export interface GetTxsEventResponseSDKType {
|
113
|
+
/** txs is the list of queried transactions. */
|
114
|
+
txs: TxSDKType[];
|
115
|
+
/** tx_responses is the list of queried TxResponses. */
|
116
|
+
tx_responses: TxResponseSDKType[];
|
117
|
+
/** pagination defines a pagination for the response. */
|
118
|
+
pagination?: PageResponseSDKType;
|
119
|
+
}
|
120
|
+
/**
|
121
|
+
* BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
|
122
|
+
* RPC method.
|
123
|
+
*/
|
124
|
+
export interface BroadcastTxRequest {
|
125
|
+
/** tx_bytes is the raw transaction. */
|
126
|
+
txBytes: Uint8Array;
|
127
|
+
mode: BroadcastMode;
|
128
|
+
}
|
129
|
+
/**
|
130
|
+
* BroadcastTxRequest is the request type for the Service.BroadcastTxRequest
|
131
|
+
* RPC method.
|
132
|
+
*/
|
133
|
+
export interface BroadcastTxRequestSDKType {
|
134
|
+
/** tx_bytes is the raw transaction. */
|
135
|
+
tx_bytes: Uint8Array;
|
136
|
+
mode: BroadcastModeSDKType;
|
137
|
+
}
|
138
|
+
/**
|
139
|
+
* BroadcastTxResponse is the response type for the
|
140
|
+
* Service.BroadcastTx method.
|
141
|
+
*/
|
142
|
+
export interface BroadcastTxResponse {
|
143
|
+
/** tx_response is the queried TxResponses. */
|
144
|
+
txResponse?: TxResponse;
|
145
|
+
}
|
146
|
+
/**
|
147
|
+
* BroadcastTxResponse is the response type for the
|
148
|
+
* Service.BroadcastTx method.
|
149
|
+
*/
|
150
|
+
export interface BroadcastTxResponseSDKType {
|
151
|
+
/** tx_response is the queried TxResponses. */
|
152
|
+
tx_response?: TxResponseSDKType;
|
153
|
+
}
|
154
|
+
/**
|
155
|
+
* SimulateRequest is the request type for the Service.Simulate
|
156
|
+
* RPC method.
|
157
|
+
*/
|
158
|
+
export interface SimulateRequest {
|
159
|
+
/**
|
160
|
+
* tx is the transaction to simulate.
|
161
|
+
* Deprecated. Send raw tx bytes instead.
|
162
|
+
*/
|
163
|
+
/** @deprecated */
|
164
|
+
tx?: Tx;
|
165
|
+
/**
|
166
|
+
* tx_bytes is the raw transaction.
|
167
|
+
*
|
168
|
+
* Since: cosmos-sdk 0.43
|
169
|
+
*/
|
170
|
+
txBytes: Uint8Array;
|
171
|
+
}
|
172
|
+
/**
|
173
|
+
* SimulateRequest is the request type for the Service.Simulate
|
174
|
+
* RPC method.
|
175
|
+
*/
|
176
|
+
export interface SimulateRequestSDKType {
|
177
|
+
/**
|
178
|
+
* tx is the transaction to simulate.
|
179
|
+
* Deprecated. Send raw tx bytes instead.
|
180
|
+
*/
|
181
|
+
/** @deprecated */
|
182
|
+
tx?: TxSDKType;
|
183
|
+
/**
|
184
|
+
* tx_bytes is the raw transaction.
|
185
|
+
*
|
186
|
+
* Since: cosmos-sdk 0.43
|
187
|
+
*/
|
188
|
+
tx_bytes: Uint8Array;
|
189
|
+
}
|
190
|
+
/**
|
191
|
+
* SimulateResponse is the response type for the
|
192
|
+
* Service.SimulateRPC method.
|
193
|
+
*/
|
194
|
+
export interface SimulateResponse {
|
195
|
+
/** gas_info is the information about gas used in the simulation. */
|
196
|
+
gasInfo?: GasInfo;
|
197
|
+
/** result is the result of the simulation. */
|
198
|
+
result?: Result;
|
199
|
+
}
|
200
|
+
/**
|
201
|
+
* SimulateResponse is the response type for the
|
202
|
+
* Service.SimulateRPC method.
|
203
|
+
*/
|
204
|
+
export interface SimulateResponseSDKType {
|
205
|
+
/** gas_info is the information about gas used in the simulation. */
|
206
|
+
gas_info?: GasInfoSDKType;
|
207
|
+
/** result is the result of the simulation. */
|
208
|
+
result?: ResultSDKType;
|
209
|
+
}
|
210
|
+
/**
|
211
|
+
* GetTxRequest is the request type for the Service.GetTx
|
212
|
+
* RPC method.
|
213
|
+
*/
|
214
|
+
export interface GetTxRequest {
|
215
|
+
/** hash is the tx hash to query, encoded as a hex string. */
|
216
|
+
hash: string;
|
217
|
+
}
|
218
|
+
/**
|
219
|
+
* GetTxRequest is the request type for the Service.GetTx
|
220
|
+
* RPC method.
|
221
|
+
*/
|
222
|
+
export interface GetTxRequestSDKType {
|
223
|
+
/** hash is the tx hash to query, encoded as a hex string. */
|
224
|
+
hash: string;
|
225
|
+
}
|
226
|
+
/** GetTxResponse is the response type for the Service.GetTx method. */
|
227
|
+
export interface GetTxResponse {
|
228
|
+
/** tx is the queried transaction. */
|
229
|
+
tx?: Tx;
|
230
|
+
/** tx_response is the queried TxResponses. */
|
231
|
+
txResponse?: TxResponse;
|
232
|
+
}
|
233
|
+
/** GetTxResponse is the response type for the Service.GetTx method. */
|
234
|
+
export interface GetTxResponseSDKType {
|
235
|
+
/** tx is the queried transaction. */
|
236
|
+
tx?: TxSDKType;
|
237
|
+
/** tx_response is the queried TxResponses. */
|
238
|
+
tx_response?: TxResponseSDKType;
|
239
|
+
}
|
240
|
+
/**
|
241
|
+
* GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs
|
242
|
+
* RPC method.
|
243
|
+
*
|
244
|
+
* Since: cosmos-sdk 0.45.2
|
245
|
+
*/
|
246
|
+
export interface GetBlockWithTxsRequest {
|
247
|
+
/** height is the height of the block to query. */
|
248
|
+
height: Long;
|
249
|
+
/** pagination defines a pagination for the request. */
|
250
|
+
pagination?: PageRequest;
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs
|
254
|
+
* RPC method.
|
255
|
+
*
|
256
|
+
* Since: cosmos-sdk 0.45.2
|
257
|
+
*/
|
258
|
+
export interface GetBlockWithTxsRequestSDKType {
|
259
|
+
/** height is the height of the block to query. */
|
260
|
+
height: Long;
|
261
|
+
/** pagination defines a pagination for the request. */
|
262
|
+
pagination?: PageRequestSDKType;
|
263
|
+
}
|
264
|
+
/**
|
265
|
+
* GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.
|
266
|
+
*
|
267
|
+
* Since: cosmos-sdk 0.45.2
|
268
|
+
*/
|
269
|
+
export interface GetBlockWithTxsResponse {
|
270
|
+
/** txs are the transactions in the block. */
|
271
|
+
txs: Tx[];
|
272
|
+
blockId?: BlockID;
|
273
|
+
block?: Block;
|
274
|
+
/** pagination defines a pagination for the response. */
|
275
|
+
pagination?: PageResponse;
|
276
|
+
}
|
277
|
+
/**
|
278
|
+
* GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.
|
279
|
+
*
|
280
|
+
* Since: cosmos-sdk 0.45.2
|
281
|
+
*/
|
282
|
+
export interface GetBlockWithTxsResponseSDKType {
|
283
|
+
/** txs are the transactions in the block. */
|
284
|
+
txs: TxSDKType[];
|
285
|
+
block_id?: BlockIDSDKType;
|
286
|
+
block?: BlockSDKType;
|
287
|
+
/** pagination defines a pagination for the response. */
|
288
|
+
pagination?: PageResponseSDKType;
|
289
|
+
}
|
290
|
+
export declare const GetTxsEventRequest: {
|
291
|
+
encode(message: GetTxsEventRequest, writer?: _m0.Writer): _m0.Writer;
|
292
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetTxsEventRequest;
|
293
|
+
fromPartial(object: DeepPartial<GetTxsEventRequest>): GetTxsEventRequest;
|
294
|
+
};
|
295
|
+
export declare const GetTxsEventResponse: {
|
296
|
+
encode(message: GetTxsEventResponse, writer?: _m0.Writer): _m0.Writer;
|
297
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetTxsEventResponse;
|
298
|
+
fromPartial(object: DeepPartial<GetTxsEventResponse>): GetTxsEventResponse;
|
299
|
+
};
|
300
|
+
export declare const BroadcastTxRequest: {
|
301
|
+
encode(message: BroadcastTxRequest, writer?: _m0.Writer): _m0.Writer;
|
302
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BroadcastTxRequest;
|
303
|
+
fromPartial(object: DeepPartial<BroadcastTxRequest>): BroadcastTxRequest;
|
304
|
+
};
|
305
|
+
export declare const BroadcastTxResponse: {
|
306
|
+
encode(message: BroadcastTxResponse, writer?: _m0.Writer): _m0.Writer;
|
307
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BroadcastTxResponse;
|
308
|
+
fromPartial(object: DeepPartial<BroadcastTxResponse>): BroadcastTxResponse;
|
309
|
+
};
|
310
|
+
export declare const SimulateRequest: {
|
311
|
+
encode(message: SimulateRequest, writer?: _m0.Writer): _m0.Writer;
|
312
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SimulateRequest;
|
313
|
+
fromPartial(object: DeepPartial<SimulateRequest>): SimulateRequest;
|
314
|
+
};
|
315
|
+
export declare const SimulateResponse: {
|
316
|
+
encode(message: SimulateResponse, writer?: _m0.Writer): _m0.Writer;
|
317
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SimulateResponse;
|
318
|
+
fromPartial(object: DeepPartial<SimulateResponse>): SimulateResponse;
|
319
|
+
};
|
320
|
+
export declare const GetTxRequest: {
|
321
|
+
encode(message: GetTxRequest, writer?: _m0.Writer): _m0.Writer;
|
322
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetTxRequest;
|
323
|
+
fromPartial(object: DeepPartial<GetTxRequest>): GetTxRequest;
|
324
|
+
};
|
325
|
+
export declare const GetTxResponse: {
|
326
|
+
encode(message: GetTxResponse, writer?: _m0.Writer): _m0.Writer;
|
327
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetTxResponse;
|
328
|
+
fromPartial(object: DeepPartial<GetTxResponse>): GetTxResponse;
|
329
|
+
};
|
330
|
+
export declare const GetBlockWithTxsRequest: {
|
331
|
+
encode(message: GetBlockWithTxsRequest, writer?: _m0.Writer): _m0.Writer;
|
332
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockWithTxsRequest;
|
333
|
+
fromPartial(object: DeepPartial<GetBlockWithTxsRequest>): GetBlockWithTxsRequest;
|
334
|
+
};
|
335
|
+
export declare const GetBlockWithTxsResponse: {
|
336
|
+
encode(message: GetBlockWithTxsResponse, writer?: _m0.Writer): _m0.Writer;
|
337
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockWithTxsResponse;
|
338
|
+
fromPartial(object: DeepPartial<GetBlockWithTxsResponse>): GetBlockWithTxsResponse;
|
339
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
2
|
+
import { GetTxRequest, GetTxResponseSDKType, GetTxsEventRequest, GetTxsEventResponseSDKType, GetBlockWithTxsRequest, GetBlockWithTxsResponseSDKType } from "./service";
|
3
|
+
export declare class LCDQueryClient {
|
4
|
+
req: LCDClient;
|
5
|
+
constructor({ requestClient }: {
|
6
|
+
requestClient: LCDClient;
|
7
|
+
});
|
8
|
+
getTx(params: GetTxRequest): Promise<GetTxResponseSDKType>;
|
9
|
+
getTxsEvent(params: GetTxsEventRequest): Promise<GetTxsEventResponseSDKType>;
|
10
|
+
getBlockWithTxs(params: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponseSDKType>;
|
11
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
3
|
+
import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service";
|
4
|
+
/** Service defines a gRPC service for interacting with transactions. */
|
5
|
+
export interface Service {
|
6
|
+
/** Simulate simulates executing a transaction for estimating gas usage. */
|
7
|
+
simulate(request: SimulateRequest): Promise<SimulateResponse>;
|
8
|
+
/** GetTx fetches a tx by hash. */
|
9
|
+
getTx(request: GetTxRequest): Promise<GetTxResponse>;
|
10
|
+
/** BroadcastTx broadcast transaction. */
|
11
|
+
broadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
|
12
|
+
/** GetTxsEvent fetches txs by event. */
|
13
|
+
getTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
|
14
|
+
/**
|
15
|
+
* GetBlockWithTxs fetches a block with decoded txs.
|
16
|
+
*
|
17
|
+
* Since: cosmos-sdk 0.45.2
|
18
|
+
*/
|
19
|
+
getBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
|
20
|
+
}
|
21
|
+
export declare class QueryClientImpl implements Service {
|
22
|
+
private readonly rpc;
|
23
|
+
constructor(rpc: Rpc);
|
24
|
+
simulate(request: SimulateRequest): Promise<SimulateResponse>;
|
25
|
+
getTx(request: GetTxRequest): Promise<GetTxResponse>;
|
26
|
+
broadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
|
27
|
+
getTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
|
28
|
+
getBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
|
29
|
+
}
|
30
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
31
|
+
simulate(request: SimulateRequest): Promise<SimulateResponse>;
|
32
|
+
getTx(request: GetTxRequest): Promise<GetTxResponse>;
|
33
|
+
broadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
|
34
|
+
getTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
|
35
|
+
getBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
|
36
|
+
};
|