@kimafinance/kima-transaction-api 1.0.13-beta.1 → 1.0.15-beta.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.
@@ -11,7 +11,7 @@ const tx_1 = require("./tx");
11
11
  dotenv_1.default.config();
12
12
  const defaultFee = {
13
13
  amount: [],
14
- gas: "200000",
14
+ gas: "2000000",
15
15
  };
16
16
  const types = [
17
17
  ["/KimaFinance.kima.kima.MsgRequestTransaction", tx_1.MsgRequestTransaction],
@@ -24,11 +24,11 @@ const TxClient = async (wallet) => {
24
24
  return {
25
25
  signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo),
26
26
  msgRequestTransaction: (data) => ({
27
- typeUrl: "/KimaFinance.kima.kima.MsgRequestTransaction",
27
+ typeUrl: "/KimaFinance.kima.MsgRequestTransaction",
28
28
  value: tx_1.MsgRequestTransaction.fromPartial(data),
29
29
  }),
30
30
  msgSetTxHash: (data) => ({
31
- typeUrl: "/KimaFinance.kima.kima.MsgSetTxHash",
31
+ typeUrl: "/KimaFinance.kima.MsgSetTxHash",
32
32
  value: tx_1.MsgSetTxHash.fromPartial(data),
33
33
  }),
34
34
  };
@@ -1,5 +1,5 @@
1
1
  import { Reader, Writer } from "protobufjs/minimal";
2
- export declare const protobufPackage = "KimaFinance.kima.kima";
2
+ export declare const protobufPackage = "KimaFinance.kima";
3
3
  export interface MsgRequestTransaction {
4
4
  creator: string;
5
5
  originChain: string;
@@ -126,6 +126,14 @@ export interface MsgAddPubkeyResponse {
126
126
  code: string;
127
127
  msg: string;
128
128
  }
129
+ export interface MsgUpdatePubkeys {
130
+ creator: string;
131
+ pubkeys: string[];
132
+ }
133
+ export interface MsgUpdatePubkeysResponse {
134
+ code: string;
135
+ msg: string;
136
+ }
129
137
  export interface MsgUpdateTssPubkey {
130
138
  creator: string;
131
139
  tssPubkey: string;
@@ -240,7 +248,7 @@ export interface MsgUpdateTokenResponse {
240
248
  }
241
249
  export interface MsgUpdatePoolRequest {
242
250
  creator: string;
243
- reqId: string;
251
+ reqId: number;
244
252
  processed: string;
245
253
  }
246
254
  export interface MsgUpdatePoolRequestResponse {
@@ -252,6 +260,14 @@ export interface MsgLeaderReady {
252
260
  }
253
261
  export interface MsgLeaderReadyResponse {
254
262
  }
263
+ export interface MsgAddPubkeyEddsa {
264
+ creator: string;
265
+ pubkey: string;
266
+ }
267
+ export interface MsgAddPubkeyEddsaResponse {
268
+ code: string;
269
+ msg: string;
270
+ }
255
271
  export declare const MsgRequestTransaction: {
256
272
  encode(message: MsgRequestTransaction, writer?: Writer): Writer;
257
273
  decode(input: Reader | Uint8Array, length?: number): MsgRequestTransaction;
@@ -420,6 +436,20 @@ export declare const MsgAddPubkeyResponse: {
420
436
  toJSON(message: MsgAddPubkeyResponse): unknown;
421
437
  fromPartial(object: DeepPartial<MsgAddPubkeyResponse>): MsgAddPubkeyResponse;
422
438
  };
439
+ export declare const MsgUpdatePubkeys: {
440
+ encode(message: MsgUpdatePubkeys, writer?: Writer): Writer;
441
+ decode(input: Reader | Uint8Array, length?: number): MsgUpdatePubkeys;
442
+ fromJSON(object: any): MsgUpdatePubkeys;
443
+ toJSON(message: MsgUpdatePubkeys): unknown;
444
+ fromPartial(object: DeepPartial<MsgUpdatePubkeys>): MsgUpdatePubkeys;
445
+ };
446
+ export declare const MsgUpdatePubkeysResponse: {
447
+ encode(message: MsgUpdatePubkeysResponse, writer?: Writer): Writer;
448
+ decode(input: Reader | Uint8Array, length?: number): MsgUpdatePubkeysResponse;
449
+ fromJSON(object: any): MsgUpdatePubkeysResponse;
450
+ toJSON(message: MsgUpdatePubkeysResponse): unknown;
451
+ fromPartial(object: DeepPartial<MsgUpdatePubkeysResponse>): MsgUpdatePubkeysResponse;
452
+ };
423
453
  export declare const MsgUpdateTssPubkey: {
424
454
  encode(message: MsgUpdateTssPubkey, writer?: Writer): Writer;
425
455
  decode(input: Reader | Uint8Array, length?: number): MsgUpdateTssPubkey;
@@ -630,6 +660,20 @@ export declare const MsgLeaderReadyResponse: {
630
660
  toJSON(_: MsgLeaderReadyResponse): unknown;
631
661
  fromPartial(_: DeepPartial<MsgLeaderReadyResponse>): MsgLeaderReadyResponse;
632
662
  };
663
+ export declare const MsgAddPubkeyEddsa: {
664
+ encode(message: MsgAddPubkeyEddsa, writer?: Writer): Writer;
665
+ decode(input: Reader | Uint8Array, length?: number): MsgAddPubkeyEddsa;
666
+ fromJSON(object: any): MsgAddPubkeyEddsa;
667
+ toJSON(message: MsgAddPubkeyEddsa): unknown;
668
+ fromPartial(object: DeepPartial<MsgAddPubkeyEddsa>): MsgAddPubkeyEddsa;
669
+ };
670
+ export declare const MsgAddPubkeyEddsaResponse: {
671
+ encode(message: MsgAddPubkeyEddsaResponse, writer?: Writer): Writer;
672
+ decode(input: Reader | Uint8Array, length?: number): MsgAddPubkeyEddsaResponse;
673
+ fromJSON(object: any): MsgAddPubkeyEddsaResponse;
674
+ toJSON(message: MsgAddPubkeyEddsaResponse): unknown;
675
+ fromPartial(object: DeepPartial<MsgAddPubkeyEddsaResponse>): MsgAddPubkeyEddsaResponse;
676
+ };
633
677
  /** Msg defines the Msg service. */
634
678
  export interface Msg {
635
679
  RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse>;
@@ -644,6 +688,7 @@ export interface Msg {
644
688
  AddWhitelisted(request: MsgAddWhitelisted): Promise<MsgAddWhitelistedResponse>;
645
689
  SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse>;
646
690
  AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse>;
691
+ UpdatePubkeys(request: MsgUpdatePubkeys): Promise<MsgUpdatePubkeysResponse>;
647
692
  UpdateTssPubkey(request: MsgUpdateTssPubkey): Promise<MsgUpdateTssPubkeyResponse>;
648
693
  RemoveWhitelisted(request: MsgRemoveWhitelisted): Promise<MsgRemoveWhitelistedResponse>;
649
694
  ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse>;
@@ -658,8 +703,9 @@ export interface Msg {
658
703
  WithdrawPool(request: MsgWithdrawPool): Promise<MsgWithdrawPoolResponse>;
659
704
  UpdateToken(request: MsgUpdateToken): Promise<MsgUpdateTokenResponse>;
660
705
  UpdatePoolRequest(request: MsgUpdatePoolRequest): Promise<MsgUpdatePoolRequestResponse>;
661
- /** this line is used by starport scaffolding # proto/tx/rpc */
662
706
  LeaderReady(request: MsgLeaderReady): Promise<MsgLeaderReadyResponse>;
707
+ /** this line is used by starport scaffolding # proto/tx/rpc */
708
+ AddPubkeyEddsa(request: MsgAddPubkeyEddsa): Promise<MsgAddPubkeyEddsaResponse>;
663
709
  }
664
710
  export declare class MsgClientImpl implements Msg {
665
711
  private readonly rpc;
@@ -676,6 +722,7 @@ export declare class MsgClientImpl implements Msg {
676
722
  AddWhitelisted(request: MsgAddWhitelisted): Promise<MsgAddWhitelistedResponse>;
677
723
  SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse>;
678
724
  AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse>;
725
+ UpdatePubkeys(request: MsgUpdatePubkeys): Promise<MsgUpdatePubkeysResponse>;
679
726
  UpdateTssPubkey(request: MsgUpdateTssPubkey): Promise<MsgUpdateTssPubkeyResponse>;
680
727
  RemoveWhitelisted(request: MsgRemoveWhitelisted): Promise<MsgRemoveWhitelistedResponse>;
681
728
  ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse>;
@@ -691,6 +738,7 @@ export declare class MsgClientImpl implements Msg {
691
738
  UpdateToken(request: MsgUpdateToken): Promise<MsgUpdateTokenResponse>;
692
739
  UpdatePoolRequest(request: MsgUpdatePoolRequest): Promise<MsgUpdatePoolRequestResponse>;
693
740
  LeaderReady(request: MsgLeaderReady): Promise<MsgLeaderReadyResponse>;
741
+ AddPubkeyEddsa(request: MsgAddPubkeyEddsa): Promise<MsgAddPubkeyEddsaResponse>;
694
742
  }
695
743
  interface Rpc {
696
744
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;