@zuhaibnoor/zigchain-sdk 1.1.1 → 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.
Files changed (61) hide show
  1. package/README.md +21 -24
  2. package/dist/auth/ChainAuthApi.d.ts +6 -6
  3. package/dist/auth/ChainAuthApi.d.ts.map +1 -1
  4. package/dist/bank/ChainBankApi.d.ts +11 -12
  5. package/dist/bank/ChainBankApi.d.ts.map +1 -1
  6. package/dist/block/ChainBlockApi.d.ts +1 -1
  7. package/dist/circuit/ChainCircuitApi.d.ts +2 -3
  8. package/dist/circuit/ChainCircuitApi.d.ts.map +1 -1
  9. package/dist/client/http.d.ts +2 -2
  10. package/dist/client/http.d.ts.map +1 -1
  11. package/dist/client/http.js.map +1 -1
  12. package/dist/consensus/ChainConsensusApi.d.ts +5 -1
  13. package/dist/consensus/ChainConsensusApi.d.ts.map +1 -1
  14. package/dist/consensus/ChainConsensusApi.js +16 -0
  15. package/dist/consensus/ChainConsensusApi.js.map +1 -1
  16. package/dist/consensus/types.d.ts +55 -0
  17. package/dist/consensus/types.d.ts.map +1 -1
  18. package/dist/dex/ChainDexApi.d.ts +4 -5
  19. package/dist/dex/ChainDexApi.d.ts.map +1 -1
  20. package/dist/distribution/ChainDistributionApi.d.ts +10 -11
  21. package/dist/distribution/ChainDistributionApi.d.ts.map +1 -1
  22. package/dist/evidence/ChainEvidenceApi.d.ts +2 -3
  23. package/dist/evidence/ChainEvidenceApi.d.ts.map +1 -1
  24. package/dist/factory/ChainFactoryApi.d.ts +4 -5
  25. package/dist/factory/ChainFactoryApi.d.ts.map +1 -1
  26. package/dist/feegrant/ChainFeegrantApi.d.ts +3 -4
  27. package/dist/feegrant/ChainFeegrantApi.d.ts.map +1 -1
  28. package/dist/gov/ChainGovApi.d.ts +5 -6
  29. package/dist/gov/ChainGovApi.d.ts.map +1 -1
  30. package/dist/ibc/ibcChannel/ChainIbcChannelApi.d.ts +12 -13
  31. package/dist/ibc/ibcChannel/ChainIbcChannelApi.d.ts.map +1 -1
  32. package/dist/ibc/ibcClient/ChainIbcClientApi.d.ts +8 -9
  33. package/dist/ibc/ibcClient/ChainIbcClientApi.d.ts.map +1 -1
  34. package/dist/ibc/ibcConnection/ChainIbcConnectionApi.d.ts +4 -5
  35. package/dist/ibc/ibcConnection/ChainIbcConnectionApi.d.ts.map +1 -1
  36. package/dist/ibc-transfer/ChainIbcTransferApi.d.ts +5 -6
  37. package/dist/ibc-transfer/ChainIbcTransferApi.d.ts.map +1 -1
  38. package/dist/interchain-accounts/ChainInterChainAccApi.d.ts +2 -3
  39. package/dist/interchain-accounts/ChainInterChainAccApi.d.ts.map +1 -1
  40. package/dist/mint/ChainMintApi.d.ts +3 -4
  41. package/dist/mint/ChainMintApi.d.ts.map +1 -1
  42. package/dist/networks/endpoints.d.ts +1 -0
  43. package/dist/networks/endpoints.d.ts.map +1 -1
  44. package/dist/networks/endpoints.js +7 -1
  45. package/dist/networks/endpoints.js.map +1 -1
  46. package/dist/runtime/ChainRuntimeApi.d.ts +1 -2
  47. package/dist/runtime/ChainRuntimeApi.d.ts.map +1 -1
  48. package/dist/slashing/ChainSlashingApi.d.ts +3 -4
  49. package/dist/slashing/ChainSlashingApi.d.ts.map +1 -1
  50. package/dist/staking/ChainStakingApi.d.ts +13 -16
  51. package/dist/staking/ChainStakingApi.d.ts.map +1 -1
  52. package/dist/tokenwrapper/ChainTokenWrapperApi.d.ts +3 -4
  53. package/dist/tokenwrapper/ChainTokenWrapperApi.d.ts.map +1 -1
  54. package/dist/upgrade/ChainUpgradeApi.d.ts +3 -4
  55. package/dist/upgrade/ChainUpgradeApi.d.ts.map +1 -1
  56. package/dist/validator-set/ChainValidator.d.ts +1 -2
  57. package/dist/validator-set/ChainValidator.d.ts.map +1 -1
  58. package/dist/wasm/ChainWasmApi.d.ts +10 -11
  59. package/dist/wasm/ChainWasmApi.d.ts.map +1 -1
  60. package/docs/consensus.md +600 -0
  61. 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
