@verana-labs/verana-types 0.10.1-dev.2 → 0.10.1-dev.21
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/README.md +1 -1
- package/dist/amino-converter/co.d.ts +3 -0
- package/dist/amino-converter/co.js +164 -0
- package/dist/amino-converter/cs.d.ts +7 -0
- package/dist/amino-converter/cs.js +169 -0
- package/dist/amino-converter/de.d.ts +3 -0
- package/dist/amino-converter/de.js +51 -0
- package/dist/amino-converter/di.d.ts +2 -0
- package/dist/amino-converter/di.js +23 -0
- package/dist/amino-converter/ec.d.ts +4 -0
- package/dist/amino-converter/ec.js +63 -0
- package/dist/amino-converter/gf.d.ts +3 -0
- package/dist/amino-converter/gf.js +48 -0
- package/dist/amino-converter/group.d.ts +3 -0
- package/dist/amino-converter/group.js +91 -0
- package/dist/amino-converter/pp.d.ts +13 -0
- package/dist/amino-converter/pp.js +347 -0
- package/dist/amino-converter/td.d.ts +4 -0
- package/dist/amino-converter/td.js +46 -0
- package/dist/amino-converter/util/helpers.d.ts +30 -0
- package/dist/amino-converter/util/helpers.js +88 -0
- package/dist/amino-converter/xr.d.ts +6 -0
- package/dist/amino-converter/xr.js +106 -0
- package/dist/codec/cosmos/base/v1beta1/coin.d.ts +1 -1
- package/dist/codec/google/protobuf/any.d.ts +143 -0
- package/dist/codec/{verana/dd/v1/params.js → google/protobuf/any.js} +46 -39
- package/dist/codec/google/protobuf/descriptor.d.ts +5 -0
- package/dist/codec/google/protobuf/descriptor.js +16 -2
- package/dist/codec/google/protobuf/timestamp.d.ts +3 -3
- package/dist/codec/verana/{perm/module → co/module/v1}/module.d.ts +5 -2
- package/dist/codec/verana/{perm/module → co/module/v1}/module.js +2 -2
- package/dist/codec/verana/co/v1/genesis.d.ts +28 -0
- package/dist/codec/verana/{dd → co}/v1/genesis.js +11 -11
- package/dist/codec/verana/co/v1/params.d.ts +29 -0
- package/dist/codec/verana/co/v1/params.js +81 -0
- package/dist/codec/verana/co/v1/query.d.ts +111 -0
- package/dist/codec/verana/{dd → co}/v1/query.js +151 -117
- package/dist/codec/verana/co/v1/tx.d.ts +172 -0
- package/dist/codec/verana/co/v1/tx.js +639 -0
- package/dist/codec/verana/co/v1/types.d.ts +60 -0
- package/dist/codec/verana/co/v1/types.js +384 -0
- package/dist/codec/verana/cs/v1/query.d.ts +57 -5
- package/dist/codec/verana/cs/v1/query.js +297 -38
- package/dist/codec/verana/cs/v1/tx.d.ts +107 -12
- package/dist/codec/verana/cs/v1/tx.js +548 -64
- package/dist/codec/verana/cs/v1/types.d.ts +75 -16
- package/dist/codec/verana/cs/v1/types.js +419 -82
- package/dist/codec/verana/de/v1/genesis.d.ts +7 -0
- package/dist/codec/verana/de/v1/genesis.js +57 -2
- package/dist/codec/verana/de/v1/query.d.ts +109 -3
- package/dist/codec/verana/de/v1/query.js +396 -10
- package/dist/codec/verana/de/v1/tx.d.ts +22 -10
- package/dist/codec/verana/de/v1/tx.js +16 -16
- package/dist/codec/verana/de/v1/types.d.ts +104 -21
- package/dist/codec/verana/de/v1/types.js +313 -83
- package/dist/codec/verana/di/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/di/module/v1/module.js +98 -0
- package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +5 -4
- package/dist/codec/verana/di/v1/genesis.js +119 -0
- package/dist/codec/verana/di/v1/params.d.ts +24 -0
- package/dist/codec/verana/di/v1/params.js +81 -0
- package/dist/codec/verana/di/v1/query.d.ts +99 -0
- package/dist/codec/verana/di/v1/query.js +349 -0
- package/dist/codec/verana/di/v1/tx.d.ts +120 -0
- package/dist/codec/verana/di/v1/tx.js +409 -0
- package/dist/codec/verana/{dd → ec}/module/module.d.ts +1 -1
- package/dist/codec/verana/{dd → ec}/module/module.js +2 -2
- package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
- package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
- package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
- package/dist/codec/verana/ec/v1/query.d.ts +109 -0
- package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
- package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
- package/dist/codec/verana/{dd → ec}/v1/tx.js +218 -216
- package/dist/codec/verana/ec/v1/types.d.ts +67 -0
- package/dist/codec/verana/ec/v1/types.js +422 -0
- package/dist/codec/verana/gf/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/gf/module/v1/module.js +98 -0
- package/dist/codec/verana/gf/v1/genesis.d.ts +29 -0
- package/dist/codec/verana/gf/v1/genesis.js +137 -0
- package/dist/codec/verana/gf/v1/params.d.ts +28 -0
- package/dist/codec/verana/gf/v1/params.js +81 -0
- package/dist/codec/verana/gf/v1/query.d.ts +108 -0
- package/dist/codec/verana/gf/v1/query.js +462 -0
- package/dist/codec/verana/gf/v1/tx.d.ts +142 -0
- package/dist/codec/verana/gf/v1/tx.js +486 -0
- package/dist/codec/verana/{tr → gf}/v1/types.d.ts +18 -51
- package/dist/codec/verana/gf/v1/types.js +477 -0
- package/dist/codec/verana/{tr → pp}/module/module.d.ts +1 -1
- package/dist/codec/verana/{tr → pp}/module/module.js +2 -2
- package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
- package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
- package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
- package/dist/codec/verana/pp/v1/query.d.ts +220 -0
- package/dist/codec/verana/{perm → pp}/v1/query.js +305 -166
- package/dist/codec/verana/pp/v1/tx.d.ts +479 -0
- package/dist/codec/verana/pp/v1/tx.js +2574 -0
- package/dist/codec/verana/pp/v1/types.d.ts +137 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +312 -354
- package/dist/codec/verana/td/v1/genesis.d.ts +13 -3
- package/dist/codec/verana/td/v1/genesis.js +151 -35
- package/dist/codec/verana/td/v1/params.d.ts +2 -0
- package/dist/codec/verana/td/v1/params.js +18 -1
- package/dist/codec/verana/td/v1/query.d.ts +1 -1
- package/dist/codec/verana/td/v1/query.js +24 -10
- package/dist/codec/verana/td/v1/tx.d.ts +26 -40
- package/dist/codec/verana/td/v1/tx.js +80 -190
- package/dist/codec/verana/td/v1/types.d.ts +8 -8
- package/dist/codec/verana/td/v1/types.js +54 -69
- package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/xr/module/v1/module.js +98 -0
- package/dist/codec/verana/xr/v1/genesis.d.ts +34 -0
- package/dist/codec/verana/xr/v1/genesis.js +166 -0
- package/dist/codec/verana/{dd → xr}/v1/params.d.ts +4 -3
- package/dist/codec/verana/xr/v1/params.js +104 -0
- package/dist/codec/verana/xr/v1/query.d.ts +166 -0
- package/dist/codec/verana/xr/v1/query.js +817 -0
- package/dist/codec/verana/xr/v1/tx.d.ts +284 -0
- package/dist/codec/verana/xr/v1/tx.js +1298 -0
- package/dist/helpers/aminoConverters.d.ts +10 -32
- package/dist/helpers/aminoConverters.js +23 -589
- package/dist/index.d.ts +11 -1
- package/dist/index.js +11 -1
- package/dist/signing.d.ts +75 -0
- package/dist/signing.js +147 -0
- package/package.json +32 -6
- package/dist/codec/verana/dd/v1/query.d.ts +0 -108
- package/dist/codec/verana/dd/v1/tx.d.ts +0 -173
- package/dist/codec/verana/dd/v1/types.d.ts +0 -30
- package/dist/codec/verana/dd/v1/types.js +0 -206
- package/dist/codec/verana/perm/v1/query.d.ts +0 -209
- package/dist/codec/verana/perm/v1/tx.d.ts +0 -395
- package/dist/codec/verana/perm/v1/tx.js +0 -1995
- package/dist/codec/verana/perm/v1/types.d.ts +0 -134
- package/dist/codec/verana/tr/v1/query.d.ts +0 -118
- package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
- package/dist/codec/verana/tr/v1/tx.js +0 -956
- package/dist/codec/verana/tr/v1/types.js +0 -839
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
3
|
+
import { PricingAssetType } from "../../cs/v1/types";
|
|
4
|
+
import { Params } from "./params";
|
|
5
|
+
export declare const protobufPackage = "verana.xr.v1";
|
|
6
|
+
/** ExchangeRate defines the storage type for an exchange rate entry. */
|
|
7
|
+
export interface ExchangeRate {
|
|
8
|
+
id: number;
|
|
9
|
+
baseAssetType: PricingAssetType;
|
|
10
|
+
baseAsset: string;
|
|
11
|
+
quoteAssetType: PricingAssetType;
|
|
12
|
+
quoteAsset: string;
|
|
13
|
+
rate: string;
|
|
14
|
+
rateScale: number;
|
|
15
|
+
validityDuration: Duration | undefined;
|
|
16
|
+
expires: Date | undefined;
|
|
17
|
+
state: boolean;
|
|
18
|
+
updated: Date | undefined;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ExchangeRateAuthorization designates which operator account is authorized to
|
|
22
|
+
* push fresh values for a given ExchangeRate, with optional anti-spam
|
|
23
|
+
* (min_interval) and circuit-breaker (max_deviation_bps) bounds. Keyed by
|
|
24
|
+
* (xr_id, operator). Zero min_interval / max_deviation_bps means "unset".
|
|
25
|
+
*/
|
|
26
|
+
export interface ExchangeRateAuthorization {
|
|
27
|
+
xrId: number;
|
|
28
|
+
operator: string;
|
|
29
|
+
expiration: Date | undefined;
|
|
30
|
+
minInterval: Duration | undefined;
|
|
31
|
+
maxDeviationBps: number;
|
|
32
|
+
}
|
|
33
|
+
/** MsgCreateExchangeRate is the Msg/CreateExchangeRate request type. */
|
|
34
|
+
export interface MsgCreateExchangeRate {
|
|
35
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
36
|
+
authority: string;
|
|
37
|
+
baseAssetType: PricingAssetType;
|
|
38
|
+
baseAsset: string;
|
|
39
|
+
quoteAssetType: PricingAssetType;
|
|
40
|
+
quoteAsset: string;
|
|
41
|
+
rate: string;
|
|
42
|
+
rateScale: number;
|
|
43
|
+
validityDuration: Duration | undefined;
|
|
44
|
+
state: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** MsgCreateExchangeRateResponse defines the response for MsgCreateExchangeRate. */
|
|
47
|
+
export interface MsgCreateExchangeRateResponse {
|
|
48
|
+
id: number;
|
|
49
|
+
}
|
|
50
|
+
/** MsgUpdateExchangeRate is the Msg/UpdateExchangeRate request type. [MOD-XR-MSG-2] */
|
|
51
|
+
export interface MsgUpdateExchangeRate {
|
|
52
|
+
/** operator is the authorized operator executing this message. */
|
|
53
|
+
operator: string;
|
|
54
|
+
/** id is the exchange rate entry to update. */
|
|
55
|
+
id: number;
|
|
56
|
+
/** rate is the new exchange rate value. */
|
|
57
|
+
rate: string;
|
|
58
|
+
}
|
|
59
|
+
/** MsgUpdateExchangeRateResponse defines the response for MsgUpdateExchangeRate. */
|
|
60
|
+
export interface MsgUpdateExchangeRateResponse {
|
|
61
|
+
}
|
|
62
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
63
|
+
export interface MsgUpdateParams {
|
|
64
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
65
|
+
authority: string;
|
|
66
|
+
/**
|
|
67
|
+
* params defines the module parameters to update.
|
|
68
|
+
*
|
|
69
|
+
* NOTE: All parameters must be supplied.
|
|
70
|
+
*/
|
|
71
|
+
params: Params | undefined;
|
|
72
|
+
}
|
|
73
|
+
/** MsgSetExchangeRateState is the Msg/SetExchangeRateState request type. */
|
|
74
|
+
export interface MsgSetExchangeRateState {
|
|
75
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
76
|
+
authority: string;
|
|
77
|
+
/** id is the exchange rate entry to toggle. */
|
|
78
|
+
id: number;
|
|
79
|
+
/** state is the desired state: true for enabled, false for disabled. */
|
|
80
|
+
state: boolean;
|
|
81
|
+
}
|
|
82
|
+
/** MsgSetExchangeRateStateResponse defines the response for MsgSetExchangeRateState. */
|
|
83
|
+
export interface MsgSetExchangeRateStateResponse {
|
|
84
|
+
}
|
|
85
|
+
/** MsgGrantExchangeRateAuthorization is the Msg/GrantExchangeRateAuthorization request type. [MOD-XR-MSG-4] */
|
|
86
|
+
export interface MsgGrantExchangeRateAuthorization {
|
|
87
|
+
/** authority is the gov module account. */
|
|
88
|
+
authority: string;
|
|
89
|
+
/** xr_id is the exchange rate the operator is authorized to update. */
|
|
90
|
+
xrId: number;
|
|
91
|
+
/** operator is the account authorized to update the exchange rate. */
|
|
92
|
+
operator: string;
|
|
93
|
+
/** expiration is when the authorization expires (must be in the future). */
|
|
94
|
+
expiration: Date | undefined;
|
|
95
|
+
/** min_interval is the minimum time between successful updates (optional anti-spam). */
|
|
96
|
+
minInterval: Duration | undefined;
|
|
97
|
+
/** max_deviation_bps is the max allowed rate change in basis points, (0, 10000] (optional circuit breaker). */
|
|
98
|
+
maxDeviationBps: number;
|
|
99
|
+
}
|
|
100
|
+
/** MsgGrantExchangeRateAuthorizationResponse defines the response for MsgGrantExchangeRateAuthorization. */
|
|
101
|
+
export interface MsgGrantExchangeRateAuthorizationResponse {
|
|
102
|
+
}
|
|
103
|
+
/** MsgRevokeExchangeRateAuthorization is the Msg/RevokeExchangeRateAuthorization request type. [MOD-XR-MSG-5] */
|
|
104
|
+
export interface MsgRevokeExchangeRateAuthorization {
|
|
105
|
+
/** authority is the gov module account. */
|
|
106
|
+
authority: string;
|
|
107
|
+
/** xr_id is the exchange rate the authorization is for. */
|
|
108
|
+
xrId: number;
|
|
109
|
+
/** operator is the account whose authorization is revoked. */
|
|
110
|
+
operator: string;
|
|
111
|
+
}
|
|
112
|
+
/** MsgRevokeExchangeRateAuthorizationResponse defines the response for MsgRevokeExchangeRateAuthorization. */
|
|
113
|
+
export interface MsgRevokeExchangeRateAuthorizationResponse {
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
117
|
+
* MsgUpdateParams message.
|
|
118
|
+
*/
|
|
119
|
+
export interface MsgUpdateParamsResponse {
|
|
120
|
+
}
|
|
121
|
+
export declare const ExchangeRate: {
|
|
122
|
+
encode(message: ExchangeRate, writer?: _m0.Writer): _m0.Writer;
|
|
123
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExchangeRate;
|
|
124
|
+
fromJSON(object: any): ExchangeRate;
|
|
125
|
+
toJSON(message: ExchangeRate): unknown;
|
|
126
|
+
create<I extends Exact<DeepPartial<ExchangeRate>, I>>(base?: I): ExchangeRate;
|
|
127
|
+
fromPartial<I extends Exact<DeepPartial<ExchangeRate>, I>>(object: I): ExchangeRate;
|
|
128
|
+
};
|
|
129
|
+
export declare const ExchangeRateAuthorization: {
|
|
130
|
+
encode(message: ExchangeRateAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
131
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExchangeRateAuthorization;
|
|
132
|
+
fromJSON(object: any): ExchangeRateAuthorization;
|
|
133
|
+
toJSON(message: ExchangeRateAuthorization): unknown;
|
|
134
|
+
create<I extends Exact<DeepPartial<ExchangeRateAuthorization>, I>>(base?: I): ExchangeRateAuthorization;
|
|
135
|
+
fromPartial<I extends Exact<DeepPartial<ExchangeRateAuthorization>, I>>(object: I): ExchangeRateAuthorization;
|
|
136
|
+
};
|
|
137
|
+
export declare const MsgCreateExchangeRate: {
|
|
138
|
+
encode(message: MsgCreateExchangeRate, writer?: _m0.Writer): _m0.Writer;
|
|
139
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateExchangeRate;
|
|
140
|
+
fromJSON(object: any): MsgCreateExchangeRate;
|
|
141
|
+
toJSON(message: MsgCreateExchangeRate): unknown;
|
|
142
|
+
create<I extends Exact<DeepPartial<MsgCreateExchangeRate>, I>>(base?: I): MsgCreateExchangeRate;
|
|
143
|
+
fromPartial<I extends Exact<DeepPartial<MsgCreateExchangeRate>, I>>(object: I): MsgCreateExchangeRate;
|
|
144
|
+
};
|
|
145
|
+
export declare const MsgCreateExchangeRateResponse: {
|
|
146
|
+
encode(message: MsgCreateExchangeRateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
147
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateExchangeRateResponse;
|
|
148
|
+
fromJSON(object: any): MsgCreateExchangeRateResponse;
|
|
149
|
+
toJSON(message: MsgCreateExchangeRateResponse): unknown;
|
|
150
|
+
create<I extends Exact<DeepPartial<MsgCreateExchangeRateResponse>, I>>(base?: I): MsgCreateExchangeRateResponse;
|
|
151
|
+
fromPartial<I extends Exact<DeepPartial<MsgCreateExchangeRateResponse>, I>>(object: I): MsgCreateExchangeRateResponse;
|
|
152
|
+
};
|
|
153
|
+
export declare const MsgUpdateExchangeRate: {
|
|
154
|
+
encode(message: MsgUpdateExchangeRate, writer?: _m0.Writer): _m0.Writer;
|
|
155
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateExchangeRate;
|
|
156
|
+
fromJSON(object: any): MsgUpdateExchangeRate;
|
|
157
|
+
toJSON(message: MsgUpdateExchangeRate): unknown;
|
|
158
|
+
create<I extends Exact<DeepPartial<MsgUpdateExchangeRate>, I>>(base?: I): MsgUpdateExchangeRate;
|
|
159
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateExchangeRate>, I>>(object: I): MsgUpdateExchangeRate;
|
|
160
|
+
};
|
|
161
|
+
export declare const MsgUpdateExchangeRateResponse: {
|
|
162
|
+
encode(_: MsgUpdateExchangeRateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
163
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateExchangeRateResponse;
|
|
164
|
+
fromJSON(_: any): MsgUpdateExchangeRateResponse;
|
|
165
|
+
toJSON(_: MsgUpdateExchangeRateResponse): unknown;
|
|
166
|
+
create<I extends Exact<DeepPartial<MsgUpdateExchangeRateResponse>, I>>(base?: I): MsgUpdateExchangeRateResponse;
|
|
167
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateExchangeRateResponse>, I>>(_: I): MsgUpdateExchangeRateResponse;
|
|
168
|
+
};
|
|
169
|
+
export declare const MsgUpdateParams: {
|
|
170
|
+
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
171
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams;
|
|
172
|
+
fromJSON(object: any): MsgUpdateParams;
|
|
173
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
174
|
+
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams;
|
|
175
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams;
|
|
176
|
+
};
|
|
177
|
+
export declare const MsgSetExchangeRateState: {
|
|
178
|
+
encode(message: MsgSetExchangeRateState, writer?: _m0.Writer): _m0.Writer;
|
|
179
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetExchangeRateState;
|
|
180
|
+
fromJSON(object: any): MsgSetExchangeRateState;
|
|
181
|
+
toJSON(message: MsgSetExchangeRateState): unknown;
|
|
182
|
+
create<I extends Exact<DeepPartial<MsgSetExchangeRateState>, I>>(base?: I): MsgSetExchangeRateState;
|
|
183
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetExchangeRateState>, I>>(object: I): MsgSetExchangeRateState;
|
|
184
|
+
};
|
|
185
|
+
export declare const MsgSetExchangeRateStateResponse: {
|
|
186
|
+
encode(_: MsgSetExchangeRateStateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
187
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetExchangeRateStateResponse;
|
|
188
|
+
fromJSON(_: any): MsgSetExchangeRateStateResponse;
|
|
189
|
+
toJSON(_: MsgSetExchangeRateStateResponse): unknown;
|
|
190
|
+
create<I extends Exact<DeepPartial<MsgSetExchangeRateStateResponse>, I>>(base?: I): MsgSetExchangeRateStateResponse;
|
|
191
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetExchangeRateStateResponse>, I>>(_: I): MsgSetExchangeRateStateResponse;
|
|
192
|
+
};
|
|
193
|
+
export declare const MsgGrantExchangeRateAuthorization: {
|
|
194
|
+
encode(message: MsgGrantExchangeRateAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
195
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantExchangeRateAuthorization;
|
|
196
|
+
fromJSON(object: any): MsgGrantExchangeRateAuthorization;
|
|
197
|
+
toJSON(message: MsgGrantExchangeRateAuthorization): unknown;
|
|
198
|
+
create<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorization>, I>>(base?: I): MsgGrantExchangeRateAuthorization;
|
|
199
|
+
fromPartial<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorization>, I>>(object: I): MsgGrantExchangeRateAuthorization;
|
|
200
|
+
};
|
|
201
|
+
export declare const MsgGrantExchangeRateAuthorizationResponse: {
|
|
202
|
+
encode(_: MsgGrantExchangeRateAuthorizationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
203
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantExchangeRateAuthorizationResponse;
|
|
204
|
+
fromJSON(_: any): MsgGrantExchangeRateAuthorizationResponse;
|
|
205
|
+
toJSON(_: MsgGrantExchangeRateAuthorizationResponse): unknown;
|
|
206
|
+
create<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorizationResponse>, I>>(base?: I): MsgGrantExchangeRateAuthorizationResponse;
|
|
207
|
+
fromPartial<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorizationResponse>, I>>(_: I): MsgGrantExchangeRateAuthorizationResponse;
|
|
208
|
+
};
|
|
209
|
+
export declare const MsgRevokeExchangeRateAuthorization: {
|
|
210
|
+
encode(message: MsgRevokeExchangeRateAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeExchangeRateAuthorization;
|
|
212
|
+
fromJSON(object: any): MsgRevokeExchangeRateAuthorization;
|
|
213
|
+
toJSON(message: MsgRevokeExchangeRateAuthorization): unknown;
|
|
214
|
+
create<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorization>, I>>(base?: I): MsgRevokeExchangeRateAuthorization;
|
|
215
|
+
fromPartial<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorization>, I>>(object: I): MsgRevokeExchangeRateAuthorization;
|
|
216
|
+
};
|
|
217
|
+
export declare const MsgRevokeExchangeRateAuthorizationResponse: {
|
|
218
|
+
encode(_: MsgRevokeExchangeRateAuthorizationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
219
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeExchangeRateAuthorizationResponse;
|
|
220
|
+
fromJSON(_: any): MsgRevokeExchangeRateAuthorizationResponse;
|
|
221
|
+
toJSON(_: MsgRevokeExchangeRateAuthorizationResponse): unknown;
|
|
222
|
+
create<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorizationResponse>, I>>(base?: I): MsgRevokeExchangeRateAuthorizationResponse;
|
|
223
|
+
fromPartial<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorizationResponse>, I>>(_: I): MsgRevokeExchangeRateAuthorizationResponse;
|
|
224
|
+
};
|
|
225
|
+
export declare const MsgUpdateParamsResponse: {
|
|
226
|
+
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
227
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse;
|
|
228
|
+
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
229
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
230
|
+
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse;
|
|
231
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse;
|
|
232
|
+
};
|
|
233
|
+
/** Msg defines the Msg service. */
|
|
234
|
+
export interface Msg {
|
|
235
|
+
/**
|
|
236
|
+
* UpdateParams defines a (governance) operation for updating the module
|
|
237
|
+
* parameters. The authority defaults to the x/gov module account.
|
|
238
|
+
*/
|
|
239
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
240
|
+
/** CreateExchangeRate defines a governance operation for creating an exchange rate. */
|
|
241
|
+
CreateExchangeRate(request: MsgCreateExchangeRate): Promise<MsgCreateExchangeRateResponse>;
|
|
242
|
+
/** UpdateExchangeRate defines an operator operation for updating an exchange rate. */
|
|
243
|
+
UpdateExchangeRate(request: MsgUpdateExchangeRate): Promise<MsgUpdateExchangeRateResponse>;
|
|
244
|
+
/** SetExchangeRateState defines a governance operation for enabling or disabling an exchange rate. */
|
|
245
|
+
SetExchangeRateState(request: MsgSetExchangeRateState): Promise<MsgSetExchangeRateStateResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* GrantExchangeRateAuthorization defines a governance operation authorizing an
|
|
248
|
+
* operator to update a given exchange rate. [MOD-XR-MSG-4]
|
|
249
|
+
*/
|
|
250
|
+
GrantExchangeRateAuthorization(request: MsgGrantExchangeRateAuthorization): Promise<MsgGrantExchangeRateAuthorizationResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* RevokeExchangeRateAuthorization defines a governance operation revoking an
|
|
253
|
+
* operator's authorization for a given exchange rate. [MOD-XR-MSG-5]
|
|
254
|
+
*/
|
|
255
|
+
RevokeExchangeRateAuthorization(request: MsgRevokeExchangeRateAuthorization): Promise<MsgRevokeExchangeRateAuthorizationResponse>;
|
|
256
|
+
}
|
|
257
|
+
export declare const MsgServiceName = "verana.xr.v1.Msg";
|
|
258
|
+
export declare class MsgClientImpl implements Msg {
|
|
259
|
+
private readonly rpc;
|
|
260
|
+
private readonly service;
|
|
261
|
+
constructor(rpc: Rpc, opts?: {
|
|
262
|
+
service?: string;
|
|
263
|
+
});
|
|
264
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
265
|
+
CreateExchangeRate(request: MsgCreateExchangeRate): Promise<MsgCreateExchangeRateResponse>;
|
|
266
|
+
UpdateExchangeRate(request: MsgUpdateExchangeRate): Promise<MsgUpdateExchangeRateResponse>;
|
|
267
|
+
SetExchangeRateState(request: MsgSetExchangeRateState): Promise<MsgSetExchangeRateStateResponse>;
|
|
268
|
+
GrantExchangeRateAuthorization(request: MsgGrantExchangeRateAuthorization): Promise<MsgGrantExchangeRateAuthorizationResponse>;
|
|
269
|
+
RevokeExchangeRateAuthorization(request: MsgRevokeExchangeRateAuthorization): Promise<MsgRevokeExchangeRateAuthorizationResponse>;
|
|
270
|
+
}
|
|
271
|
+
interface Rpc {
|
|
272
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
273
|
+
}
|
|
274
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
275
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
276
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
277
|
+
} : Partial<T>;
|
|
278
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
279
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
280
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
281
|
+
} & {
|
|
282
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
283
|
+
};
|
|
284
|
+
export {};
|