@zuhaibnoor/zigchain-sdk 1.1.2 → 1.1.3
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/README.md +21 -24
- package/dist/auth/ChainAuthApi.d.ts +6 -6
- package/dist/auth/ChainAuthApi.d.ts.map +1 -1
- package/dist/bank/ChainBankApi.d.ts +11 -12
- package/dist/bank/ChainBankApi.d.ts.map +1 -1
- package/dist/block/ChainBlockApi.d.ts +1 -1
- package/dist/circuit/ChainCircuitApi.d.ts +2 -3
- package/dist/circuit/ChainCircuitApi.d.ts.map +1 -1
- package/dist/client/http.d.ts +2 -2
- package/dist/client/http.d.ts.map +1 -1
- package/dist/client/http.js.map +1 -1
- package/dist/consensus/ChainConsensusApi.d.ts +5 -6
- package/dist/consensus/ChainConsensusApi.d.ts.map +1 -1
- package/dist/dex/ChainDexApi.d.ts +4 -5
- package/dist/dex/ChainDexApi.d.ts.map +1 -1
- package/dist/distribution/ChainDistributionApi.d.ts +10 -11
- package/dist/distribution/ChainDistributionApi.d.ts.map +1 -1
- package/dist/evidence/ChainEvidenceApi.d.ts +2 -3
- package/dist/evidence/ChainEvidenceApi.d.ts.map +1 -1
- package/dist/factory/ChainFactoryApi.d.ts +4 -5
- package/dist/factory/ChainFactoryApi.d.ts.map +1 -1
- package/dist/feegrant/ChainFeegrantApi.d.ts +3 -4
- package/dist/feegrant/ChainFeegrantApi.d.ts.map +1 -1
- package/dist/gov/ChainGovApi.d.ts +5 -6
- package/dist/gov/ChainGovApi.d.ts.map +1 -1
- package/dist/ibc/ibcChannel/ChainIbcChannelApi.d.ts +12 -13
- package/dist/ibc/ibcChannel/ChainIbcChannelApi.d.ts.map +1 -1
- package/dist/ibc/ibcClient/ChainIbcClientApi.d.ts +8 -9
- package/dist/ibc/ibcClient/ChainIbcClientApi.d.ts.map +1 -1
- package/dist/ibc/ibcConnection/ChainIbcConnectionApi.d.ts +4 -5
- package/dist/ibc/ibcConnection/ChainIbcConnectionApi.d.ts.map +1 -1
- package/dist/ibc-transfer/ChainIbcTransferApi.d.ts +5 -6
- package/dist/ibc-transfer/ChainIbcTransferApi.d.ts.map +1 -1
- package/dist/interchain-accounts/ChainInterChainAccApi.d.ts +2 -3
- package/dist/interchain-accounts/ChainInterChainAccApi.d.ts.map +1 -1
- package/dist/mint/ChainMintApi.d.ts +3 -4
- package/dist/mint/ChainMintApi.d.ts.map +1 -1
- package/dist/networks/endpoints.d.ts +1 -0
- package/dist/networks/endpoints.d.ts.map +1 -1
- package/dist/networks/endpoints.js +7 -1
- package/dist/networks/endpoints.js.map +1 -1
- package/dist/runtime/ChainRuntimeApi.d.ts +1 -2
- package/dist/runtime/ChainRuntimeApi.d.ts.map +1 -1
- package/dist/slashing/ChainSlashingApi.d.ts +3 -4
- package/dist/slashing/ChainSlashingApi.d.ts.map +1 -1
- package/dist/staking/ChainStakingApi.d.ts +13 -16
- package/dist/staking/ChainStakingApi.d.ts.map +1 -1
- package/dist/tokenwrapper/ChainTokenWrapperApi.d.ts +3 -4
- package/dist/tokenwrapper/ChainTokenWrapperApi.d.ts.map +1 -1
- package/dist/upgrade/ChainUpgradeApi.d.ts +3 -4
- package/dist/upgrade/ChainUpgradeApi.d.ts.map +1 -1
- package/dist/validator-set/ChainValidator.d.ts +1 -2
- package/dist/validator-set/ChainValidator.d.ts.map +1 -1
- package/dist/wasm/ChainWasmApi.d.ts +10 -11
- package/dist/wasm/ChainWasmApi.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,11 +49,31 @@ import {
|
|
|
49
49
|
const endpoints = getNetworkEndpoints(Network.Testnet)
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
The getNetworkEndpoints() funtion returns default endpoints that are configured in the sdk.
|
|
53
|
+
|
|
54
|
+
Available networks for getNetworkEndpoints():
|
|
53
55
|
|
|
54
56
|
* `Network.Mainnet`
|
|
55
57
|
* `Network.Testnet`
|
|
56
58
|
|
|
59
|
+
The default network settings for testnet are:
|
|
60
|
+
```
|
|
61
|
+
lcd: 'https://public-zigchain-testnet-lcd.numia.xyz',
|
|
62
|
+
rpc: 'https://public-zigchain-testnet-rpc.numia.xyz'
|
|
63
|
+
```
|
|
64
|
+
& for mainnet are:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
lcd: 'https://public-zigchain-lcd.numia.xyz',
|
|
68
|
+
rpc: 'https://public-zigchain-rpc.numia.xyz'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
To set custom endpoints use setNetworkEndpoints() as follows:
|
|
73
|
+
```ts
|
|
74
|
+
const endpoints = setNetworkEndpoints("https://api.zigscan.net", "rpc.zigscan.net")
|
|
75
|
+
```
|
|
76
|
+
> Note: Throughout the documentation we will be using getNetworkEndpoints().
|
|
57
77
|
---
|
|
58
78
|
|
|
59
79
|
### 3️⃣ Initialize a Module API
|
|
@@ -80,10 +100,7 @@ console.log(params)
|
|
|
80
100
|
This SDK follows a few strict design principles:
|
|
81
101
|
|
|
82
102
|
* ✅ One class per Cosmos module
|
|
83
|
-
* ✅ One function per CLI query
|
|
84
|
-
* ✅ Uses **LCD endpoints only**
|
|
85
103
|
* ✅ Minimal abstraction — returns raw chain data
|
|
86
|
-
* ✅ Optional `height` support where applicable
|
|
87
104
|
|
|
88
105
|
|
|
89
106
|
This makes it easy to:
|
|
@@ -128,24 +145,6 @@ Each file in the `docs/` folder explains how to use a specific module.
|
|
|
128
145
|
---
|
|
129
146
|
|
|
130
147
|
|
|
131
|
-
## Height-based Queries
|
|
132
|
-
|
|
133
|
-
Some queries accept a `height` parameter:
|
|
134
|
-
|
|
135
|
-
```ts
|
|
136
|
-
await api.fetchParams(123456)
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
This internally sets:
|
|
140
|
-
|
|
141
|
-
```
|
|
142
|
-
x-cosmos-block-height
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
⚠️ This may fail if the node has pruned historical state.
|
|
146
|
-
|
|
147
|
-
---
|
|
148
|
-
|
|
149
148
|
## Module Documentation
|
|
150
149
|
|
|
151
150
|
Detailed guides for each module are available in the `docs/` folder:
|
|
@@ -166,6 +165,4 @@ and so on...
|
|
|
166
165
|
|
|
167
166
|
---
|
|
168
167
|
|
|
169
|
-
|
|
170
|
-
|
|
171
168
|
If you’re unsure which function maps to which CLI command — check the module docs. The naming closely mirrors `zigchaind query ...` commands.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ModuleAccountsResponse } from './types.js';
|
|
3
3
|
export declare class ChainAuthApi {
|
|
4
4
|
private client;
|
|
5
5
|
constructor(endpoints: NetworkEndpoints);
|
|
6
6
|
/**
|
|
7
7
|
* zigchaind query auth account <address>
|
|
8
8
|
*/
|
|
9
|
-
fetchAccount(address: string): Promise<
|
|
9
|
+
fetchAccount(address: string): Promise<any>;
|
|
10
10
|
/**
|
|
11
11
|
* zigchaind query auth account-info <address>
|
|
12
12
|
* queries account info which is common to all account types and this info can be used for signing the transactions
|
|
13
13
|
*/
|
|
14
|
-
fetchAccountInfo(address: string): Promise<
|
|
15
|
-
fetchBech32Prefix(): Promise<
|
|
16
|
-
fetchAccountsByModule(moduleName: string): Promise<
|
|
14
|
+
fetchAccountInfo(address: string): Promise<any>;
|
|
15
|
+
fetchBech32Prefix(): Promise<any>;
|
|
16
|
+
fetchAccountsByModule(moduleName: string): Promise<any>;
|
|
17
17
|
fetchModuleAccounts(): Promise<ModuleAccountsResponse>;
|
|
18
|
-
fetchAuthParams(height?: number): Promise<
|
|
18
|
+
fetchAuthParams(height?: number): Promise<any>;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=ChainAuthApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainAuthApi.d.ts","sourceRoot":"","sources":["../../src/auth/ChainAuthApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ChainAuthApi.d.ts","sourceRoot":"","sources":["../../src/auth/ChainAuthApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAMV,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAEnB,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,MAAM;IAQlC;;;OAGG;IACG,gBAAgB,CAAC,OAAO,EAAE,MAAM;IAShC,iBAAiB;IAOjB,qBAAqB,CACzB,UAAU,EAAE,MAAM;IAOd,mBAAmB,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAOtD,eAAe,CAAE,MAAM,CAAC,EAAE,MAAM;CAUvC"}
|
|
@@ -1,55 +1,54 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { BalanceResponse, BalancesResponse, TotalSupplyResponse, SupplyOfResponse, DenomMetadataResponse, DenomOwnersResponse, DenomsMetadataResponse, SendEnabledResponse, SpendableBalanceResponse, SpendableBalancesResponse, BankParamsResponse } from './types.js';
|
|
3
2
|
export declare class ChainBankApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query bank balance <address> <denom>
|
|
8
7
|
*/
|
|
9
|
-
fetchBalance(address: string, denom: string): Promise<
|
|
8
|
+
fetchBalance(address: string, denom: string): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query bank balances <address>
|
|
12
11
|
*/
|
|
13
|
-
fetchBalances(address: string): Promise<
|
|
12
|
+
fetchBalances(address: string): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* zigchaind query bank total-supply
|
|
16
15
|
*/
|
|
17
|
-
fetchTotalSupply(): Promise<
|
|
16
|
+
fetchTotalSupply(): Promise<any>;
|
|
18
17
|
/**
|
|
19
18
|
* zigchaind query bank total-supply-of <denom>
|
|
20
19
|
*/
|
|
21
|
-
fetchSupplyOf(denom: string): Promise<
|
|
20
|
+
fetchSupplyOf(denom: string): Promise<any>;
|
|
22
21
|
/**
|
|
23
22
|
* Fetch metadata for a specific denom
|
|
24
23
|
* zigchaind query bank denom-metadata <denom>
|
|
25
24
|
*/
|
|
26
|
-
fetchDenomMetadata(denom: string): Promise<
|
|
25
|
+
fetchDenomMetadata(denom: string): Promise<any>;
|
|
27
26
|
/**
|
|
28
27
|
* Fetch all owners of a specific denom
|
|
29
28
|
* zigchaind query bank denom-owners <denom>
|
|
30
29
|
*/
|
|
31
|
-
fetchDenomOwners(denom: string): Promise<
|
|
30
|
+
fetchDenomOwners(denom: string): Promise<any>;
|
|
32
31
|
/**
|
|
33
32
|
* Fetch metadata for all registered coin denominations
|
|
34
33
|
* zigchaind query bank denoms-metadata
|
|
35
34
|
*/
|
|
36
|
-
fetchAllDenomsMetadata(): Promise<
|
|
35
|
+
fetchAllDenomsMetadata(): Promise<any>;
|
|
37
36
|
/**
|
|
38
37
|
* zigchaind query bank send-enabled
|
|
39
38
|
*/
|
|
40
|
-
fetchSendEnabled(): Promise<
|
|
39
|
+
fetchSendEnabled(): Promise<any>;
|
|
41
40
|
/**
|
|
42
41
|
* zigchaind query bank spendable-balance <address> <denom>
|
|
43
42
|
*/
|
|
44
|
-
fetchSpendableBalance(address: string, denom: string): Promise<
|
|
43
|
+
fetchSpendableBalance(address: string, denom: string): Promise<any>;
|
|
45
44
|
/**
|
|
46
45
|
* zigchaind query bank spendable-balances <address>
|
|
47
46
|
*/
|
|
48
|
-
fetchSpendableBalances(address: string): Promise<
|
|
47
|
+
fetchSpendableBalances(address: string): Promise<any>;
|
|
49
48
|
/**
|
|
50
49
|
* zigchaind query bank params
|
|
51
50
|
* zigchaind query bank params --height <H>
|
|
52
51
|
*/
|
|
53
|
-
fetchParams(): Promise<
|
|
52
|
+
fetchParams(): Promise<any>;
|
|
54
53
|
}
|
|
55
54
|
//# sourceMappingURL=ChainBankApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainBankApi.d.ts","sourceRoot":"","sources":["../../src/bank/ChainBankApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainBankApi.d.ts","sourceRoot":"","sources":["../../src/bank/ChainBankApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAehE,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAQjD;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM;IAQnC;;OAEG;IACG,gBAAgB;IAQtB;;OAEG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM;IASjC;;;KAGC;IACG,kBAAkB,CAAC,KAAK,EAAE,MAAM;IAOtC;;;OAGG;IACG,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAOpC;;;OAGG;IACG,sBAAsB;IAS5B;;OAEG;IACG,gBAAgB;IAQtB;;OAEG;IACG,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAU1D;;OAEG;IACG,sBAAsB,CAAC,OAAO,EAAE,MAAM;IAU5C;;;OAGG;IACG,WAAW;CAUhB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from "../networks/endpoints.js";
|
|
2
|
-
import type { CircuitAccountResponse, CircuitAccountsResponse } from "./types.js";
|
|
3
2
|
export declare class ChainCircuitApi {
|
|
4
3
|
private client;
|
|
5
4
|
private rpcClient;
|
|
@@ -7,10 +6,10 @@ export declare class ChainCircuitApi {
|
|
|
7
6
|
/**
|
|
8
7
|
* zigchaind query circuit account <address>
|
|
9
8
|
*/
|
|
10
|
-
getAccountPermissions(address: string): Promise<
|
|
9
|
+
getAccountPermissions(address: string): Promise<any>;
|
|
11
10
|
/**
|
|
12
11
|
* zigchaind query circuit accounts
|
|
13
12
|
*/
|
|
14
|
-
getAllAccountPermissions(): Promise<
|
|
13
|
+
getAllAccountPermissions(): Promise<any>;
|
|
15
14
|
}
|
|
16
15
|
//# sourceMappingURL=ChainCircuitApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainCircuitApi.d.ts","sourceRoot":"","sources":["../../src/circuit/ChainCircuitApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChainCircuitApi.d.ts","sourceRoot":"","sources":["../../src/circuit/ChainCircuitApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAIjE,qBAAa,eAAe;IAEzB,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,SAAS,CAAY;gBACjB,SAAS,EAAE,gBAAgB;IAKtC;;KAEC;IACK,qBAAqB,CAAC,OAAO,EAAC,MAAM;IAM1C;;KAEC;IACK,wBAAwB;CAOjC"}
|
package/dist/client/http.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class HttpClient {
|
|
2
2
|
private readonly baseUrl;
|
|
3
3
|
constructor(baseUrl: string);
|
|
4
|
-
get<T>(path: string, headers?: HeadersInit): Promise<
|
|
5
|
-
post<T>(url: string, body: any): Promise<
|
|
4
|
+
get<T>(path: string, headers?: HeadersInit): Promise<any>;
|
|
5
|
+
post<T>(url: string, body: any): Promise<any>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/client/http.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM;IAEtC,GAAG,CAAC,CAAC,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,WAAW
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/client/http.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM;IAEtC,GAAG,CAAC,CAAC,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,WAAW;IAcjB,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;CAYrC"}
|
package/dist/client/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/client/http.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,UAAU;IACQ;IAA7B,YAA6B,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAEhD,KAAK,CAAC,GAAG,CACP,IAAY,EACZ,OAAqB;QAErB,MAAM,IAAI,GAAgB;YACxB,MAAM,EAAE,KAAK;SACd,CAAA;QAED,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACxB,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,EAAE,IAAI,CAAC,CAAA;QAClD,OAAO,GAAG,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/client/http.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,UAAU;IACQ;IAA7B,YAA6B,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAEhD,KAAK,CAAC,GAAG,CACP,IAAY,EACZ,OAAqB;QAErB,MAAM,IAAI,GAAgB;YACxB,MAAM,EAAE,KAAK;SACd,CAAA;QAED,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACxB,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,EAAE,IAAI,CAAC,CAAA;QAClD,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;IACnB,CAAC;IAED,KAAK,CAAC,IAAI,CAAI,GAAW,EAAE,IAAS;QAClC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,GAAG,GAAG,EAAE,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;SAC3B,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAA;IACxB,CAAC;CAEF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { NodeInfoResponse, SyncingResponse, ValidatorSetResponse } from './types.js';
|
|
3
2
|
export declare class ChainConsensusApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
@@ -8,10 +7,10 @@ export declare class ChainConsensusApi {
|
|
|
8
7
|
*/
|
|
9
8
|
fetchConsensusParams(options?: {
|
|
10
9
|
height?: number;
|
|
11
|
-
}): Promise<
|
|
12
|
-
fetchNodeInfo(): Promise<
|
|
13
|
-
fetchSyncing(): Promise<
|
|
14
|
-
fetchLatestValidatorSets(): Promise<
|
|
15
|
-
fetchValidatorSetAt(height: number | string): Promise<
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
fetchNodeInfo(): Promise<any>;
|
|
12
|
+
fetchSyncing(): Promise<any>;
|
|
13
|
+
fetchLatestValidatorSets(): Promise<any>;
|
|
14
|
+
fetchValidatorSetAt(height: number | string): Promise<any>;
|
|
16
15
|
}
|
|
17
16
|
//# sourceMappingURL=ChainConsensusApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainConsensusApi.d.ts","sourceRoot":"","sources":["../../src/consensus/ChainConsensusApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainConsensusApi.d.ts","sourceRoot":"","sources":["../../src/consensus/ChainConsensusApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAShE,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,oBAAoB,CAAC,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAclD,aAAa;IAKb,YAAY;IAKZ,wBAAwB;IAKxB,mBAAmB,CAAC,MAAM,EAAG,MAAM,GAAG,MAAM;CAKnD"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { DexPoolResponse, DexPoolBalancesResponse, poolUidResponse, DexParamsResponse } from './types.js';
|
|
3
2
|
export declare class ChainDexApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query dex get-pool <pool-id>
|
|
8
7
|
*/
|
|
9
|
-
fetchPool(poolId: string): Promise<
|
|
8
|
+
fetchPool(poolId: string): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind cquery dex get-pool-balances <pool-id>
|
|
12
11
|
*/
|
|
13
|
-
fetchPoolBalances(poolId: string): Promise<
|
|
12
|
+
fetchPoolBalances(poolId: string): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* fetch pool uids
|
|
16
15
|
*/
|
|
17
|
-
fetchPoolUids(tokenA: string, tokenB: string): Promise<
|
|
16
|
+
fetchPoolUids(tokenA: string, tokenB: string): Promise<any>;
|
|
18
17
|
/**
|
|
19
18
|
* zigchaind query dex params
|
|
20
19
|
*/
|
|
21
|
-
fetchParams(): Promise<
|
|
20
|
+
fetchParams(): Promise<any>;
|
|
22
21
|
}
|
|
23
22
|
//# sourceMappingURL=ChainDexApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainDexApi.d.ts","sourceRoot":"","sources":["../../src/dex/ChainDexApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainDexApi.d.ts","sourceRoot":"","sources":["../../src/dex/ChainDexApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAOhE,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM;IAM9B;;OAEG;IAEI,iBAAiB,CAAC,MAAM,EAAE,MAAM;IAMvC;;OAEG;IAEG,aAAa,CAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAMlD;;MAEE;IACG,WAAW;CAOlB"}
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { ValidatorCommissionResponse, CommunityPoolResponse, DelegatorValidators, DelegatorWithdrawAddressResponse, DistributionParamsResponse, DelegatorRewardsResponse, DelegatorRewardsByValidatorResponse, ValidatorSlashesResponse, ValidatorDistributionInfoResponse, ValidatorOutstandingRewardsResponse } from './types.js';
|
|
3
2
|
export declare class ChainDistributionApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query distribution commission <validator>
|
|
8
7
|
*/
|
|
9
|
-
fetchValidatorCommission(validator: string): Promise<
|
|
8
|
+
fetchValidatorCommission(validator: string): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query distribution community-pool
|
|
12
11
|
*/
|
|
13
|
-
fetchCommunityPool(): Promise<
|
|
12
|
+
fetchCommunityPool(): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* zigchaind query distribution delegator-validators <delegator>
|
|
16
15
|
*/
|
|
17
|
-
fetchDelegatorValidators(delegator: string): Promise<
|
|
16
|
+
fetchDelegatorValidators(delegator: string): Promise<any>;
|
|
18
17
|
/**
|
|
19
18
|
* zigchaind query distribution delegator-withdraw-address <delegator>
|
|
20
19
|
*/
|
|
21
|
-
fetchDelegatorWithdrawAddress(delegator: string): Promise<
|
|
20
|
+
fetchDelegatorWithdrawAddress(delegator: string): Promise<any>;
|
|
22
21
|
/**
|
|
23
22
|
* zigchaind query distribution params
|
|
24
23
|
*/
|
|
25
|
-
fetchParams(): Promise<
|
|
24
|
+
fetchParams(): Promise<any>;
|
|
26
25
|
/**
|
|
27
26
|
* zigchaind query distribution rewards <delegator-address>
|
|
28
27
|
*/
|
|
29
|
-
fetchDelegatorRewards(delegator: string): Promise<
|
|
28
|
+
fetchDelegatorRewards(delegator: string): Promise<any>;
|
|
30
29
|
/**
|
|
31
30
|
* zigchaind query distribution rewards-by-validator
|
|
32
31
|
*/
|
|
33
|
-
fetchDelegatorRewardsByValidator(delegator: string, validator: string): Promise<
|
|
32
|
+
fetchDelegatorRewardsByValidator(delegator: string, validator: string): Promise<any>;
|
|
34
33
|
/**
|
|
35
34
|
* zigchaind query distribution slashes <validator-address>
|
|
36
35
|
*/
|
|
37
|
-
fetchValidatorSlashes(validator: string): Promise<
|
|
36
|
+
fetchValidatorSlashes(validator: string): Promise<any>;
|
|
38
37
|
/**
|
|
39
38
|
* zigchaind query distribution validator-distribution-info <validator-address>
|
|
40
39
|
*/
|
|
41
|
-
fetchValidatorDistributionInfo(validator: string): Promise<
|
|
40
|
+
fetchValidatorDistributionInfo(validator: string): Promise<any>;
|
|
42
41
|
/**
|
|
43
42
|
* zigchaind query distribution validator-outstanding-rewards <validator-address>
|
|
44
43
|
*/
|
|
45
|
-
fetchValidatorOutstandingRewards(validator: string): Promise<
|
|
44
|
+
fetchValidatorOutstandingRewards(validator: string): Promise<any>;
|
|
46
45
|
}
|
|
47
46
|
//# sourceMappingURL=ChainDistributionApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainDistributionApi.d.ts","sourceRoot":"","sources":["../../src/distribution/ChainDistributionApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainDistributionApi.d.ts","sourceRoot":"","sources":["../../src/distribution/ChainDistributionApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAchE,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,wBAAwB,CAAC,SAAS,EAAE,MAAM;IAQhD;;OAEG;IACG,kBAAkB;IAQxB;;OAEG;IACG,wBAAwB,CAAC,SAAS,EAAE,MAAM;IAQhD;;OAEG;IACG,6BAA6B,CAAC,SAAS,EAAE,MAAM;IAQrD;;OAEG;IACG,WAAW;IASjB;;OAEG;IACG,qBAAqB,CAAC,SAAS,EAAE,MAAM;IAM7C;;OAEG;IACG,gCAAgC,CACpC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM;IAOnB;;OAEG;IACG,qBAAqB,CAAC,SAAS,EAAE,MAAM;IAM7C;;OAEG;IACG,8BAA8B,CAAC,SAAS,EAAE,MAAM;IAMtD;;OAEG;IACG,gCAAgC,CAAC,SAAS,EAAE,MAAM;CAMzD"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { EvidenceResponse, EvidencesResponse } from './types.js';
|
|
3
2
|
export declare class ChainEvidenceApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query evidence evidence <hash>
|
|
8
7
|
*/
|
|
9
|
-
fetchEvidence(hash: string): Promise<
|
|
8
|
+
fetchEvidence(hash: string): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query evidence list
|
|
12
11
|
*/
|
|
13
|
-
fetchAllEvidence(): Promise<
|
|
12
|
+
fetchAllEvidence(): Promise<any>;
|
|
14
13
|
}
|
|
15
14
|
//# sourceMappingURL=ChainEvidenceApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainEvidenceApi.d.ts","sourceRoot":"","sources":["../../src/evidence/ChainEvidenceApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainEvidenceApi.d.ts","sourceRoot":"","sources":["../../src/evidence/ChainEvidenceApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAMhE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,aAAa,CAAC,IAAI,EAAE,MAAM;IAQhC;;OAEG;IACG,gBAAgB;CAOvB"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from "../networks/endpoints.js";
|
|
2
|
-
import type { FactoryParamsResponse, DenomAuthResponse, DenomsByAdminResponse, ShowDenomResponse } from './types.js';
|
|
3
2
|
export declare class ChainFactoryApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints); /**
|
|
6
5
|
* zigchaind query factory params
|
|
7
6
|
*/
|
|
8
|
-
fetchParams(): Promise<
|
|
7
|
+
fetchParams(): Promise<any>;
|
|
9
8
|
/**
|
|
10
9
|
* zigchaind query factory denoms-by-admin <address>
|
|
11
10
|
*/
|
|
12
|
-
fetchDenomsByAdmin(admin: string): Promise<
|
|
11
|
+
fetchDenomsByAdmin(admin: string): Promise<any>;
|
|
13
12
|
/**
|
|
14
13
|
* zigchaind query factory show-denom <denom>
|
|
15
14
|
*/
|
|
16
|
-
fetchDenom(denom: string): Promise<
|
|
15
|
+
fetchDenom(denom: string): Promise<any>;
|
|
17
16
|
/**
|
|
18
17
|
* zigchaind query factory denom-auth <denom>
|
|
19
18
|
*/
|
|
20
|
-
fetchDenomAuth(denom: string): Promise<
|
|
19
|
+
fetchDenomAuth(denom: string): Promise<any>;
|
|
21
20
|
}
|
|
22
21
|
//# sourceMappingURL=ChainFactoryApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainFactoryApi.d.ts","sourceRoot":"","sources":["../../src/factory/ChainFactoryApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChainFactoryApi.d.ts","sourceRoot":"","sources":["../../src/factory/ChainFactoryApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,qBAAa,eAAe;IACxB,OAAO,CAAC,MAAM,CAAW;gBACZ,SAAS,EAAE,gBAAgB,GAErC;;KAEF;IACG,WAAW;IASjB;;OAEG;IACG,kBAAkB,CAAC,KAAK,EAAE,MAAM;IAQtC;;OAEG;IACG,UAAU,CAAC,KAAK,EAAE,MAAM;IAO9B;;OAEG;IACG,cAAc,CAAC,KAAK,EAAE,MAAM;CAOnC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from "../networks/endpoints.js";
|
|
2
|
-
import type { FeeGrantResponse, FeeGrantsByGranteeResponse, FeeGrantsByGranterResponse } from './types.js';
|
|
3
2
|
export declare class ChainFeeGrantApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
@@ -7,16 +6,16 @@ export declare class ChainFeeGrantApi {
|
|
|
7
6
|
* zigchaind query feegrant grant <granter> <grantee>
|
|
8
7
|
* Query a single fee grant between granter and grantee
|
|
9
8
|
*/
|
|
10
|
-
fetchGrant(granter: string, grantee: string): Promise<
|
|
9
|
+
fetchGrant(granter: string, grantee: string): Promise<any>;
|
|
11
10
|
/**
|
|
12
11
|
* zigchaind query feegrant grants-by-grantee <grantee>
|
|
13
12
|
* Query all fee grants received by a grantee
|
|
14
13
|
*/
|
|
15
|
-
fetchGrantsByGrantee(grantee: string): Promise<
|
|
14
|
+
fetchGrantsByGrantee(grantee: string): Promise<any>;
|
|
16
15
|
/**
|
|
17
16
|
* zigchaind query feegrant grants-by-granter <granter>
|
|
18
17
|
* Query all fee grants issued by a granter
|
|
19
18
|
*/
|
|
20
|
-
fetchGrantsByGranter(granter: string): Promise<
|
|
19
|
+
fetchGrantsByGranter(granter: string): Promise<any>;
|
|
21
20
|
}
|
|
22
21
|
//# sourceMappingURL=ChainFeegrantApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainFeegrantApi.d.ts","sourceRoot":"","sources":["../../src/feegrant/ChainFeegrantApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChainFeegrantApi.d.ts","sourceRoot":"","sources":["../../src/feegrant/ChainFeegrantApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAOjE,qBAAa,gBAAgB;IACzB,OAAO,CAAC,MAAM,CAAY;gBACd,SAAS,EAAC,gBAAgB;IAGxC;;;OAGG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAOjD;;;OAGG;IACG,oBAAoB,CAAC,OAAO,EAAE,MAAM;IAO1C;;;OAGG;IACG,oBAAoB,CAAC,OAAO,EAAE,MAAM;CAM3C"}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { ProposalResponse, ProposalsResponse, TallyResponse, GovParamsResponse, ConstitutionResponse } from './types.js';
|
|
3
2
|
export declare class ChainGovApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query gov constitution
|
|
8
7
|
*/
|
|
9
|
-
fetchConstitution(): Promise<
|
|
8
|
+
fetchConstitution(): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query gov proposal <id>
|
|
12
11
|
*/
|
|
13
|
-
fetchProposal(proposalId: string | number): Promise<
|
|
12
|
+
fetchProposal(proposalId: string | number): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* zigchaind query gov proposals
|
|
16
15
|
*/
|
|
17
|
-
fetchAllProposals(): Promise<
|
|
16
|
+
fetchAllProposals(): Promise<any>;
|
|
18
17
|
/**
|
|
19
18
|
* zigchaind query gov tally <proposal_id>
|
|
20
19
|
*/
|
|
21
|
-
fetchTally(proposalId: string | number): Promise<
|
|
20
|
+
fetchTally(proposalId: string | number): Promise<any>;
|
|
22
21
|
/**
|
|
23
22
|
* zigchaind query gov params
|
|
24
23
|
*/
|
|
25
|
-
fetchParams(params_type: string): Promise<
|
|
24
|
+
fetchParams(params_type: string): Promise<any>;
|
|
26
25
|
}
|
|
27
26
|
//# sourceMappingURL=ChainGovApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainGovApi.d.ts","sourceRoot":"","sources":["../../src/gov/ChainGovApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainGovApi.d.ts","sourceRoot":"","sources":["../../src/gov/ChainGovApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAahE,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,iBAAiB;IAQvB;;OAEG;IACG,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAQ/C;;OAEG;IACG,iBAAiB;IAoDvB;;OAEG;IACG,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAQ5C;;OAEG;IACG,WAAW,CAAC,WAAW,EAAG,MAAM;CAOvC"}
|
|
@@ -1,55 +1,54 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../../networks/endpoints.js';
|
|
2
|
-
import type { IbcChannelsResponse, IbcChannelClientStateResponse, IbcConnectionChannelsResponse, IbcChannelEndResponse, IbcNextSequenceReceiveResponse, IbcNextSequenceSendResponse, IbcPacketAcknowledgementResponse, IbcPacketCommitmentResponse, IbcPacketCommitmentsResponse, IbcPacketReceiptResponse, IbcUnreceivedAcksResponse, IbcUnreceivedPacketsResponse } from './types.js';
|
|
3
2
|
export declare class ChainIbcChannelApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query ibc channel channels
|
|
8
7
|
*/
|
|
9
|
-
fetchChannels(): Promise<
|
|
8
|
+
fetchChannels(): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query ibc channel client-state <port-id> <channel-id>
|
|
12
11
|
*/
|
|
13
|
-
fetchChannelClientState(portId: string, channelId: string): Promise<
|
|
12
|
+
fetchChannelClientState(portId: string, channelId: string): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* zigchaind query ibc channel connections <connection-id>
|
|
16
15
|
*/
|
|
17
|
-
fetchChannelsByConnection(connectionId: string): Promise<
|
|
16
|
+
fetchChannelsByConnection(connectionId: string): Promise<any>;
|
|
18
17
|
/**
|
|
19
18
|
* zigchaind query ibc channel end <port-id> <channel-id>
|
|
20
19
|
*/
|
|
21
|
-
fetchChannelEnd(portId: string, channelId: string): Promise<
|
|
20
|
+
fetchChannelEnd(portId: string, channelId: string): Promise<any>;
|
|
22
21
|
/**
|
|
23
22
|
* zigchaind query ibc channel next-sequence-receive <port-id> <channel-id>
|
|
24
23
|
*/
|
|
25
|
-
fetchNextSequenceReceive(portId: string, channelId: string): Promise<
|
|
24
|
+
fetchNextSequenceReceive(portId: string, channelId: string): Promise<any>;
|
|
26
25
|
/**
|
|
27
26
|
* zigchaind query ibc channel next-sequence-send <port-id> <channel-id>
|
|
28
27
|
*/
|
|
29
|
-
fetchNextSequenceSend(portId: string, channelId: string): Promise<
|
|
28
|
+
fetchNextSequenceSend(portId: string, channelId: string): Promise<any>;
|
|
30
29
|
/**
|
|
31
30
|
* zigchaind query ibc channel packet-ack <port-id> <channel-id> <sequence>
|
|
32
31
|
*/
|
|
33
|
-
fetchPacketAcknowledgement(portId: string, channelId: string, sequence: number | string): Promise<
|
|
32
|
+
fetchPacketAcknowledgement(portId: string, channelId: string, sequence: number | string): Promise<any>;
|
|
34
33
|
/**
|
|
35
34
|
* zigchaind query ibc channel packet-commitment <port-id> <channel-id> <sequence>
|
|
36
35
|
*/
|
|
37
|
-
fetchPacketCommitment(portId: string, channelId: string, sequence: number | string): Promise<
|
|
36
|
+
fetchPacketCommitment(portId: string, channelId: string, sequence: number | string): Promise<any>;
|
|
38
37
|
/**
|
|
39
38
|
* zigchaind query ibc channel packet-commitments <port-id> <channel-id>
|
|
40
39
|
*/
|
|
41
|
-
fetchPacketCommitments(portId: string, channelId: string): Promise<
|
|
40
|
+
fetchPacketCommitments(portId: string, channelId: string): Promise<any>;
|
|
42
41
|
/**
|
|
43
42
|
* zigchaind query ibc channel packet-receipt <port-id> <channel-id> <sequence>
|
|
44
43
|
*/
|
|
45
|
-
fetchPacketReceipt(portId: string, channelId: string, sequence: number | string): Promise<
|
|
44
|
+
fetchPacketReceipt(portId: string, channelId: string, sequence: number | string): Promise<any>;
|
|
46
45
|
/**
|
|
47
46
|
* zigchaind query ibc channel unreceived-acks <port-id> <channel-id> <sequences>
|
|
48
47
|
*/
|
|
49
|
-
fetchUnreceivedAcks(portId: string, channelId: string, sequences: (number | string)[]): Promise<
|
|
48
|
+
fetchUnreceivedAcks(portId: string, channelId: string, sequences: (number | string)[]): Promise<any>;
|
|
50
49
|
/**
|
|
51
50
|
* zigchaind query ibc channel unreceived-packets <port-id> <channel-id> <sequences>
|
|
52
51
|
*/
|
|
53
|
-
fetchUnreceivedPackets(portId: string, channelId: string, sequences: (number | string)[]): Promise<
|
|
52
|
+
fetchUnreceivedPackets(portId: string, channelId: string, sequences: (number | string)[]): Promise<any>;
|
|
54
53
|
}
|
|
55
54
|
//# sourceMappingURL=ChainIbcChannelApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainIbcChannelApi.d.ts","sourceRoot":"","sources":["../../../src/ibc/ibcChannel/ChainIbcChannelApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainIbcChannelApi.d.ts","sourceRoot":"","sources":["../../../src/ibc/ibcChannel/ChainIbcChannelApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAoBnE,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,aAAa;IAMnB;;OAEG;IACG,uBAAuB,CAC3B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM;IAOnB;;OAEG;IACG,yBAAyB,CAAC,YAAY,EAAE,MAAM;IAMpD;;KAEC;IACK,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM;IAOnB;;OAEG;IACG,wBAAwB,CAC5B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM;IAOnB;;OAEG;IACG,qBAAqB,CACzB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM;IAOnB;;OAEG;IACG,0BAA0B,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GAAG,MAAM;IAQ3B;;KAEC;IACK,qBAAqB,CACzB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GAAG,MAAM;IAO3B;;OAEG;IACG,sBAAsB,CAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM;IAOnB;;KAEC;IACK,kBAAkB,CACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GAAG,MAAM;IAO3B;;KAEC;IACK,mBAAmB,CACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;IAQhC;;KAEC;IACK,sBAAsB,CAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;CAWjC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../../networks/endpoints.js';
|
|
2
|
-
import type { ConsensusStateResponse, ConsensusStatesResponse, ConsensusStateHeightsResponse, ClientCreatorResponse, ClientParamsResponse, ClientStateResponse, ClientStatesResponse, ClientStatusResponse } from './types.js';
|
|
3
2
|
export declare class ChainIbcClientApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
|
-
fetchConsensusState(clientId: string, height: number | string, rev_no: number | string): Promise<
|
|
7
|
-
fetchConsensusStates(clientId: string): Promise<
|
|
8
|
-
fetchConsensusStateHeights(clientId: string): Promise<
|
|
9
|
-
fetchClientCreator(clientId: string): Promise<
|
|
10
|
-
fetchClientParams(): Promise<
|
|
11
|
-
fetchClientState(clientId: string): Promise<
|
|
12
|
-
fetchClientStates(): Promise<
|
|
13
|
-
fetchClientStatus(clientId: string): Promise<
|
|
5
|
+
fetchConsensusState(clientId: string, height: number | string, rev_no: number | string): Promise<any>;
|
|
6
|
+
fetchConsensusStates(clientId: string): Promise<any>;
|
|
7
|
+
fetchConsensusStateHeights(clientId: string): Promise<any>;
|
|
8
|
+
fetchClientCreator(clientId: string): Promise<any>;
|
|
9
|
+
fetchClientParams(): Promise<any>;
|
|
10
|
+
fetchClientState(clientId: string): Promise<any>;
|
|
11
|
+
fetchClientStates(): Promise<any>;
|
|
12
|
+
fetchClientStatus(clientId: string): Promise<any>;
|
|
14
13
|
}
|
|
15
14
|
//# sourceMappingURL=ChainIbcClientApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainIbcClientApi.d.ts","sourceRoot":"","sources":["../../../src/ibc/ibcClient/ChainIbcClientApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainIbcClientApi.d.ts","sourceRoot":"","sources":["../../../src/ibc/ibcClient/ChainIbcClientApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAiBnE,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAKjC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAOtF,oBAAoB,CAAC,QAAQ,EAAE,MAAM;IAOrC,0BAA0B,CAAC,QAAQ,EAAE,MAAM;IAO3C,kBAAkB,CAAC,QAAQ,EAAE,MAAM;IAMlC,iBAAiB;IAOxB,gBAAgB,CAAC,QAAQ,EAAE,MAAM;IAO3B,iBAAiB;IAOjB,iBAAiB,CAAC,QAAQ,EAAE,MAAM;CAMzC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../../networks/endpoints.js';
|
|
2
|
-
import type { ConnectionsResponse, ConnectionEndResponse, ConnectionParamsResponse, ClientConnectionPathsResponse } from './types.js';
|
|
3
2
|
export declare class ChainIbcConnectionApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
|
-
fetchConnections(): Promise<
|
|
7
|
-
fetchConnectionEnd(connectionId: string): Promise<
|
|
8
|
-
fetchConnectionParams(): Promise<
|
|
9
|
-
fetchClientConnectionPaths(clientId: string): Promise<
|
|
5
|
+
fetchConnections(): Promise<any>;
|
|
6
|
+
fetchConnectionEnd(connectionId: string): Promise<any>;
|
|
7
|
+
fetchConnectionParams(): Promise<any>;
|
|
8
|
+
fetchClientConnectionPaths(clientId: string): Promise<any>;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=ChainIbcConnectionApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainIbcConnectionApi.d.ts","sourceRoot":"","sources":["../../../src/ibc/ibcConnection/ChainIbcConnectionApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainIbcConnectionApi.d.ts","sourceRoot":"","sources":["../../../src/ibc/ibcConnection/ChainIbcConnectionApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAQnE,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAKjC,gBAAgB;IAOhB,kBAAkB,CAAC,YAAY,EAAE,MAAM;IAOvC,qBAAqB;IAOrB,0BAA0B,CAAC,QAAQ,EAAE,MAAM;CAKlD"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { DenomTraceResponse, DenomHashResponse, DenomsResponse, EscrowAddressResponse, TransferParamsResponse } from './types.js';
|
|
3
2
|
export declare class ChainIbcTransferApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
|
-
fetchDenomByHash(hash: string): Promise<
|
|
7
|
-
fetchDenomHash(portId: string, channel_id: string, denom: string): Promise<
|
|
8
|
-
fetchDenoms(): Promise<
|
|
9
|
-
fetchEscrowAddress(portId: string, channelId: string): Promise<
|
|
10
|
-
fetchTransferParams(): Promise<
|
|
5
|
+
fetchDenomByHash(hash: string): Promise<any>;
|
|
6
|
+
fetchDenomHash(portId: string, channel_id: string, denom: string): Promise<any>;
|
|
7
|
+
fetchDenoms(): Promise<any>;
|
|
8
|
+
fetchEscrowAddress(portId: string, channelId: string): Promise<any>;
|
|
9
|
+
fetchTransferParams(): Promise<any>;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=ChainIbcTransferApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainIbcTransferApi.d.ts","sourceRoot":"","sources":["../../src/ibc-transfer/ChainIbcTransferApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainIbcTransferApi.d.ts","sourceRoot":"","sources":["../../src/ibc-transfer/ChainIbcTransferApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAShE,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAKjC,gBAAgB,CAAC,IAAI,EAAE,MAAM;IAQ7B,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAQhE,WAAW;IAOX,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAOpD,mBAAmB;CAM1B"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { IcaControllerParamsResponse, IcaHostParamsResponse } from './types.js';
|
|
3
2
|
export declare class ChainInterchainAccountsApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
|
-
fetchControllerParams(): Promise<
|
|
7
|
-
fetchHostParams(): Promise<
|
|
5
|
+
fetchControllerParams(): Promise<any>;
|
|
6
|
+
fetchHostParams(): Promise<any>;
|
|
8
7
|
}
|
|
9
8
|
//# sourceMappingURL=ChainInterChainAccApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainInterChainAccApi.d.ts","sourceRoot":"","sources":["../../src/interchain-accounts/ChainInterChainAccApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainInterChainAccApi.d.ts","sourceRoot":"","sources":["../../src/interchain-accounts/ChainInterChainAccApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAQhE,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAKjC,qBAAqB;IAOrB,eAAe;CAMtB"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { MintInflationResponse, MintAnnualProvisionsResponse, MintParamsResponse } from './types.js';
|
|
3
2
|
export declare class ChainMintApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query mint inflation
|
|
8
7
|
*/
|
|
9
|
-
fetchInflation(): Promise<
|
|
8
|
+
fetchInflation(): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query mint annual-provisions
|
|
12
11
|
*/
|
|
13
|
-
fetchAnnualProvisions(): Promise<
|
|
12
|
+
fetchAnnualProvisions(): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* zigchaind query mint params
|
|
16
15
|
*/
|
|
17
|
-
fetchParams(): Promise<
|
|
16
|
+
fetchParams(): Promise<any>;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=ChainMintApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainMintApi.d.ts","sourceRoot":"","sources":["../../src/mint/ChainMintApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainMintApi.d.ts","sourceRoot":"","sources":["../../src/mint/ChainMintApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAOhE,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,cAAc;IAQpB;;OAEG;IACG,qBAAqB;IAQ3B;;OAEG;IACG,WAAW;CAOlB"}
|
|
@@ -4,4 +4,5 @@ export interface NetworkEndpoints {
|
|
|
4
4
|
rpc: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function getNetworkEndpoints(network: Network): NetworkEndpoints;
|
|
7
|
+
export declare function setNetworkEndpoints(lcdUrl: string, rpcUrl: string): NetworkEndpoints;
|
|
7
8
|
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/networks/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/networks/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,wBAAgB,mBAAmB,CAAE,OAAO,EAAE,OAAO,GAAI,gBAAgB,CAiBxE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAKpF"}
|
|
@@ -9,10 +9,16 @@ export function getNetworkEndpoints(network) {
|
|
|
9
9
|
case Network.Mainnet:
|
|
10
10
|
return {
|
|
11
11
|
lcd: 'https://public-zigchain-lcd.numia.xyz',
|
|
12
|
-
rpc: 'https://public-zigchain-rpc.numia.xyz
|
|
12
|
+
rpc: 'https://public-zigchain-rpc.numia.xyz'
|
|
13
13
|
};
|
|
14
14
|
default:
|
|
15
15
|
throw new Error(`Unsupported network: ${network}`);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
export function setNetworkEndpoints(lcdUrl, rpcUrl) {
|
|
19
|
+
return {
|
|
20
|
+
lcd: lcdUrl,
|
|
21
|
+
rpc: rpcUrl
|
|
22
|
+
};
|
|
23
|
+
}
|
|
18
24
|
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/networks/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAOpC,MAAM,UAAU,mBAAmB,
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/networks/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAOpC,MAAM,UAAU,mBAAmB,CAAE,OAAgB;IACnD,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,OAAO,CAAC,OAAO;YAClB,OAAO;gBACL,GAAG,EAAE,+CAA+C;gBACpD,GAAG,EAAE,+CAA+C;aACrD,CAAA;QAEH,KAAK,OAAO,CAAC,OAAO;YAClB,OAAO;gBACL,GAAG,EAAE,uCAAuC;gBAC5C,GAAG,EAAE,uCAAuC;aAC7C,CAAA;QAEH;YACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,OAAO,EAAE,CAAC,CAAA;IACtD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAc,EAAE,MAAc;IAChE,OAAO;QACL,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,MAAM;KACZ,CAAA;AACH,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { RuntimeConfigResponse } from './types.js';
|
|
3
2
|
export declare class ChainRuntimeApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
@@ -7,6 +6,6 @@ export declare class ChainRuntimeApi {
|
|
|
7
6
|
* zigchaind query runtime config
|
|
8
7
|
* Query the current application runtime configuration
|
|
9
8
|
*/
|
|
10
|
-
fetchConfig(): Promise<
|
|
9
|
+
fetchConfig(): Promise<any>;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=ChainRuntimeApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainRuntimeApi.d.ts","sourceRoot":"","sources":["../../src/runtime/ChainRuntimeApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainRuntimeApi.d.ts","sourceRoot":"","sources":["../../src/runtime/ChainRuntimeApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAMhE,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;;OAGG;IACG,WAAW;CAQlB"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { SlashingParamsResponse, SigningInfoResponse, SigningInfosResponse } from './types.js';
|
|
3
2
|
export declare class ChainSlashingApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query slashing params
|
|
8
7
|
*/
|
|
9
|
-
fetchParams(): Promise<
|
|
8
|
+
fetchParams(): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query slashing signing-info <valcons-address>
|
|
12
11
|
*/
|
|
13
|
-
fetchSigningInfo(valConsAddress: string): Promise<
|
|
12
|
+
fetchSigningInfo(valConsAddress: string): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* zigchaind query slashing signing-infos
|
|
16
15
|
*/
|
|
17
|
-
fetchSigningInfos(): Promise<
|
|
16
|
+
fetchSigningInfos(): Promise<any>;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=ChainSlashingApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainSlashingApi.d.ts","sourceRoot":"","sources":["../../src/slashing/ChainSlashingApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainSlashingApi.d.ts","sourceRoot":"","sources":["../../src/slashing/ChainSlashingApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAOhE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,WAAW;IAQjB;;OAEG;IACG,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAQ7C;;OAEG;IACG,iBAAiB;CAOxB"}
|
|
@@ -1,60 +1,57 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { DelegationResponse, DelegationsResponse, DelegationsToResponse, DelegatorValidatorResponse, DelegatorValidatorsResponse, StakingParamsResponse, StakingPoolResponse, RedelegationResponse, UnbondingDelegationResponse, UnbondingDelegationsResponse, UnbondingFromValidatorResponse, ValidatorResponse, ValidatorsResponse } from './types.js';
|
|
3
2
|
export declare class ChainStakingApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query staking delegation
|
|
8
7
|
*/
|
|
9
|
-
fetchDelegation(delegatorAddress: string, validatorAddress: string): Promise<
|
|
10
|
-
delegation_response: DelegationResponse;
|
|
11
|
-
}>;
|
|
8
|
+
fetchDelegation(delegatorAddress: string, validatorAddress: string): Promise<any>;
|
|
12
9
|
/**
|
|
13
10
|
* zigchaind query staking delegations
|
|
14
11
|
*/
|
|
15
|
-
fetchDelegations(delegatorAddress: string): Promise<
|
|
16
|
-
fetchValidatorDelegations(validator_addr: string): Promise<
|
|
12
|
+
fetchDelegations(delegatorAddress: string): Promise<any>;
|
|
13
|
+
fetchValidatorDelegations(validator_addr: string): Promise<any>;
|
|
17
14
|
/**
|
|
18
15
|
* zigchaind query staking delegator-validator
|
|
19
16
|
* Query validator info for given delegator validator pair
|
|
20
17
|
*/
|
|
21
|
-
fetchDelegatorValidator(delegatorAddress: string, validatorAddress: string): Promise<
|
|
18
|
+
fetchDelegatorValidator(delegatorAddress: string, validatorAddress: string): Promise<any>;
|
|
22
19
|
/**
|
|
23
20
|
* zigchaind query staking delegator-validators
|
|
24
21
|
* Query all validators info for given delegator address
|
|
25
22
|
*/
|
|
26
|
-
fetchDelegatorValidators(delegatorAddress: string): Promise<
|
|
23
|
+
fetchDelegatorValidators(delegatorAddress: string): Promise<any>;
|
|
27
24
|
/**
|
|
28
25
|
* zigchaind query staking params
|
|
29
26
|
*/
|
|
30
|
-
fetchStakingParams(): Promise<
|
|
27
|
+
fetchStakingParams(): Promise<any>;
|
|
31
28
|
/**
|
|
32
29
|
* zigchaind query staking pool
|
|
33
30
|
*/
|
|
34
|
-
fetchStakingPool(): Promise<
|
|
31
|
+
fetchStakingPool(): Promise<any>;
|
|
35
32
|
/**
|
|
36
33
|
* zigchaind query staking redelegation
|
|
37
34
|
*/
|
|
38
|
-
fetchRedelegation(delegator_addr: string): Promise<
|
|
35
|
+
fetchRedelegation(delegator_addr: string): Promise<any>;
|
|
39
36
|
/**
|
|
40
37
|
* zigchaind query staking unbonding-delegation
|
|
41
38
|
*/
|
|
42
|
-
fetchUnbondingDelegation(delegator: string, validator: string): Promise<
|
|
39
|
+
fetchUnbondingDelegation(delegator: string, validator: string): Promise<any>;
|
|
43
40
|
/**
|
|
44
41
|
* zigchaind query staking unbonding-delegations
|
|
45
42
|
*/
|
|
46
|
-
fetchUnbondingDelegations(delegator: string): Promise<
|
|
43
|
+
fetchUnbondingDelegations(delegator: string): Promise<any>;
|
|
47
44
|
/**
|
|
48
45
|
* zigchaind query staking unbonding-delegations-from
|
|
49
46
|
*/
|
|
50
|
-
fetchUnbondingDelegationsFrom(validator: string): Promise<
|
|
47
|
+
fetchUnbondingDelegationsFrom(validator: string): Promise<any>;
|
|
51
48
|
/**
|
|
52
49
|
* zigchaind query staking validator
|
|
53
50
|
*/
|
|
54
|
-
fetchValidator(validator: string): Promise<
|
|
51
|
+
fetchValidator(validator: string): Promise<any>;
|
|
55
52
|
/**
|
|
56
53
|
* zigchaind query staking validators
|
|
57
54
|
*/
|
|
58
|
-
fetchValidators(): Promise<
|
|
55
|
+
fetchValidators(): Promise<any>;
|
|
59
56
|
}
|
|
60
57
|
//# sourceMappingURL=ChainStakingApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainStakingApi.d.ts","sourceRoot":"","sources":["../../src/staking/ChainStakingApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainStakingApi.d.ts","sourceRoot":"","sources":["../../src/staking/ChainStakingApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAmBhE,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,eAAe,CACnB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,MAAM;IAS1B;;OAEG;IACG,gBAAgB,CAAC,gBAAgB,EAAE,MAAM;IAQzC,yBAAyB,CAAC,cAAc,EAAE,MAAM;IAQtD;;;OAGG;IACG,uBAAuB,CAC3B,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,MAAM;IAS1B;;;OAGG;IACG,wBAAwB,CAAC,gBAAgB,EAAE,MAAM;IAmBvD;;OAEG;IACG,kBAAkB;IAQxB;;OAEG;IACG,gBAAgB;IAQtB;;MAEE;IACI,iBAAiB,CACrB,cAAc,EAAE,MAAM;IAQxB;;OAEG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM;IASnB;;OAEG;IACG,yBAAyB,CAAC,SAAS,EAAE,MAAM;IAQhD;;MAEE;IACG,6BAA6B,CAAC,SAAS,EAAE,MAAM;IAQrD;;OAEG;IACG,cAAc,CAAC,SAAS,EAAE,MAAM;IAQtC;;OAEG;IACG,eAAe;CAQtB"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { TokenWrapperModuleInfoResponse, TokenWrapperParamsResponse, TokenWrapperTotalTransfersResponse } from './types.js';
|
|
3
2
|
export declare class ChainTokenWrapperApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
5
|
/**
|
|
7
6
|
* zigchaind query tokenwrapper module-info
|
|
8
7
|
*/
|
|
9
|
-
fetchModuleInfo(): Promise<
|
|
8
|
+
fetchModuleInfo(): Promise<any>;
|
|
10
9
|
/**
|
|
11
10
|
* zigchaind query tokenwrapper params
|
|
12
11
|
*/
|
|
13
|
-
fetchParams(): Promise<
|
|
12
|
+
fetchParams(): Promise<any>;
|
|
14
13
|
/**
|
|
15
14
|
* zigchaind query tokenwrapper total-transfers
|
|
16
15
|
*/
|
|
17
|
-
fetchTotalTransfers(): Promise<
|
|
16
|
+
fetchTotalTransfers(): Promise<any>;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=ChainTokenWrapperApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainTokenWrapperApi.d.ts","sourceRoot":"","sources":["../../src/tokenwrapper/ChainTokenWrapperApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainTokenWrapperApi.d.ts","sourceRoot":"","sources":["../../src/tokenwrapper/ChainTokenWrapperApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAOhE,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;OAEG;IACG,eAAe;IAMrB;;OAEG;IACG,WAAW;IAMjB;;OAEG;IACG,mBAAmB;CAK1B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { CurrentPlanResponse, UpgradeAuthorityResponse, ModuleVersionsResponse } from './types.js';
|
|
3
2
|
export declare class ChainUpgradeApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
@@ -7,16 +6,16 @@ export declare class ChainUpgradeApi {
|
|
|
7
6
|
* Query the current upgrade plan (if exists)
|
|
8
7
|
* CLI: zigchaind query upgrade plan
|
|
9
8
|
*/
|
|
10
|
-
fetchCurrentPlan(): Promise<
|
|
9
|
+
fetchCurrentPlan(): Promise<any>;
|
|
11
10
|
/**
|
|
12
11
|
* Query the upgrade authority address
|
|
13
12
|
* CLI: zigchaind query upgrade authority
|
|
14
13
|
*/
|
|
15
|
-
fetchAuthority(): Promise<
|
|
14
|
+
fetchAuthority(): Promise<any>;
|
|
16
15
|
/**
|
|
17
16
|
* Query module versions
|
|
18
17
|
* CLI: zigchaind query upgrade module-versions
|
|
19
18
|
*/
|
|
20
|
-
fetchModuleVersions(): Promise<
|
|
19
|
+
fetchModuleVersions(): Promise<any>;
|
|
21
20
|
}
|
|
22
21
|
//# sourceMappingURL=ChainUpgradeApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainUpgradeApi.d.ts","sourceRoot":"","sources":["../../src/upgrade/ChainUpgradeApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainUpgradeApi.d.ts","sourceRoot":"","sources":["../../src/upgrade/ChainUpgradeApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAQhE,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIvC;;;OAGG;IACG,gBAAgB;IAOtB;;;OAGG;IACG,cAAc;IAMpB;;;OAGG;IACG,mBAAmB;CAK1B"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { CometValidatorSetResponse } from './types.js';
|
|
3
2
|
export declare class ChainValidatorSetApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
6
|
-
fetchValidatorSet(height?: number | string): Promise<
|
|
5
|
+
fetchValidatorSet(height?: number | string): Promise<any>;
|
|
7
6
|
}
|
|
8
7
|
//# sourceMappingURL=ChainValidator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainValidator.d.ts","sourceRoot":"","sources":["../../src/validator-set/ChainValidator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainValidator.d.ts","sourceRoot":"","sources":["../../src/validator-set/ChainValidator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAGhE,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAKjC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;CAOjD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NetworkEndpoints } from '../networks/endpoints.js';
|
|
2
|
-
import type { WasmCodeResponse, WasmCodeInfoResponse, WasmContractInfoResponse, WasmContractHistoryResponse, WasmContractStateAllResponse, WasmCodeListResponse, WasmContractsByCodeResponse, WasmContractsByCreatorResponse, WasmParamsResponse, WasmPinnedCodesResponse } from './types.js';
|
|
3
2
|
export declare class ChainWasmApi {
|
|
4
3
|
private client;
|
|
5
4
|
constructor(endpoints: NetworkEndpoints);
|
|
@@ -7,51 +6,51 @@ export declare class ChainWasmApi {
|
|
|
7
6
|
* Download wasm bytecode by code ID
|
|
8
7
|
* CLI: zigchaind query wasm code <code-id>
|
|
9
8
|
*/
|
|
10
|
-
fetchCode(codeId: string): Promise<
|
|
9
|
+
fetchCode(codeId: string): Promise<any>;
|
|
11
10
|
/**
|
|
12
11
|
* Fetch code metadata
|
|
13
12
|
* CLI: zigchaind query wasm code-info <code-id>
|
|
14
13
|
*/
|
|
15
|
-
fetchCodeInfo(codeId: string): Promise<
|
|
14
|
+
fetchCodeInfo(codeId: string): Promise<any>;
|
|
16
15
|
/**
|
|
17
16
|
* Fetch contract metadata
|
|
18
17
|
* CLI: zigchaind query wasm contract <contract-address>
|
|
19
18
|
*/
|
|
20
|
-
fetchContractInfo(contractAddress: string): Promise<
|
|
19
|
+
fetchContractInfo(contractAddress: string): Promise<any>;
|
|
21
20
|
/**
|
|
22
21
|
* Fetch contract code history
|
|
23
22
|
* CLI: zigchaind query wasm contract-history <contract-address>
|
|
24
23
|
*/
|
|
25
|
-
fetchContractHistory(contractAddress: string): Promise<
|
|
24
|
+
fetchContractHistory(contractAddress: string): Promise<any>;
|
|
26
25
|
/**
|
|
27
26
|
* Fetch full contract state (raw)
|
|
28
27
|
* CLI: zigchaind query wasm contract-state all <contract-address>
|
|
29
28
|
*/
|
|
30
|
-
fetchContractStateAll(contractAddress: string): Promise<
|
|
29
|
+
fetchContractStateAll(contractAddress: string): Promise<any>;
|
|
31
30
|
/**
|
|
32
31
|
* List all wasm bytecode on the chain
|
|
33
32
|
* CLI: zigchaind query wasm list-code
|
|
34
33
|
*/
|
|
35
|
-
fetchCodeList(): Promise<
|
|
34
|
+
fetchCodeList(): Promise<any>;
|
|
36
35
|
/**
|
|
37
36
|
* List all contracts by code ID
|
|
38
37
|
* CLI: zigchaind query wasm list-contract-by-code <code-id>
|
|
39
38
|
*/
|
|
40
|
-
fetchContractsByCode(codeId: string): Promise<
|
|
39
|
+
fetchContractsByCode(codeId: string): Promise<any>;
|
|
41
40
|
/**
|
|
42
41
|
* List all contracts by creator address
|
|
43
42
|
* CLI: zigchaind query wasm list-contracts-by-creator <creator-address>
|
|
44
43
|
*/
|
|
45
|
-
fetchContractsByCreator(creatorAddress: string): Promise<
|
|
44
|
+
fetchContractsByCreator(creatorAddress: string): Promise<any>;
|
|
46
45
|
/**
|
|
47
46
|
* Fetch wasm module parameters
|
|
48
47
|
* CLI: zigchaind query wasm params
|
|
49
48
|
*/
|
|
50
|
-
fetchParams(): Promise<
|
|
49
|
+
fetchParams(): Promise<any>;
|
|
51
50
|
/**
|
|
52
51
|
* List all pinned code IDs
|
|
53
52
|
* CLI: zigchaind query wasm pinned
|
|
54
53
|
*/
|
|
55
|
-
fetchPinnedCodes(): Promise<
|
|
54
|
+
fetchPinnedCodes(): Promise<any>;
|
|
56
55
|
}
|
|
57
56
|
//# sourceMappingURL=ChainWasmApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainWasmApi.d.ts","sourceRoot":"","sources":["../../src/wasm/ChainWasmApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainWasmApi.d.ts","sourceRoot":"","sources":["../../src/wasm/ChainWasmApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAehE,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAY;gBAEd,SAAS,EAAE,gBAAgB;IAIrC;;;KAGC;IACG,SAAS,CAAC,MAAM,EAAE,MAAM;IAM9B;;;OAGG;IACG,aAAa,CAAC,MAAM,EAAE,MAAM;IAMlC;;;OAGG;IACG,iBAAiB,CACrB,eAAe,EAAE,MAAM;IAOvB;;;KAGC;IACG,oBAAoB,CACxB,eAAe,EAAE,MAAM;IAOzB;;;OAGG;IACG,qBAAqB,CACzB,eAAe,EAAE,MAAM;IAOvB;;;KAGC;IACG,aAAa;IAMnB;;;OAGG;IACG,oBAAoB,CACxB,MAAM,EAAE,MAAM;IAOhB;;;OAGG;IACG,uBAAuB,CAC3B,cAAc,EAAE,MAAM;IAOxB;;;OAGG;IACG,WAAW;IAMjB;;;OAGG;IACG,gBAAgB;CAOvB"}
|