@kimafinance/kima-transaction-api 1.0.0 → 1.0.1
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 +12 -9
- package/build/index.d.ts +15 -3
- package/build/index.js +16 -2
- package/build/kima/common.d.ts +3 -5
- package/build/kima/common.js +6 -25
- package/build/kima/tx.d.ts +174 -19
- package/build/kima/tx.js +1462 -345
- package/package.json +1 -1
- package/src/index.ts +18 -2
- package/src/kima/common.ts +20 -45
- package/src/kima/tx.ts +2406 -1110
package/README.md
CHANGED
|
@@ -13,13 +13,14 @@ yarn add @kimafinance/kima-transaction-api
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
-
import { submitKimaTransaction } from '@kimafinance/kima-transaction-backend'
|
|
16
|
+
import { submitKimaTransaction, SupportNetworks, CurrencyOptions } from '@kimafinance/kima-transaction-backend'
|
|
17
17
|
|
|
18
18
|
const txResult = await submitKimaTransaction({
|
|
19
19
|
originAddress: "0x1234123412341234123412341234123412341234",
|
|
20
|
-
originChain:
|
|
20
|
+
originChain: SupportNetworks.Ethereum,
|
|
21
21
|
targetAddress: "0x1234123412341234123412341234123412341234",
|
|
22
|
-
targetChain:
|
|
22
|
+
targetChain: SupportNetworks.Polygon,
|
|
23
|
+
symbol: CurrencyOptions.USDT,
|
|
23
24
|
amount: 100,
|
|
24
25
|
fee: 0.3
|
|
25
26
|
})
|
|
@@ -31,13 +32,15 @@ const txResult = await submitKimaTransaction({
|
|
|
31
32
|
|
|
32
33
|
`submitKimaTransaction` : Submit a transaction to transfer liquidity from one change to another.
|
|
33
34
|
|
|
34
|
-
- `originAddress
|
|
35
|
-
- `originChain
|
|
36
|
-
- `targetAddress
|
|
37
|
-
- `targetChain
|
|
38
|
-
- `
|
|
39
|
-
- `
|
|
35
|
+
- `originAddress`: sending address
|
|
36
|
+
- `originChain`: sending chain
|
|
37
|
+
- `targetAddress`: receiving address
|
|
38
|
+
- `targetChain`: receiving chain
|
|
39
|
+
- `symbol`: token symbol
|
|
40
|
+
- `amount`: amount of token to transfer
|
|
41
|
+
- `fee`: amount of token that kima consumes to pay gas fee for pulling & releasing token transactions
|
|
40
42
|
|
|
41
43
|
## Environment Variables
|
|
42
44
|
|
|
43
45
|
`KIMA_BACKEND_MNEMONIC` : Seed phrase of developer wallet. This wallet must have KIMA token to submit a transaction to kima chain.
|
|
46
|
+
`KIMA_BACKEND_NODE_PROVIDER` : Node provider for kima chain
|
package/build/index.d.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
export declare enum SupportNetworks {
|
|
2
|
+
Ethereum = "ETH",
|
|
3
|
+
Polygon = "POL",
|
|
4
|
+
Avalanche = "AVX",
|
|
5
|
+
Solana = "SOL"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CurrencyOptions {
|
|
8
|
+
USDK = "USDK",
|
|
9
|
+
USDT = "USDT",
|
|
10
|
+
USDC = "USDC"
|
|
11
|
+
}
|
|
1
12
|
interface Props {
|
|
2
|
-
originChain:
|
|
13
|
+
originChain: SupportNetworks;
|
|
3
14
|
originAddress: string;
|
|
4
|
-
targetChain:
|
|
15
|
+
targetChain: SupportNetworks;
|
|
5
16
|
targetAddress: string;
|
|
17
|
+
symbol: CurrencyOptions;
|
|
6
18
|
amount: number;
|
|
7
19
|
fee: number;
|
|
8
20
|
}
|
|
9
|
-
export declare function submitKimaTransaction({ originChain, originAddress, targetChain, targetAddress, amount, fee, }: Props): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
21
|
+
export declare function submitKimaTransaction({ originChain, originAddress, targetChain, targetAddress, symbol, amount, fee, }: Props): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
10
22
|
export {};
|
package/build/index.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.submitKimaTransaction = void 0;
|
|
3
|
+
exports.submitKimaTransaction = exports.CurrencyOptions = exports.SupportNetworks = void 0;
|
|
4
4
|
const proto_signing_1 = require("@cosmjs/proto-signing");
|
|
5
5
|
const common_1 = require("./kima/common");
|
|
6
|
-
|
|
6
|
+
var SupportNetworks;
|
|
7
|
+
(function (SupportNetworks) {
|
|
8
|
+
SupportNetworks["Ethereum"] = "ETH";
|
|
9
|
+
SupportNetworks["Polygon"] = "POL";
|
|
10
|
+
SupportNetworks["Avalanche"] = "AVX";
|
|
11
|
+
SupportNetworks["Solana"] = "SOL";
|
|
12
|
+
})(SupportNetworks = exports.SupportNetworks || (exports.SupportNetworks = {}));
|
|
13
|
+
var CurrencyOptions;
|
|
14
|
+
(function (CurrencyOptions) {
|
|
15
|
+
CurrencyOptions["USDK"] = "USDK";
|
|
16
|
+
CurrencyOptions["USDT"] = "USDT";
|
|
17
|
+
CurrencyOptions["USDC"] = "USDC";
|
|
18
|
+
})(CurrencyOptions = exports.CurrencyOptions || (exports.CurrencyOptions = {}));
|
|
19
|
+
async function submitKimaTransaction({ originChain, originAddress, targetChain, targetAddress, symbol, amount, fee, }) {
|
|
7
20
|
const wallet = await proto_signing_1.DirectSecp256k1HdWallet.fromMnemonic(process.env.KIMA_BACKEND_MNEMONIC, { prefix: "kima" });
|
|
8
21
|
const client = await (0, common_1.TxClient)(wallet);
|
|
9
22
|
const [firstAccount] = await wallet.getAccounts();
|
|
@@ -13,6 +26,7 @@ async function submitKimaTransaction({ originChain, originAddress, targetChain,
|
|
|
13
26
|
originAddress,
|
|
14
27
|
targetChain,
|
|
15
28
|
targetAddress,
|
|
29
|
+
symbol,
|
|
16
30
|
amount: amount.toString(),
|
|
17
31
|
fee: fee.toString(),
|
|
18
32
|
};
|
package/build/kima/common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StdFee } from
|
|
2
|
-
import { Registry, OfflineSigner, EncodeObject } from
|
|
3
|
-
import { MsgRequestTransaction
|
|
1
|
+
import { StdFee } from "@cosmjs/stargate";
|
|
2
|
+
import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing";
|
|
3
|
+
import { MsgRequestTransaction } from "./tx";
|
|
4
4
|
interface SignAndBroadcastOptions {
|
|
5
5
|
fee: StdFee;
|
|
6
6
|
memo?: string;
|
|
@@ -9,7 +9,5 @@ export declare const registry: Registry;
|
|
|
9
9
|
export declare const TxClient: (wallet: OfflineSigner) => Promise<{
|
|
10
10
|
signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
11
11
|
msgRequestTransaction: (data: MsgRequestTransaction) => EncodeObject;
|
|
12
|
-
msgApproveTransaction: (data: MsgApproveTransaction) => EncodeObject;
|
|
13
|
-
msgFetchBalance: (data: MsgFetchBalance) => EncodeObject;
|
|
14
12
|
}>;
|
|
15
13
|
export {};
|
package/build/kima/common.js
CHANGED
|
@@ -11,40 +11,21 @@ const tx_1 = require("./tx");
|
|
|
11
11
|
dotenv_1.default.config();
|
|
12
12
|
const defaultFee = {
|
|
13
13
|
amount: [],
|
|
14
|
-
gas:
|
|
14
|
+
gas: "200000",
|
|
15
15
|
};
|
|
16
16
|
const types = [
|
|
17
|
-
[
|
|
18
|
-
'/DiversifiTechnologies.diversifi.diversifi.MsgRequestTransaction',
|
|
19
|
-
tx_1.MsgRequestTransaction
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
'/DiversifiTechnologies.diversifi.diversifi.MsgApproveTransaction',
|
|
23
|
-
tx_1.MsgApproveTransaction
|
|
24
|
-
],
|
|
25
|
-
[
|
|
26
|
-
'/DiversifiTechnologies.diversifi.diversifi.MsgFetchBalance',
|
|
27
|
-
tx_1.MsgFetchBalance
|
|
28
|
-
]
|
|
17
|
+
["/KimaFinance.kima.kima.MsgRequestTransaction", tx_1.MsgRequestTransaction],
|
|
29
18
|
];
|
|
30
19
|
exports.registry = new proto_signing_1.Registry(types);
|
|
31
20
|
const TxClient = async (wallet) => {
|
|
32
|
-
const client = await stargate_1.SigningStargateClient.connectWithSigner(
|
|
21
|
+
const client = await stargate_1.SigningStargateClient.connectWithSigner(process.env.KIMA_BACKEND_NODE_PROVIDER, wallet, { registry: exports.registry });
|
|
33
22
|
const { address } = (await wallet.getAccounts())[0];
|
|
34
23
|
return {
|
|
35
|
-
signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo:
|
|
24
|
+
signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo),
|
|
36
25
|
msgRequestTransaction: (data) => ({
|
|
37
|
-
typeUrl:
|
|
38
|
-
value: tx_1.MsgRequestTransaction.fromPartial(data)
|
|
26
|
+
typeUrl: "/KimaFinance.kima.kima.MsgRequestTransaction",
|
|
27
|
+
value: tx_1.MsgRequestTransaction.fromPartial(data),
|
|
39
28
|
}),
|
|
40
|
-
msgApproveTransaction: (data) => ({
|
|
41
|
-
typeUrl: '/DiversifiTechnologies.diversifi.diversifi.MsgApproveTransaction',
|
|
42
|
-
value: tx_1.MsgApproveTransaction.fromPartial(data)
|
|
43
|
-
}),
|
|
44
|
-
msgFetchBalance: (data) => ({
|
|
45
|
-
typeUrl: '/DiversifiTechnologies.diversifi.diversifi.MsgFetchBalance',
|
|
46
|
-
value: tx_1.MsgFetchBalance.fromPartial(data)
|
|
47
|
-
})
|
|
48
29
|
};
|
|
49
30
|
};
|
|
50
31
|
exports.TxClient = TxClient;
|
package/build/kima/tx.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { Reader, Writer } from
|
|
2
|
-
export declare const protobufPackage = "
|
|
1
|
+
import { Reader, Writer } from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "KimaFinance.kima.kima";
|
|
3
3
|
export interface MsgRequestTransaction {
|
|
4
4
|
creator: string;
|
|
5
5
|
originChain: string;
|
|
6
6
|
originAddress: string;
|
|
7
7
|
targetChain: string;
|
|
8
8
|
targetAddress: string;
|
|
9
|
+
symbol: string;
|
|
9
10
|
amount: string;
|
|
10
11
|
fee: string;
|
|
11
12
|
}
|
|
12
13
|
export interface MsgRequestTransactionResponse {
|
|
13
14
|
code: string;
|
|
14
15
|
msg: string;
|
|
16
|
+
txId: string;
|
|
15
17
|
}
|
|
16
18
|
export interface MsgApproveTransaction {
|
|
17
19
|
creator: string;
|
|
@@ -67,6 +69,8 @@ export interface MsgUpdateGasFee {
|
|
|
67
69
|
fee: string;
|
|
68
70
|
}
|
|
69
71
|
export interface MsgUpdateGasFeeResponse {
|
|
72
|
+
code: string;
|
|
73
|
+
msg: string;
|
|
70
74
|
}
|
|
71
75
|
export interface MsgProvisionTransaction {
|
|
72
76
|
creator: string;
|
|
@@ -78,6 +82,8 @@ export interface MsgProvisionTransaction {
|
|
|
78
82
|
options: string;
|
|
79
83
|
}
|
|
80
84
|
export interface MsgProvisionTransactionResponse {
|
|
85
|
+
code: string;
|
|
86
|
+
msg: string;
|
|
81
87
|
}
|
|
82
88
|
export interface MsgDrainTransaction {
|
|
83
89
|
creator: string;
|
|
@@ -89,12 +95,65 @@ export interface MsgDrainTransaction {
|
|
|
89
95
|
options: string;
|
|
90
96
|
}
|
|
91
97
|
export interface MsgDrainTransactionResponse {
|
|
98
|
+
code: string;
|
|
99
|
+
msg: string;
|
|
92
100
|
}
|
|
93
101
|
export interface MsgCancelTransaction {
|
|
94
102
|
creator: string;
|
|
95
103
|
transactionId: string;
|
|
96
104
|
}
|
|
97
105
|
export interface MsgCancelTransactionResponse {
|
|
106
|
+
code: string;
|
|
107
|
+
msg: string;
|
|
108
|
+
}
|
|
109
|
+
export interface MsgAddWhitelisted {
|
|
110
|
+
creator: string;
|
|
111
|
+
address: string;
|
|
112
|
+
}
|
|
113
|
+
export interface MsgAddWhitelistedResponse {
|
|
114
|
+
code: string;
|
|
115
|
+
msg: string;
|
|
116
|
+
}
|
|
117
|
+
export interface MsgSetAdmin {
|
|
118
|
+
creator: string;
|
|
119
|
+
}
|
|
120
|
+
export interface MsgSetAdminResponse {
|
|
121
|
+
code: string;
|
|
122
|
+
msg: string;
|
|
123
|
+
}
|
|
124
|
+
export interface MsgAddPubkey {
|
|
125
|
+
creator: string;
|
|
126
|
+
pubkey: string;
|
|
127
|
+
}
|
|
128
|
+
export interface MsgAddPubkeyResponse {
|
|
129
|
+
code: string;
|
|
130
|
+
msg: string;
|
|
131
|
+
}
|
|
132
|
+
export interface MsgUpdateTssPubkey {
|
|
133
|
+
creator: string;
|
|
134
|
+
tssPubkey: string;
|
|
135
|
+
ecdsa: string;
|
|
136
|
+
ebdsa: string;
|
|
137
|
+
reserved: string;
|
|
138
|
+
}
|
|
139
|
+
export interface MsgUpdateTssPubkeyResponse {
|
|
140
|
+
code: string;
|
|
141
|
+
msg: string;
|
|
142
|
+
}
|
|
143
|
+
export interface MsgRemoveWhitelisted {
|
|
144
|
+
creator: string;
|
|
145
|
+
address: string;
|
|
146
|
+
}
|
|
147
|
+
export interface MsgRemoveWhitelistedResponse {
|
|
148
|
+
code: string;
|
|
149
|
+
msg: string;
|
|
150
|
+
}
|
|
151
|
+
export interface MsgClearTssInfo {
|
|
152
|
+
creator: string;
|
|
153
|
+
}
|
|
154
|
+
export interface MsgClearTssInfoResponse {
|
|
155
|
+
code: string;
|
|
156
|
+
msg: string;
|
|
98
157
|
}
|
|
99
158
|
export declare const MsgRequestTransaction: {
|
|
100
159
|
encode(message: MsgRequestTransaction, writer?: Writer): Writer;
|
|
@@ -188,11 +247,11 @@ export declare const MsgUpdateGasFee: {
|
|
|
188
247
|
fromPartial(object: DeepPartial<MsgUpdateGasFee>): MsgUpdateGasFee;
|
|
189
248
|
};
|
|
190
249
|
export declare const MsgUpdateGasFeeResponse: {
|
|
191
|
-
encode(
|
|
250
|
+
encode(message: MsgUpdateGasFeeResponse, writer?: Writer): Writer;
|
|
192
251
|
decode(input: Reader | Uint8Array, length?: number): MsgUpdateGasFeeResponse;
|
|
193
|
-
fromJSON(
|
|
194
|
-
toJSON(
|
|
195
|
-
fromPartial(
|
|
252
|
+
fromJSON(object: any): MsgUpdateGasFeeResponse;
|
|
253
|
+
toJSON(message: MsgUpdateGasFeeResponse): unknown;
|
|
254
|
+
fromPartial(object: DeepPartial<MsgUpdateGasFeeResponse>): MsgUpdateGasFeeResponse;
|
|
196
255
|
};
|
|
197
256
|
export declare const MsgProvisionTransaction: {
|
|
198
257
|
encode(message: MsgProvisionTransaction, writer?: Writer): Writer;
|
|
@@ -202,11 +261,11 @@ export declare const MsgProvisionTransaction: {
|
|
|
202
261
|
fromPartial(object: DeepPartial<MsgProvisionTransaction>): MsgProvisionTransaction;
|
|
203
262
|
};
|
|
204
263
|
export declare const MsgProvisionTransactionResponse: {
|
|
205
|
-
encode(
|
|
264
|
+
encode(message: MsgProvisionTransactionResponse, writer?: Writer): Writer;
|
|
206
265
|
decode(input: Reader | Uint8Array, length?: number): MsgProvisionTransactionResponse;
|
|
207
|
-
fromJSON(
|
|
208
|
-
toJSON(
|
|
209
|
-
fromPartial(
|
|
266
|
+
fromJSON(object: any): MsgProvisionTransactionResponse;
|
|
267
|
+
toJSON(message: MsgProvisionTransactionResponse): unknown;
|
|
268
|
+
fromPartial(object: DeepPartial<MsgProvisionTransactionResponse>): MsgProvisionTransactionResponse;
|
|
210
269
|
};
|
|
211
270
|
export declare const MsgDrainTransaction: {
|
|
212
271
|
encode(message: MsgDrainTransaction, writer?: Writer): Writer;
|
|
@@ -216,11 +275,11 @@ export declare const MsgDrainTransaction: {
|
|
|
216
275
|
fromPartial(object: DeepPartial<MsgDrainTransaction>): MsgDrainTransaction;
|
|
217
276
|
};
|
|
218
277
|
export declare const MsgDrainTransactionResponse: {
|
|
219
|
-
encode(
|
|
278
|
+
encode(message: MsgDrainTransactionResponse, writer?: Writer): Writer;
|
|
220
279
|
decode(input: Reader | Uint8Array, length?: number): MsgDrainTransactionResponse;
|
|
221
|
-
fromJSON(
|
|
222
|
-
toJSON(
|
|
223
|
-
fromPartial(
|
|
280
|
+
fromJSON(object: any): MsgDrainTransactionResponse;
|
|
281
|
+
toJSON(message: MsgDrainTransactionResponse): unknown;
|
|
282
|
+
fromPartial(object: DeepPartial<MsgDrainTransactionResponse>): MsgDrainTransactionResponse;
|
|
224
283
|
};
|
|
225
284
|
export declare const MsgCancelTransaction: {
|
|
226
285
|
encode(message: MsgCancelTransaction, writer?: Writer): Writer;
|
|
@@ -230,11 +289,95 @@ export declare const MsgCancelTransaction: {
|
|
|
230
289
|
fromPartial(object: DeepPartial<MsgCancelTransaction>): MsgCancelTransaction;
|
|
231
290
|
};
|
|
232
291
|
export declare const MsgCancelTransactionResponse: {
|
|
233
|
-
encode(
|
|
292
|
+
encode(message: MsgCancelTransactionResponse, writer?: Writer): Writer;
|
|
234
293
|
decode(input: Reader | Uint8Array, length?: number): MsgCancelTransactionResponse;
|
|
235
|
-
fromJSON(
|
|
236
|
-
toJSON(
|
|
237
|
-
fromPartial(
|
|
294
|
+
fromJSON(object: any): MsgCancelTransactionResponse;
|
|
295
|
+
toJSON(message: MsgCancelTransactionResponse): unknown;
|
|
296
|
+
fromPartial(object: DeepPartial<MsgCancelTransactionResponse>): MsgCancelTransactionResponse;
|
|
297
|
+
};
|
|
298
|
+
export declare const MsgAddWhitelisted: {
|
|
299
|
+
encode(message: MsgAddWhitelisted, writer?: Writer): Writer;
|
|
300
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddWhitelisted;
|
|
301
|
+
fromJSON(object: any): MsgAddWhitelisted;
|
|
302
|
+
toJSON(message: MsgAddWhitelisted): unknown;
|
|
303
|
+
fromPartial(object: DeepPartial<MsgAddWhitelisted>): MsgAddWhitelisted;
|
|
304
|
+
};
|
|
305
|
+
export declare const MsgAddWhitelistedResponse: {
|
|
306
|
+
encode(message: MsgAddWhitelistedResponse, writer?: Writer): Writer;
|
|
307
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddWhitelistedResponse;
|
|
308
|
+
fromJSON(object: any): MsgAddWhitelistedResponse;
|
|
309
|
+
toJSON(message: MsgAddWhitelistedResponse): unknown;
|
|
310
|
+
fromPartial(object: DeepPartial<MsgAddWhitelistedResponse>): MsgAddWhitelistedResponse;
|
|
311
|
+
};
|
|
312
|
+
export declare const MsgSetAdmin: {
|
|
313
|
+
encode(message: MsgSetAdmin, writer?: Writer): Writer;
|
|
314
|
+
decode(input: Reader | Uint8Array, length?: number): MsgSetAdmin;
|
|
315
|
+
fromJSON(object: any): MsgSetAdmin;
|
|
316
|
+
toJSON(message: MsgSetAdmin): unknown;
|
|
317
|
+
fromPartial(object: DeepPartial<MsgSetAdmin>): MsgSetAdmin;
|
|
318
|
+
};
|
|
319
|
+
export declare const MsgSetAdminResponse: {
|
|
320
|
+
encode(message: MsgSetAdminResponse, writer?: Writer): Writer;
|
|
321
|
+
decode(input: Reader | Uint8Array, length?: number): MsgSetAdminResponse;
|
|
322
|
+
fromJSON(object: any): MsgSetAdminResponse;
|
|
323
|
+
toJSON(message: MsgSetAdminResponse): unknown;
|
|
324
|
+
fromPartial(object: DeepPartial<MsgSetAdminResponse>): MsgSetAdminResponse;
|
|
325
|
+
};
|
|
326
|
+
export declare const MsgAddPubkey: {
|
|
327
|
+
encode(message: MsgAddPubkey, writer?: Writer): Writer;
|
|
328
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddPubkey;
|
|
329
|
+
fromJSON(object: any): MsgAddPubkey;
|
|
330
|
+
toJSON(message: MsgAddPubkey): unknown;
|
|
331
|
+
fromPartial(object: DeepPartial<MsgAddPubkey>): MsgAddPubkey;
|
|
332
|
+
};
|
|
333
|
+
export declare const MsgAddPubkeyResponse: {
|
|
334
|
+
encode(message: MsgAddPubkeyResponse, writer?: Writer): Writer;
|
|
335
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddPubkeyResponse;
|
|
336
|
+
fromJSON(object: any): MsgAddPubkeyResponse;
|
|
337
|
+
toJSON(message: MsgAddPubkeyResponse): unknown;
|
|
338
|
+
fromPartial(object: DeepPartial<MsgAddPubkeyResponse>): MsgAddPubkeyResponse;
|
|
339
|
+
};
|
|
340
|
+
export declare const MsgUpdateTssPubkey: {
|
|
341
|
+
encode(message: MsgUpdateTssPubkey, writer?: Writer): Writer;
|
|
342
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTssPubkey;
|
|
343
|
+
fromJSON(object: any): MsgUpdateTssPubkey;
|
|
344
|
+
toJSON(message: MsgUpdateTssPubkey): unknown;
|
|
345
|
+
fromPartial(object: DeepPartial<MsgUpdateTssPubkey>): MsgUpdateTssPubkey;
|
|
346
|
+
};
|
|
347
|
+
export declare const MsgUpdateTssPubkeyResponse: {
|
|
348
|
+
encode(message: MsgUpdateTssPubkeyResponse, writer?: Writer): Writer;
|
|
349
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTssPubkeyResponse;
|
|
350
|
+
fromJSON(object: any): MsgUpdateTssPubkeyResponse;
|
|
351
|
+
toJSON(message: MsgUpdateTssPubkeyResponse): unknown;
|
|
352
|
+
fromPartial(object: DeepPartial<MsgUpdateTssPubkeyResponse>): MsgUpdateTssPubkeyResponse;
|
|
353
|
+
};
|
|
354
|
+
export declare const MsgRemoveWhitelisted: {
|
|
355
|
+
encode(message: MsgRemoveWhitelisted, writer?: Writer): Writer;
|
|
356
|
+
decode(input: Reader | Uint8Array, length?: number): MsgRemoveWhitelisted;
|
|
357
|
+
fromJSON(object: any): MsgRemoveWhitelisted;
|
|
358
|
+
toJSON(message: MsgRemoveWhitelisted): unknown;
|
|
359
|
+
fromPartial(object: DeepPartial<MsgRemoveWhitelisted>): MsgRemoveWhitelisted;
|
|
360
|
+
};
|
|
361
|
+
export declare const MsgRemoveWhitelistedResponse: {
|
|
362
|
+
encode(message: MsgRemoveWhitelistedResponse, writer?: Writer): Writer;
|
|
363
|
+
decode(input: Reader | Uint8Array, length?: number): MsgRemoveWhitelistedResponse;
|
|
364
|
+
fromJSON(object: any): MsgRemoveWhitelistedResponse;
|
|
365
|
+
toJSON(message: MsgRemoveWhitelistedResponse): unknown;
|
|
366
|
+
fromPartial(object: DeepPartial<MsgRemoveWhitelistedResponse>): MsgRemoveWhitelistedResponse;
|
|
367
|
+
};
|
|
368
|
+
export declare const MsgClearTssInfo: {
|
|
369
|
+
encode(message: MsgClearTssInfo, writer?: Writer): Writer;
|
|
370
|
+
decode(input: Reader | Uint8Array, length?: number): MsgClearTssInfo;
|
|
371
|
+
fromJSON(object: any): MsgClearTssInfo;
|
|
372
|
+
toJSON(message: MsgClearTssInfo): unknown;
|
|
373
|
+
fromPartial(object: DeepPartial<MsgClearTssInfo>): MsgClearTssInfo;
|
|
374
|
+
};
|
|
375
|
+
export declare const MsgClearTssInfoResponse: {
|
|
376
|
+
encode(message: MsgClearTssInfoResponse, writer?: Writer): Writer;
|
|
377
|
+
decode(input: Reader | Uint8Array, length?: number): MsgClearTssInfoResponse;
|
|
378
|
+
fromJSON(object: any): MsgClearTssInfoResponse;
|
|
379
|
+
toJSON(message: MsgClearTssInfoResponse): unknown;
|
|
380
|
+
fromPartial(object: DeepPartial<MsgClearTssInfoResponse>): MsgClearTssInfoResponse;
|
|
238
381
|
};
|
|
239
382
|
/** Msg defines the Msg service. */
|
|
240
383
|
export interface Msg {
|
|
@@ -247,8 +390,14 @@ export interface Msg {
|
|
|
247
390
|
UpdateGasFee(request: MsgUpdateGasFee): Promise<MsgUpdateGasFeeResponse>;
|
|
248
391
|
ProvisionTransaction(request: MsgProvisionTransaction): Promise<MsgProvisionTransactionResponse>;
|
|
249
392
|
DrainTransaction(request: MsgDrainTransaction): Promise<MsgDrainTransactionResponse>;
|
|
250
|
-
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
251
393
|
CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse>;
|
|
394
|
+
AddWhitelisted(request: MsgAddWhitelisted): Promise<MsgAddWhitelistedResponse>;
|
|
395
|
+
SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse>;
|
|
396
|
+
AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse>;
|
|
397
|
+
UpdateTssPubkey(request: MsgUpdateTssPubkey): Promise<MsgUpdateTssPubkeyResponse>;
|
|
398
|
+
RemoveWhitelisted(request: MsgRemoveWhitelisted): Promise<MsgRemoveWhitelistedResponse>;
|
|
399
|
+
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
400
|
+
ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse>;
|
|
252
401
|
}
|
|
253
402
|
export declare class MsgClientImpl implements Msg {
|
|
254
403
|
private readonly rpc;
|
|
@@ -263,6 +412,12 @@ export declare class MsgClientImpl implements Msg {
|
|
|
263
412
|
ProvisionTransaction(request: MsgProvisionTransaction): Promise<MsgProvisionTransactionResponse>;
|
|
264
413
|
DrainTransaction(request: MsgDrainTransaction): Promise<MsgDrainTransactionResponse>;
|
|
265
414
|
CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse>;
|
|
415
|
+
AddWhitelisted(request: MsgAddWhitelisted): Promise<MsgAddWhitelistedResponse>;
|
|
416
|
+
SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse>;
|
|
417
|
+
AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse>;
|
|
418
|
+
UpdateTssPubkey(request: MsgUpdateTssPubkey): Promise<MsgUpdateTssPubkeyResponse>;
|
|
419
|
+
RemoveWhitelisted(request: MsgRemoveWhitelisted): Promise<MsgRemoveWhitelistedResponse>;
|
|
420
|
+
ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse>;
|
|
266
421
|
}
|
|
267
422
|
interface Rpc {
|
|
268
423
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|