- Available networks:
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 { AccountResponse, AccountInfoResponse, AuthParamsResponse, Bech32PrefixResponse, ModuleAccountResponse, ModuleAccountsResponse } from './types.js';
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<AccountResponse>;
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<AccountInfoResponse>;
15
- fetchBech32Prefix(): Promise<Bech32PrefixResponse>;
16
- fetchAccountsByModule(moduleName: string): Promise<ModuleAccountResponse>;
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<AuthParamsResponse>;
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,EACV,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,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
+ {"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<BalanceResponse>;
8
+ fetchBalance(address: string, denom: string): Promise<any>;
10
9
  /**
11
10
  * zigchaind query bank balances <address>
12
11
  */
13
- fetchBalances(address: string): Promise<BalancesResponse>;
12
+ fetchBalances(address: string): Promise<any>;
14
13
  /**
15
14
  * zigchaind query bank total-supply
16
15
  */
17
- fetchTotalSupply(): Promise<TotalSupplyResponse>;
16
+ fetchTotalSupply(): Promise<any>;
18
17
  /**
19
18
  * zigchaind query bank total-supply-of <denom>
20
19
  */
21
- fetchSupplyOf(denom: string): Promise<SupplyOfResponse>;
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<DenomMetadataResponse>;
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<DenomOwnersResponse>;
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<DenomsMetadataResponse>;
35
+ fetchAllDenomsMetadata(): Promise<any>;
37
36
  /**
38
37
  * zigchaind query bank send-enabled
39
38
  */
40
- fetchSendEnabled(): Promise<SendEnabledResponse>;
39
+ fetchSendEnabled(): Promise<any>;
41
40
  /**
42
41
  * zigchaind query bank spendable-balance <address> <denom>
43
42
  */
44
- fetchSpendableBalance(address: string, denom: string): Promise<SpendableBalanceResponse>;
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<SpendableBalancesResponse>;
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<BankParamsResponse>;
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;AAChE,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,YAAY,CAAA;AAEnB,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
+ {"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"}
@@ -11,6 +11,6 @@ export declare class ChainBlockApi {
11
11
  * Fetch latest block
12
12
  * zigchaind query block
13
13
  */
14
- getLatestBlock(atHeight?: number): Promise<unknown>;
14
+ getLatestBlock(atHeight?: number): Promise<any>;
15
15
  }
16
16
  //# sourceMappingURL=ChainBlockApi.d.ts.map
@@ -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<CircuitAccountResponse>;
9
+ getAccountPermissions(address: string): Promise<any>;
11
10
  /**
12
11
  * zigchaind query circuit accounts
13
12
  */
14
- getAllAccountPermissions(): Promise<CircuitAccountsResponse>;
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;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAChC,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAEhD,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"}
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"}
@@ -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<T>;
5
- post<T>(url: string, body: any): Promise<T>;
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,GACpB,OAAO,CAAC,CAAC,CAAC;IAaP,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;CAYrC"}
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"}
@@ -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,EAAgB,CAAA;IACjC,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,EAAgB,CAAA;IACtC,CAAC;CAEF"}
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"}
@@ -7,6 +7,10 @@ export declare class ChainConsensusApi {
7
7
  */
8
8
  fetchConsensusParams(options?: {
9
9
  height?: number;
10
- }): Promise<import("./types.js").ConsensusParams>;
10
+ }): Promise<any>;
11
+ fetchNodeInfo(): Promise<any>;
12
+ fetchSyncing(): Promise<any>;
13
+ fetchLatestValidatorSets(): Promise<any>;
14
+ fetchValidatorSetAt(height: number | string): Promise<any>;
11
15
  }
