juno-network 0.2.1 → 0.2.2
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/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/main/codegen/cosmos/base/v1beta1/coin.js +268 -0
- package/main/codegen/cosmos/bundle.js +4 -4
- package/main/codegen/cosmwasm/bundle.js +4 -4
- package/main/codegen/ibc/bundle.js +25 -15
- package/main/codegen/ibc/client.js +6 -2
- package/main/codegen/ibc/core/client/v1/client.js +585 -0
- package/main/codegen/ibc/core/client/v1/genesis.js +367 -0
- package/main/codegen/ibc/core/client/v1/query.js +1047 -0
- package/main/codegen/ibc/core/client/v1/query.lcd.js +381 -0
- package/main/codegen/ibc/core/client/v1/query.rpc.query.js +125 -0
- package/main/codegen/ibc/core/client/v1/tx.amino.js +149 -0
- package/main/codegen/ibc/core/client/v1/tx.js +538 -0
- package/main/codegen/ibc/core/client/v1/tx.registry.js +160 -0
- package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +81 -0
- package/main/codegen/ibc/lcd.js +21 -6
- package/main/codegen/ibc/rpc.query.js +19 -6
- package/main/codegen/ibc/rpc.tx.js +19 -6
- package/main/codegen/juno/bundle.js +6 -6
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +189 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +268 -0
- package/module/codegen/cosmos/bundle.js +4 -4
- package/module/codegen/cosmwasm/bundle.js +4 -4
- package/module/codegen/ibc/bundle.js +20 -15
- package/module/codegen/ibc/client.js +4 -2
- package/module/codegen/ibc/core/client/v1/client.js +549 -0
- package/module/codegen/ibc/core/client/v1/genesis.js +287 -0
- package/module/codegen/ibc/core/client/v1/query.js +1029 -0
- package/module/codegen/ibc/core/client/v1/query.lcd.js +128 -0
- package/module/codegen/ibc/core/client/v1/query.rpc.query.js +69 -0
- package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
- package/module/codegen/ibc/core/client/v1/tx.js +544 -0
- package/module/codegen/ibc/core/client/v1/tx.registry.js +159 -0
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/lcd.js +5 -0
- package/module/codegen/ibc/rpc.query.js +3 -0
- package/module/codegen/ibc/rpc.tx.js +3 -0
- package/module/codegen/juno/bundle.js +6 -6
- package/package.json +3 -2
- package/types/codegen/JunoSwap.client.d.ts +1 -1
- package/types/codegen/JunoSwap.react-query.d.ts +11 -11
- package/types/codegen/JunoSwap.types.d.ts +1 -1
- package/types/codegen/contracts.d.ts +5 -5
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +3 -3
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +79 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +58 -0
- package/types/codegen/cosmos/bundle.d.ts +758 -153
- package/types/codegen/cosmos/client.d.ts +6 -2
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +2 -2
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +2 -2
- package/types/codegen/cosmwasm/bundle.d.ts +87 -18
- package/types/codegen/cosmwasm/client.d.ts +8 -2
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +2 -2
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +2 -2
- package/types/codegen/ibc/bundle.d.ts +878 -64
- package/types/codegen/ibc/client.d.ts +8 -2
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +1 -1
- package/types/codegen/ibc/core/client/v1/client.d.ts +143 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +56 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +263 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +15 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +25 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +131 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +96 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/ibc/lcd.d.ts +3 -0
- package/types/codegen/ibc/rpc.query.d.ts +3 -0
- package/types/codegen/ibc/rpc.tx.d.ts +3 -0
- package/types/codegen/index.d.ts +1 -1
- package/types/codegen/juno/bundle.d.ts +6 -6
- package/types/codegen/juno/mint/query.lcd.d.ts +3 -3
@@ -0,0 +1,131 @@
|
|
1
|
+
import { Any } from "../../../../google/protobuf/any";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
4
|
+
/** MsgCreateClient defines a message to create an IBC client */
|
5
|
+
export interface MsgCreateClient {
|
6
|
+
/** light client state */
|
7
|
+
clientState: Any;
|
8
|
+
/**
|
9
|
+
* consensus state associated with the client that corresponds to a given
|
10
|
+
* height.
|
11
|
+
*/
|
12
|
+
consensusState: Any;
|
13
|
+
/** signer address */
|
14
|
+
signer: string;
|
15
|
+
}
|
16
|
+
/** MsgCreateClientResponse defines the Msg/CreateClient response type. */
|
17
|
+
export interface MsgCreateClientResponse {
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* MsgUpdateClient defines an sdk.Msg to update a IBC client state using
|
21
|
+
* the given header.
|
22
|
+
*/
|
23
|
+
export interface MsgUpdateClient {
|
24
|
+
/** client unique identifier */
|
25
|
+
clientId: string;
|
26
|
+
/** header to update the light client */
|
27
|
+
header: Any;
|
28
|
+
/** signer address */
|
29
|
+
signer: string;
|
30
|
+
}
|
31
|
+
/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */
|
32
|
+
export interface MsgUpdateClientResponse {
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client
|
36
|
+
* state
|
37
|
+
*/
|
38
|
+
export interface MsgUpgradeClient {
|
39
|
+
/** client unique identifier */
|
40
|
+
clientId: string;
|
41
|
+
/** upgraded client state */
|
42
|
+
clientState: Any;
|
43
|
+
/**
|
44
|
+
* upgraded consensus state, only contains enough information to serve as a
|
45
|
+
* basis of trust in update logic
|
46
|
+
*/
|
47
|
+
consensusState: Any;
|
48
|
+
/** proof that old chain committed to new client */
|
49
|
+
proofUpgradeClient: Uint8Array;
|
50
|
+
/** proof that old chain committed to new consensus state */
|
51
|
+
proofUpgradeConsensusState: Uint8Array;
|
52
|
+
/** signer address */
|
53
|
+
signer: string;
|
54
|
+
}
|
55
|
+
/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */
|
56
|
+
export interface MsgUpgradeClientResponse {
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for
|
60
|
+
* light client misbehaviour.
|
61
|
+
*/
|
62
|
+
export interface MsgSubmitMisbehaviour {
|
63
|
+
/** client unique identifier */
|
64
|
+
clientId: string;
|
65
|
+
/** misbehaviour used for freezing the light client */
|
66
|
+
misbehaviour: Any;
|
67
|
+
/** signer address */
|
68
|
+
signer: string;
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response
|
72
|
+
* type.
|
73
|
+
*/
|
74
|
+
export interface MsgSubmitMisbehaviourResponse {
|
75
|
+
}
|
76
|
+
export declare const MsgCreateClient: {
|
77
|
+
encode(message: MsgCreateClient, writer?: _m0.Writer): _m0.Writer;
|
78
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClient;
|
79
|
+
fromJSON(object: any): MsgCreateClient;
|
80
|
+
toJSON(message: MsgCreateClient): unknown;
|
81
|
+
fromPartial(object: DeepPartial<MsgCreateClient>): MsgCreateClient;
|
82
|
+
};
|
83
|
+
export declare const MsgCreateClientResponse: {
|
84
|
+
encode(_: MsgCreateClientResponse, writer?: _m0.Writer): _m0.Writer;
|
85
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClientResponse;
|
86
|
+
fromJSON(_: any): MsgCreateClientResponse;
|
87
|
+
toJSON(_: MsgCreateClientResponse): unknown;
|
88
|
+
fromPartial(_: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
|
89
|
+
};
|
90
|
+
export declare const MsgUpdateClient: {
|
91
|
+
encode(message: MsgUpdateClient, writer?: _m0.Writer): _m0.Writer;
|
92
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClient;
|
93
|
+
fromJSON(object: any): MsgUpdateClient;
|
94
|
+
toJSON(message: MsgUpdateClient): unknown;
|
95
|
+
fromPartial(object: DeepPartial<MsgUpdateClient>): MsgUpdateClient;
|
96
|
+
};
|
97
|
+
export declare const MsgUpdateClientResponse: {
|
98
|
+
encode(_: MsgUpdateClientResponse, writer?: _m0.Writer): _m0.Writer;
|
99
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClientResponse;
|
100
|
+
fromJSON(_: any): MsgUpdateClientResponse;
|
101
|
+
toJSON(_: MsgUpdateClientResponse): unknown;
|
102
|
+
fromPartial(_: DeepPartial<MsgUpdateClientResponse>): MsgUpdateClientResponse;
|
103
|
+
};
|
104
|
+
export declare const MsgUpgradeClient: {
|
105
|
+
encode(message: MsgUpgradeClient, writer?: _m0.Writer): _m0.Writer;
|
106
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpgradeClient;
|
107
|
+
fromJSON(object: any): MsgUpgradeClient;
|
108
|
+
toJSON(message: MsgUpgradeClient): unknown;
|
109
|
+
fromPartial(object: DeepPartial<MsgUpgradeClient>): MsgUpgradeClient;
|
110
|
+
};
|
111
|
+
export declare const MsgUpgradeClientResponse: {
|
112
|
+
encode(_: MsgUpgradeClientResponse, writer?: _m0.Writer): _m0.Writer;
|
113
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpgradeClientResponse;
|
114
|
+
fromJSON(_: any): MsgUpgradeClientResponse;
|
115
|
+
toJSON(_: MsgUpgradeClientResponse): unknown;
|
116
|
+
fromPartial(_: DeepPartial<MsgUpgradeClientResponse>): MsgUpgradeClientResponse;
|
117
|
+
};
|
118
|
+
export declare const MsgSubmitMisbehaviour: {
|
119
|
+
encode(message: MsgSubmitMisbehaviour, writer?: _m0.Writer): _m0.Writer;
|
120
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitMisbehaviour;
|
121
|
+
fromJSON(object: any): MsgSubmitMisbehaviour;
|
122
|
+
toJSON(message: MsgSubmitMisbehaviour): unknown;
|
123
|
+
fromPartial(object: DeepPartial<MsgSubmitMisbehaviour>): MsgSubmitMisbehaviour;
|
124
|
+
};
|
125
|
+
export declare const MsgSubmitMisbehaviourResponse: {
|
126
|
+
encode(_: MsgSubmitMisbehaviourResponse, writer?: _m0.Writer): _m0.Writer;
|
127
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse;
|
128
|
+
fromJSON(_: any): MsgSubmitMisbehaviourResponse;
|
129
|
+
toJSON(_: MsgSubmitMisbehaviourResponse): unknown;
|
130
|
+
fromPartial(_: DeepPartial<MsgSubmitMisbehaviourResponse>): MsgSubmitMisbehaviourResponse;
|
131
|
+
};
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import { GeneratedType, Registry } from "@cosmjs/proto-signing";
|
2
|
+
import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx";
|
3
|
+
export declare const registry: ReadonlyArray<[string, GeneratedType]>;
|
4
|
+
export declare const load: (protoRegistry: Registry) => void;
|
5
|
+
export declare const MessageComposer: {
|
6
|
+
encoded: {
|
7
|
+
createClient(value: MsgCreateClient): {
|
8
|
+
typeUrl: string;
|
9
|
+
value: Uint8Array;
|
10
|
+
};
|
11
|
+
updateClient(value: MsgUpdateClient): {
|
12
|
+
typeUrl: string;
|
13
|
+
value: Uint8Array;
|
14
|
+
};
|
15
|
+
upgradeClient(value: MsgUpgradeClient): {
|
16
|
+
typeUrl: string;
|
17
|
+
value: Uint8Array;
|
18
|
+
};
|
19
|
+
submitMisbehaviour(value: MsgSubmitMisbehaviour): {
|
20
|
+
typeUrl: string;
|
21
|
+
value: Uint8Array;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
withTypeUrl: {
|
25
|
+
createClient(value: MsgCreateClient): {
|
26
|
+
typeUrl: string;
|
27
|
+
value: MsgCreateClient;
|
28
|
+
};
|
29
|
+
updateClient(value: MsgUpdateClient): {
|
30
|
+
typeUrl: string;
|
31
|
+
value: MsgUpdateClient;
|
32
|
+
};
|
33
|
+
upgradeClient(value: MsgUpgradeClient): {
|
34
|
+
typeUrl: string;
|
35
|
+
value: MsgUpgradeClient;
|
36
|
+
};
|
37
|
+
submitMisbehaviour(value: MsgSubmitMisbehaviour): {
|
38
|
+
typeUrl: string;
|
39
|
+
value: MsgSubmitMisbehaviour;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
toJSON: {
|
43
|
+
createClient(value: MsgCreateClient): {
|
44
|
+
typeUrl: string;
|
45
|
+
value: unknown;
|
46
|
+
};
|
47
|
+
updateClient(value: MsgUpdateClient): {
|
48
|
+
typeUrl: string;
|
49
|
+
value: unknown;
|
50
|
+
};
|
51
|
+
upgradeClient(value: MsgUpgradeClient): {
|
52
|
+
typeUrl: string;
|
53
|
+
value: unknown;
|
54
|
+
};
|
55
|
+
submitMisbehaviour(value: MsgSubmitMisbehaviour): {
|
56
|
+
typeUrl: string;
|
57
|
+
value: unknown;
|
58
|
+
};
|
59
|
+
};
|
60
|
+
fromJSON: {
|
61
|
+
createClient(value: any): {
|
62
|
+
typeUrl: string;
|
63
|
+
value: MsgCreateClient;
|
64
|
+
};
|
65
|
+
updateClient(value: any): {
|
66
|
+
typeUrl: string;
|
67
|
+
value: MsgUpdateClient;
|
68
|
+
};
|
69
|
+
upgradeClient(value: any): {
|
70
|
+
typeUrl: string;
|
71
|
+
value: MsgUpgradeClient;
|
72
|
+
};
|
73
|
+
submitMisbehaviour(value: any): {
|
74
|
+
typeUrl: string;
|
75
|
+
value: MsgSubmitMisbehaviour;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
fromPartial: {
|
79
|
+
createClient(value: MsgCreateClient): {
|
80
|
+
typeUrl: string;
|
81
|
+
value: MsgCreateClient;
|
82
|
+
};
|
83
|
+
updateClient(value: MsgUpdateClient): {
|
84
|
+
typeUrl: string;
|
85
|
+
value: MsgUpdateClient;
|
86
|
+
};
|
87
|
+
upgradeClient(value: MsgUpgradeClient): {
|
88
|
+
typeUrl: string;
|
89
|
+
value: MsgUpgradeClient;
|
90
|
+
};
|
91
|
+
submitMisbehaviour(value: MsgSubmitMisbehaviour): {
|
92
|
+
typeUrl: string;
|
93
|
+
value: MsgSubmitMisbehaviour;
|
94
|
+
};
|
95
|
+
};
|
96
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Rpc } from "@osmonauts/helpers";
|
2
|
+
import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx";
|
3
|
+
/** Msg defines the RPC service */
|
4
|
+
export interface Msg {
|
5
|
+
createClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
|
6
|
+
updateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
|
7
|
+
upgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
|
8
|
+
submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
|
9
|
+
}
|
10
|
+
export declare class MsgClientImpl implements Msg {
|
11
|
+
private readonly rpc;
|
12
|
+
constructor(rpc: Rpc);
|
13
|
+
createClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
|
14
|
+
updateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
|
15
|
+
upgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
|
16
|
+
submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
|
17
|
+
}
|
package/types/codegen/index.d.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.18.2
|
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,12 +1,12 @@
|
|
1
1
|
import * as _135 from "./mint/genesis";
|
2
2
|
import * as _136 from "./mint/mint";
|
3
3
|
import * as _137 from "./mint/query";
|
4
|
-
import * as
|
5
|
-
import * as
|
4
|
+
import * as _200 from "./mint/query.lcd";
|
5
|
+
import * as _201 from "./mint/query.rpc.query";
|
6
6
|
export declare namespace juno {
|
7
7
|
const mint: {
|
8
|
-
QueryClientImpl: typeof
|
9
|
-
LCDQueryClient: typeof
|
8
|
+
QueryClientImpl: typeof _201.QueryClientImpl;
|
9
|
+
LCDQueryClient: typeof _200.LCDQueryClient;
|
10
10
|
QueryParamsRequest: {
|
11
11
|
encode(_: _137.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
12
12
|
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _137.QueryParamsRequest;
|
@@ -122,7 +122,7 @@ export declare namespace juno {
|
|
122
122
|
};
|
123
123
|
};
|
124
124
|
juno: {
|
125
|
-
mint:
|
125
|
+
mint: _201.QueryClientImpl;
|
126
126
|
};
|
127
127
|
}>;
|
128
128
|
createLCDClient: ({ restEndpoint }: {
|
@@ -147,7 +147,7 @@ export declare namespace juno {
|
|
147
147
|
};
|
148
148
|
};
|
149
149
|
juno: {
|
150
|
-
mint:
|
150
|
+
mint: _200.LCDQueryClient;
|
151
151
|
};
|
152
152
|
}>;
|
153
153
|
};
|
@@ -4,7 +4,7 @@ export declare class LCDQueryClient extends LCDClient {
|
|
4
4
|
constructor({ restEndpoint }: {
|
5
5
|
restEndpoint: any;
|
6
6
|
});
|
7
|
-
params(
|
8
|
-
inflation(
|
9
|
-
annualProvisions(
|
7
|
+
params(_params?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
8
|
+
inflation(_params?: QueryInflationRequest): Promise<QueryInflationResponse>;
|
9
|
+
annualProvisions(_params?: QueryAnnualProvisionsRequest): Promise<QueryAnnualProvisionsResponse>;
|
10
10
|
}
|