@kimafinance/kima-transaction-api 1.3.7 → 1.4.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 +19 -5
- package/build/api/htlc-lock.d.ts +23 -0
- package/build/api/htlc-lock.js +37 -0
- package/build/api/htlc-reclaim.d.ts +14 -0
- package/build/api/htlc-reclaim.js +28 -0
- package/build/api/submit.d.ts +54 -0
- package/build/api/submit.js +94 -0
- package/build/config/global-this.config.d.ts +2 -0
- package/build/config/global-this.config.js +18 -0
- package/build/config/probuff.config.d.ts +2 -0
- package/build/config/probuff.config.js +12 -0
- package/build/index.d.ts +3 -50
- package/build/index.js +17 -121
- package/build/kima/common.d.ts +4 -1
- package/build/kima/common.js +12 -9
- package/build/kima/tx/cancel.d.ts +35 -0
- package/build/kima/tx/cancel.js +115 -0
- package/build/kima/tx/drain-finalize.d.ts +47 -0
- package/build/kima/tx/drain-finalize.js +155 -0
- package/build/kima/tx/drain.d.ts +50 -0
- package/build/kima/tx/drain.js +164 -0
- package/build/kima/tx/finalize.d.ts +47 -0
- package/build/kima/tx/finalize.js +155 -0
- package/build/kima/tx/htlc-lock.d.ts +42 -0
- package/build/kima/tx/htlc-lock.js +152 -0
- package/build/kima/tx/htlc-reclaim.d.ts +30 -0
- package/build/kima/tx/htlc-reclaim.js +105 -0
- package/build/kima/tx/index.d.ts +1 -0
- package/build/kima/tx/index.js +4 -0
- package/build/kima/tx/liquidity-provision.d.ts +30 -0
- package/build/kima/tx/liquidity-provision.js +102 -0
- package/build/kima/tx/message-service.d.ts +54 -0
- package/build/kima/tx/message-service.js +117 -0
- package/build/kima/tx/provision-finalize.d.ts +47 -0
- package/build/kima/tx/provision-finalize.js +155 -0
- package/build/kima/tx/provision.d.ts +70 -0
- package/build/kima/tx/provision.js +230 -0
- package/build/kima/tx/request.d.ts +63 -0
- package/build/kima/tx/request.js +222 -0
- package/build/kima/tx/response.d.ts +21 -0
- package/build/kima/tx/response.js +69 -0
- package/build/kima/tx/rpc.d.ts +0 -0
- package/build/kima/tx/rpc.js +1 -0
- package/build/kima/tx/set-hash.d.ts +42 -0
- package/build/kima/tx/set-hash.js +130 -0
- package/build/kima/tx/set-process.d.ts +37 -0
- package/build/kima/tx/set-process.js +121 -0
- package/build/kima/tx/transfer-limit.d.ts +30 -0
- package/build/kima/tx/transfer-limit.js +102 -0
- package/build/kima/tx/withdraw.d.ts +47 -0
- package/build/kima/tx/withdraw.js +155 -0
- package/build/utils.d.ts +17 -0
- package/build/utils.js +49 -0
- package/package.json +10 -10
- package/src/api/htlc-lock.ts +57 -0
- package/src/api/htlc-reclaim.ts +39 -0
- package/src/api/submit.ts +132 -0
- package/src/config/global-this.config.ts +20 -0
- package/src/config/probuff.config.ts +9 -0
- package/src/index.ts +3 -206
- package/src/kima/common.ts +5 -12
- package/src/kima/tx/cancel.ts +147 -0
- package/src/kima/tx/drain-finalize.ts +191 -0
- package/src/kima/tx/drain.ts +201 -0
- package/src/kima/tx/finalize.ts +191 -0
- package/src/kima/tx/htlc-lock.ts +183 -0
- package/src/kima/tx/htlc-reclaim.ts +132 -0
- package/src/kima/tx/index.ts +1 -0
- package/src/kima/tx/liquidity-provision.ts +132 -0
- package/src/kima/tx/message-service.ts +278 -0
- package/src/kima/tx/provision-finalize.ts +191 -0
- package/src/kima/tx/provision.ts +279 -0
- package/src/kima/tx/request.ts +256 -0
- package/src/kima/tx/response.ts +83 -0
- package/src/kima/tx/rpc.ts +0 -0
- package/src/kima/tx/set-hash.ts +162 -0
- package/src/kima/tx/set-process.ts +151 -0
- package/src/kima/tx/transfer-limit.ts +132 -0
- package/src/kima/tx/withdraw.ts +191 -0
- package/src/utils.ts +67 -0
- package/build/kima/tx.d.ts +0 -674
- package/build/kima/tx.js +0 -2170
- package/src/kima/tx.ts +0 -2945
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import _m0 from "../../config/probuff.config";
|
|
2
|
+
import { DeepPartial, Exact, isSet, longToNumber } from "../../utils";
|
|
3
|
+
|
|
4
|
+
export interface MsgRequestHtlcLock {
|
|
5
|
+
creator: string;
|
|
6
|
+
fromAddress: string;
|
|
7
|
+
senderPubkey: string;
|
|
8
|
+
amount: string;
|
|
9
|
+
htlcTimeout: string;
|
|
10
|
+
txHash: string;
|
|
11
|
+
htlcAddress: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface MsgRequestHtlcLockResponse {}
|
|
15
|
+
|
|
16
|
+
function createBaseMsgRequestHtlcLock(): MsgRequestHtlcLock {
|
|
17
|
+
return {
|
|
18
|
+
creator: "",
|
|
19
|
+
fromAddress: "",
|
|
20
|
+
senderPubkey: "",
|
|
21
|
+
amount: "",
|
|
22
|
+
htlcTimeout: "",
|
|
23
|
+
txHash: "",
|
|
24
|
+
htlcAddress: "",
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const MsgRequestHtlcLock = {
|
|
29
|
+
encode(
|
|
30
|
+
message: MsgRequestHtlcLock,
|
|
31
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
32
|
+
): _m0.Writer {
|
|
33
|
+
if (message.creator !== "") {
|
|
34
|
+
writer.uint32(10).string(message.creator);
|
|
35
|
+
}
|
|
36
|
+
if (message.fromAddress !== "") {
|
|
37
|
+
writer.uint32(18).string(message.fromAddress);
|
|
38
|
+
}
|
|
39
|
+
if (message.senderPubkey !== "") {
|
|
40
|
+
writer.uint32(26).string(message.senderPubkey);
|
|
41
|
+
}
|
|
42
|
+
if (message.amount !== "") {
|
|
43
|
+
writer.uint32(34).string(message.amount);
|
|
44
|
+
}
|
|
45
|
+
if (message.htlcTimeout !== "") {
|
|
46
|
+
writer.uint32(42).string(message.htlcTimeout);
|
|
47
|
+
}
|
|
48
|
+
if (message.txHash !== "") {
|
|
49
|
+
writer.uint32(50).string(message.txHash);
|
|
50
|
+
}
|
|
51
|
+
if (message.htlcAddress !== "") {
|
|
52
|
+
writer.uint32(58).string(message.htlcAddress);
|
|
53
|
+
}
|
|
54
|
+
return writer;
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestHtlcLock {
|
|
58
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
59
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
60
|
+
const message = createBaseMsgRequestHtlcLock();
|
|
61
|
+
while (reader.pos < end) {
|
|
62
|
+
const tag = reader.uint32();
|
|
63
|
+
switch (tag >>> 3) {
|
|
64
|
+
case 1:
|
|
65
|
+
message.creator = reader.string();
|
|
66
|
+
break;
|
|
67
|
+
case 2:
|
|
68
|
+
message.fromAddress = reader.string();
|
|
69
|
+
break;
|
|
70
|
+
case 3:
|
|
71
|
+
message.senderPubkey = reader.string();
|
|
72
|
+
break;
|
|
73
|
+
case 4:
|
|
74
|
+
message.amount = reader.string();
|
|
75
|
+
break;
|
|
76
|
+
case 5:
|
|
77
|
+
message.htlcTimeout = reader.string();
|
|
78
|
+
break;
|
|
79
|
+
case 6:
|
|
80
|
+
message.txHash = reader.string();
|
|
81
|
+
break;
|
|
82
|
+
case 7:
|
|
83
|
+
message.htlcAddress = reader.string();
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
reader.skipType(tag & 7);
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
fromJSON(object: any): MsgRequestHtlcLock {
|
|
94
|
+
return {
|
|
95
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
96
|
+
fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
|
|
97
|
+
senderPubkey: isSet(object.senderPubkey)
|
|
98
|
+
? String(object.senderPubkey)
|
|
99
|
+
: "",
|
|
100
|
+
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
101
|
+
htlcTimeout: isSet(object.htlcTimeout) ? String(object.htlcTimeout) : "",
|
|
102
|
+
txHash: isSet(object.txHash) ? String(object.txHash) : "",
|
|
103
|
+
htlcAddress: isSet(object.htlcAddress) ? String(object.htlcAddress) : "",
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
toJSON(message: MsgRequestHtlcLock): unknown {
|
|
108
|
+
const obj: any = {};
|
|
109
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
110
|
+
message.fromAddress !== undefined &&
|
|
111
|
+
(obj.fromAddress = message.fromAddress);
|
|
112
|
+
message.senderPubkey !== undefined &&
|
|
113
|
+
(obj.senderPubkey = message.senderPubkey);
|
|
114
|
+
message.amount !== undefined && (obj.amount = message.amount);
|
|
115
|
+
message.htlcTimeout !== undefined &&
|
|
116
|
+
(obj.htlcTimeout = message.htlcTimeout);
|
|
117
|
+
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
118
|
+
message.htlcAddress !== undefined &&
|
|
119
|
+
(obj.htlcAddress = message.htlcAddress);
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestHtlcLock>, I>>(
|
|
124
|
+
object: I
|
|
125
|
+
): MsgRequestHtlcLock {
|
|
126
|
+
const message = createBaseMsgRequestHtlcLock();
|
|
127
|
+
message.creator = object.creator ?? "";
|
|
128
|
+
message.fromAddress = object.fromAddress ?? "";
|
|
129
|
+
message.senderPubkey = object.senderPubkey ?? "";
|
|
130
|
+
message.amount = object.amount ?? "";
|
|
131
|
+
message.htlcTimeout = object.htlcTimeout ?? "";
|
|
132
|
+
message.txHash = object.txHash ?? "";
|
|
133
|
+
message.htlcAddress = object.htlcAddress ?? "";
|
|
134
|
+
return message;
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
function createBaseMsgRequestHtlcLockResponse(): MsgRequestHtlcLockResponse {
|
|
139
|
+
return {};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export const MsgRequestHtlcLockResponse = {
|
|
143
|
+
encode(
|
|
144
|
+
_: MsgRequestHtlcLockResponse,
|
|
145
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
146
|
+
): _m0.Writer {
|
|
147
|
+
return writer;
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
decode(
|
|
151
|
+
input: _m0.Reader | Uint8Array,
|
|
152
|
+
length?: number
|
|
153
|
+
): MsgRequestHtlcLockResponse {
|
|
154
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
155
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
156
|
+
const message = createBaseMsgRequestHtlcLockResponse();
|
|
157
|
+
while (reader.pos < end) {
|
|
158
|
+
const tag = reader.uint32();
|
|
159
|
+
switch (tag >>> 3) {
|
|
160
|
+
default:
|
|
161
|
+
reader.skipType(tag & 7);
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return message;
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
fromJSON(_: any): MsgRequestHtlcLockResponse {
|
|
169
|
+
return {};
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
toJSON(_: MsgRequestHtlcLockResponse): unknown {
|
|
173
|
+
const obj: any = {};
|
|
174
|
+
return obj;
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestHtlcLockResponse>, I>>(
|
|
178
|
+
_: I
|
|
179
|
+
): MsgRequestHtlcLockResponse {
|
|
180
|
+
const message = createBaseMsgRequestHtlcLockResponse();
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import _m0 from "../../config/probuff.config";
|
|
2
|
+
import { DeepPartial, Exact, isSet, longToNumber } from "../../utils";
|
|
3
|
+
|
|
4
|
+
export interface MsgHtlcReclaim {
|
|
5
|
+
creator: string;
|
|
6
|
+
txHash: string;
|
|
7
|
+
senderAddress: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface MsgHtlcReclaimResponse {}
|
|
11
|
+
|
|
12
|
+
function createBaseMsgHtlcReclaim(): MsgHtlcReclaim {
|
|
13
|
+
return { creator: "", txHash: "", senderAddress: "" };
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const MsgHtlcReclaim = {
|
|
17
|
+
encode(
|
|
18
|
+
message: MsgHtlcReclaim,
|
|
19
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
20
|
+
): _m0.Writer {
|
|
21
|
+
if (message.creator !== "") {
|
|
22
|
+
writer.uint32(10).string(message.creator);
|
|
23
|
+
}
|
|
24
|
+
if (message.txHash !== "") {
|
|
25
|
+
writer.uint32(18).string(message.txHash);
|
|
26
|
+
}
|
|
27
|
+
if (message.senderAddress !== "") {
|
|
28
|
+
writer.uint32(26).string(message.senderAddress);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgHtlcReclaim {
|
|
34
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBaseMsgHtlcReclaim();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
message.creator = reader.string();
|
|
42
|
+
break;
|
|
43
|
+
case 2:
|
|
44
|
+
message.txHash = reader.string();
|
|
45
|
+
break;
|
|
46
|
+
case 3:
|
|
47
|
+
message.senderAddress = reader.string();
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
reader.skipType(tag & 7);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
fromJSON(object: any): MsgHtlcReclaim {
|
|
58
|
+
return {
|
|
59
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
60
|
+
txHash: isSet(object.txHash) ? String(object.txHash) : "",
|
|
61
|
+
senderAddress: isSet(object.senderAddress)
|
|
62
|
+
? String(object.senderAddress)
|
|
63
|
+
: "",
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
toJSON(message: MsgHtlcReclaim): unknown {
|
|
68
|
+
const obj: any = {};
|
|
69
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
70
|
+
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
71
|
+
message.senderAddress !== undefined &&
|
|
72
|
+
(obj.senderAddress = message.senderAddress);
|
|
73
|
+
return obj;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
fromPartial<I extends Exact<DeepPartial<MsgHtlcReclaim>, I>>(
|
|
77
|
+
object: I
|
|
78
|
+
): MsgHtlcReclaim {
|
|
79
|
+
const message = createBaseMsgHtlcReclaim();
|
|
80
|
+
message.creator = object.creator ?? "";
|
|
81
|
+
message.txHash = object.txHash ?? "";
|
|
82
|
+
message.senderAddress = object.senderAddress ?? "";
|
|
83
|
+
return message;
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
function createBaseMsgHtlcReclaimResponse(): MsgHtlcReclaimResponse {
|
|
88
|
+
return {};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export const MsgHtlcReclaimResponse = {
|
|
92
|
+
encode(
|
|
93
|
+
_: MsgHtlcReclaimResponse,
|
|
94
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
95
|
+
): _m0.Writer {
|
|
96
|
+
return writer;
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
decode(
|
|
100
|
+
input: _m0.Reader | Uint8Array,
|
|
101
|
+
length?: number
|
|
102
|
+
): MsgHtlcReclaimResponse {
|
|
103
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
104
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
|
+
const message = createBaseMsgHtlcReclaimResponse();
|
|
106
|
+
while (reader.pos < end) {
|
|
107
|
+
const tag = reader.uint32();
|
|
108
|
+
switch (tag >>> 3) {
|
|
109
|
+
default:
|
|
110
|
+
reader.skipType(tag & 7);
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return message;
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
fromJSON(_: any): MsgHtlcReclaimResponse {
|
|
118
|
+
return {};
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
toJSON(_: MsgHtlcReclaimResponse): unknown {
|
|
122
|
+
const obj: any = {};
|
|
123
|
+
return obj;
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
fromPartial<I extends Exact<DeepPartial<MsgHtlcReclaimResponse>, I>>(
|
|
127
|
+
_: I
|
|
128
|
+
): MsgHtlcReclaimResponse {
|
|
129
|
+
const message = createBaseMsgHtlcReclaimResponse();
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const protobufPackage = "kimablockchain.transaction";
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import _m0 from "../../config/probuff.config";
|
|
2
|
+
import { DeepPartial, Exact, isSet, longToNumber } from "../../utils";
|
|
3
|
+
|
|
4
|
+
export interface MsgUpdateLiquidityProvisionParams {
|
|
5
|
+
authority: string;
|
|
6
|
+
maxBTC: string;
|
|
7
|
+
maxUSDT: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface MsgUpdateLiquidityProvisionParamsResponse {}
|
|
11
|
+
|
|
12
|
+
function createBaseMsgUpdateLiquidityProvisionParams(): MsgUpdateLiquidityProvisionParams {
|
|
13
|
+
return { authority: "", maxBTC: "", maxUSDT: "" };
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const MsgUpdateLiquidityProvisionParams = {
|
|
17
|
+
encode(
|
|
18
|
+
message: MsgUpdateLiquidityProvisionParams,
|
|
19
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
20
|
+
): _m0.Writer {
|
|
21
|
+
if (message.authority !== "") {
|
|
22
|
+
writer.uint32(10).string(message.authority);
|
|
23
|
+
}
|
|
24
|
+
if (message.maxBTC !== "") {
|
|
25
|
+
writer.uint32(18).string(message.maxBTC);
|
|
26
|
+
}
|
|
27
|
+
if (message.maxUSDT !== "") {
|
|
28
|
+
writer.uint32(26).string(message.maxUSDT);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
decode(
|
|
34
|
+
input: _m0.Reader | Uint8Array,
|
|
35
|
+
length?: number
|
|
36
|
+
): MsgUpdateLiquidityProvisionParams {
|
|
37
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBaseMsgUpdateLiquidityProvisionParams();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
message.authority = reader.string();
|
|
45
|
+
break;
|
|
46
|
+
case 2:
|
|
47
|
+
message.maxBTC = reader.string();
|
|
48
|
+
break;
|
|
49
|
+
case 3:
|
|
50
|
+
message.maxUSDT = reader.string();
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
reader.skipType(tag & 7);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
fromJSON(object: any): MsgUpdateLiquidityProvisionParams {
|
|
61
|
+
return {
|
|
62
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
63
|
+
maxBTC: isSet(object.maxBTC) ? String(object.maxBTC) : "",
|
|
64
|
+
maxUSDT: isSet(object.maxUSDT) ? String(object.maxUSDT) : "",
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
toJSON(message: MsgUpdateLiquidityProvisionParams): unknown {
|
|
69
|
+
const obj: any = {};
|
|
70
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
71
|
+
message.maxBTC !== undefined && (obj.maxBTC = message.maxBTC);
|
|
72
|
+
message.maxUSDT !== undefined && (obj.maxUSDT = message.maxUSDT);
|
|
73
|
+
return obj;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
fromPartial<
|
|
77
|
+
I extends Exact<DeepPartial<MsgUpdateLiquidityProvisionParams>, I>
|
|
78
|
+
>(object: I): MsgUpdateLiquidityProvisionParams {
|
|
79
|
+
const message = createBaseMsgUpdateLiquidityProvisionParams();
|
|
80
|
+
message.authority = object.authority ?? "";
|
|
81
|
+
message.maxBTC = object.maxBTC ?? "";
|
|
82
|
+
message.maxUSDT = object.maxUSDT ?? "";
|
|
83
|
+
return message;
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
function createBaseMsgUpdateLiquidityProvisionParamsResponse(): MsgUpdateLiquidityProvisionParamsResponse {
|
|
88
|
+
return {};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export const MsgUpdateLiquidityProvisionParamsResponse = {
|
|
92
|
+
encode(
|
|
93
|
+
_: MsgUpdateLiquidityProvisionParamsResponse,
|
|
94
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
95
|
+
): _m0.Writer {
|
|
96
|
+
return writer;
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
decode(
|
|
100
|
+
input: _m0.Reader | Uint8Array,
|
|
101
|
+
length?: number
|
|
102
|
+
): MsgUpdateLiquidityProvisionParamsResponse {
|
|
103
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
104
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
|
+
const message = createBaseMsgUpdateLiquidityProvisionParamsResponse();
|
|
106
|
+
while (reader.pos < end) {
|
|
107
|
+
const tag = reader.uint32();
|
|
108
|
+
switch (tag >>> 3) {
|
|
109
|
+
default:
|
|
110
|
+
reader.skipType(tag & 7);
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return message;
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
fromJSON(_: any): MsgUpdateLiquidityProvisionParamsResponse {
|
|
118
|
+
return {};
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
toJSON(_: MsgUpdateLiquidityProvisionParamsResponse): unknown {
|
|
122
|
+
const obj: any = {};
|
|
123
|
+
return obj;
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
fromPartial<
|
|
127
|
+
I extends Exact<DeepPartial<MsgUpdateLiquidityProvisionParamsResponse>, I>
|
|
128
|
+
>(_: I): MsgUpdateLiquidityProvisionParamsResponse {
|
|
129
|
+
const message = createBaseMsgUpdateLiquidityProvisionParamsResponse();
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|