@ark-us/wasmxjs 0.0.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/LICENSE +3 -0
- package/README.md +280 -0
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +887 -0
- package/main/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +157 -0
- package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +231 -0
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1479 -0
- package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +478 -0
- package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +207 -0
- package/main/codegen/cosmos/base/store/v1beta1/listening.js +89 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +951 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +117 -0
- package/main/codegen/cosmos/base/v1beta1/coin.js +223 -0
- package/main/codegen/cosmos/bundle.js +63 -0
- package/main/codegen/cosmos/rpc.query.js +55 -0
- package/main/codegen/extern.js +66 -0
- package/main/codegen/gogoproto/bundle.js +16 -0
- package/main/codegen/gogoproto/gogo.js +5 -0
- package/main/codegen/google/api/annotations.js +5 -0
- package/main/codegen/google/api/http.js +306 -0
- package/main/codegen/google/api/httpbody.js +102 -0
- package/main/codegen/google/bundle.js +26 -0
- package/main/codegen/google/protobuf/any.js +69 -0
- package/main/codegen/google/protobuf/descriptor.js +3429 -0
- package/main/codegen/google/protobuf/duration.js +69 -0
- package/main/codegen/google/protobuf/timestamp.js +69 -0
- package/main/codegen/helpers.js +170 -0
- package/main/codegen/index.js +93 -0
- package/main/codegen/tendermint/abci/types.js +3616 -0
- package/main/codegen/tendermint/bundle.js +37 -0
- package/main/codegen/tendermint/crypto/keys.js +69 -0
- package/main/codegen/tendermint/crypto/proof.js +372 -0
- package/main/codegen/tendermint/libs/bits/types.js +100 -0
- package/main/codegen/tendermint/p2p/types.js +322 -0
- package/main/codegen/tendermint/types/block.js +90 -0
- package/main/codegen/tendermint/types/evidence.js +335 -0
- package/main/codegen/tendermint/types/params.js +397 -0
- package/main/codegen/tendermint/types/types.js +1223 -0
- package/main/codegen/tendermint/types/validator.js +237 -0
- package/main/codegen/tendermint/version/types.js +126 -0
- package/main/codegen/wasmx/bundle.js +30 -0
- package/main/codegen/wasmx/client.js +65 -0
- package/main/codegen/wasmx/index.js +126 -0
- package/main/codegen/wasmx/rpc.query.js +65 -0
- package/main/codegen/wasmx/rpc.tx.js +44 -0
- package/main/codegen/wasmx/wasmx/contract.js +324 -0
- package/main/codegen/wasmx/wasmx/genesis.js +481 -0
- package/main/codegen/wasmx/wasmx/params.js +45 -0
- package/main/codegen/wasmx/wasmx/query.js +1187 -0
- package/main/codegen/wasmx/wasmx/query.rpc.Query.js +154 -0
- package/main/codegen/wasmx/wasmx/tx.amino.js +251 -0
- package/main/codegen/wasmx/wasmx/tx.js +937 -0
- package/main/codegen/wasmx/wasmx/tx.registry.js +213 -0
- package/main/codegen/wasmx/wasmx/tx.rpc.msg.js +85 -0
- package/main/index.js +16 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +755 -0
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +110 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +154 -0
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +183 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1297 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +439 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +179 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +86 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +866 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +74 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +213 -0
- package/module/codegen/cosmos/bundle.js +52 -0
- package/module/codegen/cosmos/rpc.query.js +17 -0
- package/module/codegen/extern.js +30 -0
- package/module/codegen/gogoproto/bundle.js +5 -0
- package/module/codegen/gogoproto/gogo.js +1 -0
- package/module/codegen/google/api/annotations.js +1 -0
- package/module/codegen/google/api/http.js +264 -0
- package/module/codegen/google/api/httpbody.js +115 -0
- package/module/codegen/google/bundle.js +15 -0
- package/module/codegen/google/protobuf/any.js +140 -0
- package/module/codegen/google/protobuf/descriptor.js +2801 -0
- package/module/codegen/google/protobuf/duration.js +119 -0
- package/module/codegen/google/protobuf/timestamp.js +143 -0
- package/module/codegen/helpers.js +140 -0
- package/module/codegen/index.js +14 -0
- package/module/codegen/tendermint/abci/types.js +3305 -0
- package/module/codegen/tendermint/bundle.js +26 -0
- package/module/codegen/tendermint/crypto/keys.js +60 -0
- package/module/codegen/tendermint/crypto/proof.js +320 -0
- package/module/codegen/tendermint/libs/bits/types.js +71 -0
- package/module/codegen/tendermint/p2p/types.js +305 -0
- package/module/codegen/tendermint/types/block.js +79 -0
- package/module/codegen/tendermint/types/evidence.js +285 -0
- package/module/codegen/tendermint/types/params.js +363 -0
- package/module/codegen/tendermint/types/types.js +1149 -0
- package/module/codegen/tendermint/types/validator.js +204 -0
- package/module/codegen/tendermint/version/types.js +119 -0
- package/module/codegen/wasmx/bundle.js +19 -0
- package/module/codegen/wasmx/client.js +36 -0
- package/module/codegen/wasmx/index.js +11 -0
- package/module/codegen/wasmx/rpc.query.js +20 -0
- package/module/codegen/wasmx/rpc.tx.js +7 -0
- package/module/codegen/wasmx/wasmx/contract.js +291 -0
- package/module/codegen/wasmx/wasmx/genesis.js +386 -0
- package/module/codegen/wasmx/wasmx/params.js +36 -0
- package/module/codegen/wasmx/wasmx/query.js +1052 -0
- package/module/codegen/wasmx/wasmx/query.rpc.Query.js +101 -0
- package/module/codegen/wasmx/wasmx/tx.amino.js +236 -0
- package/module/codegen/wasmx/wasmx/tx.js +815 -0
- package/module/codegen/wasmx/wasmx/tx.registry.js +199 -0
- package/module/codegen/wasmx/wasmx/tx.rpc.msg.js +47 -0
- package/module/index.js +1 -0
- package/package.json +88 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1254 -0
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +156 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +314 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +280 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +2079 -0
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +641 -0
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +269 -0
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +129 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +107 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1284 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +318 -0
- package/src/codegen/cosmos/bundle.ts +52 -0
- package/src/codegen/cosmos/rpc.query.ts +19 -0
- package/src/codegen/extern.ts +33 -0
- package/src/codegen/gogoproto/bundle.ts +3 -0
- package/src/codegen/gogoproto/gogo.ts +1 -0
- package/src/codegen/google/api/annotations.ts +1 -0
- package/src/codegen/google/api/http.ts +945 -0
- package/src/codegen/google/api/httpbody.ts +200 -0
- package/src/codegen/google/bundle.ts +18 -0
- package/src/codegen/google/protobuf/any.ts +305 -0
- package/src/codegen/google/protobuf/descriptor.ts +5113 -0
- package/src/codegen/google/protobuf/duration.ts +229 -0
- package/src/codegen/google/protobuf/timestamp.ts +273 -0
- package/src/codegen/helpers.ts +240 -0
- package/src/codegen/index.ts +14 -0
- package/src/codegen/tendermint/abci/types.ts +4754 -0
- package/src/codegen/tendermint/bundle.ts +32 -0
- package/src/codegen/tendermint/crypto/keys.ts +83 -0
- package/src/codegen/tendermint/crypto/proof.ts +465 -0
- package/src/codegen/tendermint/libs/bits/types.ts +97 -0
- package/src/codegen/tendermint/p2p/types.ts +422 -0
- package/src/codegen/tendermint/types/block.ts +109 -0
- package/src/codegen/tendermint/types/evidence.ts +415 -0
- package/src/codegen/tendermint/types/params.ts +615 -0
- package/src/codegen/tendermint/types/types.ts +1663 -0
- package/src/codegen/tendermint/types/validator.ts +282 -0
- package/src/codegen/tendermint/version/types.ts +180 -0
- package/src/codegen/wasmx/bundle.ts +26 -0
- package/src/codegen/wasmx/client.ts +45 -0
- package/src/codegen/wasmx/index.ts +11 -0
- package/src/codegen/wasmx/rpc.query.ts +22 -0
- package/src/codegen/wasmx/rpc.tx.ts +10 -0
- package/src/codegen/wasmx/wasmx/contract.ts +470 -0
- package/src/codegen/wasmx/wasmx/genesis.ts +552 -0
- package/src/codegen/wasmx/wasmx/params.ts +50 -0
- package/src/codegen/wasmx/wasmx/query.rpc.Query.ts +149 -0
- package/src/codegen/wasmx/wasmx/query.ts +1668 -0
- package/src/codegen/wasmx/wasmx/tx.amino.ts +314 -0
- package/src/codegen/wasmx/wasmx/tx.registry.ts +230 -0
- package/src/codegen/wasmx/wasmx/tx.rpc.msg.ts +80 -0
- package/src/codegen/wasmx/wasmx/tx.ts +1331 -0
- package/src/index.ts +1 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +338 -0
- package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +33 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +140 -0
- package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +75 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +565 -0
- package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +135 -0
- package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +71 -0
- package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +38 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +282 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +14 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts +36 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +85 -0
- package/types/codegen/cosmos/bundle.d.ts +594 -0
- package/types/codegen/cosmos/lcd.d.ts +11 -0
- package/types/codegen/cosmos/rpc.query.d.ts +19 -0
- package/types/codegen/extern.d.ts +9 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/api/annotations.d.ts +1 -0
- package/types/codegen/google/api/http.d.ts +622 -0
- package/types/codegen/google/api/httpbody.d.ts +113 -0
- package/types/codegen/google/bundle.d.ts +274 -0
- package/types/codegen/google/protobuf/any.d.ts +238 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1835 -0
- package/types/codegen/google/protobuf/duration.d.ts +163 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +207 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/index.d.ts +13 -0
- package/types/codegen/tendermint/abci/types.d.ts +993 -0
- package/types/codegen/tendermint/bundle.d.ts +639 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +18 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +101 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +17 -0
- package/types/codegen/tendermint/p2p/types.d.ts +78 -0
- package/types/codegen/tendermint/types/block.d.ts +22 -0
- package/types/codegen/tendermint/types/evidence.d.ts +91 -0
- package/types/codegen/tendermint/types/params.d.ts +193 -0
- package/types/codegen/tendermint/types/types.d.ts +363 -0
- package/types/codegen/tendermint/types/validator.d.ts +54 -0
- package/types/codegen/tendermint/version/types.d.ts +52 -0
- package/types/codegen/wasmx/bundle.d.ts +614 -0
- package/types/codegen/wasmx/client.d.ts +151 -0
- package/types/codegen/wasmx/index.d.ts +11 -0
- package/types/codegen/wasmx/lcd.d.ts +14 -0
- package/types/codegen/wasmx/rpc.query.d.ts +32 -0
- package/types/codegen/wasmx/rpc.tx.d.ts +8 -0
- package/types/codegen/wasmx/wasmx/contract.d.ts +122 -0
- package/types/codegen/wasmx/wasmx/genesis.d.ts +107 -0
- package/types/codegen/wasmx/wasmx/params.d.ts +14 -0
- package/types/codegen/wasmx/wasmx/query.d.ts +451 -0
- package/types/codegen/wasmx/wasmx/query.lcd.d.ts +17 -0
- package/types/codegen/wasmx/wasmx/query.rpc.Query.d.ts +48 -0
- package/types/codegen/wasmx/wasmx/tx.amino.d.ts +110 -0
- package/types/codegen/wasmx/wasmx/tx.d.ts +332 -0
- package/types/codegen/wasmx/wasmx/tx.registry.d.ts +136 -0
- package/types/codegen/wasmx/wasmx/tx.rpc.msg.d.ts +33 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { Coin, CoinSDKType } from "../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { ContractInfo, ContractInfoSDKType, ContractStorage, ContractStorageSDKType } from "./contract";
|
|
4
|
+
import { Params, ParamsSDKType } from "./params";
|
|
5
|
+
import * as _m0 from "protobufjs/minimal";
|
|
6
|
+
import { Long } from "../../helpers";
|
|
7
|
+
/**
|
|
8
|
+
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
|
|
9
|
+
* method
|
|
10
|
+
*/
|
|
11
|
+
export interface QueryContractInfoRequest {
|
|
12
|
+
/** address is the address of the contract to query */
|
|
13
|
+
address: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
|
|
17
|
+
* method
|
|
18
|
+
*/
|
|
19
|
+
export interface QueryContractInfoRequestSDKType {
|
|
20
|
+
/** address is the address of the contract to query */
|
|
21
|
+
address: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* QueryContractInfoResponse is the response type for the Query/ContractInfo RPC
|
|
25
|
+
* method
|
|
26
|
+
*/
|
|
27
|
+
export interface QueryContractInfoResponse {
|
|
28
|
+
/** address is the address of the contract */
|
|
29
|
+
address: string;
|
|
30
|
+
contractInfo?: ContractInfo;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* QueryContractInfoResponse is the response type for the Query/ContractInfo RPC
|
|
34
|
+
* method
|
|
35
|
+
*/
|
|
36
|
+
export interface QueryContractInfoResponseSDKType {
|
|
37
|
+
/** address is the address of the contract */
|
|
38
|
+
address: string;
|
|
39
|
+
contract_info?: ContractInfoSDKType;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* QueryContractsByCodeRequest is the request type for the Query/ContractsByCode
|
|
43
|
+
* RPC method
|
|
44
|
+
*/
|
|
45
|
+
export interface QueryContractsByCodeRequest {
|
|
46
|
+
/**
|
|
47
|
+
* grpc-gateway_out does not support Go style CodID
|
|
48
|
+
* pagination defines an optional pagination for the request.
|
|
49
|
+
*/
|
|
50
|
+
codeId: Long;
|
|
51
|
+
pagination?: PageRequest;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* QueryContractsByCodeRequest is the request type for the Query/ContractsByCode
|
|
55
|
+
* RPC method
|
|
56
|
+
*/
|
|
57
|
+
export interface QueryContractsByCodeRequestSDKType {
|
|
58
|
+
/**
|
|
59
|
+
* grpc-gateway_out does not support Go style CodID
|
|
60
|
+
* pagination defines an optional pagination for the request.
|
|
61
|
+
*/
|
|
62
|
+
code_id: Long;
|
|
63
|
+
pagination?: PageRequestSDKType;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* QueryContractsByCodeResponse is the response type for the
|
|
67
|
+
* Query/ContractsByCode RPC method
|
|
68
|
+
*/
|
|
69
|
+
export interface QueryContractsByCodeResponse {
|
|
70
|
+
/** contracts are a set of contract addresses */
|
|
71
|
+
contracts: string[];
|
|
72
|
+
/** pagination defines the pagination in the response. */
|
|
73
|
+
pagination?: PageResponse;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* QueryContractsByCodeResponse is the response type for the
|
|
77
|
+
* Query/ContractsByCode RPC method
|
|
78
|
+
*/
|
|
79
|
+
export interface QueryContractsByCodeResponseSDKType {
|
|
80
|
+
/** contracts are a set of contract addresses */
|
|
81
|
+
contracts: string[];
|
|
82
|
+
/** pagination defines the pagination in the response. */
|
|
83
|
+
pagination?: PageResponseSDKType;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* QueryAllContractStateRequest is the request type for the
|
|
87
|
+
* Query/AllContractState RPC method
|
|
88
|
+
*/
|
|
89
|
+
export interface QueryAllContractStateRequest {
|
|
90
|
+
/** address is the address of the contract */
|
|
91
|
+
address: string;
|
|
92
|
+
/** pagination defines an optional pagination for the request. */
|
|
93
|
+
pagination?: PageRequest;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* QueryAllContractStateRequest is the request type for the
|
|
97
|
+
* Query/AllContractState RPC method
|
|
98
|
+
*/
|
|
99
|
+
export interface QueryAllContractStateRequestSDKType {
|
|
100
|
+
/** address is the address of the contract */
|
|
101
|
+
address: string;
|
|
102
|
+
/** pagination defines an optional pagination for the request. */
|
|
103
|
+
pagination?: PageRequestSDKType;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* QueryAllContractStateResponse is the response type for the
|
|
107
|
+
* Query/AllContractState RPC method
|
|
108
|
+
*/
|
|
109
|
+
export interface QueryAllContractStateResponse {
|
|
110
|
+
items: ContractStorage[];
|
|
111
|
+
/** pagination defines the pagination in the response. */
|
|
112
|
+
pagination?: PageResponse;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* QueryAllContractStateResponse is the response type for the
|
|
116
|
+
* Query/AllContractState RPC method
|
|
117
|
+
*/
|
|
118
|
+
export interface QueryAllContractStateResponseSDKType {
|
|
119
|
+
items: ContractStorageSDKType[];
|
|
120
|
+
/** pagination defines the pagination in the response. */
|
|
121
|
+
pagination?: PageResponseSDKType;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* QueryRawContractStateRequest is the request type for the
|
|
125
|
+
* Query/RawContractState RPC method
|
|
126
|
+
*/
|
|
127
|
+
export interface QueryRawContractStateRequest {
|
|
128
|
+
/** address is the address of the contract */
|
|
129
|
+
address: string;
|
|
130
|
+
queryData: Uint8Array;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* QueryRawContractStateRequest is the request type for the
|
|
134
|
+
* Query/RawContractState RPC method
|
|
135
|
+
*/
|
|
136
|
+
export interface QueryRawContractStateRequestSDKType {
|
|
137
|
+
/** address is the address of the contract */
|
|
138
|
+
address: string;
|
|
139
|
+
query_data: Uint8Array;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* QueryRawContractStateResponse is the response type for the
|
|
143
|
+
* Query/RawContractState RPC method
|
|
144
|
+
*/
|
|
145
|
+
export interface QueryRawContractStateResponse {
|
|
146
|
+
/** Data contains the raw store data */
|
|
147
|
+
data: Uint8Array;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* QueryRawContractStateResponse is the response type for the
|
|
151
|
+
* Query/RawContractState RPC method
|
|
152
|
+
*/
|
|
153
|
+
export interface QueryRawContractStateResponseSDKType {
|
|
154
|
+
/** Data contains the raw store data */
|
|
155
|
+
data: Uint8Array;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* QuerySmartContractCallRequest is the request type for the
|
|
159
|
+
* Query/SmartContractCall RPC method
|
|
160
|
+
*/
|
|
161
|
+
export interface QuerySmartContractCallRequest {
|
|
162
|
+
/** Sender is the that actor that signed the messages */
|
|
163
|
+
sender: string;
|
|
164
|
+
/** Address is the address of the smart contract */
|
|
165
|
+
address: string;
|
|
166
|
+
queryData: Uint8Array;
|
|
167
|
+
/** Funds coins that are transferred to the contract on execution */
|
|
168
|
+
funds: Coin[];
|
|
169
|
+
/**
|
|
170
|
+
* Array of either hex-encoded contract addresses or contract labels
|
|
171
|
+
* on which the execution of this message depends on
|
|
172
|
+
*/
|
|
173
|
+
dependencies: string[];
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* QuerySmartContractCallRequest is the request type for the
|
|
177
|
+
* Query/SmartContractCall RPC method
|
|
178
|
+
*/
|
|
179
|
+
export interface QuerySmartContractCallRequestSDKType {
|
|
180
|
+
/** Sender is the that actor that signed the messages */
|
|
181
|
+
sender: string;
|
|
182
|
+
/** Address is the address of the smart contract */
|
|
183
|
+
address: string;
|
|
184
|
+
query_data: Uint8Array;
|
|
185
|
+
/** Funds coins that are transferred to the contract on execution */
|
|
186
|
+
funds: CoinSDKType[];
|
|
187
|
+
/**
|
|
188
|
+
* Array of either hex-encoded contract addresses or contract labels
|
|
189
|
+
* on which the execution of this message depends on
|
|
190
|
+
*/
|
|
191
|
+
dependencies: string[];
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* QuerySmartContractCallResponse is the response type for the
|
|
195
|
+
* Query/SmartContractCall RPC method
|
|
196
|
+
*/
|
|
197
|
+
export interface QuerySmartContractCallResponse {
|
|
198
|
+
/** Data contains the json data returned from the smart contract */
|
|
199
|
+
data: Uint8Array;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* QuerySmartContractCallResponse is the response type for the
|
|
203
|
+
* Query/SmartContractCall RPC method
|
|
204
|
+
*/
|
|
205
|
+
export interface QuerySmartContractCallResponseSDKType {
|
|
206
|
+
/** Data contains the json data returned from the smart contract */
|
|
207
|
+
data: Uint8Array;
|
|
208
|
+
}
|
|
209
|
+
/** QueryCodeRequest is the request type for the Query/Code RPC method */
|
|
210
|
+
export interface QueryCodeRequest {
|
|
211
|
+
/** grpc-gateway_out does not support Go style CodID */
|
|
212
|
+
codeId: Long;
|
|
213
|
+
}
|
|
214
|
+
/** QueryCodeRequest is the request type for the Query/Code RPC method */
|
|
215
|
+
export interface QueryCodeRequestSDKType {
|
|
216
|
+
/** grpc-gateway_out does not support Go style CodID */
|
|
217
|
+
code_id: Long;
|
|
218
|
+
}
|
|
219
|
+
/** CodeInfoResponse contains code meta data from CodeInfo */
|
|
220
|
+
export interface CodeInfoResponse {
|
|
221
|
+
codeId: Long;
|
|
222
|
+
creator: string;
|
|
223
|
+
dataHash: Uint8Array;
|
|
224
|
+
}
|
|
225
|
+
/** CodeInfoResponse contains code meta data from CodeInfo */
|
|
226
|
+
export interface CodeInfoResponseSDKType {
|
|
227
|
+
code_id: Long;
|
|
228
|
+
creator: string;
|
|
229
|
+
data_hash: Uint8Array;
|
|
230
|
+
}
|
|
231
|
+
/** QueryCodeResponse is the response type for the Query/Code RPC method */
|
|
232
|
+
export interface QueryCodeResponse {
|
|
233
|
+
codeInfo?: CodeInfoResponse;
|
|
234
|
+
data: Uint8Array;
|
|
235
|
+
}
|
|
236
|
+
/** QueryCodeResponse is the response type for the Query/Code RPC method */
|
|
237
|
+
export interface QueryCodeResponseSDKType {
|
|
238
|
+
code_info?: CodeInfoResponseSDKType;
|
|
239
|
+
data: Uint8Array;
|
|
240
|
+
}
|
|
241
|
+
/** QueryCodesRequest is the request type for the Query/Codes RPC method */
|
|
242
|
+
export interface QueryCodesRequest {
|
|
243
|
+
/** pagination defines an optional pagination for the request. */
|
|
244
|
+
pagination?: PageRequest;
|
|
245
|
+
}
|
|
246
|
+
/** QueryCodesRequest is the request type for the Query/Codes RPC method */
|
|
247
|
+
export interface QueryCodesRequestSDKType {
|
|
248
|
+
/** pagination defines an optional pagination for the request. */
|
|
249
|
+
pagination?: PageRequestSDKType;
|
|
250
|
+
}
|
|
251
|
+
/** QueryCodesResponse is the response type for the Query/Codes RPC method */
|
|
252
|
+
export interface QueryCodesResponse {
|
|
253
|
+
codeInfos: CodeInfoResponse[];
|
|
254
|
+
/** pagination defines the pagination in the response. */
|
|
255
|
+
pagination?: PageResponse;
|
|
256
|
+
}
|
|
257
|
+
/** QueryCodesResponse is the response type for the Query/Codes RPC method */
|
|
258
|
+
export interface QueryCodesResponseSDKType {
|
|
259
|
+
code_infos: CodeInfoResponseSDKType[];
|
|
260
|
+
/** pagination defines the pagination in the response. */
|
|
261
|
+
pagination?: PageResponseSDKType;
|
|
262
|
+
}
|
|
263
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
264
|
+
export interface QueryParamsRequest {
|
|
265
|
+
}
|
|
266
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
267
|
+
export interface QueryParamsRequestSDKType {
|
|
268
|
+
}
|
|
269
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
270
|
+
export interface QueryParamsResponse {
|
|
271
|
+
/** params defines the parameters of the module. */
|
|
272
|
+
params?: Params;
|
|
273
|
+
}
|
|
274
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
275
|
+
export interface QueryParamsResponseSDKType {
|
|
276
|
+
/** params defines the parameters of the module. */
|
|
277
|
+
params?: ParamsSDKType;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* QueryContractsByCreatorRequest is the request type for the
|
|
281
|
+
* Query/ContractsByCreator RPC method.
|
|
282
|
+
*/
|
|
283
|
+
export interface QueryContractsByCreatorRequest {
|
|
284
|
+
/** CreatorAddress is the address of contract creator */
|
|
285
|
+
creatorAddress: string;
|
|
286
|
+
/** Pagination defines an optional pagination for the request. */
|
|
287
|
+
pagination?: PageRequest;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* QueryContractsByCreatorRequest is the request type for the
|
|
291
|
+
* Query/ContractsByCreator RPC method.
|
|
292
|
+
*/
|
|
293
|
+
export interface QueryContractsByCreatorRequestSDKType {
|
|
294
|
+
/** CreatorAddress is the address of contract creator */
|
|
295
|
+
creator_address: string;
|
|
296
|
+
/** Pagination defines an optional pagination for the request. */
|
|
297
|
+
pagination?: PageRequestSDKType;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* QueryContractsByCreatorResponse is the response type for the
|
|
301
|
+
* Query/ContractsByCreator RPC method.
|
|
302
|
+
*/
|
|
303
|
+
export interface QueryContractsByCreatorResponse {
|
|
304
|
+
/** ContractAddresses result set */
|
|
305
|
+
contractAddresses: string[];
|
|
306
|
+
/** Pagination defines the pagination in the response. */
|
|
307
|
+
pagination?: PageResponse;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* QueryContractsByCreatorResponse is the response type for the
|
|
311
|
+
* Query/ContractsByCreator RPC method.
|
|
312
|
+
*/
|
|
313
|
+
export interface QueryContractsByCreatorResponseSDKType {
|
|
314
|
+
/** ContractAddresses result set */
|
|
315
|
+
contract_addresses: string[];
|
|
316
|
+
/** Pagination defines the pagination in the response. */
|
|
317
|
+
pagination?: PageResponseSDKType;
|
|
318
|
+
}
|
|
319
|
+
export declare const QueryContractInfoRequest: {
|
|
320
|
+
encode(message: QueryContractInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
321
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoRequest;
|
|
322
|
+
fromJSON(object: any): QueryContractInfoRequest;
|
|
323
|
+
toJSON(message: QueryContractInfoRequest): unknown;
|
|
324
|
+
fromPartial(object: Partial<QueryContractInfoRequest>): QueryContractInfoRequest;
|
|
325
|
+
};
|
|
326
|
+
export declare const QueryContractInfoResponse: {
|
|
327
|
+
encode(message: QueryContractInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
328
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoResponse;
|
|
329
|
+
fromJSON(object: any): QueryContractInfoResponse;
|
|
330
|
+
toJSON(message: QueryContractInfoResponse): unknown;
|
|
331
|
+
fromPartial(object: Partial<QueryContractInfoResponse>): QueryContractInfoResponse;
|
|
332
|
+
};
|
|
333
|
+
export declare const QueryContractsByCodeRequest: {
|
|
334
|
+
encode(message: QueryContractsByCodeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
335
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeRequest;
|
|
336
|
+
fromJSON(object: any): QueryContractsByCodeRequest;
|
|
337
|
+
toJSON(message: QueryContractsByCodeRequest): unknown;
|
|
338
|
+
fromPartial(object: Partial<QueryContractsByCodeRequest>): QueryContractsByCodeRequest;
|
|
339
|
+
};
|
|
340
|
+
export declare const QueryContractsByCodeResponse: {
|
|
341
|
+
encode(message: QueryContractsByCodeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
342
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeResponse;
|
|
343
|
+
fromJSON(object: any): QueryContractsByCodeResponse;
|
|
344
|
+
toJSON(message: QueryContractsByCodeResponse): unknown;
|
|
345
|
+
fromPartial(object: Partial<QueryContractsByCodeResponse>): QueryContractsByCodeResponse;
|
|
346
|
+
};
|
|
347
|
+
export declare const QueryAllContractStateRequest: {
|
|
348
|
+
encode(message: QueryAllContractStateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
349
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateRequest;
|
|
350
|
+
fromJSON(object: any): QueryAllContractStateRequest;
|
|
351
|
+
toJSON(message: QueryAllContractStateRequest): unknown;
|
|
352
|
+
fromPartial(object: Partial<QueryAllContractStateRequest>): QueryAllContractStateRequest;
|
|
353
|
+
};
|
|
354
|
+
export declare const QueryAllContractStateResponse: {
|
|
355
|
+
encode(message: QueryAllContractStateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
356
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateResponse;
|
|
357
|
+
fromJSON(object: any): QueryAllContractStateResponse;
|
|
358
|
+
toJSON(message: QueryAllContractStateResponse): unknown;
|
|
359
|
+
fromPartial(object: Partial<QueryAllContractStateResponse>): QueryAllContractStateResponse;
|
|
360
|
+
};
|
|
361
|
+
export declare const QueryRawContractStateRequest: {
|
|
362
|
+
encode(message: QueryRawContractStateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
363
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateRequest;
|
|
364
|
+
fromJSON(object: any): QueryRawContractStateRequest;
|
|
365
|
+
toJSON(message: QueryRawContractStateRequest): unknown;
|
|
366
|
+
fromPartial(object: Partial<QueryRawContractStateRequest>): QueryRawContractStateRequest;
|
|
367
|
+
};
|
|
368
|
+
export declare const QueryRawContractStateResponse: {
|
|
369
|
+
encode(message: QueryRawContractStateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
370
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateResponse;
|
|
371
|
+
fromJSON(object: any): QueryRawContractStateResponse;
|
|
372
|
+
toJSON(message: QueryRawContractStateResponse): unknown;
|
|
373
|
+
fromPartial(object: Partial<QueryRawContractStateResponse>): QueryRawContractStateResponse;
|
|
374
|
+
};
|
|
375
|
+
export declare const QuerySmartContractCallRequest: {
|
|
376
|
+
encode(message: QuerySmartContractCallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
377
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractCallRequest;
|
|
378
|
+
fromJSON(object: any): QuerySmartContractCallRequest;
|
|
379
|
+
toJSON(message: QuerySmartContractCallRequest): unknown;
|
|
380
|
+
fromPartial(object: Partial<QuerySmartContractCallRequest>): QuerySmartContractCallRequest;
|
|
381
|
+
};
|
|
382
|
+
export declare const QuerySmartContractCallResponse: {
|
|
383
|
+
encode(message: QuerySmartContractCallResponse, writer?: _m0.Writer): _m0.Writer;
|
|
384
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractCallResponse;
|
|
385
|
+
fromJSON(object: any): QuerySmartContractCallResponse;
|
|
386
|
+
toJSON(message: QuerySmartContractCallResponse): unknown;
|
|
387
|
+
fromPartial(object: Partial<QuerySmartContractCallResponse>): QuerySmartContractCallResponse;
|
|
388
|
+
};
|
|
389
|
+
export declare const QueryCodeRequest: {
|
|
390
|
+
encode(message: QueryCodeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
391
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeRequest;
|
|
392
|
+
fromJSON(object: any): QueryCodeRequest;
|
|
393
|
+
toJSON(message: QueryCodeRequest): unknown;
|
|
394
|
+
fromPartial(object: Partial<QueryCodeRequest>): QueryCodeRequest;
|
|
395
|
+
};
|
|
396
|
+
export declare const CodeInfoResponse: {
|
|
397
|
+
encode(message: CodeInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
398
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse;
|
|
399
|
+
fromJSON(object: any): CodeInfoResponse;
|
|
400
|
+
toJSON(message: CodeInfoResponse): unknown;
|
|
401
|
+
fromPartial(object: Partial<CodeInfoResponse>): CodeInfoResponse;
|
|
402
|
+
};
|
|
403
|
+
export declare const QueryCodeResponse: {
|
|
404
|
+
encode(message: QueryCodeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
405
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse;
|
|
406
|
+
fromJSON(object: any): QueryCodeResponse;
|
|
407
|
+
toJSON(message: QueryCodeResponse): unknown;
|
|
408
|
+
fromPartial(object: Partial<QueryCodeResponse>): QueryCodeResponse;
|
|
409
|
+
};
|
|
410
|
+
export declare const QueryCodesRequest: {
|
|
411
|
+
encode(message: QueryCodesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
412
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest;
|
|
413
|
+
fromJSON(object: any): QueryCodesRequest;
|
|
414
|
+
toJSON(message: QueryCodesRequest): unknown;
|
|
415
|
+
fromPartial(object: Partial<QueryCodesRequest>): QueryCodesRequest;
|
|
416
|
+
};
|
|
417
|
+
export declare const QueryCodesResponse: {
|
|
418
|
+
encode(message: QueryCodesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
419
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesResponse;
|
|
420
|
+
fromJSON(object: any): QueryCodesResponse;
|
|
421
|
+
toJSON(message: QueryCodesResponse): unknown;
|
|
422
|
+
fromPartial(object: Partial<QueryCodesResponse>): QueryCodesResponse;
|
|
423
|
+
};
|
|
424
|
+
export declare const QueryParamsRequest: {
|
|
425
|
+
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
426
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
427
|
+
fromJSON(_: any): QueryParamsRequest;
|
|
428
|
+
toJSON(_: QueryParamsRequest): unknown;
|
|
429
|
+
fromPartial(_: Partial<QueryParamsRequest>): QueryParamsRequest;
|
|
430
|
+
};
|
|
431
|
+
export declare const QueryParamsResponse: {
|
|
432
|
+
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
433
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
434
|
+
fromJSON(object: any): QueryParamsResponse;
|
|
435
|
+
toJSON(message: QueryParamsResponse): unknown;
|
|
436
|
+
fromPartial(object: Partial<QueryParamsResponse>): QueryParamsResponse;
|
|
437
|
+
};
|
|
438
|
+
export declare const QueryContractsByCreatorRequest: {
|
|
439
|
+
encode(message: QueryContractsByCreatorRequest, writer?: _m0.Writer): _m0.Writer;
|
|
440
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorRequest;
|
|
441
|
+
fromJSON(object: any): QueryContractsByCreatorRequest;
|
|
442
|
+
toJSON(message: QueryContractsByCreatorRequest): unknown;
|
|
443
|
+
fromPartial(object: Partial<QueryContractsByCreatorRequest>): QueryContractsByCreatorRequest;
|
|
444
|
+
};
|
|
445
|
+
export declare const QueryContractsByCreatorResponse: {
|
|
446
|
+
encode(message: QueryContractsByCreatorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
447
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorResponse;
|
|
448
|
+
fromJSON(object: any): QueryContractsByCreatorResponse;
|
|
449
|
+
toJSON(message: QueryContractsByCreatorResponse): unknown;
|
|
450
|
+
fromPartial(object: Partial<QueryContractsByCreatorResponse>): QueryContractsByCreatorResponse;
|
|
451
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
|
2
|
+
import { QueryContractInfoRequest, QueryContractInfoResponseSDKType, QueryContractsByCodeRequest, QueryContractsByCodeResponseSDKType, QueryAllContractStateRequest, QueryAllContractStateResponseSDKType, QueryRawContractStateRequest, QueryRawContractStateResponseSDKType, QuerySmartContractCallRequest, QuerySmartContractCallResponseSDKType, QueryCodeRequest, QueryCodeResponseSDKType, QueryCodesRequest, QueryCodesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryContractsByCreatorRequest, QueryContractsByCreatorResponseSDKType } from "./query";
|
|
3
|
+
export declare class LCDQueryClient {
|
|
4
|
+
req: LCDClient;
|
|
5
|
+
constructor({ requestClient }: {
|
|
6
|
+
requestClient: LCDClient;
|
|
7
|
+
});
|
|
8
|
+
contractInfo(params: QueryContractInfoRequest): Promise<QueryContractInfoResponseSDKType>;
|
|
9
|
+
contractsByCode(params: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponseSDKType>;
|
|
10
|
+
allContractState(params: QueryAllContractStateRequest): Promise<QueryAllContractStateResponseSDKType>;
|
|
11
|
+
rawContractState(params: QueryRawContractStateRequest): Promise<QueryRawContractStateResponseSDKType>;
|
|
12
|
+
smartContractCall(params: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponseSDKType>;
|
|
13
|
+
code(params: QueryCodeRequest): Promise<QueryCodeResponseSDKType>;
|
|
14
|
+
codes(params?: QueryCodesRequest): Promise<QueryCodesResponseSDKType>;
|
|
15
|
+
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
|
16
|
+
contractsByCreator(params: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponseSDKType>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Rpc } from "../../helpers";
|
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
+
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractCallRequest, QuerySmartContractCallResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryParamsRequest, QueryParamsResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse } from "./query";
|
|
4
|
+
/** Query provides defines the gRPC querier service */
|
|
5
|
+
export interface Query {
|
|
6
|
+
/** ContractInfo gets the contract meta data */
|
|
7
|
+
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
|
|
8
|
+
/** ContractsByCode lists all smart contracts for a code id */
|
|
9
|
+
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
|
|
10
|
+
/** AllContractState gets all raw store data for a single contract */
|
|
11
|
+
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
|
|
12
|
+
/** RawContractState gets single key from the raw store data of a contract */
|
|
13
|
+
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
|
14
|
+
/** SmartContractCall get query result from the contract */
|
|
15
|
+
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse>;
|
|
16
|
+
/** Code gets the binary code and metadata for a singe wasm code */
|
|
17
|
+
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
18
|
+
/** Codes gets the metadata for all stored wasm codes */
|
|
19
|
+
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
|
20
|
+
/** Params gets the module params */
|
|
21
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
22
|
+
/** ContractsByCreator gets the contracts by creator */
|
|
23
|
+
contractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse>;
|
|
24
|
+
}
|
|
25
|
+
export declare class QueryClientImpl implements Query {
|
|
26
|
+
private readonly rpc;
|
|
27
|
+
constructor(rpc: Rpc);
|
|
28
|
+
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
|
|
29
|
+
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
|
|
30
|
+
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
|
|
31
|
+
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
|
32
|
+
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse>;
|
|
33
|
+
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
34
|
+
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
|
35
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
36
|
+
contractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse>;
|
|
37
|
+
}
|
|
38
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
39
|
+
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
|
|
40
|
+
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
|
|
41
|
+
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
|
|
42
|
+
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
|
|
43
|
+
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse>;
|
|
44
|
+
code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
45
|
+
codes(request?: QueryCodesRequest): Promise<QueryCodesResponse>;
|
|
46
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
47
|
+
contractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse>;
|
|
48
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
|
2
|
+
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract } from "./tx";
|
|
3
|
+
export interface AminoMsgStoreCode extends AminoMsg {
|
|
4
|
+
type: "/wasmx.wasmx.MsgStoreCode";
|
|
5
|
+
value: {
|
|
6
|
+
sender: string;
|
|
7
|
+
wasm_byte_code: Uint8Array;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
11
|
+
type: "/wasmx.wasmx.MsgInstantiateContract";
|
|
12
|
+
value: {
|
|
13
|
+
sender: string;
|
|
14
|
+
code_id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
msg: Uint8Array;
|
|
17
|
+
funds: {
|
|
18
|
+
denom: string;
|
|
19
|
+
amount: string;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface AminoMsgInstantiateContract2 extends AminoMsg {
|
|
24
|
+
type: "/wasmx.wasmx.MsgInstantiateContract2";
|
|
25
|
+
value: {
|
|
26
|
+
sender: string;
|
|
27
|
+
code_id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
msg: Uint8Array;
|
|
30
|
+
funds: {
|
|
31
|
+
denom: string;
|
|
32
|
+
amount: string;
|
|
33
|
+
}[];
|
|
34
|
+
salt: Uint8Array;
|
|
35
|
+
fix_msg: boolean;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface AminoMsgExecuteContract extends AminoMsg {
|
|
39
|
+
type: "/wasmx.wasmx.MsgExecuteContract";
|
|
40
|
+
value: {
|
|
41
|
+
sender: string;
|
|
42
|
+
contract: string;
|
|
43
|
+
msg: Uint8Array;
|
|
44
|
+
funds: {
|
|
45
|
+
denom: string;
|
|
46
|
+
amount: string;
|
|
47
|
+
}[];
|
|
48
|
+
dependencies: string[];
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface AminoMsgExecuteWithOriginContract extends AminoMsg {
|
|
52
|
+
type: "/wasmx.wasmx.MsgExecuteWithOriginContract";
|
|
53
|
+
value: {
|
|
54
|
+
origin: string;
|
|
55
|
+
sender: string;
|
|
56
|
+
contract: string;
|
|
57
|
+
msg: Uint8Array;
|
|
58
|
+
funds: {
|
|
59
|
+
denom: string;
|
|
60
|
+
amount: string;
|
|
61
|
+
}[];
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface AminoMsgExecuteDelegateContract extends AminoMsg {
|
|
65
|
+
type: "/wasmx.wasmx.MsgExecuteDelegateContract";
|
|
66
|
+
value: {
|
|
67
|
+
origin: string;
|
|
68
|
+
sender: string;
|
|
69
|
+
caller: string;
|
|
70
|
+
code_contract: string;
|
|
71
|
+
storage_contract: string;
|
|
72
|
+
msg: Uint8Array;
|
|
73
|
+
funds: {
|
|
74
|
+
denom: string;
|
|
75
|
+
amount: string;
|
|
76
|
+
}[];
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export declare const AminoConverter: {
|
|
80
|
+
"/wasmx.wasmx.MsgStoreCode": {
|
|
81
|
+
aminoType: string;
|
|
82
|
+
toAmino: ({ sender, wasmByteCode }: MsgStoreCode) => AminoMsgStoreCode["value"];
|
|
83
|
+
fromAmino: ({ sender, wasm_byte_code }: AminoMsgStoreCode["value"]) => MsgStoreCode;
|
|
84
|
+
};
|
|
85
|
+
"/wasmx.wasmx.MsgInstantiateContract": {
|
|
86
|
+
aminoType: string;
|
|
87
|
+
toAmino: ({ sender, codeId, label, msg, funds }: MsgInstantiateContract) => AminoMsgInstantiateContract["value"];
|
|
88
|
+
fromAmino: ({ sender, code_id, label, msg, funds }: AminoMsgInstantiateContract["value"]) => MsgInstantiateContract;
|
|
89
|
+
};
|
|
90
|
+
"/wasmx.wasmx.MsgInstantiateContract2": {
|
|
91
|
+
aminoType: string;
|
|
92
|
+
toAmino: ({ sender, codeId, label, msg, funds, salt, fixMsg }: MsgInstantiateContract2) => AminoMsgInstantiateContract2["value"];
|
|
93
|
+
fromAmino: ({ sender, code_id, label, msg, funds, salt, fix_msg }: AminoMsgInstantiateContract2["value"]) => MsgInstantiateContract2;
|
|
94
|
+
};
|
|
95
|
+
"/wasmx.wasmx.MsgExecuteContract": {
|
|
96
|
+
aminoType: string;
|
|
97
|
+
toAmino: ({ sender, contract, msg, funds, dependencies }: MsgExecuteContract) => AminoMsgExecuteContract["value"];
|
|
98
|
+
fromAmino: ({ sender, contract, msg, funds, dependencies }: AminoMsgExecuteContract["value"]) => MsgExecuteContract;
|
|
99
|
+
};
|
|
100
|
+
"/wasmx.wasmx.MsgExecuteWithOriginContract": {
|
|
101
|
+
aminoType: string;
|
|
102
|
+
toAmino: ({ origin, sender, contract, msg, funds }: MsgExecuteWithOriginContract) => AminoMsgExecuteWithOriginContract["value"];
|
|
103
|
+
fromAmino: ({ origin, sender, contract, msg, funds }: AminoMsgExecuteWithOriginContract["value"]) => MsgExecuteWithOriginContract;
|
|
104
|
+
};
|
|
105
|
+
"/wasmx.wasmx.MsgExecuteDelegateContract": {
|
|
106
|
+
aminoType: string;
|
|
107
|
+
toAmino: ({ origin, sender, caller, codeContract, storageContract, msg, funds }: MsgExecuteDelegateContract) => AminoMsgExecuteDelegateContract["value"];
|
|
108
|
+
fromAmino: ({ origin, sender, caller, code_contract, storage_contract, msg, funds }: AminoMsgExecuteDelegateContract["value"]) => MsgExecuteDelegateContract;
|
|
109
|
+
};
|
|
110
|
+
};
|