12
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;AAGhE,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;CAazD"}
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"}
@@ -14,5 +14,21 @@ export class ChainConsensusApi {
14
14
  const data = await this.client.get('/cosmos/consensus/v1/params', headers);
15
15
  return data.params;
16
16
  }
17
+ async fetchNodeInfo() {
18
+ const node_info = await this.client.get(`/cosmos/base/tendermint/v1beta1/node_info`);
19
+ return node_info;
20
+ }
21
+ async fetchSyncing() {
22
+ const syncing = await this.client.get(`/cosmos/base/tendermint/v1beta1/syncing`);
23
+ return syncing;
24
+ }
25
+ async fetchLatestValidatorSets() {
26
+ const validators = await this.client.get(`/cosmos/base/tendermint/v1beta1/validatorsets/latest`);
27
+ return validators;
28
+ }
29
+ async fetchValidatorSetAt(height) {
30
+ const validators = await this.client.get(`/cosmos/base/tendermint/v1beta1/validatorsets/${height}`);
31
+ return validators;
32
+ }
17
33
  }
18
34
  //# sourceMappingURL=ChainConsensusApi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainConsensusApi.js","sourceRoot":"","sources":["../../src/consensus/ChainConsensusApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAI9C,MAAM,OAAO,iBAAiB;IACpB,MAAM,CAAY;IAE1B,YAAY,SAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;IAC7C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CAAC,OAA6B;QACtD,MAAM,OAAO,GACX,OAAO,EAAE,MAAM,KAAK,SAAS;YAC3B,CAAC,CAAC,EAAE,uBAAuB,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACrD,CAAC,CAAC,SAAS,CAAA;QAEf,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,6BAA6B,EAC7B,OAAO,CACR,CAAA;QAED,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;CACF"}
1
+ {"version":3,"file":"ChainConsensusApi.js","sourceRoot":"","sources":["../../src/consensus/ChainConsensusApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAU9C,MAAM,OAAO,iBAAiB;IACpB,MAAM,CAAY;IAE1B,YAAY,SAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;IAC7C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CAAC,OAA6B;QACtD,MAAM,OAAO,GACX,OAAO,EAAE,MAAM,KAAK,SAAS;YAC3B,CAAC,CAAC,EAAE,uBAAuB,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACrD,CAAC,CAAC,SAAS,CAAA;QAEf,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,6BAA6B,EAC7B,OAAO,CACR,CAAA;QAED,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmB,2CAA2C,CAAC,CAAA;QACtG,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAkB,yCAAyC,CAAC,CAAA;QACjG,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,KAAK,CAAC,wBAAwB;QAC5B,MAAM,UAAU,GAAG,MAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAuB,sDAAsD,CAAC,CAAA;QACvH,OAAO,UAAU,CAAA;IACnB,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,MAAwB;QAChD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAuB,iDAAiD,MAAM,EAAE,CAAC,CAAA;QACzH,OAAO,UAAU,CAAA;IACnB,CAAC;CAEF"}
@@ -15,4 +15,59 @@ export interface ConsensusParams {
15
15
  pub_key_types: string[];
16
16
  };
17
17
  }
