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,41 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx";
|
4
|
+
/** Msg defines the RPC service */
|
5
|
+
|
6
|
+
export class MsgClientImpl {
|
7
|
+
constructor(rpc) {
|
8
|
+
_defineProperty(this, "rpc", void 0);
|
9
|
+
|
10
|
+
this.rpc = rpc;
|
11
|
+
this.createClient = this.createClient.bind(this);
|
12
|
+
this.updateClient = this.updateClient.bind(this);
|
13
|
+
this.upgradeClient = this.upgradeClient.bind(this);
|
14
|
+
this.submitMisbehaviour = this.submitMisbehaviour.bind(this);
|
15
|
+
}
|
16
|
+
|
17
|
+
createClient(request) {
|
18
|
+
const data = MsgCreateClient.encode(request).finish();
|
19
|
+
const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data);
|
20
|
+
return promise.then(data => MsgCreateClientResponse.decode(new _m0.Reader(data)));
|
21
|
+
}
|
22
|
+
|
23
|
+
updateClient(request) {
|
24
|
+
const data = MsgUpdateClient.encode(request).finish();
|
25
|
+
const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data);
|
26
|
+
return promise.then(data => MsgUpdateClientResponse.decode(new _m0.Reader(data)));
|
27
|
+
}
|
28
|
+
|
29
|
+
upgradeClient(request) {
|
30
|
+
const data = MsgUpgradeClient.encode(request).finish();
|
31
|
+
const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data);
|
32
|
+
return promise.then(data => MsgUpgradeClientResponse.decode(new _m0.Reader(data)));
|
33
|
+
}
|
34
|
+
|
35
|
+
submitMisbehaviour(request) {
|
36
|
+
const data = MsgSubmitMisbehaviour.encode(request).finish();
|
37
|
+
const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data);
|
38
|
+
return promise.then(data => MsgSubmitMisbehaviourResponse.decode(new _m0.Reader(data)));
|
39
|
+
}
|
40
|
+
|
41
|
+
}
|
@@ -44,6 +44,11 @@ export const createLCDClient = async ({
|
|
44
44
|
v1: new (await import("./core/channel/v1/query.lcd")).LCDQueryClient({
|
45
45
|
restEndpoint
|
46
46
|
})
|
47
|
+
},
|
48
|
+
client: {
|
49
|
+
v1: new (await import("./core/client/v1/query.lcd")).LCDQueryClient({
|
50
|
+
restEndpoint
|
51
|
+
})
|
47
52
|
}
|
48
53
|
}
|
49
54
|
}
|
@@ -28,6 +28,9 @@ export const createRPCQueryClient = async ({
|
|
28
28
|
core: {
|
29
29
|
channel: {
|
30
30
|
v1: new (await import("./core/channel/v1/query.rpc.query")).QueryClientImpl(rpc)
|
31
|
+
},
|
32
|
+
client: {
|
33
|
+
v1: new (await import("./core/client/v1/query.rpc.query")).QueryClientImpl(rpc)
|
31
34
|
}
|
32
35
|
}
|
33
36
|
}
|
@@ -7,14 +7,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
7
7
|
import * as _135 from "./mint/genesis";
|
8
8
|
import * as _136 from "./mint/mint";
|
9
9
|
import * as _137 from "./mint/query";
|
10
|
-
import * as
|
11
|
-
import * as
|
12
|
-
import * as
|
13
|
-
import * as
|
10
|
+
import * as _200 from "./mint/query.lcd";
|
11
|
+
import * as _201 from "./mint/query.rpc.query";
|
12
|
+
import * as _211 from "./lcd";
|
13
|
+
import * as _212 from "./rpc.query";
|
14
14
|
export let juno;
|
15
15
|
|
16
16
|
(function (_juno) {
|
17
|
-
const mint = _juno.mint = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _135), _136), _137),
|
17
|
+
const mint = _juno.mint = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _135), _136), _137), _200), _201);
|
18
18
|
|
19
|
-
const ClientFactory = _juno.ClientFactory = _objectSpread(_objectSpread({},
|
19
|
+
const ClientFactory = _juno.ClientFactory = _objectSpread(_objectSpread({}, _211), _212);
|
20
20
|
})(juno || (juno = {}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "juno-network",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.2",
|
4
4
|
"description": "juno",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/CosmosContracts/typescript#readme",
|
@@ -87,8 +87,9 @@
|
|
87
87
|
"@cosmjs/stargate": "0.28.13",
|
88
88
|
"@cosmjs/tendermint-rpc": "^0.28.13",
|
89
89
|
"@osmonauts/helpers": "^0.4.3",
|
90
|
+
"@osmonauts/lcd": "0.4.0",
|
90
91
|
"@tanstack/react-query": "^4.2.1",
|
91
92
|
"protobufjs": "^6.11.2"
|
92
93
|
},
|
93
|
-
"gitHead": "
|
94
|
+
"gitHead": "f7952a72560a3eb9a3ff4763ccb400714258d4b8"
|
94
95
|
}
|
@@ -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.13.0.
|
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.13.0.
|
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
|
*/
|
@@ -8,33 +8,33 @@ import { ExecuteResult } from "@cosmjs/cosmwasm-stargate";
|
|
8
8
|
import { StdFee, Coin } from "@cosmjs/amino";
|
9
9
|
import { Uint128, BalanceResponse, Expiration, TokenSelect, Addr, InfoResponse, Token1ForToken2PriceResponse, Token2ForToken1PriceResponse } from "./JunoSwap.types";
|
10
10
|
import { JunoSwapQueryClient, JunoSwapClient } from "./JunoSwap.client";
|
11
|
-
export interface JunoSwapReactQuery<TResponse> {
|
11
|
+
export interface JunoSwapReactQuery<TResponse, TData = TResponse> {
|
12
12
|
client: JunoSwapQueryClient | undefined;
|
13
|
-
options?: Omit<UseQueryOptions<TResponse, Error,
|
13
|
+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
|
14
14
|
initialData?: undefined;
|
15
15
|
};
|
16
16
|
}
|
17
|
-
export interface JunoSwapToken2ForToken1PriceQuery extends JunoSwapReactQuery<Token2ForToken1PriceResponse> {
|
17
|
+
export interface JunoSwapToken2ForToken1PriceQuery<TData> extends JunoSwapReactQuery<Token2ForToken1PriceResponse, TData> {
|
18
18
|
args: {
|
19
19
|
token2Amount: Uint128;
|
20
20
|
};
|
21
21
|
}
|
22
|
-
export declare function useJunoSwapToken2ForToken1PriceQuery({ client, args, options }: JunoSwapToken2ForToken1PriceQuery): import("@tanstack/react-query").UseQueryResult<
|
23
|
-
export interface JunoSwapToken1ForToken2PriceQuery extends JunoSwapReactQuery<Token1ForToken2PriceResponse> {
|
22
|
+
export declare function useJunoSwapToken2ForToken1PriceQuery<TData = Token2ForToken1PriceResponse>({ client, args, options }: JunoSwapToken2ForToken1PriceQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
|
23
|
+
export interface JunoSwapToken1ForToken2PriceQuery<TData> extends JunoSwapReactQuery<Token1ForToken2PriceResponse, TData> {
|
24
24
|
args: {
|
25
25
|
token1Amount: Uint128;
|
26
26
|
};
|
27
27
|
}
|
28
|
-
export declare function useJunoSwapToken1ForToken2PriceQuery({ client, args, options }: JunoSwapToken1ForToken2PriceQuery): import("@tanstack/react-query").UseQueryResult<
|
29
|
-
export interface JunoSwapInfoQuery extends JunoSwapReactQuery<InfoResponse> {
|
28
|
+
export declare function useJunoSwapToken1ForToken2PriceQuery<TData = Token1ForToken2PriceResponse>({ client, args, options }: JunoSwapToken1ForToken2PriceQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
|
29
|
+
export interface JunoSwapInfoQuery<TData> extends JunoSwapReactQuery<InfoResponse, TData> {
|
30
30
|
}
|
31
|
-
export declare function useJunoSwapInfoQuery({ client, options }: JunoSwapInfoQuery): import("@tanstack/react-query").UseQueryResult<
|
32
|
-
export interface JunoSwapBalanceQuery extends JunoSwapReactQuery<BalanceResponse> {
|
31
|
+
export declare function useJunoSwapInfoQuery<TData = InfoResponse>({ client, options }: JunoSwapInfoQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
|
32
|
+
export interface JunoSwapBalanceQuery<TData> extends JunoSwapReactQuery<BalanceResponse, TData> {
|
33
33
|
args: {
|
34
34
|
address: string;
|
35
35
|
};
|
36
36
|
}
|
37
|
-
export declare function useJunoSwapBalanceQuery({ client, args, options }: JunoSwapBalanceQuery): import("@tanstack/react-query").UseQueryResult<
|
37
|
+
export declare function useJunoSwapBalanceQuery<TData = BalanceResponse>({ client, args, options }: JunoSwapBalanceQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
|
38
38
|
export interface JunoSwapSwapToMutation {
|
39
39
|
client: JunoSwapClient;
|
40
40
|
msg: {
|
@@ -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.13.0.
|
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.13.0.
|
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
|
*/
|
@@ -8,10 +8,10 @@ import * as _1 from "./JunoSwap.client";
|
|
8
8
|
import * as _2 from "./JunoSwap.react-query";
|
9
9
|
export declare namespace contracts {
|
10
10
|
const JunoSwap: {
|
11
|
-
useJunoSwapToken2ForToken1PriceQuery({ client, args, options }: _2.JunoSwapToken2ForToken1PriceQuery): import("@tanstack/react-query").UseQueryResult<
|
12
|
-
useJunoSwapToken1ForToken2PriceQuery({ client, args, options }: _2.JunoSwapToken1ForToken2PriceQuery): import("@tanstack/react-query").UseQueryResult<
|
13
|
-
useJunoSwapInfoQuery({ client, options }: _2.JunoSwapInfoQuery): import("@tanstack/react-query").UseQueryResult<
|
14
|
-
useJunoSwapBalanceQuery({ client, args, options }: _2.JunoSwapBalanceQuery): import("@tanstack/react-query").UseQueryResult<
|
11
|
+
useJunoSwapToken2ForToken1PriceQuery<TData = _0.Token2ForToken1PriceResponse>({ client, args, options }: _2.JunoSwapToken2ForToken1PriceQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
|
12
|
+
useJunoSwapToken1ForToken2PriceQuery<TData_1 = _0.Token1ForToken2PriceResponse>({ client, args, options }: _2.JunoSwapToken1ForToken2PriceQuery<TData_1>): import("@tanstack/react-query").UseQueryResult<TData_1, Error>;
|
13
|
+
useJunoSwapInfoQuery<TData_2 = _0.InfoResponse>({ client, options }: _2.JunoSwapInfoQuery<TData_2>): import("@tanstack/react-query").UseQueryResult<TData_2, Error>;
|
14
|
+
useJunoSwapBalanceQuery<TData_3 = _0.BalanceResponse>({ client, args, options }: _2.JunoSwapBalanceQuery<TData_3>): import("@tanstack/react-query").UseQueryResult<TData_3, Error>;
|
15
15
|
useJunoSwapSwapToMutation(options?: Omit<import("@tanstack/react-query").UseMutationOptions<import("@cosmjs/cosmwasm-stargate").ExecuteResult, Error, _2.JunoSwapSwapToMutation, unknown>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<import("@cosmjs/cosmwasm-stargate").ExecuteResult, Error, _2.JunoSwapSwapToMutation, unknown>;
|
16
16
|
useJunoSwapMultiContractSwapMutation(options?: Omit<import("@tanstack/react-query").UseMutationOptions<import("@cosmjs/cosmwasm-stargate").ExecuteResult, Error, _2.JunoSwapMultiContractSwapMutation, unknown>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<import("@cosmjs/cosmwasm-stargate").ExecuteResult, Error, _2.JunoSwapMultiContractSwapMutation, unknown>;
|
17
17
|
useJunoSwapSwapToken2ForToken1Mutation(options?: Omit<import("@tanstack/react-query").UseMutationOptions<import("@cosmjs/cosmwasm-stargate").ExecuteResult, Error, _2.JunoSwapSwapToken2ForToken1Mutation, unknown>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<import("@cosmjs/cosmwasm-stargate").ExecuteResult, Error, _2.JunoSwapSwapToken2ForToken1Mutation, unknown>;
|
@@ -7,10 +7,10 @@ export declare class LCDQueryClient extends LCDClient {
|
|
7
7
|
balance(params: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
8
8
|
allBalances(params: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
9
9
|
spendableBalances(params: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
10
|
-
totalSupply(params
|
10
|
+
totalSupply(params?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
11
11
|
supplyOf(params: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
12
|
-
params(
|
12
|
+
params(_params?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
13
13
|
denomMetadata(params: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
|
14
|
-
denomsMetadata(params
|
14
|
+
denomsMetadata(params?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
|
15
15
|
denomOwners(params: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponse>;
|
16
16
|
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { Long, DeepPartial } from "@osmonauts/helpers";
|
3
|
+
/**
|
4
|
+
* PageRequest is to be embedded in gRPC request messages for efficient
|
5
|
+
* pagination. Ex:
|
6
|
+
*
|
7
|
+
* message SomeRequest {
|
8
|
+
* Foo some_parameter = 1;
|
9
|
+
* PageRequest pagination = 2;
|
10
|
+
* }
|
11
|
+
*/
|
12
|
+
export interface PageRequest {
|
13
|
+
/**
|
14
|
+
* key is a value returned in PageResponse.next_key to begin
|
15
|
+
* querying the next page most efficiently. Only one of offset or key
|
16
|
+
* should be set.
|
17
|
+
*/
|
18
|
+
key: Uint8Array;
|
19
|
+
/**
|
20
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
21
|
+
* It is less efficient than using key. Only one of offset or key should
|
22
|
+
* be set.
|
23
|
+
*/
|
24
|
+
offset: Long;
|
25
|
+
/**
|
26
|
+
* limit is the total number of results to be returned in the result page.
|
27
|
+
* If left empty it will default to a value to be set by each app.
|
28
|
+
*/
|
29
|
+
limit: Long;
|
30
|
+
/**
|
31
|
+
* count_total is set to true to indicate that the result set should include
|
32
|
+
* a count of the total number of items available for pagination in UIs.
|
33
|
+
* count_total is only respected when offset is used. It is ignored when key
|
34
|
+
* is set.
|
35
|
+
*/
|
36
|
+
countTotal: boolean;
|
37
|
+
/**
|
38
|
+
* reverse is set to true if results are to be returned in the descending order.
|
39
|
+
*
|
40
|
+
* Since: cosmos-sdk 0.43
|
41
|
+
*/
|
42
|
+
reverse: boolean;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
46
|
+
* corresponding request message has used PageRequest.
|
47
|
+
*
|
48
|
+
* message SomeResponse {
|
49
|
+
* repeated Bar results = 1;
|
50
|
+
* PageResponse page = 2;
|
51
|
+
* }
|
52
|
+
*/
|
53
|
+
export interface PageResponse {
|
54
|
+
/**
|
55
|
+
* next_key is the key to be passed to PageRequest.key to
|
56
|
+
* query the next page most efficiently. It will be empty if
|
57
|
+
* there are no more results.
|
58
|
+
*/
|
59
|
+
nextKey: Uint8Array;
|
60
|
+
/**
|
61
|
+
* total is total number of results available if PageRequest.count_total
|
62
|
+
* was set, its value is undefined otherwise
|
63
|
+
*/
|
64
|
+
total: Long;
|
65
|
+
}
|
66
|
+
export declare const PageRequest: {
|
67
|
+
encode(message: PageRequest, writer?: _m0.Writer): _m0.Writer;
|
68
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest;
|
69
|
+
fromJSON(object: any): PageRequest;
|
70
|
+
toJSON(message: PageRequest): unknown;
|
71
|
+
fromPartial(object: DeepPartial<PageRequest>): PageRequest;
|
72
|
+
};
|
73
|
+
export declare const PageResponse: {
|
74
|
+
encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
|
75
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
|
76
|
+
fromJSON(object: any): PageResponse;
|
77
|
+
toJSON(message: PageResponse): unknown;
|
78
|
+
fromPartial(object: DeepPartial<PageResponse>): PageResponse;
|
79
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
3
|
+
/**
|
4
|
+
* Coin defines a token with a denomination and an amount.
|
5
|
+
*
|
6
|
+
* NOTE: The amount field is an Int which implements the custom method
|
7
|
+
* signatures required by gogoproto.
|
8
|
+
*/
|
9
|
+
export interface Coin {
|
10
|
+
denom: string;
|
11
|
+
amount: string;
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* DecCoin defines a token with a denomination and a decimal amount.
|
15
|
+
*
|
16
|
+
* NOTE: The amount field is an Dec which implements the custom method
|
17
|
+
* signatures required by gogoproto.
|
18
|
+
*/
|
19
|
+
export interface DecCoin {
|
20
|
+
denom: string;
|
21
|
+
amount: string;
|
22
|
+
}
|
23
|
+
/** IntProto defines a Protobuf wrapper around an Int object. */
|
24
|
+
export interface IntProto {
|
25
|
+
int: string;
|
26
|
+
}
|
27
|
+
/** DecProto defines a Protobuf wrapper around a Dec object. */
|
28
|
+
export interface DecProto {
|
29
|
+
dec: string;
|
30
|
+
}
|
31
|
+
export declare const Coin: {
|
32
|
+
encode(message: Coin, writer?: _m0.Writer): _m0.Writer;
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Coin;
|
34
|
+
fromJSON(object: any): Coin;
|
35
|
+
toJSON(message: Coin): unknown;
|
36
|
+
fromPartial(object: DeepPartial<Coin>): Coin;
|
37
|
+
};
|
38
|
+
export declare const DecCoin: {
|
39
|
+
encode(message: DecCoin, writer?: _m0.Writer): _m0.Writer;
|
40
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin;
|
41
|
+
fromJSON(object: any): DecCoin;
|
42
|
+
toJSON(message: DecCoin): unknown;
|
43
|
+
fromPartial(object: DeepPartial<DecCoin>): DecCoin;
|
44
|
+
};
|
45
|
+
export declare const IntProto: {
|
46
|
+
encode(message: IntProto, writer?: _m0.Writer): _m0.Writer;
|
47
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IntProto;
|
48
|
+
fromJSON(object: any): IntProto;
|
49
|
+
toJSON(message: IntProto): unknown;
|
50
|
+
fromPartial(object: DeepPartial<IntProto>): IntProto;
|
51
|
+
};
|
52
|
+
export declare const DecProto: {
|
53
|
+
encode(message: DecProto, writer?: _m0.Writer): _m0.Writer;
|
54
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DecProto;
|
55
|
+
fromJSON(object: any): DecProto;
|
56
|
+
toJSON(message: DecProto): unknown;
|
57
|
+
fromPartial(object: DeepPartial<DecProto>): DecProto;
|
58
|
+
};
|