@kimafinance/kima-transaction-api 1.0.7-beta.1 → 1.0.8-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.
- package/LICENSE.md +73 -0
- package/package.json +1 -1
- package/src/kima/tx.ts +492 -185
- package/build/index.d.ts +0 -28
- package/build/index.js +0 -59
- package/build/kima/common.d.ts +0 -14
- package/build/kima/common.js +0 -36
- package/build/kima/tx.d.ts +0 -579
- package/build/kima/tx.js +0 -4015
package/src/kima/tx.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface MsgRequestTransactionResponse {
|
|
|
22
22
|
|
|
23
23
|
export interface MsgApproveTransaction {
|
|
24
24
|
creator: string;
|
|
25
|
-
|
|
25
|
+
txId: string;
|
|
26
26
|
txTHash: string;
|
|
27
27
|
success: string;
|
|
28
28
|
signedKey: string;
|
|
@@ -33,15 +33,6 @@ export interface MsgApproveTransactionResponse {
|
|
|
33
33
|
msg: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface MsgFetchBalance {
|
|
37
|
-
creator: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface MsgFetchBalanceResponse {
|
|
41
|
-
code: string;
|
|
42
|
-
result: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
36
|
export interface MsgObservationVote {
|
|
46
37
|
creator: string;
|
|
47
38
|
txHash: string;
|
|
@@ -50,6 +41,8 @@ export interface MsgObservationVote {
|
|
|
50
41
|
to: string;
|
|
51
42
|
amount: string;
|
|
52
43
|
payType: string;
|
|
44
|
+
kimaTxID: string;
|
|
45
|
+
succeed: string;
|
|
53
46
|
}
|
|
54
47
|
|
|
55
48
|
export interface MsgObservationVoteResponse {
|
|
@@ -164,7 +157,7 @@ export interface MsgUpdateTssPubkey {
|
|
|
164
157
|
creator: string;
|
|
165
158
|
tssPubkey: string;
|
|
166
159
|
ecdsa: string;
|
|
167
|
-
|
|
160
|
+
eddsa: string;
|
|
168
161
|
reserved: string;
|
|
169
162
|
}
|
|
170
163
|
|
|
@@ -255,6 +248,28 @@ export interface MsgSetTxHashResponse {
|
|
|
255
248
|
msg: string;
|
|
256
249
|
}
|
|
257
250
|
|
|
251
|
+
export interface MsgSetTxProcess {
|
|
252
|
+
creator: string;
|
|
253
|
+
txId: string;
|
|
254
|
+
timestamp: string;
|
|
255
|
+
msgId: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface MsgSetTxProcessResponse {}
|
|
259
|
+
|
|
260
|
+
export interface MsgFinalizeTransaction {
|
|
261
|
+
creator: string;
|
|
262
|
+
txId: string;
|
|
263
|
+
txHash: string;
|
|
264
|
+
success: string;
|
|
265
|
+
signedKey: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface MsgFinalizeTransactionResponse {
|
|
269
|
+
code: string;
|
|
270
|
+
msg: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
258
273
|
const baseMsgRequestTransaction: object = {
|
|
259
274
|
creator: "",
|
|
260
275
|
originChain: "",
|
|
@@ -556,7 +571,7 @@ export const MsgRequestTransactionResponse = {
|
|
|
556
571
|
|
|
557
572
|
const baseMsgApproveTransaction: object = {
|
|
558
573
|
creator: "",
|
|
559
|
-
|
|
574
|
+
txId: "",
|
|
560
575
|
txTHash: "",
|
|
561
576
|
success: "",
|
|
562
577
|
signedKey: "",
|
|
@@ -570,8 +585,8 @@ export const MsgApproveTransaction = {
|
|
|
570
585
|
if (message.creator !== "") {
|
|
571
586
|
writer.uint32(10).string(message.creator);
|
|
572
587
|
}
|
|
573
|
-
if (message.
|
|
574
|
-
writer.uint32(18).string(message.
|
|
588
|
+
if (message.txId !== "") {
|
|
589
|
+
writer.uint32(18).string(message.txId);
|
|
575
590
|
}
|
|
576
591
|
if (message.txTHash !== "") {
|
|
577
592
|
writer.uint32(26).string(message.txTHash);
|
|
@@ -596,7 +611,7 @@ export const MsgApproveTransaction = {
|
|
|
596
611
|
message.creator = reader.string();
|
|
597
612
|
break;
|
|
598
613
|
case 2:
|
|
599
|
-
message.
|
|
614
|
+
message.txId = reader.string();
|
|
600
615
|
break;
|
|
601
616
|
case 3:
|
|
602
617
|
message.txTHash = reader.string();
|
|
@@ -622,10 +637,10 @@ export const MsgApproveTransaction = {
|
|
|
622
637
|
} else {
|
|
623
638
|
message.creator = "";
|
|
624
639
|
}
|
|
625
|
-
if (object.
|
|
626
|
-
message.
|
|
640
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
641
|
+
message.txId = String(object.txId);
|
|
627
642
|
} else {
|
|
628
|
-
message.
|
|
643
|
+
message.txId = "";
|
|
629
644
|
}
|
|
630
645
|
if (object.txTHash !== undefined && object.txTHash !== null) {
|
|
631
646
|
message.txTHash = String(object.txTHash);
|
|
@@ -648,7 +663,7 @@ export const MsgApproveTransaction = {
|
|
|
648
663
|
toJSON(message: MsgApproveTransaction): unknown {
|
|
649
664
|
const obj: any = {};
|
|
650
665
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
651
|
-
message.
|
|
666
|
+
message.txId !== undefined && (obj.txId = message.txId);
|
|
652
667
|
message.txTHash !== undefined && (obj.txTHash = message.txTHash);
|
|
653
668
|
message.success !== undefined && (obj.success = message.success);
|
|
654
669
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
@@ -664,10 +679,10 @@ export const MsgApproveTransaction = {
|
|
|
664
679
|
} else {
|
|
665
680
|
message.creator = "";
|
|
666
681
|
}
|
|
667
|
-
if (object.
|
|
668
|
-
message.
|
|
682
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
683
|
+
message.txId = object.txId;
|
|
669
684
|
} else {
|
|
670
|
-
message.
|
|
685
|
+
message.txId = "";
|
|
671
686
|
}
|
|
672
687
|
if (object.txTHash !== undefined && object.txTHash !== null) {
|
|
673
688
|
message.txTHash = object.txTHash;
|
|
@@ -774,144 +789,6 @@ export const MsgApproveTransactionResponse = {
|
|
|
774
789
|
},
|
|
775
790
|
};
|
|
776
791
|
|
|
777
|
-
const baseMsgFetchBalance: object = { creator: "" };
|
|
778
|
-
|
|
779
|
-
export const MsgFetchBalance = {
|
|
780
|
-
encode(message: MsgFetchBalance, writer: Writer = Writer.create()): Writer {
|
|
781
|
-
if (message.creator !== "") {
|
|
782
|
-
writer.uint32(10).string(message.creator);
|
|
783
|
-
}
|
|
784
|
-
return writer;
|
|
785
|
-
},
|
|
786
|
-
|
|
787
|
-
decode(input: Reader | Uint8Array, length?: number): MsgFetchBalance {
|
|
788
|
-
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
789
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
790
|
-
const message = { ...baseMsgFetchBalance } as MsgFetchBalance;
|
|
791
|
-
while (reader.pos < end) {
|
|
792
|
-
const tag = reader.uint32();
|
|
793
|
-
switch (tag >>> 3) {
|
|
794
|
-
case 1:
|
|
795
|
-
message.creator = reader.string();
|
|
796
|
-
break;
|
|
797
|
-
default:
|
|
798
|
-
reader.skipType(tag & 7);
|
|
799
|
-
break;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
return message;
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
fromJSON(object: any): MsgFetchBalance {
|
|
806
|
-
const message = { ...baseMsgFetchBalance } as MsgFetchBalance;
|
|
807
|
-
if (object.creator !== undefined && object.creator !== null) {
|
|
808
|
-
message.creator = String(object.creator);
|
|
809
|
-
} else {
|
|
810
|
-
message.creator = "";
|
|
811
|
-
}
|
|
812
|
-
return message;
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
toJSON(message: MsgFetchBalance): unknown {
|
|
816
|
-
const obj: any = {};
|
|
817
|
-
message.creator !== undefined && (obj.creator = message.creator);
|
|
818
|
-
return obj;
|
|
819
|
-
},
|
|
820
|
-
|
|
821
|
-
fromPartial(object: DeepPartial<MsgFetchBalance>): MsgFetchBalance {
|
|
822
|
-
const message = { ...baseMsgFetchBalance } as MsgFetchBalance;
|
|
823
|
-
if (object.creator !== undefined && object.creator !== null) {
|
|
824
|
-
message.creator = object.creator;
|
|
825
|
-
} else {
|
|
826
|
-
message.creator = "";
|
|
827
|
-
}
|
|
828
|
-
return message;
|
|
829
|
-
},
|
|
830
|
-
};
|
|
831
|
-
|
|
832
|
-
const baseMsgFetchBalanceResponse: object = { code: "", result: "" };
|
|
833
|
-
|
|
834
|
-
export const MsgFetchBalanceResponse = {
|
|
835
|
-
encode(
|
|
836
|
-
message: MsgFetchBalanceResponse,
|
|
837
|
-
writer: Writer = Writer.create()
|
|
838
|
-
): Writer {
|
|
839
|
-
if (message.code !== "") {
|
|
840
|
-
writer.uint32(10).string(message.code);
|
|
841
|
-
}
|
|
842
|
-
if (message.result !== "") {
|
|
843
|
-
writer.uint32(18).string(message.result);
|
|
844
|
-
}
|
|
845
|
-
return writer;
|
|
846
|
-
},
|
|
847
|
-
|
|
848
|
-
decode(input: Reader | Uint8Array, length?: number): MsgFetchBalanceResponse {
|
|
849
|
-
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
850
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
851
|
-
const message = {
|
|
852
|
-
...baseMsgFetchBalanceResponse,
|
|
853
|
-
} as MsgFetchBalanceResponse;
|
|
854
|
-
while (reader.pos < end) {
|
|
855
|
-
const tag = reader.uint32();
|
|
856
|
-
switch (tag >>> 3) {
|
|
857
|
-
case 1:
|
|
858
|
-
message.code = reader.string();
|
|
859
|
-
break;
|
|
860
|
-
case 2:
|
|
861
|
-
message.result = reader.string();
|
|
862
|
-
break;
|
|
863
|
-
default:
|
|
864
|
-
reader.skipType(tag & 7);
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
return message;
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
fromJSON(object: any): MsgFetchBalanceResponse {
|
|
872
|
-
const message = {
|
|
873
|
-
...baseMsgFetchBalanceResponse,
|
|
874
|
-
} as MsgFetchBalanceResponse;
|
|
875
|
-
if (object.code !== undefined && object.code !== null) {
|
|
876
|
-
message.code = String(object.code);
|
|
877
|
-
} else {
|
|
878
|
-
message.code = "";
|
|
879
|
-
}
|
|
880
|
-
if (object.result !== undefined && object.result !== null) {
|
|
881
|
-
message.result = String(object.result);
|
|
882
|
-
} else {
|
|
883
|
-
message.result = "";
|
|
884
|
-
}
|
|
885
|
-
return message;
|
|
886
|
-
},
|
|
887
|
-
|
|
888
|
-
toJSON(message: MsgFetchBalanceResponse): unknown {
|
|
889
|
-
const obj: any = {};
|
|
890
|
-
message.code !== undefined && (obj.code = message.code);
|
|
891
|
-
message.result !== undefined && (obj.result = message.result);
|
|
892
|
-
return obj;
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
fromPartial(
|
|
896
|
-
object: DeepPartial<MsgFetchBalanceResponse>
|
|
897
|
-
): MsgFetchBalanceResponse {
|
|
898
|
-
const message = {
|
|
899
|
-
...baseMsgFetchBalanceResponse,
|
|
900
|
-
} as MsgFetchBalanceResponse;
|
|
901
|
-
if (object.code !== undefined && object.code !== null) {
|
|
902
|
-
message.code = object.code;
|
|
903
|
-
} else {
|
|
904
|
-
message.code = "";
|
|
905
|
-
}
|
|
906
|
-
if (object.result !== undefined && object.result !== null) {
|
|
907
|
-
message.result = object.result;
|
|
908
|
-
} else {
|
|
909
|
-
message.result = "";
|
|
910
|
-
}
|
|
911
|
-
return message;
|
|
912
|
-
},
|
|
913
|
-
};
|
|
914
|
-
|
|
915
792
|
const baseMsgObservationVote: object = {
|
|
916
793
|
creator: "",
|
|
917
794
|
txHash: "",
|
|
@@ -920,6 +797,8 @@ const baseMsgObservationVote: object = {
|
|
|
920
797
|
to: "",
|
|
921
798
|
amount: "",
|
|
922
799
|
payType: "",
|
|
800
|
+
kimaTxID: "",
|
|
801
|
+
succeed: "",
|
|
923
802
|
};
|
|
924
803
|
|
|
925
804
|
export const MsgObservationVote = {
|
|
@@ -948,6 +827,12 @@ export const MsgObservationVote = {
|
|
|
948
827
|
if (message.payType !== "") {
|
|
949
828
|
writer.uint32(58).string(message.payType);
|
|
950
829
|
}
|
|
830
|
+
if (message.kimaTxID !== "") {
|
|
831
|
+
writer.uint32(66).string(message.kimaTxID);
|
|
832
|
+
}
|
|
833
|
+
if (message.succeed !== "") {
|
|
834
|
+
writer.uint32(74).string(message.succeed);
|
|
835
|
+
}
|
|
951
836
|
return writer;
|
|
952
837
|
},
|
|
953
838
|
|
|
@@ -979,6 +864,12 @@ export const MsgObservationVote = {
|
|
|
979
864
|
case 7:
|
|
980
865
|
message.payType = reader.string();
|
|
981
866
|
break;
|
|
867
|
+
case 8:
|
|
868
|
+
message.kimaTxID = reader.string();
|
|
869
|
+
break;
|
|
870
|
+
case 9:
|
|
871
|
+
message.succeed = reader.string();
|
|
872
|
+
break;
|
|
982
873
|
default:
|
|
983
874
|
reader.skipType(tag & 7);
|
|
984
875
|
break;
|
|
@@ -1024,6 +915,16 @@ export const MsgObservationVote = {
|
|
|
1024
915
|
} else {
|
|
1025
916
|
message.payType = "";
|
|
1026
917
|
}
|
|
918
|
+
if (object.kimaTxID !== undefined && object.kimaTxID !== null) {
|
|
919
|
+
message.kimaTxID = String(object.kimaTxID);
|
|
920
|
+
} else {
|
|
921
|
+
message.kimaTxID = "";
|
|
922
|
+
}
|
|
923
|
+
if (object.succeed !== undefined && object.succeed !== null) {
|
|
924
|
+
message.succeed = String(object.succeed);
|
|
925
|
+
} else {
|
|
926
|
+
message.succeed = "";
|
|
927
|
+
}
|
|
1027
928
|
return message;
|
|
1028
929
|
},
|
|
1029
930
|
|
|
@@ -1036,6 +937,8 @@ export const MsgObservationVote = {
|
|
|
1036
937
|
message.to !== undefined && (obj.to = message.to);
|
|
1037
938
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
1038
939
|
message.payType !== undefined && (obj.payType = message.payType);
|
|
940
|
+
message.kimaTxID !== undefined && (obj.kimaTxID = message.kimaTxID);
|
|
941
|
+
message.succeed !== undefined && (obj.succeed = message.succeed);
|
|
1039
942
|
return obj;
|
|
1040
943
|
},
|
|
1041
944
|
|
|
@@ -1076,6 +979,16 @@ export const MsgObservationVote = {
|
|
|
1076
979
|
} else {
|
|
1077
980
|
message.payType = "";
|
|
1078
981
|
}
|
|
982
|
+
if (object.kimaTxID !== undefined && object.kimaTxID !== null) {
|
|
983
|
+
message.kimaTxID = object.kimaTxID;
|
|
984
|
+
} else {
|
|
985
|
+
message.kimaTxID = "";
|
|
986
|
+
}
|
|
987
|
+
if (object.succeed !== undefined && object.succeed !== null) {
|
|
988
|
+
message.succeed = object.succeed;
|
|
989
|
+
} else {
|
|
990
|
+
message.succeed = "";
|
|
991
|
+
}
|
|
1079
992
|
return message;
|
|
1080
993
|
},
|
|
1081
994
|
};
|
|
@@ -2819,7 +2732,7 @@ const baseMsgUpdateTssPubkey: object = {
|
|
|
2819
2732
|
creator: "",
|
|
2820
2733
|
tssPubkey: "",
|
|
2821
2734
|
ecdsa: "",
|
|
2822
|
-
|
|
2735
|
+
eddsa: "",
|
|
2823
2736
|
reserved: "",
|
|
2824
2737
|
};
|
|
2825
2738
|
|
|
@@ -2837,8 +2750,8 @@ export const MsgUpdateTssPubkey = {
|
|
|
2837
2750
|
if (message.ecdsa !== "") {
|
|
2838
2751
|
writer.uint32(26).string(message.ecdsa);
|
|
2839
2752
|
}
|
|
2840
|
-
if (message.
|
|
2841
|
-
writer.uint32(34).string(message.
|
|
2753
|
+
if (message.eddsa !== "") {
|
|
2754
|
+
writer.uint32(34).string(message.eddsa);
|
|
2842
2755
|
}
|
|
2843
2756
|
if (message.reserved !== "") {
|
|
2844
2757
|
writer.uint32(42).string(message.reserved);
|
|
@@ -2863,7 +2776,7 @@ export const MsgUpdateTssPubkey = {
|
|
|
2863
2776
|
message.ecdsa = reader.string();
|
|
2864
2777
|
break;
|
|
2865
2778
|
case 4:
|
|
2866
|
-
message.
|
|
2779
|
+
message.eddsa = reader.string();
|
|
2867
2780
|
break;
|
|
2868
2781
|
case 5:
|
|
2869
2782
|
message.reserved = reader.string();
|
|
@@ -2893,10 +2806,10 @@ export const MsgUpdateTssPubkey = {
|
|
|
2893
2806
|
} else {
|
|
2894
2807
|
message.ecdsa = "";
|
|
2895
2808
|
}
|
|
2896
|
-
if (object.
|
|
2897
|
-
message.
|
|
2809
|
+
if (object.eddsa !== undefined && object.eddsa !== null) {
|
|
2810
|
+
message.eddsa = String(object.eddsa);
|
|
2898
2811
|
} else {
|
|
2899
|
-
message.
|
|
2812
|
+
message.eddsa = "";
|
|
2900
2813
|
}
|
|
2901
2814
|
if (object.reserved !== undefined && object.reserved !== null) {
|
|
2902
2815
|
message.reserved = String(object.reserved);
|
|
@@ -2911,7 +2824,7 @@ export const MsgUpdateTssPubkey = {
|
|
|
2911
2824
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
2912
2825
|
message.tssPubkey !== undefined && (obj.tssPubkey = message.tssPubkey);
|
|
2913
2826
|
message.ecdsa !== undefined && (obj.ecdsa = message.ecdsa);
|
|
2914
|
-
message.
|
|
2827
|
+
message.eddsa !== undefined && (obj.eddsa = message.eddsa);
|
|
2915
2828
|
message.reserved !== undefined && (obj.reserved = message.reserved);
|
|
2916
2829
|
return obj;
|
|
2917
2830
|
},
|
|
@@ -2933,10 +2846,10 @@ export const MsgUpdateTssPubkey = {
|
|
|
2933
2846
|
} else {
|
|
2934
2847
|
message.ecdsa = "";
|
|
2935
2848
|
}
|
|
2936
|
-
if (object.
|
|
2937
|
-
message.
|
|
2849
|
+
if (object.eddsa !== undefined && object.eddsa !== null) {
|
|
2850
|
+
message.eddsa = object.eddsa;
|
|
2938
2851
|
} else {
|
|
2939
|
-
message.
|
|
2852
|
+
message.eddsa = "";
|
|
2940
2853
|
}
|
|
2941
2854
|
if (object.reserved !== undefined && object.reserved !== null) {
|
|
2942
2855
|
message.reserved = object.reserved;
|
|
@@ -4345,6 +4258,383 @@ export const MsgSetTxHashResponse = {
|
|
|
4345
4258
|
},
|
|
4346
4259
|
};
|
|
4347
4260
|
|
|
4261
|
+
const baseMsgSetTxProcess: object = {
|
|
4262
|
+
creator: "",
|
|
4263
|
+
txId: "",
|
|
4264
|
+
timestamp: "",
|
|
4265
|
+
msgId: "",
|
|
4266
|
+
};
|
|
4267
|
+
|
|
4268
|
+
export const MsgSetTxProcess = {
|
|
4269
|
+
encode(message: MsgSetTxProcess, writer: Writer = Writer.create()): Writer {
|
|
4270
|
+
if (message.creator !== "") {
|
|
4271
|
+
writer.uint32(10).string(message.creator);
|
|
4272
|
+
}
|
|
4273
|
+
if (message.txId !== "") {
|
|
4274
|
+
writer.uint32(18).string(message.txId);
|
|
4275
|
+
}
|
|
4276
|
+
if (message.timestamp !== "") {
|
|
4277
|
+
writer.uint32(26).string(message.timestamp);
|
|
4278
|
+
}
|
|
4279
|
+
if (message.msgId !== "") {
|
|
4280
|
+
writer.uint32(34).string(message.msgId);
|
|
4281
|
+
}
|
|
4282
|
+
return writer;
|
|
4283
|
+
},
|
|
4284
|
+
|
|
4285
|
+
decode(input: Reader | Uint8Array, length?: number): MsgSetTxProcess {
|
|
4286
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4287
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4288
|
+
const message = { ...baseMsgSetTxProcess } as MsgSetTxProcess;
|
|
4289
|
+
while (reader.pos < end) {
|
|
4290
|
+
const tag = reader.uint32();
|
|
4291
|
+
switch (tag >>> 3) {
|
|
4292
|
+
case 1:
|
|
4293
|
+
message.creator = reader.string();
|
|
4294
|
+
break;
|
|
4295
|
+
case 2:
|
|
4296
|
+
message.txId = reader.string();
|
|
4297
|
+
break;
|
|
4298
|
+
case 3:
|
|
4299
|
+
message.timestamp = reader.string();
|
|
4300
|
+
break;
|
|
4301
|
+
case 4:
|
|
4302
|
+
message.msgId = reader.string();
|
|
4303
|
+
break;
|
|
4304
|
+
default:
|
|
4305
|
+
reader.skipType(tag & 7);
|
|
4306
|
+
break;
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
return message;
|
|
4310
|
+
},
|
|
4311
|
+
|
|
4312
|
+
fromJSON(object: any): MsgSetTxProcess {
|
|
4313
|
+
const message = { ...baseMsgSetTxProcess } as MsgSetTxProcess;
|
|
4314
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4315
|
+
message.creator = String(object.creator);
|
|
4316
|
+
} else {
|
|
4317
|
+
message.creator = "";
|
|
4318
|
+
}
|
|
4319
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
4320
|
+
message.txId = String(object.txId);
|
|
4321
|
+
} else {
|
|
4322
|
+
message.txId = "";
|
|
4323
|
+
}
|
|
4324
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
4325
|
+
message.timestamp = String(object.timestamp);
|
|
4326
|
+
} else {
|
|
4327
|
+
message.timestamp = "";
|
|
4328
|
+
}
|
|
4329
|
+
if (object.msgId !== undefined && object.msgId !== null) {
|
|
4330
|
+
message.msgId = String(object.msgId);
|
|
4331
|
+
} else {
|
|
4332
|
+
message.msgId = "";
|
|
4333
|
+
}
|
|
4334
|
+
return message;
|
|
4335
|
+
},
|
|
4336
|
+
|
|
4337
|
+
toJSON(message: MsgSetTxProcess): unknown {
|
|
4338
|
+
const obj: any = {};
|
|
4339
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
4340
|
+
message.txId !== undefined && (obj.txId = message.txId);
|
|
4341
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
4342
|
+
message.msgId !== undefined && (obj.msgId = message.msgId);
|
|
4343
|
+
return obj;
|
|
4344
|
+
},
|
|
4345
|
+
|
|
4346
|
+
fromPartial(object: DeepPartial<MsgSetTxProcess>): MsgSetTxProcess {
|
|
4347
|
+
const message = { ...baseMsgSetTxProcess } as MsgSetTxProcess;
|
|
4348
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4349
|
+
message.creator = object.creator;
|
|
4350
|
+
} else {
|
|
4351
|
+
message.creator = "";
|
|
4352
|
+
}
|
|
4353
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
4354
|
+
message.txId = object.txId;
|
|
4355
|
+
} else {
|
|
4356
|
+
message.txId = "";
|
|
4357
|
+
}
|
|
4358
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
4359
|
+
message.timestamp = object.timestamp;
|
|
4360
|
+
} else {
|
|
4361
|
+
message.timestamp = "";
|
|
4362
|
+
}
|
|
4363
|
+
if (object.msgId !== undefined && object.msgId !== null) {
|
|
4364
|
+
message.msgId = object.msgId;
|
|
4365
|
+
} else {
|
|
4366
|
+
message.msgId = "";
|
|
4367
|
+
}
|
|
4368
|
+
return message;
|
|
4369
|
+
},
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
const baseMsgSetTxProcessResponse: object = {};
|
|
4373
|
+
|
|
4374
|
+
export const MsgSetTxProcessResponse = {
|
|
4375
|
+
encode(_: MsgSetTxProcessResponse, writer: Writer = Writer.create()): Writer {
|
|
4376
|
+
return writer;
|
|
4377
|
+
},
|
|
4378
|
+
|
|
4379
|
+
decode(input: Reader | Uint8Array, length?: number): MsgSetTxProcessResponse {
|
|
4380
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4381
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4382
|
+
const message = {
|
|
4383
|
+
...baseMsgSetTxProcessResponse,
|
|
4384
|
+
} as MsgSetTxProcessResponse;
|
|
4385
|
+
while (reader.pos < end) {
|
|
4386
|
+
const tag = reader.uint32();
|
|
4387
|
+
switch (tag >>> 3) {
|
|
4388
|
+
default:
|
|
4389
|
+
reader.skipType(tag & 7);
|
|
4390
|
+
break;
|
|
4391
|
+
}
|
|
4392
|
+
}
|
|
4393
|
+
return message;
|
|
4394
|
+
},
|
|
4395
|
+
|
|
4396
|
+
fromJSON(_: any): MsgSetTxProcessResponse {
|
|
4397
|
+
const message = {
|
|
4398
|
+
...baseMsgSetTxProcessResponse,
|
|
4399
|
+
} as MsgSetTxProcessResponse;
|
|
4400
|
+
return message;
|
|
4401
|
+
},
|
|
4402
|
+
|
|
4403
|
+
toJSON(_: MsgSetTxProcessResponse): unknown {
|
|
4404
|
+
const obj: any = {};
|
|
4405
|
+
return obj;
|
|
4406
|
+
},
|
|
4407
|
+
|
|
4408
|
+
fromPartial(
|
|
4409
|
+
_: DeepPartial<MsgSetTxProcessResponse>
|
|
4410
|
+
): MsgSetTxProcessResponse {
|
|
4411
|
+
const message = {
|
|
4412
|
+
...baseMsgSetTxProcessResponse,
|
|
4413
|
+
} as MsgSetTxProcessResponse;
|
|
4414
|
+
return message;
|
|
4415
|
+
},
|
|
4416
|
+
};
|
|
4417
|
+
|
|
4418
|
+
const baseMsgFinalizeTransaction: object = {
|
|
4419
|
+
creator: "",
|
|
4420
|
+
txId: "",
|
|
4421
|
+
txHash: "",
|
|
4422
|
+
success: "",
|
|
4423
|
+
signedKey: "",
|
|
4424
|
+
};
|
|
4425
|
+
|
|
4426
|
+
export const MsgFinalizeTransaction = {
|
|
4427
|
+
encode(
|
|
4428
|
+
message: MsgFinalizeTransaction,
|
|
4429
|
+
writer: Writer = Writer.create()
|
|
4430
|
+
): Writer {
|
|
4431
|
+
if (message.creator !== "") {
|
|
4432
|
+
writer.uint32(10).string(message.creator);
|
|
4433
|
+
}
|
|
4434
|
+
if (message.txId !== "") {
|
|
4435
|
+
writer.uint32(18).string(message.txId);
|
|
4436
|
+
}
|
|
4437
|
+
if (message.txHash !== "") {
|
|
4438
|
+
writer.uint32(26).string(message.txHash);
|
|
4439
|
+
}
|
|
4440
|
+
if (message.success !== "") {
|
|
4441
|
+
writer.uint32(34).string(message.success);
|
|
4442
|
+
}
|
|
4443
|
+
if (message.signedKey !== "") {
|
|
4444
|
+
writer.uint32(42).string(message.signedKey);
|
|
4445
|
+
}
|
|
4446
|
+
return writer;
|
|
4447
|
+
},
|
|
4448
|
+
|
|
4449
|
+
decode(input: Reader | Uint8Array, length?: number): MsgFinalizeTransaction {
|
|
4450
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4451
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4452
|
+
const message = { ...baseMsgFinalizeTransaction } as MsgFinalizeTransaction;
|
|
4453
|
+
while (reader.pos < end) {
|
|
4454
|
+
const tag = reader.uint32();
|
|
4455
|
+
switch (tag >>> 3) {
|
|
4456
|
+
case 1:
|
|
4457
|
+
message.creator = reader.string();
|
|
4458
|
+
break;
|
|
4459
|
+
case 2:
|
|
4460
|
+
message.txId = reader.string();
|
|
4461
|
+
break;
|
|
4462
|
+
case 3:
|
|
4463
|
+
message.txHash = reader.string();
|
|
4464
|
+
break;
|
|
4465
|
+
case 4:
|
|
4466
|
+
message.success = reader.string();
|
|
4467
|
+
break;
|
|
4468
|
+
case 5:
|
|
4469
|
+
message.signedKey = reader.string();
|
|
4470
|
+
break;
|
|
4471
|
+
default:
|
|
4472
|
+
reader.skipType(tag & 7);
|
|
4473
|
+
break;
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
return message;
|
|
4477
|
+
},
|
|
4478
|
+
|
|
4479
|
+
fromJSON(object: any): MsgFinalizeTransaction {
|
|
4480
|
+
const message = { ...baseMsgFinalizeTransaction } as MsgFinalizeTransaction;
|
|
4481
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4482
|
+
message.creator = String(object.creator);
|
|
4483
|
+
} else {
|
|
4484
|
+
message.creator = "";
|
|
4485
|
+
}
|
|
4486
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
4487
|
+
message.txId = String(object.txId);
|
|
4488
|
+
} else {
|
|
4489
|
+
message.txId = "";
|
|
4490
|
+
}
|
|
4491
|
+
if (object.txHash !== undefined && object.txHash !== null) {
|
|
4492
|
+
message.txHash = String(object.txHash);
|
|
4493
|
+
} else {
|
|
4494
|
+
message.txHash = "";
|
|
4495
|
+
}
|
|
4496
|
+
if (object.success !== undefined && object.success !== null) {
|
|
4497
|
+
message.success = String(object.success);
|
|
4498
|
+
} else {
|
|
4499
|
+
message.success = "";
|
|
4500
|
+
}
|
|
4501
|
+
if (object.signedKey !== undefined && object.signedKey !== null) {
|
|
4502
|
+
message.signedKey = String(object.signedKey);
|
|
4503
|
+
} else {
|
|
4504
|
+
message.signedKey = "";
|
|
4505
|
+
}
|
|
4506
|
+
return message;
|
|
4507
|
+
},
|
|
4508
|
+
|
|
4509
|
+
toJSON(message: MsgFinalizeTransaction): unknown {
|
|
4510
|
+
const obj: any = {};
|
|
4511
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
4512
|
+
message.txId !== undefined && (obj.txId = message.txId);
|
|
4513
|
+
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
4514
|
+
message.success !== undefined && (obj.success = message.success);
|
|
4515
|
+
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
4516
|
+
return obj;
|
|
4517
|
+
},
|
|
4518
|
+
|
|
4519
|
+
fromPartial(
|
|
4520
|
+
object: DeepPartial<MsgFinalizeTransaction>
|
|
4521
|
+
): MsgFinalizeTransaction {
|
|
4522
|
+
const message = { ...baseMsgFinalizeTransaction } as MsgFinalizeTransaction;
|
|
4523
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4524
|
+
message.creator = object.creator;
|
|
4525
|
+
} else {
|
|
4526
|
+
message.creator = "";
|
|
4527
|
+
}
|
|
4528
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
4529
|
+
message.txId = object.txId;
|
|
4530
|
+
} else {
|
|
4531
|
+
message.txId = "";
|
|
4532
|
+
}
|
|
4533
|
+
if (object.txHash !== undefined && object.txHash !== null) {
|
|
4534
|
+
message.txHash = object.txHash;
|
|
4535
|
+
} else {
|
|
4536
|
+
message.txHash = "";
|
|
4537
|
+
}
|
|
4538
|
+
if (object.success !== undefined && object.success !== null) {
|
|
4539
|
+
message.success = object.success;
|
|
4540
|
+
} else {
|
|
4541
|
+
message.success = "";
|
|
4542
|
+
}
|
|
4543
|
+
if (object.signedKey !== undefined && object.signedKey !== null) {
|
|
4544
|
+
message.signedKey = object.signedKey;
|
|
4545
|
+
} else {
|
|
4546
|
+
message.signedKey = "";
|
|
4547
|
+
}
|
|
4548
|
+
return message;
|
|
4549
|
+
},
|
|
4550
|
+
};
|
|
4551
|
+
|
|
4552
|
+
const baseMsgFinalizeTransactionResponse: object = { code: "", msg: "" };
|
|
4553
|
+
|
|
4554
|
+
export const MsgFinalizeTransactionResponse = {
|
|
4555
|
+
encode(
|
|
4556
|
+
message: MsgFinalizeTransactionResponse,
|
|
4557
|
+
writer: Writer = Writer.create()
|
|
4558
|
+
): Writer {
|
|
4559
|
+
if (message.code !== "") {
|
|
4560
|
+
writer.uint32(10).string(message.code);
|
|
4561
|
+
}
|
|
4562
|
+
if (message.msg !== "") {
|
|
4563
|
+
writer.uint32(18).string(message.msg);
|
|
4564
|
+
}
|
|
4565
|
+
return writer;
|
|
4566
|
+
},
|
|
4567
|
+
|
|
4568
|
+
decode(
|
|
4569
|
+
input: Reader | Uint8Array,
|
|
4570
|
+
length?: number
|
|
4571
|
+
): MsgFinalizeTransactionResponse {
|
|
4572
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4573
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4574
|
+
const message = {
|
|
4575
|
+
...baseMsgFinalizeTransactionResponse,
|
|
4576
|
+
} as MsgFinalizeTransactionResponse;
|
|
4577
|
+
while (reader.pos < end) {
|
|
4578
|
+
const tag = reader.uint32();
|
|
4579
|
+
switch (tag >>> 3) {
|
|
4580
|
+
case 1:
|
|
4581
|
+
message.code = reader.string();
|
|
4582
|
+
break;
|
|
4583
|
+
case 2:
|
|
4584
|
+
message.msg = reader.string();
|
|
4585
|
+
break;
|
|
4586
|
+
default:
|
|
4587
|
+
reader.skipType(tag & 7);
|
|
4588
|
+
break;
|
|
4589
|
+
}
|
|
4590
|
+
}
|
|
4591
|
+
return message;
|
|
4592
|
+
},
|
|
4593
|
+
|
|
4594
|
+
fromJSON(object: any): MsgFinalizeTransactionResponse {
|
|
4595
|
+
const message = {
|
|
4596
|
+
...baseMsgFinalizeTransactionResponse,
|
|
4597
|
+
} as MsgFinalizeTransactionResponse;
|
|
4598
|
+
if (object.code !== undefined && object.code !== null) {
|
|
4599
|
+
message.code = String(object.code);
|
|
4600
|
+
} else {
|
|
4601
|
+
message.code = "";
|
|
4602
|
+
}
|
|
4603
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
4604
|
+
message.msg = String(object.msg);
|
|
4605
|
+
} else {
|
|
4606
|
+
message.msg = "";
|
|
4607
|
+
}
|
|
4608
|
+
return message;
|
|
4609
|
+
},
|
|
4610
|
+
|
|
4611
|
+
toJSON(message: MsgFinalizeTransactionResponse): unknown {
|
|
4612
|
+
const obj: any = {};
|
|
4613
|
+
message.code !== undefined && (obj.code = message.code);
|
|
4614
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
4615
|
+
return obj;
|
|
4616
|
+
},
|
|
4617
|
+
|
|
4618
|
+
fromPartial(
|
|
4619
|
+
object: DeepPartial<MsgFinalizeTransactionResponse>
|
|
4620
|
+
): MsgFinalizeTransactionResponse {
|
|
4621
|
+
const message = {
|
|
4622
|
+
...baseMsgFinalizeTransactionResponse,
|
|
4623
|
+
} as MsgFinalizeTransactionResponse;
|
|
4624
|
+
if (object.code !== undefined && object.code !== null) {
|
|
4625
|
+
message.code = object.code;
|
|
4626
|
+
} else {
|
|
4627
|
+
message.code = "";
|
|
4628
|
+
}
|
|
4629
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
4630
|
+
message.msg = object.msg;
|
|
4631
|
+
} else {
|
|
4632
|
+
message.msg = "";
|
|
4633
|
+
}
|
|
4634
|
+
return message;
|
|
4635
|
+
},
|
|
4636
|
+
};
|
|
4637
|
+
|
|
4348
4638
|
/** Msg defines the Msg service. */
|
|
4349
4639
|
export interface Msg {
|
|
4350
4640
|
RequestTransaction(
|
|
@@ -4353,7 +4643,6 @@ export interface Msg {
|
|
|
4353
4643
|
ApproveTransaction(
|
|
4354
4644
|
request: MsgApproveTransaction
|
|
4355
4645
|
): Promise<MsgApproveTransactionResponse>;
|
|
4356
|
-
FetchBalance(request: MsgFetchBalance): Promise<MsgFetchBalanceResponse>;
|
|
4357
4646
|
ObservationVote(
|
|
4358
4647
|
request: MsgObservationVote
|
|
4359
4648
|
): Promise<MsgObservationVoteResponse>;
|
|
@@ -4390,8 +4679,12 @@ export interface Msg {
|
|
|
4390
4679
|
UpdateTssStatus(
|
|
4391
4680
|
request: MsgUpdateTssStatus
|
|
4392
4681
|
): Promise<MsgUpdateTssStatusResponse>;
|
|
4393
|
-
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
4394
4682
|
SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
|
|
4683
|
+
SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse>;
|
|
4684
|
+
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
4685
|
+
FinalizeTransaction(
|
|
4686
|
+
request: MsgFinalizeTransaction
|
|
4687
|
+
): Promise<MsgFinalizeTransactionResponse>;
|
|
4395
4688
|
}
|
|
4396
4689
|
|
|
4397
4690
|
export class MsgClientImpl implements Msg {
|
|
@@ -4427,18 +4720,6 @@ export class MsgClientImpl implements Msg {
|
|
|
4427
4720
|
);
|
|
4428
4721
|
}
|
|
4429
4722
|
|
|
4430
|
-
FetchBalance(request: MsgFetchBalance): Promise<MsgFetchBalanceResponse> {
|
|
4431
|
-
const data = MsgFetchBalance.encode(request).finish();
|
|
4432
|
-
const promise = this.rpc.request(
|
|
4433
|
-
"KimaFinance.kima.kima.Msg",
|
|
4434
|
-
"FetchBalance",
|
|
4435
|
-
data
|
|
4436
|
-
);
|
|
4437
|
-
return promise.then((data) =>
|
|
4438
|
-
MsgFetchBalanceResponse.decode(new Reader(data))
|
|
4439
|
-
);
|
|
4440
|
-
}
|
|
4441
|
-
|
|
4442
4723
|
ObservationVote(
|
|
4443
4724
|
request: MsgObservationVote
|
|
4444
4725
|
): Promise<MsgObservationVoteResponse> {
|
|
@@ -4678,6 +4959,32 @@ export class MsgClientImpl implements Msg {
|
|
|
4678
4959
|
MsgSetTxHashResponse.decode(new Reader(data))
|
|
4679
4960
|
);
|
|
4680
4961
|
}
|
|
4962
|
+
|
|
4963
|
+
SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse> {
|
|
4964
|
+
const data = MsgSetTxProcess.encode(request).finish();
|
|
4965
|
+
const promise = this.rpc.request(
|
|
4966
|
+
"KimaFinance.kima.kima.Msg",
|
|
4967
|
+
"SetTxProcess",
|
|
4968
|
+
data
|
|
4969
|
+
);
|
|
4970
|
+
return promise.then((data) =>
|
|
4971
|
+
MsgSetTxProcessResponse.decode(new Reader(data))
|
|
4972
|
+
);
|
|
4973
|
+
}
|
|
4974
|
+
|
|
4975
|
+
FinalizeTransaction(
|
|
4976
|
+
request: MsgFinalizeTransaction
|
|
4977
|
+
): Promise<MsgFinalizeTransactionResponse> {
|
|
4978
|
+
const data = MsgFinalizeTransaction.encode(request).finish();
|
|
4979
|
+
const promise = this.rpc.request(
|
|
4980
|
+
"KimaFinance.kima.kima.Msg",
|
|
4981
|
+
"FinalizeTransaction",
|
|
4982
|
+
data
|
|
4983
|
+
);
|
|
4984
|
+
return promise.then((data) =>
|
|
4985
|
+
MsgFinalizeTransactionResponse.decode(new Reader(data))
|
|
4986
|
+
);
|
|
4987
|
+
}
|
|
4681
4988
|
}
|
|
4682
4989
|
|
|
4683
4990
|
interface Rpc {
|