18
+ export interface NodeInfoResponse {
19
+ application_version: {
20
+ app_name: string;
21
+ build_deps: [
22
+ {
23
+ path: string;
24
+ sum: string;
25
+ version: string;
26
+ }
27
+ ];
28
+ build_tags: string;
29
+ cosmos_sdk_version: string;
30
+ git_commit: string;
31
+ go_version: string;
32
+ name: string;
33
+ version: string;
34
+ };
35
+ default_node_info: {
36
+ channels: string;
37
+ default_node_id: string;
38
+ listen_addr: string;
39
+ moniker: string;
40
+ network: string;
41
+ other: {
42
+ rpc_address: string;
43
+ tx_index: string;
44
+ };
45
+ protocol_version: {
46
+ app: string;
47
+ block: string;
48
+ p2p: string;
49
+ };
50
+ version: string;
51
+ };
52
+ }
53
+ export interface SyncingResponse {
54
+ syncing: boolean;
55
+ }
56
+ export interface ValidatorSetResponse {
57
+ block_height: string;
58
+ pagination: {
59
+ next_key: string;
60
+ total: string;
61
+ };
62
+ validators: [
63
+ {
64
+ address: string;
65
+ proposer_priority: string;
66
+ pub_key: {
67
+ '@type': string;
68
+ };
69
+ voting_power: string;
70
+ }
71
+ ];
72
+ }
18
73
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/consensus/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,MAAM,CAAA;QAC1B,gBAAgB,EAAE,MAAM,CAAA;QACxB,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,SAAS,EAAE;QACT,aAAa,EAAE,MAAM,EAAE,CAAA;KACxB,CAAA;CACF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/consensus/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,MAAM,CAAA;QAC1B,gBAAgB,EAAE,MAAM,CAAA;QACxB,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,SAAS,EAAE;QACT,aAAa,EAAE,MAAM,EAAE,CAAA;KACxB,CAAA;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,mBAAmB,EAAE;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,MAAM,CAAC;gBACb,GAAG,EAAE,MAAM,CAAC;gBACZ,OAAO,EAAE,MAAM,CAAA;aAChB;SACF,CAAC;QACF,UAAU,EAAE,MAAM,CAAC;QACnB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAA;KAChB,CAAC;IACF,iBAAiB,EAAE;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE;YACL,WAAW,EAAE,MAAM,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAC;QACF,gBAAgB,EAAE;YAChB,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,GAAG,EAAE,MAAM,CAAA;SACZ,CAAC;QACF,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACF;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAA;KACd,CAAC;IACF,UAAU,EAAE;QACV;YACE,OAAO,EAAE,MAAM,CAAC;YAChB,iBAAiB,EAAE,MAAM,CAAC;YAC1B,OAAO,EAAE;gBACP,OAAO,EAAE,MAAM,CAAA;aAChB,CAAC;YACF,YAAY,EAAE,MAAM,CAAA;SACrB;KACF,CAAA;CACF"}
@@ -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<DexPoolResponse>;
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<DexPoolBalancesResponse>;
12
+ fetchPoolBalances(poolId: string): Promise<any>;
14
13
  /**
15
14
  * fetch pool uids
16
15
  */
17
- fetchPoolUids(tokenA: string, tokenB: string): Promise<poolUidResponse>;
16
+ fetchPoolUids(tokenA: string, tokenB: string): Promise<any>;
18
17
  /**
19
18
  * zigchaind query dex params
20
19
  */
