@avail-project/ca-common 1.0.0-beta.6 → 1.0.0-beta.8
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/dist/cjs/_polyfill.js +147 -0
- package/dist/cjs/data/chaindata.js +43 -29
- package/dist/cjs/data/chainid.js +4 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/proto/client.js +48 -0
- package/dist/cjs/proto/definition.js +167 -448
- package/dist/cjs/proto/grpc.js +4 -9
- package/dist/cjs/rff/rff.js +0 -35
- package/dist/cjs/vaultcontracts/vaultcontracts.js +70 -29
- package/dist/cjs/xcs/autochoice.js +255 -0
- package/dist/esm/_polyfill.js +143 -0
- package/dist/esm/data/chaindata.js +43 -29
- package/dist/esm/data/chainid.js +4 -2
- package/dist/esm/index.js +13 -12
- package/dist/esm/proto/client.js +11 -0
- package/dist/esm/proto/definition.js +167 -448
- package/dist/esm/proto/grpc.js +4 -9
- package/dist/esm/rff/rff.js +0 -35
- package/dist/esm/vaultcontracts/vaultcontracts.js +70 -29
- package/dist/esm/xcs/autochoice.js +254 -0
- package/dist/types/_polyfill.d.ts +1 -0
- package/dist/types/index.d.ts +13 -12
- package/dist/types/proto/client.d.ts +2 -0
- package/dist/types/rff/rff.d.ts +0 -3
- package/dist/types/xcs/autochoice.d.ts +17 -0
- package/package.json +14 -8
- package/dist/cjs/fuelcontracts/ArcanaVault.js +0 -2407
- package/dist/cjs/fuelcontracts/ArcanaVaultFactory.js +0 -18
- package/dist/cjs/fuelcontracts/common.js +0 -3
- package/dist/cjs/fuelcontracts/index.js +0 -5
- package/dist/cjs/rff/fuel.js +0 -27
- package/dist/esm/fuelcontracts/ArcanaVault.js +0 -2402
- package/dist/esm/fuelcontracts/ArcanaVaultFactory.js +0 -14
- package/dist/esm/fuelcontracts/common.js +0 -2
- package/dist/esm/fuelcontracts/index.js +0 -2
- package/dist/esm/rff/fuel.js +0 -23
- package/dist/types/fuelcontracts/ArcanaVault.d.ts +0 -448
- package/dist/types/fuelcontracts/ArcanaVaultFactory.d.ts +0 -8
- package/dist/types/fuelcontracts/common.d.ts +0 -23
- package/dist/types/fuelcontracts/index.d.ts +0 -2
- package/dist/types/rff/fuel.d.ts +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v6.32.1
|
|
6
6
|
// source: definition.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -90,13 +90,7 @@ function universeToJSON(object) {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
function createBasePageRequest() {
|
|
93
|
-
return {
|
|
94
|
-
key: new Uint8Array(0),
|
|
95
|
-
offset: long_1.default.UZERO,
|
|
96
|
-
limit: long_1.default.UZERO,
|
|
97
|
-
countTotal: false,
|
|
98
|
-
reverse: false,
|
|
99
|
-
};
|
|
93
|
+
return { key: new Uint8Array(0), offset: long_1.default.UZERO, limit: long_1.default.UZERO, countTotal: false, reverse: false };
|
|
100
94
|
}
|
|
101
95
|
exports.PageRequest = {
|
|
102
96
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -172,12 +166,8 @@ exports.PageRequest = {
|
|
|
172
166
|
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
173
167
|
offset: isSet(object.offset) ? long_1.default.fromValue(object.offset) : long_1.default.UZERO,
|
|
174
168
|
limit: isSet(object.limit) ? long_1.default.fromValue(object.limit) : long_1.default.UZERO,
|
|
175
|
-
countTotal: isSet(object.countTotal)
|
|
176
|
-
|
|
177
|
-
: false,
|
|
178
|
-
reverse: isSet(object.reverse)
|
|
179
|
-
? globalThis.Boolean(object.reverse)
|
|
180
|
-
: false,
|
|
169
|
+
countTotal: isSet(object.countTotal) ? globalThis.Boolean(object.countTotal) : false,
|
|
170
|
+
reverse: isSet(object.reverse) ? globalThis.Boolean(object.reverse) : false,
|
|
181
171
|
};
|
|
182
172
|
},
|
|
183
173
|
toJSON(message) {
|
|
@@ -205,14 +195,10 @@ exports.PageRequest = {
|
|
|
205
195
|
fromPartial(object) {
|
|
206
196
|
const message = createBasePageRequest();
|
|
207
197
|
message.key = object.key ?? new Uint8Array(0);
|
|
208
|
-
message.offset =
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
message.limit =
|
|
213
|
-
object.limit !== undefined && object.limit !== null
|
|
214
|
-
? long_1.default.fromValue(object.limit)
|
|
215
|
-
: long_1.default.UZERO;
|
|
198
|
+
message.offset = (object.offset !== undefined && object.offset !== null)
|
|
199
|
+
? long_1.default.fromValue(object.offset)
|
|
200
|
+
: long_1.default.UZERO;
|
|
201
|
+
message.limit = (object.limit !== undefined && object.limit !== null) ? long_1.default.fromValue(object.limit) : long_1.default.UZERO;
|
|
216
202
|
message.countTotal = object.countTotal ?? false;
|
|
217
203
|
message.reverse = object.reverse ?? false;
|
|
218
204
|
return message;
|
|
@@ -262,9 +248,7 @@ exports.PageResponse = {
|
|
|
262
248
|
},
|
|
263
249
|
fromJSON(object) {
|
|
264
250
|
return {
|
|
265
|
-
nextKey: isSet(object.nextKey)
|
|
266
|
-
? bytesFromBase64(object.nextKey)
|
|
267
|
-
: new Uint8Array(0),
|
|
251
|
+
nextKey: isSet(object.nextKey) ? bytesFromBase64(object.nextKey) : new Uint8Array(0),
|
|
268
252
|
total: isSet(object.total) ? long_1.default.fromValue(object.total) : long_1.default.UZERO,
|
|
269
253
|
};
|
|
270
254
|
},
|
|
@@ -284,10 +268,7 @@ exports.PageResponse = {
|
|
|
284
268
|
fromPartial(object) {
|
|
285
269
|
const message = createBasePageResponse();
|
|
286
270
|
message.nextKey = object.nextKey ?? new Uint8Array(0);
|
|
287
|
-
message.total =
|
|
288
|
-
object.total !== undefined && object.total !== null
|
|
289
|
-
? long_1.default.fromValue(object.total)
|
|
290
|
-
: long_1.default.UZERO;
|
|
271
|
+
message.total = (object.total !== undefined && object.total !== null) ? long_1.default.fromValue(object.total) : long_1.default.UZERO;
|
|
291
272
|
return message;
|
|
292
273
|
},
|
|
293
274
|
};
|
|
@@ -372,15 +353,9 @@ exports.RFFSourcePair = {
|
|
|
372
353
|
fromJSON(object) {
|
|
373
354
|
return {
|
|
374
355
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
375
|
-
chainID: isSet(object.chainID)
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
contractAddress: isSet(object.contractAddress)
|
|
379
|
-
? bytesFromBase64(object.contractAddress)
|
|
380
|
-
: new Uint8Array(0),
|
|
381
|
-
value: isSet(object.value)
|
|
382
|
-
? bytesFromBase64(object.value)
|
|
383
|
-
: new Uint8Array(0),
|
|
356
|
+
chainID: isSet(object.chainID) ? bytesFromBase64(object.chainID) : new Uint8Array(0),
|
|
357
|
+
contractAddress: isSet(object.contractAddress) ? bytesFromBase64(object.contractAddress) : new Uint8Array(0),
|
|
358
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
384
359
|
status: isSet(object.status) ? rFFSourceStateFromJSON(object.status) : 0,
|
|
385
360
|
};
|
|
386
361
|
},
|
|
@@ -417,12 +392,7 @@ exports.RFFSourcePair = {
|
|
|
417
392
|
},
|
|
418
393
|
};
|
|
419
394
|
function createBaseSignatureDatum() {
|
|
420
|
-
return {
|
|
421
|
-
universe: 0,
|
|
422
|
-
address: new Uint8Array(0),
|
|
423
|
-
signature: new Uint8Array(0),
|
|
424
|
-
hash: new Uint8Array(0),
|
|
425
|
-
};
|
|
395
|
+
return { universe: 0, address: new Uint8Array(0), signature: new Uint8Array(0), hash: new Uint8Array(0) };
|
|
426
396
|
}
|
|
427
397
|
exports.SignatureDatum = {
|
|
428
398
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -486,15 +456,9 @@ exports.SignatureDatum = {
|
|
|
486
456
|
fromJSON(object) {
|
|
487
457
|
return {
|
|
488
458
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
489
|
-
address: isSet(object.address)
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
signature: isSet(object.signature)
|
|
493
|
-
? bytesFromBase64(object.signature)
|
|
494
|
-
: new Uint8Array(0),
|
|
495
|
-
hash: isSet(object.hash)
|
|
496
|
-
? bytesFromBase64(object.hash)
|
|
497
|
-
: new Uint8Array(0),
|
|
459
|
+
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
|
|
460
|
+
signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(0),
|
|
461
|
+
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(0),
|
|
498
462
|
};
|
|
499
463
|
},
|
|
500
464
|
toJSON(message) {
|
|
@@ -569,12 +533,8 @@ exports.RFFDestinationPair = {
|
|
|
569
533
|
},
|
|
570
534
|
fromJSON(object) {
|
|
571
535
|
return {
|
|
572
|
-
contractAddress: isSet(object.contractAddress)
|
|
573
|
-
|
|
574
|
-
: new Uint8Array(0),
|
|
575
|
-
value: isSet(object.value)
|
|
576
|
-
? bytesFromBase64(object.value)
|
|
577
|
-
: new Uint8Array(0),
|
|
536
|
+
contractAddress: isSet(object.contractAddress) ? bytesFromBase64(object.contractAddress) : new Uint8Array(0),
|
|
537
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
578
538
|
};
|
|
579
539
|
},
|
|
580
540
|
toJSON(message) {
|
|
@@ -813,47 +773,27 @@ exports.RequestForFunds = {
|
|
|
813
773
|
sources: globalThis.Array.isArray(object?.sources)
|
|
814
774
|
? object.sources.map((e) => exports.RFFSourcePair.fromJSON(e))
|
|
815
775
|
: [],
|
|
816
|
-
destinationUniverse: isSet(object.destinationUniverse)
|
|
817
|
-
? universeFromJSON(object.destinationUniverse)
|
|
818
|
-
: 0,
|
|
776
|
+
destinationUniverse: isSet(object.destinationUniverse) ? universeFromJSON(object.destinationUniverse) : 0,
|
|
819
777
|
destinationChainID: isSet(object.destinationChainID)
|
|
820
778
|
? bytesFromBase64(object.destinationChainID)
|
|
821
779
|
: new Uint8Array(0),
|
|
822
|
-
recipientAddress: isSet(object.recipientAddress)
|
|
823
|
-
? bytesFromBase64(object.recipientAddress)
|
|
824
|
-
: new Uint8Array(0),
|
|
780
|
+
recipientAddress: isSet(object.recipientAddress) ? bytesFromBase64(object.recipientAddress) : new Uint8Array(0),
|
|
825
781
|
destinations: globalThis.Array.isArray(object?.destinations)
|
|
826
782
|
? object.destinations.map((e) => exports.RFFDestinationPair.fromJSON(e))
|
|
827
783
|
: [],
|
|
828
|
-
nonce: isSet(object.nonce)
|
|
829
|
-
? bytesFromBase64(object.nonce)
|
|
830
|
-
: new Uint8Array(0),
|
|
784
|
+
nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
|
|
831
785
|
expiry: isSet(object.expiry) ? long_1.default.fromValue(object.expiry) : long_1.default.UZERO,
|
|
832
786
|
signatureData: globalThis.Array.isArray(object?.signatureData)
|
|
833
787
|
? object.signatureData.map((e) => exports.SignatureDatum.fromJSON(e))
|
|
834
788
|
: [],
|
|
835
789
|
user: isSet(object.user) ? globalThis.String(object.user) : "",
|
|
836
|
-
fulfilledBy: isSet(object.fulfilledBy)
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
? globalThis.Boolean(object.deposited)
|
|
844
|
-
: false,
|
|
845
|
-
fulfilled: isSet(object.fulfilled)
|
|
846
|
-
? globalThis.Boolean(object.fulfilled)
|
|
847
|
-
: false,
|
|
848
|
-
settled: isSet(object.settled)
|
|
849
|
-
? globalThis.Boolean(object.settled)
|
|
850
|
-
: false,
|
|
851
|
-
refunded: isSet(object.refunded)
|
|
852
|
-
? globalThis.Boolean(object.refunded)
|
|
853
|
-
: false,
|
|
854
|
-
creationBlock: isSet(object.creationBlock)
|
|
855
|
-
? long_1.default.fromValue(object.creationBlock)
|
|
856
|
-
: long_1.default.ZERO,
|
|
790
|
+
fulfilledBy: isSet(object.fulfilledBy) ? bytesFromBase64(object.fulfilledBy) : new Uint8Array(0),
|
|
791
|
+
fulfilledAt: isSet(object.fulfilledAt) ? long_1.default.fromValue(object.fulfilledAt) : long_1.default.UZERO,
|
|
792
|
+
deposited: isSet(object.deposited) ? globalThis.Boolean(object.deposited) : false,
|
|
793
|
+
fulfilled: isSet(object.fulfilled) ? globalThis.Boolean(object.fulfilled) : false,
|
|
794
|
+
settled: isSet(object.settled) ? globalThis.Boolean(object.settled) : false,
|
|
795
|
+
refunded: isSet(object.refunded) ? globalThis.Boolean(object.refunded) : false,
|
|
796
|
+
creationBlock: isSet(object.creationBlock) ? long_1.default.fromValue(object.creationBlock) : long_1.default.ZERO,
|
|
857
797
|
};
|
|
858
798
|
},
|
|
859
799
|
toJSON(message) {
|
|
@@ -916,38 +856,29 @@ exports.RequestForFunds = {
|
|
|
916
856
|
},
|
|
917
857
|
fromPartial(object) {
|
|
918
858
|
const message = createBaseRequestForFunds();
|
|
919
|
-
message.id =
|
|
920
|
-
|
|
921
|
-
? long_1.default.fromValue(object.id)
|
|
922
|
-
: long_1.default.UZERO;
|
|
923
|
-
message.sources =
|
|
924
|
-
object.sources?.map((e) => exports.RFFSourcePair.fromPartial(e)) || [];
|
|
859
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
860
|
+
message.sources = object.sources?.map((e) => exports.RFFSourcePair.fromPartial(e)) || [];
|
|
925
861
|
message.destinationUniverse = object.destinationUniverse ?? 0;
|
|
926
862
|
message.destinationChainID = object.destinationChainID ?? new Uint8Array(0);
|
|
927
863
|
message.recipientAddress = object.recipientAddress ?? new Uint8Array(0);
|
|
928
|
-
message.destinations =
|
|
929
|
-
object.destinations?.map((e) => exports.RFFDestinationPair.fromPartial(e)) || [];
|
|
864
|
+
message.destinations = object.destinations?.map((e) => exports.RFFDestinationPair.fromPartial(e)) || [];
|
|
930
865
|
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
931
|
-
message.expiry =
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
message.signatureData =
|
|
936
|
-
object.signatureData?.map((e) => exports.SignatureDatum.fromPartial(e)) || [];
|
|
866
|
+
message.expiry = (object.expiry !== undefined && object.expiry !== null)
|
|
867
|
+
? long_1.default.fromValue(object.expiry)
|
|
868
|
+
: long_1.default.UZERO;
|
|
869
|
+
message.signatureData = object.signatureData?.map((e) => exports.SignatureDatum.fromPartial(e)) || [];
|
|
937
870
|
message.user = object.user ?? "";
|
|
938
871
|
message.fulfilledBy = object.fulfilledBy ?? new Uint8Array(0);
|
|
939
|
-
message.fulfilledAt =
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
: long_1.default.UZERO;
|
|
872
|
+
message.fulfilledAt = (object.fulfilledAt !== undefined && object.fulfilledAt !== null)
|
|
873
|
+
? long_1.default.fromValue(object.fulfilledAt)
|
|
874
|
+
: long_1.default.UZERO;
|
|
943
875
|
message.deposited = object.deposited ?? false;
|
|
944
876
|
message.fulfilled = object.fulfilled ?? false;
|
|
945
877
|
message.settled = object.settled ?? false;
|
|
946
878
|
message.refunded = object.refunded ?? false;
|
|
947
|
-
message.creationBlock =
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
: long_1.default.ZERO;
|
|
879
|
+
message.creationBlock = (object.creationBlock !== undefined && object.creationBlock !== null)
|
|
880
|
+
? long_1.default.fromValue(object.creationBlock)
|
|
881
|
+
: long_1.default.ZERO;
|
|
951
882
|
return message;
|
|
952
883
|
},
|
|
953
884
|
};
|
|
@@ -1078,21 +1009,15 @@ exports.MsgCreateRequestForFunds = {
|
|
|
1078
1009
|
sources: globalThis.Array.isArray(object?.sources)
|
|
1079
1010
|
? object.sources.map((e) => exports.RFFSourcePair.fromJSON(e))
|
|
1080
1011
|
: [],
|
|
1081
|
-
destinationUniverse: isSet(object.destinationUniverse)
|
|
1082
|
-
? universeFromJSON(object.destinationUniverse)
|
|
1083
|
-
: 0,
|
|
1012
|
+
destinationUniverse: isSet(object.destinationUniverse) ? universeFromJSON(object.destinationUniverse) : 0,
|
|
1084
1013
|
destinationChainID: isSet(object.destinationChainID)
|
|
1085
1014
|
? bytesFromBase64(object.destinationChainID)
|
|
1086
1015
|
: new Uint8Array(0),
|
|
1087
|
-
recipientAddress: isSet(object.recipientAddress)
|
|
1088
|
-
? bytesFromBase64(object.recipientAddress)
|
|
1089
|
-
: new Uint8Array(0),
|
|
1016
|
+
recipientAddress: isSet(object.recipientAddress) ? bytesFromBase64(object.recipientAddress) : new Uint8Array(0),
|
|
1090
1017
|
destinations: globalThis.Array.isArray(object?.destinations)
|
|
1091
1018
|
? object.destinations.map((e) => exports.RFFDestinationPair.fromJSON(e))
|
|
1092
1019
|
: [],
|
|
1093
|
-
nonce: isSet(object.nonce)
|
|
1094
|
-
? bytesFromBase64(object.nonce)
|
|
1095
|
-
: new Uint8Array(0),
|
|
1020
|
+
nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
|
|
1096
1021
|
expiry: isSet(object.expiry) ? long_1.default.fromValue(object.expiry) : long_1.default.UZERO,
|
|
1097
1022
|
user: isSet(object.user) ? globalThis.String(object.user) : "",
|
|
1098
1023
|
signatureData: globalThis.Array.isArray(object?.signatureData)
|
|
@@ -1136,21 +1061,17 @@ exports.MsgCreateRequestForFunds = {
|
|
|
1136
1061
|
},
|
|
1137
1062
|
fromPartial(object) {
|
|
1138
1063
|
const message = createBaseMsgCreateRequestForFunds();
|
|
1139
|
-
message.sources =
|
|
1140
|
-
object.sources?.map((e) => exports.RFFSourcePair.fromPartial(e)) || [];
|
|
1064
|
+
message.sources = object.sources?.map((e) => exports.RFFSourcePair.fromPartial(e)) || [];
|
|
1141
1065
|
message.destinationUniverse = object.destinationUniverse ?? 0;
|
|
1142
1066
|
message.destinationChainID = object.destinationChainID ?? new Uint8Array(0);
|
|
1143
1067
|
message.recipientAddress = object.recipientAddress ?? new Uint8Array(0);
|
|
1144
|
-
message.destinations =
|
|
1145
|
-
object.destinations?.map((e) => exports.RFFDestinationPair.fromPartial(e)) || [];
|
|
1068
|
+
message.destinations = object.destinations?.map((e) => exports.RFFDestinationPair.fromPartial(e)) || [];
|
|
1146
1069
|
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
1147
|
-
message.expiry =
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
: long_1.default.UZERO;
|
|
1070
|
+
message.expiry = (object.expiry !== undefined && object.expiry !== null)
|
|
1071
|
+
? long_1.default.fromValue(object.expiry)
|
|
1072
|
+
: long_1.default.UZERO;
|
|
1151
1073
|
message.user = object.user ?? "";
|
|
1152
|
-
message.signatureData =
|
|
1153
|
-
object.signatureData?.map((e) => exports.SignatureDatum.fromPartial(e)) || [];
|
|
1074
|
+
message.signatureData = object.signatureData?.map((e) => exports.SignatureDatum.fromPartial(e)) || [];
|
|
1154
1075
|
return message;
|
|
1155
1076
|
},
|
|
1156
1077
|
};
|
|
@@ -1201,10 +1122,7 @@ exports.MsgCreateRequestForFundsResponse = {
|
|
|
1201
1122
|
},
|
|
1202
1123
|
fromPartial(object) {
|
|
1203
1124
|
const message = createBaseMsgCreateRequestForFundsResponse();
|
|
1204
|
-
message.id =
|
|
1205
|
-
object.id !== undefined && object.id !== null
|
|
1206
|
-
? long_1.default.fromValue(object.id)
|
|
1207
|
-
: long_1.default.UZERO;
|
|
1125
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
1208
1126
|
return message;
|
|
1209
1127
|
},
|
|
1210
1128
|
};
|
|
@@ -1255,10 +1173,7 @@ exports.QueryGetRequestForFundsRequest = {
|
|
|
1255
1173
|
},
|
|
1256
1174
|
fromPartial(object) {
|
|
1257
1175
|
const message = createBaseQueryGetRequestForFundsRequest();
|
|
1258
|
-
message.id =
|
|
1259
|
-
object.id !== undefined && object.id !== null
|
|
1260
|
-
? long_1.default.fromValue(object.id)
|
|
1261
|
-
: long_1.default.UZERO;
|
|
1176
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
1262
1177
|
return message;
|
|
1263
1178
|
},
|
|
1264
1179
|
};
|
|
@@ -1296,9 +1211,7 @@ exports.QueryGetRequestForFundsResponse = {
|
|
|
1296
1211
|
},
|
|
1297
1212
|
fromJSON(object) {
|
|
1298
1213
|
return {
|
|
1299
|
-
requestForFunds: isSet(object.requestForFunds)
|
|
1300
|
-
? exports.RequestForFunds.fromJSON(object.requestForFunds)
|
|
1301
|
-
: undefined,
|
|
1214
|
+
requestForFunds: isSet(object.requestForFunds) ? exports.RequestForFunds.fromJSON(object.requestForFunds) : undefined,
|
|
1302
1215
|
};
|
|
1303
1216
|
},
|
|
1304
1217
|
toJSON(message) {
|
|
@@ -1313,10 +1226,9 @@ exports.QueryGetRequestForFundsResponse = {
|
|
|
1313
1226
|
},
|
|
1314
1227
|
fromPartial(object) {
|
|
1315
1228
|
const message = createBaseQueryGetRequestForFundsResponse();
|
|
1316
|
-
message.requestForFunds =
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
: undefined;
|
|
1229
|
+
message.requestForFunds = (object.requestForFunds !== undefined && object.requestForFunds !== null)
|
|
1230
|
+
? exports.RequestForFunds.fromPartial(object.requestForFunds)
|
|
1231
|
+
: undefined;
|
|
1320
1232
|
return message;
|
|
1321
1233
|
},
|
|
1322
1234
|
};
|
|
@@ -1353,11 +1265,7 @@ exports.QueryAllRequestForFundsRequest = {
|
|
|
1353
1265
|
return message;
|
|
1354
1266
|
},
|
|
1355
1267
|
fromJSON(object) {
|
|
1356
|
-
return {
|
|
1357
|
-
pagination: isSet(object.pagination)
|
|
1358
|
-
? exports.PageRequest.fromJSON(object.pagination)
|
|
1359
|
-
: undefined,
|
|
1360
|
-
};
|
|
1268
|
+
return { pagination: isSet(object.pagination) ? exports.PageRequest.fromJSON(object.pagination) : undefined };
|
|
1361
1269
|
},
|
|
1362
1270
|
toJSON(message) {
|
|
1363
1271
|
const obj = {};
|
|
@@ -1371,10 +1279,9 @@ exports.QueryAllRequestForFundsRequest = {
|
|
|
1371
1279
|
},
|
|
1372
1280
|
fromPartial(object) {
|
|
1373
1281
|
const message = createBaseQueryAllRequestForFundsRequest();
|
|
1374
|
-
message.pagination =
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
: undefined;
|
|
1282
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1283
|
+
? exports.PageRequest.fromPartial(object.pagination)
|
|
1284
|
+
: undefined;
|
|
1378
1285
|
return message;
|
|
1379
1286
|
},
|
|
1380
1287
|
};
|
|
@@ -1425,9 +1332,7 @@ exports.QueryAllRequestForFundsResponse = {
|
|
|
1425
1332
|
requestForFunds: globalThis.Array.isArray(object?.requestForFunds)
|
|
1426
1333
|
? object.requestForFunds.map((e) => exports.RequestForFunds.fromJSON(e))
|
|
1427
1334
|
: [],
|
|
1428
|
-
pagination: isSet(object.pagination)
|
|
1429
|
-
? exports.PageResponse.fromJSON(object.pagination)
|
|
1430
|
-
: undefined,
|
|
1335
|
+
pagination: isSet(object.pagination) ? exports.PageResponse.fromJSON(object.pagination) : undefined,
|
|
1431
1336
|
};
|
|
1432
1337
|
},
|
|
1433
1338
|
toJSON(message) {
|
|
@@ -1445,13 +1350,10 @@ exports.QueryAllRequestForFundsResponse = {
|
|
|
1445
1350
|
},
|
|
1446
1351
|
fromPartial(object) {
|
|
1447
1352
|
const message = createBaseQueryAllRequestForFundsResponse();
|
|
1448
|
-
message.requestForFunds =
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1453
|
-
? exports.PageResponse.fromPartial(object.pagination)
|
|
1454
|
-
: undefined;
|
|
1353
|
+
message.requestForFunds = object.requestForFunds?.map((e) => exports.RequestForFunds.fromPartial(e)) || [];
|
|
1354
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1355
|
+
? exports.PageResponse.fromPartial(object.pagination)
|
|
1356
|
+
: undefined;
|
|
1455
1357
|
return message;
|
|
1456
1358
|
},
|
|
1457
1359
|
};
|
|
@@ -1557,15 +1459,9 @@ exports.RouteFee = {
|
|
|
1557
1459
|
},
|
|
1558
1460
|
fromJSON(object) {
|
|
1559
1461
|
return {
|
|
1560
|
-
sourceUniverse: isSet(object.sourceUniverse)
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
destinationUniverse: isSet(object.destinationUniverse)
|
|
1564
|
-
? universeFromJSON(object.destinationUniverse)
|
|
1565
|
-
: 0,
|
|
1566
|
-
sourceChainID: isSet(object.sourceChainID)
|
|
1567
|
-
? bytesFromBase64(object.sourceChainID)
|
|
1568
|
-
: new Uint8Array(0),
|
|
1462
|
+
sourceUniverse: isSet(object.sourceUniverse) ? universeFromJSON(object.sourceUniverse) : 0,
|
|
1463
|
+
destinationUniverse: isSet(object.destinationUniverse) ? universeFromJSON(object.destinationUniverse) : 0,
|
|
1464
|
+
sourceChainID: isSet(object.sourceChainID) ? bytesFromBase64(object.sourceChainID) : new Uint8Array(0),
|
|
1569
1465
|
destinationChainID: isSet(object.destinationChainID)
|
|
1570
1466
|
? bytesFromBase64(object.destinationChainID)
|
|
1571
1467
|
: new Uint8Array(0),
|
|
@@ -1613,18 +1509,13 @@ exports.RouteFee = {
|
|
|
1613
1509
|
message.sourceChainID = object.sourceChainID ?? new Uint8Array(0);
|
|
1614
1510
|
message.destinationChainID = object.destinationChainID ?? new Uint8Array(0);
|
|
1615
1511
|
message.sourceTokenAddress = object.sourceTokenAddress ?? new Uint8Array(0);
|
|
1616
|
-
message.destinationTokenAddress =
|
|
1617
|
-
object.destinationTokenAddress ?? new Uint8Array(0);
|
|
1512
|
+
message.destinationTokenAddress = object.destinationTokenAddress ?? new Uint8Array(0);
|
|
1618
1513
|
message.feeBP = object.feeBP ?? 0;
|
|
1619
1514
|
return message;
|
|
1620
1515
|
},
|
|
1621
1516
|
};
|
|
1622
1517
|
function createBaseSolverAddress() {
|
|
1623
|
-
return {
|
|
1624
|
-
universe: 0,
|
|
1625
|
-
address: new Uint8Array(0),
|
|
1626
|
-
signature: new Uint8Array(0),
|
|
1627
|
-
};
|
|
1518
|
+
return { universe: 0, address: new Uint8Array(0), signature: new Uint8Array(0) };
|
|
1628
1519
|
}
|
|
1629
1520
|
exports.SolverAddress = {
|
|
1630
1521
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -1678,12 +1569,8 @@ exports.SolverAddress = {
|
|
|
1678
1569
|
fromJSON(object) {
|
|
1679
1570
|
return {
|
|
1680
1571
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
1681
|
-
address: isSet(object.address)
|
|
1682
|
-
|
|
1683
|
-
: new Uint8Array(0),
|
|
1684
|
-
signature: isSet(object.signature)
|
|
1685
|
-
? bytesFromBase64(object.signature)
|
|
1686
|
-
: new Uint8Array(0),
|
|
1572
|
+
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
|
|
1573
|
+
signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(0),
|
|
1687
1574
|
};
|
|
1688
1575
|
},
|
|
1689
1576
|
toJSON(message) {
|
|
@@ -1764,9 +1651,7 @@ exports.SolverData = {
|
|
|
1764
1651
|
},
|
|
1765
1652
|
fromJSON(object) {
|
|
1766
1653
|
return {
|
|
1767
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
1768
|
-
? globalThis.String(object.cosmosAddress)
|
|
1769
|
-
: "",
|
|
1654
|
+
cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "",
|
|
1770
1655
|
advertisedFees: globalThis.Array.isArray(object?.advertisedFees)
|
|
1771
1656
|
? object.advertisedFees.map((e) => exports.RouteFee.fromJSON(e))
|
|
1772
1657
|
: [],
|
|
@@ -1794,10 +1679,8 @@ exports.SolverData = {
|
|
|
1794
1679
|
fromPartial(object) {
|
|
1795
1680
|
const message = createBaseSolverData();
|
|
1796
1681
|
message.cosmosAddress = object.cosmosAddress ?? "";
|
|
1797
|
-
message.advertisedFees =
|
|
1798
|
-
|
|
1799
|
-
message.addresses =
|
|
1800
|
-
object.addresses?.map((e) => exports.SolverAddress.fromPartial(e)) || [];
|
|
1682
|
+
message.advertisedFees = object.advertisedFees?.map((e) => exports.RouteFee.fromPartial(e)) || [];
|
|
1683
|
+
message.addresses = object.addresses?.map((e) => exports.SolverAddress.fromPartial(e)) || [];
|
|
1801
1684
|
return message;
|
|
1802
1685
|
},
|
|
1803
1686
|
};
|
|
@@ -1834,11 +1717,7 @@ exports.QueryGetSolverDataRequest = {
|
|
|
1834
1717
|
return message;
|
|
1835
1718
|
},
|
|
1836
1719
|
fromJSON(object) {
|
|
1837
|
-
return {
|
|
1838
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
1839
|
-
? globalThis.String(object.cosmosAddress)
|
|
1840
|
-
: "",
|
|
1841
|
-
};
|
|
1720
|
+
return { cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "" };
|
|
1842
1721
|
},
|
|
1843
1722
|
toJSON(message) {
|
|
1844
1723
|
const obj = {};
|
|
@@ -1889,11 +1768,7 @@ exports.QueryGetSolverDataResponse = {
|
|
|
1889
1768
|
return message;
|
|
1890
1769
|
},
|
|
1891
1770
|
fromJSON(object) {
|
|
1892
|
-
return {
|
|
1893
|
-
solverData: isSet(object.solverData)
|
|
1894
|
-
? exports.SolverData.fromJSON(object.solverData)
|
|
1895
|
-
: undefined,
|
|
1896
|
-
};
|
|
1771
|
+
return { solverData: isSet(object.solverData) ? exports.SolverData.fromJSON(object.solverData) : undefined };
|
|
1897
1772
|
},
|
|
1898
1773
|
toJSON(message) {
|
|
1899
1774
|
const obj = {};
|
|
@@ -1907,10 +1782,9 @@ exports.QueryGetSolverDataResponse = {
|
|
|
1907
1782
|
},
|
|
1908
1783
|
fromPartial(object) {
|
|
1909
1784
|
const message = createBaseQueryGetSolverDataResponse();
|
|
1910
|
-
message.solverData =
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
: undefined;
|
|
1785
|
+
message.solverData = (object.solverData !== undefined && object.solverData !== null)
|
|
1786
|
+
? exports.SolverData.fromPartial(object.solverData)
|
|
1787
|
+
: undefined;
|
|
1914
1788
|
return message;
|
|
1915
1789
|
},
|
|
1916
1790
|
};
|
|
@@ -1947,11 +1821,7 @@ exports.QueryAllSolverDataRequest = {
|
|
|
1947
1821
|
return message;
|
|
1948
1822
|
},
|
|
1949
1823
|
fromJSON(object) {
|
|
1950
|
-
return {
|
|
1951
|
-
pagination: isSet(object.pagination)
|
|
1952
|
-
? exports.PageRequest.fromJSON(object.pagination)
|
|
1953
|
-
: undefined,
|
|
1954
|
-
};
|
|
1824
|
+
return { pagination: isSet(object.pagination) ? exports.PageRequest.fromJSON(object.pagination) : undefined };
|
|
1955
1825
|
},
|
|
1956
1826
|
toJSON(message) {
|
|
1957
1827
|
const obj = {};
|
|
@@ -1965,10 +1835,9 @@ exports.QueryAllSolverDataRequest = {
|
|
|
1965
1835
|
},
|
|
1966
1836
|
fromPartial(object) {
|
|
1967
1837
|
const message = createBaseQueryAllSolverDataRequest();
|
|
1968
|
-
message.pagination =
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
: undefined;
|
|
1838
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1839
|
+
? exports.PageRequest.fromPartial(object.pagination)
|
|
1840
|
+
: undefined;
|
|
1972
1841
|
return message;
|
|
1973
1842
|
},
|
|
1974
1843
|
};
|
|
@@ -2019,9 +1888,7 @@ exports.QueryAllSolverDataResponse = {
|
|
|
2019
1888
|
solverData: globalThis.Array.isArray(object?.solverData)
|
|
2020
1889
|
? object.solverData.map((e) => exports.SolverData.fromJSON(e))
|
|
2021
1890
|
: [],
|
|
2022
|
-
pagination: isSet(object.pagination)
|
|
2023
|
-
? exports.PageResponse.fromJSON(object.pagination)
|
|
2024
|
-
: undefined,
|
|
1891
|
+
pagination: isSet(object.pagination) ? exports.PageResponse.fromJSON(object.pagination) : undefined,
|
|
2025
1892
|
};
|
|
2026
1893
|
},
|
|
2027
1894
|
toJSON(message) {
|
|
@@ -2039,12 +1906,10 @@ exports.QueryAllSolverDataResponse = {
|
|
|
2039
1906
|
},
|
|
2040
1907
|
fromPartial(object) {
|
|
2041
1908
|
const message = createBaseQueryAllSolverDataResponse();
|
|
2042
|
-
message.solverData =
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
? exports.PageResponse.fromPartial(object.pagination)
|
|
2047
|
-
: undefined;
|
|
1909
|
+
message.solverData = object.solverData?.map((e) => exports.SolverData.fromPartial(e)) || [];
|
|
1910
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1911
|
+
? exports.PageResponse.fromPartial(object.pagination)
|
|
1912
|
+
: undefined;
|
|
2048
1913
|
return message;
|
|
2049
1914
|
},
|
|
2050
1915
|
};
|
|
@@ -2102,9 +1967,7 @@ exports.MsgCreateSolverData = {
|
|
|
2102
1967
|
},
|
|
2103
1968
|
fromJSON(object) {
|
|
2104
1969
|
return {
|
|
2105
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
2106
|
-
? globalThis.String(object.cosmosAddress)
|
|
2107
|
-
: "",
|
|
1970
|
+
cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "",
|
|
2108
1971
|
advertisedFees: globalThis.Array.isArray(object?.advertisedFees)
|
|
2109
1972
|
? object.advertisedFees.map((e) => exports.RouteFee.fromJSON(e))
|
|
2110
1973
|
: [],
|
|
@@ -2132,10 +1995,8 @@ exports.MsgCreateSolverData = {
|
|
|
2132
1995
|
fromPartial(object) {
|
|
2133
1996
|
const message = createBaseMsgCreateSolverData();
|
|
2134
1997
|
message.cosmosAddress = object.cosmosAddress ?? "";
|
|
2135
|
-
message.advertisedFees =
|
|
2136
|
-
|
|
2137
|
-
message.addresses =
|
|
2138
|
-
object.addresses?.map((e) => exports.SolverAddress.fromPartial(e)) || [];
|
|
1998
|
+
message.advertisedFees = object.advertisedFees?.map((e) => exports.RouteFee.fromPartial(e)) || [];
|
|
1999
|
+
message.addresses = object.addresses?.map((e) => exports.SolverAddress.fromPartial(e)) || [];
|
|
2139
2000
|
return message;
|
|
2140
2001
|
},
|
|
2141
2002
|
};
|
|
@@ -2230,9 +2091,7 @@ exports.MsgUpdateSolverData = {
|
|
|
2230
2091
|
},
|
|
2231
2092
|
fromJSON(object) {
|
|
2232
2093
|
return {
|
|
2233
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
2234
|
-
? globalThis.String(object.cosmosAddress)
|
|
2235
|
-
: "",
|
|
2094
|
+
cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "",
|
|
2236
2095
|
advertisedFees: globalThis.Array.isArray(object?.advertisedFees)
|
|
2237
2096
|
? object.advertisedFees.map((e) => exports.RouteFee.fromJSON(e))
|
|
2238
2097
|
: [],
|
|
@@ -2260,10 +2119,8 @@ exports.MsgUpdateSolverData = {
|
|
|
2260
2119
|
fromPartial(object) {
|
|
2261
2120
|
const message = createBaseMsgUpdateSolverData();
|
|
2262
2121
|
message.cosmosAddress = object.cosmosAddress ?? "";
|
|
2263
|
-
message.advertisedFees =
|
|
2264
|
-
|
|
2265
|
-
message.addresses =
|
|
2266
|
-
object.addresses?.map((e) => exports.SolverAddress.fromPartial(e)) || [];
|
|
2122
|
+
message.advertisedFees = object.advertisedFees?.map((e) => exports.RouteFee.fromPartial(e)) || [];
|
|
2123
|
+
message.addresses = object.addresses?.map((e) => exports.SolverAddress.fromPartial(e)) || [];
|
|
2267
2124
|
return message;
|
|
2268
2125
|
},
|
|
2269
2126
|
};
|
|
@@ -2408,21 +2265,13 @@ exports.Settlement = {
|
|
|
2408
2265
|
return {
|
|
2409
2266
|
id: isSet(object.id) ? bytesFromBase64(object.id) : new Uint8Array(0),
|
|
2410
2267
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
2411
|
-
chainId: isSet(object.chainId)
|
|
2412
|
-
|
|
2413
|
-
: new Uint8Array(0),
|
|
2414
|
-
amounts: globalThis.Array.isArray(object?.amounts)
|
|
2415
|
-
? object.amounts.map((e) => bytesFromBase64(e))
|
|
2416
|
-
: [],
|
|
2268
|
+
chainId: isSet(object.chainId) ? bytesFromBase64(object.chainId) : new Uint8Array(0),
|
|
2269
|
+
amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e) => bytesFromBase64(e)) : [],
|
|
2417
2270
|
contractAddresses: globalThis.Array.isArray(object?.contractAddresses)
|
|
2418
2271
|
? object.contractAddresses.map((e) => bytesFromBase64(e))
|
|
2419
2272
|
: [],
|
|
2420
|
-
filler: globalThis.Array.isArray(object?.filler)
|
|
2421
|
-
|
|
2422
|
-
: [],
|
|
2423
|
-
success: isSet(object.success)
|
|
2424
|
-
? globalThis.Boolean(object.success)
|
|
2425
|
-
: false,
|
|
2273
|
+
filler: globalThis.Array.isArray(object?.filler) ? object.filler.map((e) => bytesFromBase64(e)) : [],
|
|
2274
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
2426
2275
|
};
|
|
2427
2276
|
},
|
|
2428
2277
|
toJSON(message) {
|
|
@@ -2512,10 +2361,7 @@ exports.QueryGetSettlementRequest = {
|
|
|
2512
2361
|
},
|
|
2513
2362
|
fromPartial(object) {
|
|
2514
2363
|
const message = createBaseQueryGetSettlementRequest();
|
|
2515
|
-
message.id =
|
|
2516
|
-
object.id !== undefined && object.id !== null
|
|
2517
|
-
? long_1.default.fromValue(object.id)
|
|
2518
|
-
: long_1.default.UZERO;
|
|
2364
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
2519
2365
|
return message;
|
|
2520
2366
|
},
|
|
2521
2367
|
};
|
|
@@ -2552,11 +2398,7 @@ exports.QueryGetSettlementResponse = {
|
|
|
2552
2398
|
return message;
|
|
2553
2399
|
},
|
|
2554
2400
|
fromJSON(object) {
|
|
2555
|
-
return {
|
|
2556
|
-
Settlement: isSet(object.Settlement)
|
|
2557
|
-
? exports.Settlement.fromJSON(object.Settlement)
|
|
2558
|
-
: undefined,
|
|
2559
|
-
};
|
|
2401
|
+
return { Settlement: isSet(object.Settlement) ? exports.Settlement.fromJSON(object.Settlement) : undefined };
|
|
2560
2402
|
},
|
|
2561
2403
|
toJSON(message) {
|
|
2562
2404
|
const obj = {};
|
|
@@ -2570,10 +2412,9 @@ exports.QueryGetSettlementResponse = {
|
|
|
2570
2412
|
},
|
|
2571
2413
|
fromPartial(object) {
|
|
2572
2414
|
const message = createBaseQueryGetSettlementResponse();
|
|
2573
|
-
message.Settlement =
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
: undefined;
|
|
2415
|
+
message.Settlement = (object.Settlement !== undefined && object.Settlement !== null)
|
|
2416
|
+
? exports.Settlement.fromPartial(object.Settlement)
|
|
2417
|
+
: undefined;
|
|
2577
2418
|
return message;
|
|
2578
2419
|
},
|
|
2579
2420
|
};
|
|
@@ -2610,11 +2451,7 @@ exports.QueryAllSettlementRequest = {
|
|
|
2610
2451
|
return message;
|
|
2611
2452
|
},
|
|
2612
2453
|
fromJSON(object) {
|
|
2613
|
-
return {
|
|
2614
|
-
pagination: isSet(object.pagination)
|
|
2615
|
-
? exports.PageRequest.fromJSON(object.pagination)
|
|
2616
|
-
: undefined,
|
|
2617
|
-
};
|
|
2454
|
+
return { pagination: isSet(object.pagination) ? exports.PageRequest.fromJSON(object.pagination) : undefined };
|
|
2618
2455
|
},
|
|
2619
2456
|
toJSON(message) {
|
|
2620
2457
|
const obj = {};
|
|
@@ -2628,10 +2465,9 @@ exports.QueryAllSettlementRequest = {
|
|
|
2628
2465
|
},
|
|
2629
2466
|
fromPartial(object) {
|
|
2630
2467
|
const message = createBaseQueryAllSettlementRequest();
|
|
2631
|
-
message.pagination =
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
: undefined;
|
|
2468
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2469
|
+
? exports.PageRequest.fromPartial(object.pagination)
|
|
2470
|
+
: undefined;
|
|
2635
2471
|
return message;
|
|
2636
2472
|
},
|
|
2637
2473
|
};
|
|
@@ -2682,9 +2518,7 @@ exports.QueryAllSettlementResponse = {
|
|
|
2682
2518
|
Settlement: globalThis.Array.isArray(object?.Settlement)
|
|
2683
2519
|
? object.Settlement.map((e) => exports.Settlement.fromJSON(e))
|
|
2684
2520
|
: [],
|
|
2685
|
-
pagination: isSet(object.pagination)
|
|
2686
|
-
? exports.PageResponse.fromJSON(object.pagination)
|
|
2687
|
-
: undefined,
|
|
2521
|
+
pagination: isSet(object.pagination) ? exports.PageResponse.fromJSON(object.pagination) : undefined,
|
|
2688
2522
|
};
|
|
2689
2523
|
},
|
|
2690
2524
|
toJSON(message) {
|
|
@@ -2702,12 +2536,10 @@ exports.QueryAllSettlementResponse = {
|
|
|
2702
2536
|
},
|
|
2703
2537
|
fromPartial(object) {
|
|
2704
2538
|
const message = createBaseQueryAllSettlementResponse();
|
|
2705
|
-
message.Settlement =
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
? exports.PageResponse.fromPartial(object.pagination)
|
|
2710
|
-
: undefined;
|
|
2539
|
+
message.Settlement = object.Settlement?.map((e) => exports.Settlement.fromPartial(e)) || [];
|
|
2540
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2541
|
+
? exports.PageResponse.fromPartial(object.pagination)
|
|
2542
|
+
: undefined;
|
|
2711
2543
|
return message;
|
|
2712
2544
|
},
|
|
2713
2545
|
};
|
|
@@ -2756,9 +2588,7 @@ exports.QueryRequestForFundsByAddressRequest = {
|
|
|
2756
2588
|
fromJSON(object) {
|
|
2757
2589
|
return {
|
|
2758
2590
|
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
2759
|
-
pagination: isSet(object.pagination)
|
|
2760
|
-
? exports.PageRequest.fromJSON(object.pagination)
|
|
2761
|
-
: undefined,
|
|
2591
|
+
pagination: isSet(object.pagination) ? exports.PageRequest.fromJSON(object.pagination) : undefined,
|
|
2762
2592
|
};
|
|
2763
2593
|
},
|
|
2764
2594
|
toJSON(message) {
|
|
@@ -2777,20 +2607,14 @@ exports.QueryRequestForFundsByAddressRequest = {
|
|
|
2777
2607
|
fromPartial(object) {
|
|
2778
2608
|
const message = createBaseQueryRequestForFundsByAddressRequest();
|
|
2779
2609
|
message.account = object.account ?? "";
|
|
2780
|
-
message.pagination =
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
: undefined;
|
|
2610
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2611
|
+
? exports.PageRequest.fromPartial(object.pagination)
|
|
2612
|
+
: undefined;
|
|
2784
2613
|
return message;
|
|
2785
2614
|
},
|
|
2786
2615
|
};
|
|
2787
2616
|
function createBaseFixedFeeTuple() {
|
|
2788
|
-
return {
|
|
2789
|
-
universe: 0,
|
|
2790
|
-
chainID: new Uint8Array(0),
|
|
2791
|
-
tokenAddress: new Uint8Array(0),
|
|
2792
|
-
fee: new Uint8Array(0),
|
|
2793
|
-
};
|
|
2617
|
+
return { universe: 0, chainID: new Uint8Array(0), tokenAddress: new Uint8Array(0), fee: new Uint8Array(0) };
|
|
2794
2618
|
}
|
|
2795
2619
|
exports.FixedFeeTuple = {
|
|
2796
2620
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -2854,12 +2678,8 @@ exports.FixedFeeTuple = {
|
|
|
2854
2678
|
fromJSON(object) {
|
|
2855
2679
|
return {
|
|
2856
2680
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
2857
|
-
chainID: isSet(object.chainID)
|
|
2858
|
-
|
|
2859
|
-
: new Uint8Array(0),
|
|
2860
|
-
tokenAddress: isSet(object.tokenAddress)
|
|
2861
|
-
? bytesFromBase64(object.tokenAddress)
|
|
2862
|
-
: new Uint8Array(0),
|
|
2681
|
+
chainID: isSet(object.chainID) ? bytesFromBase64(object.chainID) : new Uint8Array(0),
|
|
2682
|
+
tokenAddress: isSet(object.tokenAddress) ? bytesFromBase64(object.tokenAddress) : new Uint8Array(0),
|
|
2863
2683
|
fee: isSet(object.fee) ? bytesFromBase64(object.fee) : new Uint8Array(0),
|
|
2864
2684
|
};
|
|
2865
2685
|
},
|
|
@@ -2936,9 +2756,7 @@ exports.AdminFeeRecipient = {
|
|
|
2936
2756
|
fromJSON(object) {
|
|
2937
2757
|
return {
|
|
2938
2758
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
2939
|
-
address: isSet(object.address)
|
|
2940
|
-
? bytesFromBase64(object.address)
|
|
2941
|
-
: new Uint8Array(0),
|
|
2759
|
+
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
|
|
2942
2760
|
};
|
|
2943
2761
|
},
|
|
2944
2762
|
toJSON(message) {
|
|
@@ -2962,13 +2780,7 @@ exports.AdminFeeRecipient = {
|
|
|
2962
2780
|
},
|
|
2963
2781
|
};
|
|
2964
2782
|
function createBaseProtocolFees() {
|
|
2965
|
-
return {
|
|
2966
|
-
feeBP: long_1.default.UZERO,
|
|
2967
|
-
collectionFees: [],
|
|
2968
|
-
fulfilmentFees: [],
|
|
2969
|
-
admin: "",
|
|
2970
|
-
feeRecipients: [],
|
|
2971
|
-
};
|
|
2783
|
+
return { feeBP: long_1.default.UZERO, collectionFees: [], fulfilmentFees: [], admin: "", feeRecipients: [] };
|
|
2972
2784
|
}
|
|
2973
2785
|
exports.ProtocolFees = {
|
|
2974
2786
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -3078,17 +2890,11 @@ exports.ProtocolFees = {
|
|
|
3078
2890
|
},
|
|
3079
2891
|
fromPartial(object) {
|
|
3080
2892
|
const message = createBaseProtocolFees();
|
|
3081
|
-
message.feeBP =
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
: long_1.default.UZERO;
|
|
3085
|
-
message.collectionFees =
|
|
3086
|
-
object.collectionFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3087
|
-
message.fulfilmentFees =
|
|
3088
|
-
object.fulfilmentFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
2893
|
+
message.feeBP = (object.feeBP !== undefined && object.feeBP !== null) ? long_1.default.fromValue(object.feeBP) : long_1.default.UZERO;
|
|
2894
|
+
message.collectionFees = object.collectionFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
2895
|
+
message.fulfilmentFees = object.fulfilmentFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3089
2896
|
message.admin = object.admin ?? "";
|
|
3090
|
-
message.feeRecipients =
|
|
3091
|
-
object.feeRecipients?.map((e) => exports.AdminFeeRecipient.fromPartial(e)) || [];
|
|
2897
|
+
message.feeRecipients = object.feeRecipients?.map((e) => exports.AdminFeeRecipient.fromPartial(e)) || [];
|
|
3092
2898
|
return message;
|
|
3093
2899
|
},
|
|
3094
2900
|
};
|
|
@@ -3162,11 +2968,7 @@ exports.QueryGetProtocolFeesResponse = {
|
|
|
3162
2968
|
return message;
|
|
3163
2969
|
},
|
|
3164
2970
|
fromJSON(object) {
|
|
3165
|
-
return {
|
|
3166
|
-
ProtocolFees: isSet(object.ProtocolFees)
|
|
3167
|
-
? exports.ProtocolFees.fromJSON(object.ProtocolFees)
|
|
3168
|
-
: undefined,
|
|
3169
|
-
};
|
|
2971
|
+
return { ProtocolFees: isSet(object.ProtocolFees) ? exports.ProtocolFees.fromJSON(object.ProtocolFees) : undefined };
|
|
3170
2972
|
},
|
|
3171
2973
|
toJSON(message) {
|
|
3172
2974
|
const obj = {};
|
|
@@ -3180,21 +2982,14 @@ exports.QueryGetProtocolFeesResponse = {
|
|
|
3180
2982
|
},
|
|
3181
2983
|
fromPartial(object) {
|
|
3182
2984
|
const message = createBaseQueryGetProtocolFeesResponse();
|
|
3183
|
-
message.ProtocolFees =
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
: undefined;
|
|
2985
|
+
message.ProtocolFees = (object.ProtocolFees !== undefined && object.ProtocolFees !== null)
|
|
2986
|
+
? exports.ProtocolFees.fromPartial(object.ProtocolFees)
|
|
2987
|
+
: undefined;
|
|
3187
2988
|
return message;
|
|
3188
2989
|
},
|
|
3189
2990
|
};
|
|
3190
2991
|
function createBaseMsgCreateProtocolFees() {
|
|
3191
|
-
return {
|
|
3192
|
-
creator: "",
|
|
3193
|
-
feeBP: long_1.default.UZERO,
|
|
3194
|
-
collectionFees: [],
|
|
3195
|
-
fulfilmentFees: [],
|
|
3196
|
-
feeRecipients: [],
|
|
3197
|
-
};
|
|
2992
|
+
return { creator: "", feeBP: long_1.default.UZERO, collectionFees: [], fulfilmentFees: [], feeRecipients: [] };
|
|
3198
2993
|
}
|
|
3199
2994
|
exports.MsgCreateProtocolFees = {
|
|
3200
2995
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -3305,16 +3100,10 @@ exports.MsgCreateProtocolFees = {
|
|
|
3305
3100
|
fromPartial(object) {
|
|
3306
3101
|
const message = createBaseMsgCreateProtocolFees();
|
|
3307
3102
|
message.creator = object.creator ?? "";
|
|
3308
|
-
message.feeBP =
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
message.collectionFees =
|
|
3313
|
-
object.collectionFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3314
|
-
message.fulfilmentFees =
|
|
3315
|
-
object.fulfilmentFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3316
|
-
message.feeRecipients =
|
|
3317
|
-
object.feeRecipients?.map((e) => exports.AdminFeeRecipient.fromPartial(e)) || [];
|
|
3103
|
+
message.feeBP = (object.feeBP !== undefined && object.feeBP !== null) ? long_1.default.fromValue(object.feeBP) : long_1.default.UZERO;
|
|
3104
|
+
message.collectionFees = object.collectionFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3105
|
+
message.fulfilmentFees = object.fulfilmentFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3106
|
+
message.feeRecipients = object.feeRecipients?.map((e) => exports.AdminFeeRecipient.fromPartial(e)) || [];
|
|
3318
3107
|
return message;
|
|
3319
3108
|
},
|
|
3320
3109
|
};
|
|
@@ -3356,13 +3145,7 @@ exports.MsgCreateProtocolFeesResponse = {
|
|
|
3356
3145
|
},
|
|
3357
3146
|
};
|
|
3358
3147
|
function createBaseMsgUpdateProtocolFees() {
|
|
3359
|
-
return {
|
|
3360
|
-
creator: "",
|
|
3361
|
-
feeBP: long_1.default.UZERO,
|
|
3362
|
-
collectionFees: [],
|
|
3363
|
-
fulfilmentFees: [],
|
|
3364
|
-
feeRecipients: [],
|
|
3365
|
-
};
|
|
3148
|
+
return { creator: "", feeBP: long_1.default.UZERO, collectionFees: [], fulfilmentFees: [], feeRecipients: [] };
|
|
3366
3149
|
}
|
|
3367
3150
|
exports.MsgUpdateProtocolFees = {
|
|
3368
3151
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -3473,16 +3256,10 @@ exports.MsgUpdateProtocolFees = {
|
|
|
3473
3256
|
fromPartial(object) {
|
|
3474
3257
|
const message = createBaseMsgUpdateProtocolFees();
|
|
3475
3258
|
message.creator = object.creator ?? "";
|
|
3476
|
-
message.feeBP =
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
message.collectionFees =
|
|
3481
|
-
object.collectionFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3482
|
-
message.fulfilmentFees =
|
|
3483
|
-
object.fulfilmentFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3484
|
-
message.feeRecipients =
|
|
3485
|
-
object.feeRecipients?.map((e) => exports.AdminFeeRecipient.fromPartial(e)) || [];
|
|
3259
|
+
message.feeBP = (object.feeBP !== undefined && object.feeBP !== null) ? long_1.default.fromValue(object.feeBP) : long_1.default.UZERO;
|
|
3260
|
+
message.collectionFees = object.collectionFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3261
|
+
message.fulfilmentFees = object.fulfilmentFees?.map((e) => exports.FixedFeeTuple.fromPartial(e)) || [];
|
|
3262
|
+
message.feeRecipients = object.feeRecipients?.map((e) => exports.AdminFeeRecipient.fromPartial(e)) || [];
|
|
3486
3263
|
return message;
|
|
3487
3264
|
},
|
|
3488
3265
|
};
|
|
@@ -3604,15 +3381,9 @@ exports.PriceOracleDatum = {
|
|
|
3604
3381
|
fromJSON(object) {
|
|
3605
3382
|
return {
|
|
3606
3383
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
3607
|
-
chainID: isSet(object.chainID)
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
tokenAddress: isSet(object.tokenAddress)
|
|
3611
|
-
? bytesFromBase64(object.tokenAddress)
|
|
3612
|
-
: new Uint8Array(0),
|
|
3613
|
-
price: isSet(object.price)
|
|
3614
|
-
? bytesFromBase64(object.price)
|
|
3615
|
-
: new Uint8Array(0),
|
|
3384
|
+
chainID: isSet(object.chainID) ? bytesFromBase64(object.chainID) : new Uint8Array(0),
|
|
3385
|
+
tokenAddress: isSet(object.tokenAddress) ? bytesFromBase64(object.tokenAddress) : new Uint8Array(0),
|
|
3386
|
+
price: isSet(object.price) ? bytesFromBase64(object.price) : new Uint8Array(0),
|
|
3616
3387
|
decimals: isSet(object.decimals) ? globalThis.Number(object.decimals) : 0,
|
|
3617
3388
|
};
|
|
3618
3389
|
},
|
|
@@ -3699,8 +3470,7 @@ exports.PriceOracleData = {
|
|
|
3699
3470
|
},
|
|
3700
3471
|
fromPartial(object) {
|
|
3701
3472
|
const message = createBasePriceOracleData();
|
|
3702
|
-
message.priceData =
|
|
3703
|
-
object.priceData?.map((e) => exports.PriceOracleDatum.fromPartial(e)) || [];
|
|
3473
|
+
message.priceData = object.priceData?.map((e) => exports.PriceOracleDatum.fromPartial(e)) || [];
|
|
3704
3474
|
return message;
|
|
3705
3475
|
},
|
|
3706
3476
|
};
|
|
@@ -3775,9 +3545,7 @@ exports.QueryGetPriceOracleDataResponse = {
|
|
|
3775
3545
|
},
|
|
3776
3546
|
fromJSON(object) {
|
|
3777
3547
|
return {
|
|
3778
|
-
PriceOracleData: isSet(object.PriceOracleData)
|
|
3779
|
-
? exports.PriceOracleData.fromJSON(object.PriceOracleData)
|
|
3780
|
-
: undefined,
|
|
3548
|
+
PriceOracleData: isSet(object.PriceOracleData) ? exports.PriceOracleData.fromJSON(object.PriceOracleData) : undefined,
|
|
3781
3549
|
};
|
|
3782
3550
|
},
|
|
3783
3551
|
toJSON(message) {
|
|
@@ -3792,10 +3560,9 @@ exports.QueryGetPriceOracleDataResponse = {
|
|
|
3792
3560
|
},
|
|
3793
3561
|
fromPartial(object) {
|
|
3794
3562
|
const message = createBaseQueryGetPriceOracleDataResponse();
|
|
3795
|
-
message.PriceOracleData =
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
: undefined;
|
|
3563
|
+
message.PriceOracleData = (object.PriceOracleData !== undefined && object.PriceOracleData !== null)
|
|
3564
|
+
? exports.PriceOracleData.fromPartial(object.PriceOracleData)
|
|
3565
|
+
: undefined;
|
|
3799
3566
|
return message;
|
|
3800
3567
|
},
|
|
3801
3568
|
};
|
|
@@ -3863,10 +3630,7 @@ exports.MsgRefundReq = {
|
|
|
3863
3630
|
fromPartial(object) {
|
|
3864
3631
|
const message = createBaseMsgRefundReq();
|
|
3865
3632
|
message.creator = object.creator ?? "";
|
|
3866
|
-
message.rffID =
|
|
3867
|
-
object.rffID !== undefined && object.rffID !== null
|
|
3868
|
-
? long_1.default.fromValue(object.rffID)
|
|
3869
|
-
: long_1.default.UZERO;
|
|
3633
|
+
message.rffID = (object.rffID !== undefined && object.rffID !== null) ? long_1.default.fromValue(object.rffID) : long_1.default.UZERO;
|
|
3870
3634
|
return message;
|
|
3871
3635
|
},
|
|
3872
3636
|
};
|
|
@@ -3952,9 +3716,7 @@ exports.DepositVEPacket = {
|
|
|
3952
3716
|
fromJSON(object) {
|
|
3953
3717
|
return {
|
|
3954
3718
|
id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
|
|
3955
|
-
gasRefunded: isSet(object.gasRefunded)
|
|
3956
|
-
? globalThis.Boolean(object.gasRefunded)
|
|
3957
|
-
: false,
|
|
3719
|
+
gasRefunded: isSet(object.gasRefunded) ? globalThis.Boolean(object.gasRefunded) : false,
|
|
3958
3720
|
};
|
|
3959
3721
|
},
|
|
3960
3722
|
toJSON(message) {
|
|
@@ -3972,20 +3734,13 @@ exports.DepositVEPacket = {
|
|
|
3972
3734
|
},
|
|
3973
3735
|
fromPartial(object) {
|
|
3974
3736
|
const message = createBaseDepositVEPacket();
|
|
3975
|
-
message.id =
|
|
3976
|
-
object.id !== undefined && object.id !== null
|
|
3977
|
-
? long_1.default.fromValue(object.id)
|
|
3978
|
-
: long_1.default.UZERO;
|
|
3737
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
3979
3738
|
message.gasRefunded = object.gasRefunded ?? false;
|
|
3980
3739
|
return message;
|
|
3981
3740
|
},
|
|
3982
3741
|
};
|
|
3983
3742
|
function createBaseFillVEPacket() {
|
|
3984
|
-
return {
|
|
3985
|
-
id: long_1.default.UZERO,
|
|
3986
|
-
fillerAddress: new Uint8Array(0),
|
|
3987
|
-
transactionHash: new Uint8Array(0),
|
|
3988
|
-
};
|
|
3743
|
+
return { id: long_1.default.UZERO, fillerAddress: new Uint8Array(0), transactionHash: new Uint8Array(0) };
|
|
3989
3744
|
}
|
|
3990
3745
|
exports.FillVEPacket = {
|
|
3991
3746
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -4039,12 +3794,8 @@ exports.FillVEPacket = {
|
|
|
4039
3794
|
fromJSON(object) {
|
|
4040
3795
|
return {
|
|
4041
3796
|
id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
|
|
4042
|
-
fillerAddress: isSet(object.fillerAddress)
|
|
4043
|
-
|
|
4044
|
-
: new Uint8Array(0),
|
|
4045
|
-
transactionHash: isSet(object.transactionHash)
|
|
4046
|
-
? bytesFromBase64(object.transactionHash)
|
|
4047
|
-
: new Uint8Array(0),
|
|
3797
|
+
fillerAddress: isSet(object.fillerAddress) ? bytesFromBase64(object.fillerAddress) : new Uint8Array(0),
|
|
3798
|
+
transactionHash: isSet(object.transactionHash) ? bytesFromBase64(object.transactionHash) : new Uint8Array(0),
|
|
4048
3799
|
};
|
|
4049
3800
|
},
|
|
4050
3801
|
toJSON(message) {
|
|
@@ -4065,22 +3816,14 @@ exports.FillVEPacket = {
|
|
|
4065
3816
|
},
|
|
4066
3817
|
fromPartial(object) {
|
|
4067
3818
|
const message = createBaseFillVEPacket();
|
|
4068
|
-
message.id =
|
|
4069
|
-
object.id !== undefined && object.id !== null
|
|
4070
|
-
? long_1.default.fromValue(object.id)
|
|
4071
|
-
: long_1.default.UZERO;
|
|
3819
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
4072
3820
|
message.fillerAddress = object.fillerAddress ?? new Uint8Array(0);
|
|
4073
3821
|
message.transactionHash = object.transactionHash ?? new Uint8Array(0);
|
|
4074
3822
|
return message;
|
|
4075
3823
|
},
|
|
4076
3824
|
};
|
|
4077
3825
|
function createBaseMsgDoubleCheckTx() {
|
|
4078
|
-
return {
|
|
4079
|
-
creator: "",
|
|
4080
|
-
txUniverse: 0,
|
|
4081
|
-
txChainID: new Uint8Array(0),
|
|
4082
|
-
packet: undefined,
|
|
4083
|
-
};
|
|
3826
|
+
return { creator: "", txUniverse: 0, txChainID: new Uint8Array(0), packet: undefined };
|
|
4084
3827
|
}
|
|
4085
3828
|
exports.MsgDoubleCheckTx = {
|
|
4086
3829
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -4135,20 +3878,14 @@ exports.MsgDoubleCheckTx = {
|
|
|
4135
3878
|
if (tag !== 42) {
|
|
4136
3879
|
break;
|
|
4137
3880
|
}
|
|
4138
|
-
message.packet = {
|
|
4139
|
-
$case: "depositPacket",
|
|
4140
|
-
value: exports.DepositVEPacket.decode(reader, reader.uint32()),
|
|
4141
|
-
};
|
|
3881
|
+
message.packet = { $case: "depositPacket", value: exports.DepositVEPacket.decode(reader, reader.uint32()) };
|
|
4142
3882
|
continue;
|
|
4143
3883
|
}
|
|
4144
3884
|
case 6: {
|
|
4145
3885
|
if (tag !== 50) {
|
|
4146
3886
|
break;
|
|
4147
3887
|
}
|
|
4148
|
-
message.packet = {
|
|
4149
|
-
$case: "fillPacket",
|
|
4150
|
-
value: exports.FillVEPacket.decode(reader, reader.uint32()),
|
|
4151
|
-
};
|
|
3888
|
+
message.packet = { $case: "fillPacket", value: exports.FillVEPacket.decode(reader, reader.uint32()) };
|
|
4152
3889
|
continue;
|
|
4153
3890
|
}
|
|
4154
3891
|
}
|
|
@@ -4162,22 +3899,12 @@ exports.MsgDoubleCheckTx = {
|
|
|
4162
3899
|
fromJSON(object) {
|
|
4163
3900
|
return {
|
|
4164
3901
|
creator: isSet(object.creator) ? globalThis.String(object.creator) : "",
|
|
4165
|
-
txUniverse: isSet(object.txUniverse)
|
|
4166
|
-
|
|
4167
|
-
: 0,
|
|
4168
|
-
txChainID: isSet(object.txChainID)
|
|
4169
|
-
? bytesFromBase64(object.txChainID)
|
|
4170
|
-
: new Uint8Array(0),
|
|
3902
|
+
txUniverse: isSet(object.txUniverse) ? universeFromJSON(object.txUniverse) : 0,
|
|
3903
|
+
txChainID: isSet(object.txChainID) ? bytesFromBase64(object.txChainID) : new Uint8Array(0),
|
|
4171
3904
|
packet: isSet(object.depositPacket)
|
|
4172
|
-
? {
|
|
4173
|
-
$case: "depositPacket",
|
|
4174
|
-
value: exports.DepositVEPacket.fromJSON(object.depositPacket),
|
|
4175
|
-
}
|
|
3905
|
+
? { $case: "depositPacket", value: exports.DepositVEPacket.fromJSON(object.depositPacket) }
|
|
4176
3906
|
: isSet(object.fillPacket)
|
|
4177
|
-
? {
|
|
4178
|
-
$case: "fillPacket",
|
|
4179
|
-
value: exports.FillVEPacket.fromJSON(object.fillPacket),
|
|
4180
|
-
}
|
|
3907
|
+
? { $case: "fillPacket", value: exports.FillVEPacket.fromJSON(object.fillPacket) }
|
|
4181
3908
|
: undefined,
|
|
4182
3909
|
};
|
|
4183
3910
|
},
|
|
@@ -4210,22 +3937,14 @@ exports.MsgDoubleCheckTx = {
|
|
|
4210
3937
|
message.txChainID = object.txChainID ?? new Uint8Array(0);
|
|
4211
3938
|
switch (object.packet?.$case) {
|
|
4212
3939
|
case "depositPacket": {
|
|
4213
|
-
if (object.packet?.value !== undefined &&
|
|
4214
|
-
object.packet
|
|
4215
|
-
message.packet = {
|
|
4216
|
-
$case: "depositPacket",
|
|
4217
|
-
value: exports.DepositVEPacket.fromPartial(object.packet.value),
|
|
4218
|
-
};
|
|
3940
|
+
if (object.packet?.value !== undefined && object.packet?.value !== null) {
|
|
3941
|
+
message.packet = { $case: "depositPacket", value: exports.DepositVEPacket.fromPartial(object.packet.value) };
|
|
4219
3942
|
}
|
|
4220
3943
|
break;
|
|
4221
3944
|
}
|
|
4222
3945
|
case "fillPacket": {
|
|
4223
|
-
if (object.packet?.value !== undefined &&
|
|
4224
|
-
object.packet
|
|
4225
|
-
message.packet = {
|
|
4226
|
-
$case: "fillPacket",
|
|
4227
|
-
value: exports.FillVEPacket.fromPartial(object.packet.value),
|
|
4228
|
-
};
|
|
3946
|
+
if (object.packet?.value !== undefined && object.packet?.value !== null) {
|
|
3947
|
+
message.packet = { $case: "fillPacket", value: exports.FillVEPacket.fromPartial(object.packet.value) };
|
|
4229
3948
|
}
|
|
4230
3949
|
break;
|
|
4231
3950
|
}
|