juno-network 0.9.0 → 0.11.0
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/main/codegen/JunoSwap.client.js +1 -1
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
- package/main/codegen/cosmos/gov/v1/query.lcd.js +2 -2
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
- package/main/codegen/helpers.js +4 -4
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
- package/main/codegen/ibc/core/client/v1/query.lcd.js +1 -1
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
- package/module/codegen/JunoSwap.client.js +1 -1
- package/module/codegen/contracts.js +1 -1
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
- package/module/codegen/cosmos/gov/v1/query.lcd.js +2 -2
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
- package/module/codegen/helpers.js +4 -4
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
- package/module/codegen/ibc/core/client/v1/query.lcd.js +1 -1
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
- package/module/codegen/index.js +1 -1
- package/package.json +8 -8
- package/src/codegen/JunoSwap.client.ts +1 -1
- package/src/codegen/JunoSwap.types.ts +1 -1
- package/src/codegen/contracts.ts +1 -1
- package/src/codegen/cosmos/client.ts +3 -2
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +1 -1
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +2 -2
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +2 -2
- package/src/codegen/cosmos/rpc.query.ts +2 -2
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +2 -2
- package/src/codegen/cosmwasm/client.ts +3 -2
- package/src/codegen/cosmwasm/rpc.query.ts +2 -2
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +2 -2
- package/src/codegen/helpers.ts +7 -5
- package/src/codegen/ibc/client.ts +3 -2
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +5 -5
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +1 -1
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +1 -1
- package/src/codegen/ibc/rpc.query.ts +2 -2
- package/src/codegen/index.ts +1 -1
- package/src/codegen/juno/rpc.query.ts +2 -2
- package/types/codegen/JunoSwap.client.d.ts +1 -1
- package/types/codegen/JunoSwap.types.d.ts +1 -1
- package/types/codegen/contracts.d.ts +1 -1
- package/types/codegen/cosmos/bundle.d.ts +331 -3694
- package/types/codegen/cosmos/client.d.ts +3 -2
- package/types/codegen/cosmos/rpc.query.d.ts +2 -1
- package/types/codegen/cosmos_proto/bundle.d.ts +2 -9
- package/types/codegen/cosmwasm/bundle.d.ts +56 -488
- package/types/codegen/cosmwasm/client.d.ts +3 -2
- package/types/codegen/cosmwasm/rpc.query.d.ts +2 -1
- package/types/codegen/google/bundle.d.ts +31 -1256
- package/types/codegen/helpers.d.ts +5 -5
- package/types/codegen/ibc/bundle.d.ts +169 -1905
- package/types/codegen/ibc/client.d.ts +3 -2
- package/types/codegen/ibc/rpc.query.d.ts +2 -1
- package/types/codegen/ics23/bundle.d.ts +13 -482
- package/types/codegen/index.d.ts +1 -1
- package/types/codegen/juno/bundle.d.ts +10 -38
- package/types/codegen/juno/rpc.query.d.ts +2 -1
- package/types/codegen/tendermint/bundle.d.ts +85 -1674
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
2
2
|
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
3
|
+
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
3
4
|
import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry";
|
4
5
|
import * as ibcCoreChannelV1TxRegistry from "./core/channel/v1/tx.registry";
|
5
6
|
import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry";
|
@@ -35,7 +36,7 @@ export const getSigningIbcClient = async ({
|
|
35
36
|
signer,
|
36
37
|
defaultTypes = defaultRegistryTypes
|
37
38
|
}: {
|
38
|
-
rpcEndpoint: string;
|
39
|
+
rpcEndpoint: string | HttpEndpoint;
|
39
40
|
signer: OfflineSigner;
|
40
41
|
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
41
42
|
}) => {
|
@@ -28,7 +28,7 @@ export class LCDQueryClient {
|
|
28
28
|
|
29
29
|
|
30
30
|
async channel(params: QueryChannelRequest): Promise<QueryChannelResponseSDKType> {
|
31
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}ports/${params.portId}`;
|
31
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}`;
|
32
32
|
return await this.req.get<QueryChannelResponseSDKType>(endpoint);
|
33
33
|
}
|
34
34
|
/* Channels queries all the IBC channels of a chain. */
|
@@ -77,14 +77,14 @@ export class LCDQueryClient {
|
|
77
77
|
|
78
78
|
|
79
79
|
async channelConsensusState(params: QueryChannelConsensusStateRequest): Promise<QueryChannelConsensusStateResponseSDKType> {
|
80
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
80
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
81
81
|
return await this.req.get<QueryChannelConsensusStateResponseSDKType>(endpoint);
|
82
82
|
}
|
83
83
|
/* PacketCommitment queries a stored packet commitment hash. */
|
84
84
|
|
85
85
|
|
86
86
|
async packetCommitment(params: QueryPacketCommitmentRequest): Promise<QueryPacketCommitmentResponseSDKType> {
|
87
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_commitments/${params.sequence}`;
|
87
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.sequence}`;
|
88
88
|
return await this.req.get<QueryPacketCommitmentResponseSDKType>(endpoint);
|
89
89
|
}
|
90
90
|
/* PacketCommitments returns all the packet commitments hashes associated
|
@@ -108,14 +108,14 @@ export class LCDQueryClient {
|
|
108
108
|
|
109
109
|
|
110
110
|
async packetReceipt(params: QueryPacketReceiptRequest): Promise<QueryPacketReceiptResponseSDKType> {
|
111
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_receipts/${params.sequence}`;
|
111
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_receipts/${params.sequence}`;
|
112
112
|
return await this.req.get<QueryPacketReceiptResponseSDKType>(endpoint);
|
113
113
|
}
|
114
114
|
/* PacketAcknowledgement queries a stored packet acknowledgement hash. */
|
115
115
|
|
116
116
|
|
117
117
|
async packetAcknowledgement(params: QueryPacketAcknowledgementRequest): Promise<QueryPacketAcknowledgementResponseSDKType> {
|
118
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_acks/${params.sequence}`;
|
118
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_acks/${params.sequence}`;
|
119
119
|
return await this.req.get<QueryPacketAcknowledgementResponseSDKType>(endpoint);
|
120
120
|
}
|
121
121
|
/* PacketAcknowledgements returns all the packet acknowledgements associated
|
@@ -56,7 +56,7 @@ export class LCDQueryClient {
|
|
56
56
|
options.params.latest_height = params.latestHeight;
|
57
57
|
}
|
58
58
|
|
59
|
-
const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
59
|
+
const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
60
60
|
return await this.req.get<QueryConsensusStateResponseSDKType>(endpoint, options);
|
61
61
|
}
|
62
62
|
/* ConsensusStates queries all the consensus state associated with a given
|
@@ -61,7 +61,7 @@ export class LCDQueryClient {
|
|
61
61
|
|
62
62
|
|
63
63
|
async connectionConsensusState(params: QueryConnectionConsensusStateRequest): Promise<QueryConnectionConsensusStateResponseSDKType> {
|
64
|
-
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
64
|
+
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
65
65
|
return await this.req.get<QueryConnectionConsensusStateResponseSDKType>(endpoint);
|
66
66
|
}
|
67
67
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
|
1
|
+
import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
3
3
|
export const createRPCQueryClient = async ({
|
4
4
|
rpcEndpoint
|
5
5
|
}: {
|
6
|
-
rpcEndpoint: string;
|
6
|
+
rpcEndpoint: string | HttpEndpoint;
|
7
7
|
}) => {
|
8
8
|
const tmClient = await Tendermint34Client.connect(rpcEndpoint);
|
9
9
|
const client = new QueryClient(tmClient);
|
package/src/codegen/index.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.
|
2
|
+
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.80.0
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
4
4
|
* and run the transpile command or yarn proto command to regenerate this bundle.
|
5
5
|
*/
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
|
1
|
+
import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
3
3
|
export const createRPCQueryClient = async ({
|
4
4
|
rpcEndpoint
|
5
5
|
}: {
|
6
|
-
rpcEndpoint: string;
|
6
|
+
rpcEndpoint: string | HttpEndpoint;
|
7
7
|
}) => {
|
8
8
|
const tmClient = await Tendermint34Client.connect(rpcEndpoint);
|
9
9
|
const client = new QueryClient(tmClient);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
4
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
5
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
4
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
5
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
4
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
5
|
*/
|