21
- fetchParams(): Promise<DexParamsResponse>;
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;AAChE,OAAO,KACH,EAAE,eAAe,EACjB,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEzC,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
+ {"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<ValidatorCommissionResponse>;
8
+ fetchValidatorCommission(validator: string): Promise<any>;
10
9
  /**
11
10
  * zigchaind query distribution community-pool
12
11
  */
13
- fetchCommunityPool(): Promise<CommunityPoolResponse>;
12
+ fetchCommunityPool(): Promise<any>;
14
13
  /**
15
14
  * zigchaind query distribution delegator-validators <delegator>
16
15
  */
17
- fetchDelegatorValidators(delegator: string): Promise<DelegatorValidators>;
16
+ fetchDelegatorValidators(delegator: string): Promise<any>;
18
17
  /**
19
18
  * zigchaind query distribution delegator-withdraw-address <delegator>
20
19
  */
21
- fetchDelegatorWithdrawAddress(delegator: string): Promise<DelegatorWithdrawAddressResponse>;
20
+ fetchDelegatorWithdrawAddress(delegator: string): Promise<any>;
22
21
  /**
23
22
  * zigchaind query distribution params
24
23
  */
25
- fetchParams(): Promise<DistributionParamsResponse>;
24
+ fetchParams(): Promise<any>;
26
25
  /**
27
26
  * zigchaind query distribution rewards <delegator-address>
28
27
  */
29
- fetchDelegatorRewards(delegator: string): Promise<DelegatorRewardsResponse>;
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<DelegatorRewardsByValidatorResponse>;
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<ValidatorSlashesResponse>;
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<ValidatorDistributionInfoResponse>;
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<ValidatorOutstandingRewardsResponse>;
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;AAChE,OAAO,KAAK,EACV,2BAA2B,EAC3B,qBAAqB,EACrB,mBAAmB,EACnB,gCAAgC,EAChC,0BAA0B,EAC1B,wBAAwB,EACxB,mCAAmC,EACnC,wBAAwB,EACxB,iCAAiC,EACjC,mCAAmC,EACpC,MAAM,YAAY,CAAA;AAEnB,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
+ {"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<EvidenceResponse>;
8
+ fetchEvidence(hash: string): Promise<any>;
10
9
  /**
11
10
  * zigchaind query evidence list
12
11
  */
13
- fetchAllEvidence(): Promise<EvidencesResponse>;
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;AAChE,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,YAAY,CAAA;AAEnB,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
+ {"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<FactoryParamsResponse>;
7
+ fetchParams(): Promise<any>;
9
8
  /**
10
9
  * zigchaind query factory denoms-by-admin <address>
11
10
  */
12
- fetchDenomsByAdmin(admin: string): Promise<DenomsByAdminResponse>;
11
+ fetchDenomsByAdmin(admin: string): Promise<any>;
13
12
  /**
14
13
  * zigchaind query factory show-denom <denom>
15
14
  */
16
- fetchDenom(denom: string): Promise<ShowDenomResponse>;
15
+ fetchDenom(denom: string): Promise<any>;
17
16
  /**
18
17
  * zigchaind query factory denom-auth <denom>
19
18
  */
20
- fetchDenomAuth(denom: string): Promise<DenomAuthResponse>;
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;AACjE,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,YAAY,CAAA;AAEnB,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
+ {"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<FeeGrantResponse>;
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<FeeGrantsByGranteeResponse>;
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<FeeGrantsByGranterResponse>;
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;AACjE,OAAO,KAAK,EACR,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,EAC7B,MAAM,YAAY,CAAA;AAEnB,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
+ {"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<ConstitutionResponse>;
8
+ fetchConstitution(): Promise<any>;
10
9
  /**
11
10
  * zigchaind query gov proposal <id>
12
11
  */
13
- fetchProposal(proposalId: string | number): Promise<ProposalResponse>;
12
+ fetchProposal(proposalId: string | number): Promise<any>;
14
13
  /**
15
14
  * zigchaind query gov proposals
16
15
  */
17
- fetchAllProposals(): Promise<ProposalsResponse>;
16
+ fetchAllProposals(): Promise<any>;
18
17
  /**
19
18
  * zigchaind query gov tally <proposal_id>
20
19
  */
21
- fetchTally(proposalId: string | number): Promise<TallyResponse>;
20
+ fetchTally(proposalId: string | number): Promise<any>;
22
21
  /**
23
22
  * zigchaind query gov params
24
23
  */
25
- fetchParams(params_type: string): Promise<GovParamsResponse>;
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;AAChE,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAKjB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,YAAY,CAAA;AAEnB,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
+ {"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"}