@iconlake/client 1.3.1 → 1.5.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/dist/index.iife.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +35119 -30974
- package/dist/index.umd.js +4 -4
- package/package.json +2 -2
- package/types/amino.d.ts +90 -0
- package/types/client.d.ts +1 -0
- package/types/cosmos.authz.v1beta1/module.d.ts +15 -15
- package/types/cosmos.bank.v1beta1/module.d.ts +10 -10
- package/types/cosmos.distribution.v1beta1/module.d.ts +25 -25
- package/types/cosmos.feegrant.v1beta1/module.d.ts +10 -10
- package/types/cosmos.gov.v1/module.d.ts +21 -21
- package/types/cosmos.group.v1/module.d.ts +70 -70
- package/types/cosmos.staking.v1beta1/module.d.ts +29 -29
- package/types/cosmos.upgrade.v1beta1/module.d.ts +10 -10
- package/types/cosmos.vesting.v1beta1/module.d.ts +15 -15
- package/types/iconlake.drop/module.d.ts +11 -11
- package/types/iconlake.icon/module.d.ts +18 -18
- package/types/iconlake.icon/types/iconlake/icon/tx.d.ts +3 -3
- package/types/iconlake.lake/index.d.ts +5 -0
- package/types/iconlake.lake/module.d.ts +55 -0
- package/types/iconlake.lake/registry.d.ts +3 -0
- package/types/iconlake.lake/rest.d.ts +183 -0
- package/types/iconlake.lake/types/cosmos/base/query/v1beta1/pagination.d.ts +108 -0
- package/types/iconlake.lake/types/gogoproto/gogo.d.ts +1 -0
- package/types/iconlake.lake/types/google/api/annotations.d.ts +1 -0
- package/types/iconlake.lake/types/google/api/http.d.ts +1634 -0
- package/types/iconlake.lake/types/google/protobuf/descriptor.d.ts +50957 -0
- package/types/iconlake.lake/types/iconlake/lake/allowed_sender.d.ts +27 -0
- package/types/iconlake.lake/types/iconlake/lake/genesis.d.ts +43 -0
- package/types/iconlake.lake/types/iconlake/lake/params.d.ts +23 -0
- package/types/iconlake.lake/types/iconlake/lake/query.d.ts +162 -0
- package/types/iconlake.lake/types/iconlake/lake/tx.d.ts +103 -0
- package/types/iconlake.lake/types.d.ts +3 -0
- package/types/iconlake.license/index.d.ts +5 -0
- package/types/iconlake.license/module.d.ts +77 -0
- package/types/iconlake.license/registry.d.ts +3 -0
- package/types/iconlake.license/rest.d.ts +305 -0
- package/types/iconlake.license/types/cosmos/base/query/v1beta1/pagination.d.ts +108 -0
- package/types/iconlake.license/types/gogoproto/gogo.d.ts +1 -0
- package/types/iconlake.license/types/google/api/annotations.d.ts +1 -0
- package/types/iconlake.license/types/google/api/http.d.ts +1634 -0
- package/types/iconlake.license/types/google/protobuf/descriptor.d.ts +50957 -0
- package/types/iconlake.license/types/iconlake/license/genesis.d.ts +132 -0
- package/types/iconlake.license/types/iconlake/license/license_template.d.ts +48 -0
- package/types/iconlake.license/types/iconlake/license/params.d.ts +31 -0
- package/types/iconlake.license/types/iconlake/license/query.d.ts +581 -0
- package/types/iconlake.license/types/iconlake/license/tx.d.ts +246 -0
- package/types/iconlake.license/types/iconlake/license/user_license.d.ts +42 -0
- package/types/iconlake.license/types.d.ts +4 -0
- package/types/index.d.ts +215 -149
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { StdFee } from "@cosmjs/launchpad";
|
|
2
|
+
import { DeliverTxResponse } from "@cosmjs/stargate";
|
|
3
|
+
import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
4
|
+
import { IgniteClient } from "../client";
|
|
5
|
+
import { Api } from "./rest";
|
|
6
|
+
import { MsgCreateAllowedSender } from "./types/iconlake/lake/tx";
|
|
7
|
+
import { MsgDeleteAllowedSender } from "./types/iconlake/lake/tx";
|
|
8
|
+
export { MsgCreateAllowedSender, MsgDeleteAllowedSender };
|
|
9
|
+
type sendMsgCreateAllowedSenderParams = {
|
|
10
|
+
value: MsgCreateAllowedSender;
|
|
11
|
+
fee?: StdFee;
|
|
12
|
+
memo?: string;
|
|
13
|
+
};
|
|
14
|
+
type sendMsgDeleteAllowedSenderParams = {
|
|
15
|
+
value: MsgDeleteAllowedSender;
|
|
16
|
+
fee?: StdFee;
|
|
17
|
+
memo?: string;
|
|
18
|
+
};
|
|
19
|
+
type msgCreateAllowedSenderParams = {
|
|
20
|
+
value: MsgCreateAllowedSender;
|
|
21
|
+
};
|
|
22
|
+
type msgDeleteAllowedSenderParams = {
|
|
23
|
+
value: MsgDeleteAllowedSender;
|
|
24
|
+
};
|
|
25
|
+
export declare const registry: Registry;
|
|
26
|
+
interface TxClientOptions {
|
|
27
|
+
addr: string;
|
|
28
|
+
prefix: string;
|
|
29
|
+
signer?: OfflineSigner;
|
|
30
|
+
}
|
|
31
|
+
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
32
|
+
sendMsgCreateAllowedSender({ value, fee, memo }: sendMsgCreateAllowedSenderParams): Promise<DeliverTxResponse>;
|
|
33
|
+
sendMsgDeleteAllowedSender({ value, fee, memo }: sendMsgDeleteAllowedSenderParams): Promise<DeliverTxResponse>;
|
|
34
|
+
msgCreateAllowedSender({ value }: msgCreateAllowedSenderParams): EncodeObject;
|
|
35
|
+
msgDeleteAllowedSender({ value }: msgDeleteAllowedSenderParams): EncodeObject;
|
|
36
|
+
};
|
|
37
|
+
interface QueryClientOptions {
|
|
38
|
+
addr: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Api<unknown>;
|
|
41
|
+
declare class SDKModule {
|
|
42
|
+
query: ReturnType<typeof queryClient>;
|
|
43
|
+
tx: ReturnType<typeof txClient>;
|
|
44
|
+
structure: Record<string, unknown>;
|
|
45
|
+
registry: Array<[string, GeneratedType]>;
|
|
46
|
+
constructor(client: IgniteClient);
|
|
47
|
+
updateTX(client: IgniteClient): void;
|
|
48
|
+
}
|
|
49
|
+
declare const Module: (test: IgniteClient) => {
|
|
50
|
+
module: {
|
|
51
|
+
IconlakeLake: SDKModule;
|
|
52
|
+
};
|
|
53
|
+
registry: [string, GeneratedType][];
|
|
54
|
+
};
|
|
55
|
+
export default Module;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
export interface LakeAllowedSender {
|
|
2
|
+
address?: string;
|
|
3
|
+
}
|
|
4
|
+
export type LakeMsgCreateAllowedSenderResponse = object;
|
|
5
|
+
export type LakeMsgDeleteAllowedSenderResponse = object;
|
|
6
|
+
/**
|
|
7
|
+
* Params defines the parameters for the module.
|
|
8
|
+
*/
|
|
9
|
+
export type LakeParams = object;
|
|
10
|
+
export interface LakeQueryAllAllowedSenderResponse {
|
|
11
|
+
allowedSender?: LakeAllowedSender[];
|
|
12
|
+
/**
|
|
13
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
14
|
+
* corresponding request message has used PageRequest.
|
|
15
|
+
*
|
|
16
|
+
* message SomeResponse {
|
|
17
|
+
* repeated Bar results = 1;
|
|
18
|
+
* PageResponse page = 2;
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
pagination?: V1Beta1PageResponse;
|
|
22
|
+
}
|
|
23
|
+
export interface LakeQueryGetAllowedSenderResponse {
|
|
24
|
+
allowedSender?: LakeAllowedSender;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* QueryParamsResponse is response type for the Query/Params RPC method.
|
|
28
|
+
*/
|
|
29
|
+
export interface LakeQueryParamsResponse {
|
|
30
|
+
/** params holds all the parameters of this module. */
|
|
31
|
+
params?: LakeParams;
|
|
32
|
+
}
|
|
33
|
+
export interface ProtobufAny {
|
|
34
|
+
"@type"?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface RpcStatus {
|
|
37
|
+
/** @format int32 */
|
|
38
|
+
code?: number;
|
|
39
|
+
message?: string;
|
|
40
|
+
details?: ProtobufAny[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* message SomeRequest {
|
|
44
|
+
Foo some_parameter = 1;
|
|
45
|
+
PageRequest pagination = 2;
|
|
46
|
+
}
|
|
47
|
+
*/
|
|
48
|
+
export interface V1Beta1PageRequest {
|
|
49
|
+
/**
|
|
50
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
51
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
52
|
+
* should be set.
|
|
53
|
+
* @format byte
|
|
54
|
+
*/
|
|
55
|
+
key?: string;
|
|
56
|
+
/**
|
|
57
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
58
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
59
|
+
* be set.
|
|
60
|
+
* @format uint64
|
|
61
|
+
*/
|
|
62
|
+
offset?: string;
|
|
63
|
+
/**
|
|
64
|
+
* limit is the total number of results to be returned in the result page.
|
|
65
|
+
* If left empty it will default to a value to be set by each app.
|
|
66
|
+
* @format uint64
|
|
67
|
+
*/
|
|
68
|
+
limit?: string;
|
|
69
|
+
/**
|
|
70
|
+
* count_total is set to true to indicate that the result set should include
|
|
71
|
+
* a count of the total number of items available for pagination in UIs.
|
|
72
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
73
|
+
* is set.
|
|
74
|
+
*/
|
|
75
|
+
count_total?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
78
|
+
*
|
|
79
|
+
* Since: cosmos-sdk 0.43
|
|
80
|
+
*/
|
|
81
|
+
reverse?: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
85
|
+
corresponding request message has used PageRequest.
|
|
86
|
+
|
|
87
|
+
message SomeResponse {
|
|
88
|
+
repeated Bar results = 1;
|
|
89
|
+
PageResponse page = 2;
|
|
90
|
+
}
|
|
91
|
+
*/
|
|
92
|
+
export interface V1Beta1PageResponse {
|
|
93
|
+
/**
|
|
94
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
95
|
+
* query the next page most efficiently. It will be empty if
|
|
96
|
+
* there are no more results.
|
|
97
|
+
* @format byte
|
|
98
|
+
*/
|
|
99
|
+
next_key?: string;
|
|
100
|
+
/**
|
|
101
|
+
* total is total number of results available if PageRequest.count_total
|
|
102
|
+
* was set, its value is undefined otherwise
|
|
103
|
+
* @format uint64
|
|
104
|
+
*/
|
|
105
|
+
total?: string;
|
|
106
|
+
}
|
|
107
|
+
import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
108
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
109
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
110
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
111
|
+
secure?: boolean;
|
|
112
|
+
/** request path */
|
|
113
|
+
path: string;
|
|
114
|
+
/** content type of request body */
|
|
115
|
+
type?: ContentType;
|
|
116
|
+
/** query params */
|
|
117
|
+
query?: QueryParamsType;
|
|
118
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
119
|
+
format?: ResponseType;
|
|
120
|
+
/** request body */
|
|
121
|
+
body?: unknown;
|
|
122
|
+
}
|
|
123
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
124
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
125
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
126
|
+
secure?: boolean;
|
|
127
|
+
format?: ResponseType;
|
|
128
|
+
}
|
|
129
|
+
export declare enum ContentType {
|
|
130
|
+
Json = "application/json",
|
|
131
|
+
FormData = "multipart/form-data",
|
|
132
|
+
UrlEncoded = "application/x-www-form-urlencoded"
|
|
133
|
+
}
|
|
134
|
+
export declare class HttpClient<SecurityDataType = unknown> {
|
|
135
|
+
instance: AxiosInstance;
|
|
136
|
+
private securityData;
|
|
137
|
+
private securityWorker?;
|
|
138
|
+
private secure?;
|
|
139
|
+
private format?;
|
|
140
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
141
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
142
|
+
private mergeRequestParams;
|
|
143
|
+
private createFormData;
|
|
144
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @title iconlake/lake/allowed_sender.proto
|
|
148
|
+
* @version version not set
|
|
149
|
+
*/
|
|
150
|
+
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
151
|
+
/**
|
|
152
|
+
* No description
|
|
153
|
+
*
|
|
154
|
+
* @tags Query
|
|
155
|
+
* @name QueryAllowedSenderAll
|
|
156
|
+
* @request GET:/iconlake/lake/allowed_sender
|
|
157
|
+
*/
|
|
158
|
+
queryAllowedSenderAll: (query?: {
|
|
159
|
+
"pagination.key"?: string;
|
|
160
|
+
"pagination.offset"?: string;
|
|
161
|
+
"pagination.limit"?: string;
|
|
162
|
+
"pagination.count_total"?: boolean;
|
|
163
|
+
"pagination.reverse"?: boolean;
|
|
164
|
+
}, params?: RequestParams) => Promise<AxiosResponse<LakeQueryAllAllowedSenderResponse>>;
|
|
165
|
+
/**
|
|
166
|
+
* No description
|
|
167
|
+
*
|
|
168
|
+
* @tags Query
|
|
169
|
+
* @name QueryAllowedSender
|
|
170
|
+
* @summary Queries a list of AllowedSender items.
|
|
171
|
+
* @request GET:/iconlake/lake/allowed_sender/{address}
|
|
172
|
+
*/
|
|
173
|
+
queryAllowedSender: (address: string, params?: RequestParams) => Promise<AxiosResponse<LakeQueryGetAllowedSenderResponse>>;
|
|
174
|
+
/**
|
|
175
|
+
* No description
|
|
176
|
+
*
|
|
177
|
+
* @tags Query
|
|
178
|
+
* @name QueryParams
|
|
179
|
+
* @summary Parameters queries the parameters of the module.
|
|
180
|
+
* @request GET:/iconlake/lake/params
|
|
181
|
+
*/
|
|
182
|
+
queryParams: (params?: RequestParams) => Promise<AxiosResponse<LakeQueryParamsResponse>>;
|
|
183
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "cosmos.base.query.v1beta1";
|
|
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: number;
|
|
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: number;
|
|
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: number;
|
|
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<I extends {
|
|
72
|
+
key?: Uint8Array;
|
|
73
|
+
offset?: number;
|
|
74
|
+
limit?: number;
|
|
75
|
+
countTotal?: boolean;
|
|
76
|
+
reverse?: boolean;
|
|
77
|
+
} & {
|
|
78
|
+
key?: Uint8Array;
|
|
79
|
+
offset?: number;
|
|
80
|
+
limit?: number;
|
|
81
|
+
countTotal?: boolean;
|
|
82
|
+
reverse?: boolean;
|
|
83
|
+
} & { [K in Exclude<keyof I, keyof PageRequest>]: never; }>(object: I): PageRequest;
|
|
84
|
+
};
|
|
85
|
+
export declare const PageResponse: {
|
|
86
|
+
encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
|
|
87
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
|
|
88
|
+
fromJSON(object: any): PageResponse;
|
|
89
|
+
toJSON(message: PageResponse): unknown;
|
|
90
|
+
fromPartial<I extends {
|
|
91
|
+
nextKey?: Uint8Array;
|
|
92
|
+
total?: number;
|
|
93
|
+
} & {
|
|
94
|
+
nextKey?: Uint8Array;
|
|
95
|
+
total?: number;
|
|
96
|
+
} & { [K in Exclude<keyof I, keyof PageResponse>]: never; }>(object: I): PageResponse;
|
|
97
|
+
};
|
|
98
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
99
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
100
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
101
|
+
} : Partial<T>;
|
|
102
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
103
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
104
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
105
|
+
} & {
|
|
106
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
107
|
+
};
|
|
108
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const protobufPackage = "gogoproto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const protobufPackage = "google.api";
|