@avail-project/ca-common 1.0.0-dev.4 → 1.0.1-beta1
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/data/chaindata.js +110 -28
- package/dist/cjs/index.js +3 -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 -34
- package/dist/cjs/vaultcontracts/vaultcontracts.js +15 -11
- package/dist/cjs/xcs/autochoice.js +255 -0
- package/dist/esm/data/chaindata.js +110 -28
- package/dist/esm/index.js +12 -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 -34
- package/dist/esm/vaultcontracts/vaultcontracts.js +15 -11
- package/dist/esm/xcs/autochoice.js +254 -0
- package/dist/types/index.d.ts +12 -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 +11 -10
- 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 -6
- 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 -3
- 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 -3
- package/dist/types/rff/fuel.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.8.3
|
|
4
4
|
// protoc v6.32.1
|
|
5
5
|
// source: definition.proto
|
|
6
6
|
/* eslint-disable */
|
|
@@ -82,13 +82,7 @@ export function universeToJSON(object) {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
function createBasePageRequest() {
|
|
85
|
-
return {
|
|
86
|
-
key: new Uint8Array(0),
|
|
87
|
-
offset: Long.UZERO,
|
|
88
|
-
limit: Long.UZERO,
|
|
89
|
-
countTotal: false,
|
|
90
|
-
reverse: false,
|
|
91
|
-
};
|
|
85
|
+
return { key: new Uint8Array(0), offset: Long.UZERO, limit: Long.UZERO, countTotal: false, reverse: false };
|
|
92
86
|
}
|
|
93
87
|
export const PageRequest = {
|
|
94
88
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -164,12 +158,8 @@ export const PageRequest = {
|
|
|
164
158
|
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
165
159
|
offset: isSet(object.offset) ? Long.fromValue(object.offset) : Long.UZERO,
|
|
166
160
|
limit: isSet(object.limit) ? Long.fromValue(object.limit) : Long.UZERO,
|
|
167
|
-
countTotal: isSet(object.countTotal)
|
|
168
|
-
|
|
169
|
-
: false,
|
|
170
|
-
reverse: isSet(object.reverse)
|
|
171
|
-
? globalThis.Boolean(object.reverse)
|
|
172
|
-
: false,
|
|
161
|
+
countTotal: isSet(object.countTotal) ? globalThis.Boolean(object.countTotal) : false,
|
|
162
|
+
reverse: isSet(object.reverse) ? globalThis.Boolean(object.reverse) : false,
|
|
173
163
|
};
|
|
174
164
|
},
|
|
175
165
|
toJSON(message) {
|
|
@@ -197,14 +187,10 @@ export const PageRequest = {
|
|
|
197
187
|
fromPartial(object) {
|
|
198
188
|
const message = createBasePageRequest();
|
|
199
189
|
message.key = object.key ?? new Uint8Array(0);
|
|
200
|
-
message.offset =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
message.limit =
|
|
205
|
-
object.limit !== undefined && object.limit !== null
|
|
206
|
-
? Long.fromValue(object.limit)
|
|
207
|
-
: Long.UZERO;
|
|
190
|
+
message.offset = (object.offset !== undefined && object.offset !== null)
|
|
191
|
+
? Long.fromValue(object.offset)
|
|
192
|
+
: Long.UZERO;
|
|
193
|
+
message.limit = (object.limit !== undefined && object.limit !== null) ? Long.fromValue(object.limit) : Long.UZERO;
|
|
208
194
|
message.countTotal = object.countTotal ?? false;
|
|
209
195
|
message.reverse = object.reverse ?? false;
|
|
210
196
|
return message;
|
|
@@ -254,9 +240,7 @@ export const PageResponse = {
|
|
|
254
240
|
},
|
|
255
241
|
fromJSON(object) {
|
|
256
242
|
return {
|
|
257
|
-
nextKey: isSet(object.nextKey)
|
|
258
|
-
? bytesFromBase64(object.nextKey)
|
|
259
|
-
: new Uint8Array(0),
|
|
243
|
+
nextKey: isSet(object.nextKey) ? bytesFromBase64(object.nextKey) : new Uint8Array(0),
|
|
260
244
|
total: isSet(object.total) ? Long.fromValue(object.total) : Long.UZERO,
|
|
261
245
|
};
|
|
262
246
|
},
|
|
@@ -276,10 +260,7 @@ export const PageResponse = {
|
|
|
276
260
|
fromPartial(object) {
|
|
277
261
|
const message = createBasePageResponse();
|
|
278
262
|
message.nextKey = object.nextKey ?? new Uint8Array(0);
|
|
279
|
-
message.total =
|
|
280
|
-
object.total !== undefined && object.total !== null
|
|
281
|
-
? Long.fromValue(object.total)
|
|
282
|
-
: Long.UZERO;
|
|
263
|
+
message.total = (object.total !== undefined && object.total !== null) ? Long.fromValue(object.total) : Long.UZERO;
|
|
283
264
|
return message;
|
|
284
265
|
},
|
|
285
266
|
};
|
|
@@ -364,15 +345,9 @@ export const RFFSourcePair = {
|
|
|
364
345
|
fromJSON(object) {
|
|
365
346
|
return {
|
|
366
347
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
367
|
-
chainID: isSet(object.chainID)
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
contractAddress: isSet(object.contractAddress)
|
|
371
|
-
? bytesFromBase64(object.contractAddress)
|
|
372
|
-
: new Uint8Array(0),
|
|
373
|
-
value: isSet(object.value)
|
|
374
|
-
? bytesFromBase64(object.value)
|
|
375
|
-
: new Uint8Array(0),
|
|
348
|
+
chainID: isSet(object.chainID) ? bytesFromBase64(object.chainID) : new Uint8Array(0),
|
|
349
|
+
contractAddress: isSet(object.contractAddress) ? bytesFromBase64(object.contractAddress) : new Uint8Array(0),
|
|
350
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
376
351
|
status: isSet(object.status) ? rFFSourceStateFromJSON(object.status) : 0,
|
|
377
352
|
};
|
|
378
353
|
},
|
|
@@ -409,12 +384,7 @@ export const RFFSourcePair = {
|
|
|
409
384
|
},
|
|
410
385
|
};
|
|
411
386
|
function createBaseSignatureDatum() {
|
|
412
|
-
return {
|
|
413
|
-
universe: 0,
|
|
414
|
-
address: new Uint8Array(0),
|
|
415
|
-
signature: new Uint8Array(0),
|
|
416
|
-
hash: new Uint8Array(0),
|
|
417
|
-
};
|
|
387
|
+
return { universe: 0, address: new Uint8Array(0), signature: new Uint8Array(0), hash: new Uint8Array(0) };
|
|
418
388
|
}
|
|
419
389
|
export const SignatureDatum = {
|
|
420
390
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -478,15 +448,9 @@ export const SignatureDatum = {
|
|
|
478
448
|
fromJSON(object) {
|
|
479
449
|
return {
|
|
480
450
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
481
|
-
address: isSet(object.address)
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
signature: isSet(object.signature)
|
|
485
|
-
? bytesFromBase64(object.signature)
|
|
486
|
-
: new Uint8Array(0),
|
|
487
|
-
hash: isSet(object.hash)
|
|
488
|
-
? bytesFromBase64(object.hash)
|
|
489
|
-
: new Uint8Array(0),
|
|
451
|
+
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
|
|
452
|
+
signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(0),
|
|
453
|
+
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(0),
|
|
490
454
|
};
|
|
491
455
|
},
|
|
492
456
|
toJSON(message) {
|
|
@@ -561,12 +525,8 @@ export const RFFDestinationPair = {
|
|
|
561
525
|
},
|
|
562
526
|
fromJSON(object) {
|
|
563
527
|
return {
|
|
564
|
-
contractAddress: isSet(object.contractAddress)
|
|
565
|
-
|
|
566
|
-
: new Uint8Array(0),
|
|
567
|
-
value: isSet(object.value)
|
|
568
|
-
? bytesFromBase64(object.value)
|
|
569
|
-
: new Uint8Array(0),
|
|
528
|
+
contractAddress: isSet(object.contractAddress) ? bytesFromBase64(object.contractAddress) : new Uint8Array(0),
|
|
529
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
570
530
|
};
|
|
571
531
|
},
|
|
572
532
|
toJSON(message) {
|
|
@@ -805,47 +765,27 @@ export const RequestForFunds = {
|
|
|
805
765
|
sources: globalThis.Array.isArray(object?.sources)
|
|
806
766
|
? object.sources.map((e) => RFFSourcePair.fromJSON(e))
|
|
807
767
|
: [],
|
|
808
|
-
destinationUniverse: isSet(object.destinationUniverse)
|
|
809
|
-
? universeFromJSON(object.destinationUniverse)
|
|
810
|
-
: 0,
|
|
768
|
+
destinationUniverse: isSet(object.destinationUniverse) ? universeFromJSON(object.destinationUniverse) : 0,
|
|
811
769
|
destinationChainID: isSet(object.destinationChainID)
|
|
812
770
|
? bytesFromBase64(object.destinationChainID)
|
|
813
771
|
: new Uint8Array(0),
|
|
814
|
-
recipientAddress: isSet(object.recipientAddress)
|
|
815
|
-
? bytesFromBase64(object.recipientAddress)
|
|
816
|
-
: new Uint8Array(0),
|
|
772
|
+
recipientAddress: isSet(object.recipientAddress) ? bytesFromBase64(object.recipientAddress) : new Uint8Array(0),
|
|
817
773
|
destinations: globalThis.Array.isArray(object?.destinations)
|
|
818
774
|
? object.destinations.map((e) => RFFDestinationPair.fromJSON(e))
|
|
819
775
|
: [],
|
|
820
|
-
nonce: isSet(object.nonce)
|
|
821
|
-
? bytesFromBase64(object.nonce)
|
|
822
|
-
: new Uint8Array(0),
|
|
776
|
+
nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
|
|
823
777
|
expiry: isSet(object.expiry) ? Long.fromValue(object.expiry) : Long.UZERO,
|
|
824
778
|
signatureData: globalThis.Array.isArray(object?.signatureData)
|
|
825
779
|
? object.signatureData.map((e) => SignatureDatum.fromJSON(e))
|
|
826
780
|
: [],
|
|
827
781
|
user: isSet(object.user) ? globalThis.String(object.user) : "",
|
|
828
|
-
fulfilledBy: isSet(object.fulfilledBy)
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
? globalThis.Boolean(object.deposited)
|
|
836
|
-
: false,
|
|
837
|
-
fulfilled: isSet(object.fulfilled)
|
|
838
|
-
? globalThis.Boolean(object.fulfilled)
|
|
839
|
-
: false,
|
|
840
|
-
settled: isSet(object.settled)
|
|
841
|
-
? globalThis.Boolean(object.settled)
|
|
842
|
-
: false,
|
|
843
|
-
refunded: isSet(object.refunded)
|
|
844
|
-
? globalThis.Boolean(object.refunded)
|
|
845
|
-
: false,
|
|
846
|
-
creationBlock: isSet(object.creationBlock)
|
|
847
|
-
? Long.fromValue(object.creationBlock)
|
|
848
|
-
: Long.ZERO,
|
|
782
|
+
fulfilledBy: isSet(object.fulfilledBy) ? bytesFromBase64(object.fulfilledBy) : new Uint8Array(0),
|
|
783
|
+
fulfilledAt: isSet(object.fulfilledAt) ? Long.fromValue(object.fulfilledAt) : Long.UZERO,
|
|
784
|
+
deposited: isSet(object.deposited) ? globalThis.Boolean(object.deposited) : false,
|
|
785
|
+
fulfilled: isSet(object.fulfilled) ? globalThis.Boolean(object.fulfilled) : false,
|
|
786
|
+
settled: isSet(object.settled) ? globalThis.Boolean(object.settled) : false,
|
|
787
|
+
refunded: isSet(object.refunded) ? globalThis.Boolean(object.refunded) : false,
|
|
788
|
+
creationBlock: isSet(object.creationBlock) ? Long.fromValue(object.creationBlock) : Long.ZERO,
|
|
849
789
|
};
|
|
850
790
|
},
|
|
851
791
|
toJSON(message) {
|
|
@@ -908,38 +848,29 @@ export const RequestForFunds = {
|
|
|
908
848
|
},
|
|
909
849
|
fromPartial(object) {
|
|
910
850
|
const message = createBaseRequestForFunds();
|
|
911
|
-
message.id =
|
|
912
|
-
|
|
913
|
-
? Long.fromValue(object.id)
|
|
914
|
-
: Long.UZERO;
|
|
915
|
-
message.sources =
|
|
916
|
-
object.sources?.map((e) => RFFSourcePair.fromPartial(e)) || [];
|
|
851
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
852
|
+
message.sources = object.sources?.map((e) => RFFSourcePair.fromPartial(e)) || [];
|
|
917
853
|
message.destinationUniverse = object.destinationUniverse ?? 0;
|
|
918
854
|
message.destinationChainID = object.destinationChainID ?? new Uint8Array(0);
|
|
919
855
|
message.recipientAddress = object.recipientAddress ?? new Uint8Array(0);
|
|
920
|
-
message.destinations =
|
|
921
|
-
object.destinations?.map((e) => RFFDestinationPair.fromPartial(e)) || [];
|
|
856
|
+
message.destinations = object.destinations?.map((e) => RFFDestinationPair.fromPartial(e)) || [];
|
|
922
857
|
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
923
|
-
message.expiry =
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
message.signatureData =
|
|
928
|
-
object.signatureData?.map((e) => SignatureDatum.fromPartial(e)) || [];
|
|
858
|
+
message.expiry = (object.expiry !== undefined && object.expiry !== null)
|
|
859
|
+
? Long.fromValue(object.expiry)
|
|
860
|
+
: Long.UZERO;
|
|
861
|
+
message.signatureData = object.signatureData?.map((e) => SignatureDatum.fromPartial(e)) || [];
|
|
929
862
|
message.user = object.user ?? "";
|
|
930
863
|
message.fulfilledBy = object.fulfilledBy ?? new Uint8Array(0);
|
|
931
|
-
message.fulfilledAt =
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
: Long.UZERO;
|
|
864
|
+
message.fulfilledAt = (object.fulfilledAt !== undefined && object.fulfilledAt !== null)
|
|
865
|
+
? Long.fromValue(object.fulfilledAt)
|
|
866
|
+
: Long.UZERO;
|
|
935
867
|
message.deposited = object.deposited ?? false;
|
|
936
868
|
message.fulfilled = object.fulfilled ?? false;
|
|
937
869
|
message.settled = object.settled ?? false;
|
|
938
870
|
message.refunded = object.refunded ?? false;
|
|
939
|
-
message.creationBlock =
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
: Long.ZERO;
|
|
871
|
+
message.creationBlock = (object.creationBlock !== undefined && object.creationBlock !== null)
|
|
872
|
+
? Long.fromValue(object.creationBlock)
|
|
873
|
+
: Long.ZERO;
|
|
943
874
|
return message;
|
|
944
875
|
},
|
|
945
876
|
};
|
|
@@ -1070,21 +1001,15 @@ export const MsgCreateRequestForFunds = {
|
|
|
1070
1001
|
sources: globalThis.Array.isArray(object?.sources)
|
|
1071
1002
|
? object.sources.map((e) => RFFSourcePair.fromJSON(e))
|
|
1072
1003
|
: [],
|
|
1073
|
-
destinationUniverse: isSet(object.destinationUniverse)
|
|
1074
|
-
? universeFromJSON(object.destinationUniverse)
|
|
1075
|
-
: 0,
|
|
1004
|
+
destinationUniverse: isSet(object.destinationUniverse) ? universeFromJSON(object.destinationUniverse) : 0,
|
|
1076
1005
|
destinationChainID: isSet(object.destinationChainID)
|
|
1077
1006
|
? bytesFromBase64(object.destinationChainID)
|
|
1078
1007
|
: new Uint8Array(0),
|
|
1079
|
-
recipientAddress: isSet(object.recipientAddress)
|
|
1080
|
-
? bytesFromBase64(object.recipientAddress)
|
|
1081
|
-
: new Uint8Array(0),
|
|
1008
|
+
recipientAddress: isSet(object.recipientAddress) ? bytesFromBase64(object.recipientAddress) : new Uint8Array(0),
|
|
1082
1009
|
destinations: globalThis.Array.isArray(object?.destinations)
|
|
1083
1010
|
? object.destinations.map((e) => RFFDestinationPair.fromJSON(e))
|
|
1084
1011
|
: [],
|
|
1085
|
-
nonce: isSet(object.nonce)
|
|
1086
|
-
? bytesFromBase64(object.nonce)
|
|
1087
|
-
: new Uint8Array(0),
|
|
1012
|
+
nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
|
|
1088
1013
|
expiry: isSet(object.expiry) ? Long.fromValue(object.expiry) : Long.UZERO,
|
|
1089
1014
|
user: isSet(object.user) ? globalThis.String(object.user) : "",
|
|
1090
1015
|
signatureData: globalThis.Array.isArray(object?.signatureData)
|
|
@@ -1128,21 +1053,17 @@ export const MsgCreateRequestForFunds = {
|
|
|
1128
1053
|
},
|
|
1129
1054
|
fromPartial(object) {
|
|
1130
1055
|
const message = createBaseMsgCreateRequestForFunds();
|
|
1131
|
-
message.sources =
|
|
1132
|
-
object.sources?.map((e) => RFFSourcePair.fromPartial(e)) || [];
|
|
1056
|
+
message.sources = object.sources?.map((e) => RFFSourcePair.fromPartial(e)) || [];
|
|
1133
1057
|
message.destinationUniverse = object.destinationUniverse ?? 0;
|
|
1134
1058
|
message.destinationChainID = object.destinationChainID ?? new Uint8Array(0);
|
|
1135
1059
|
message.recipientAddress = object.recipientAddress ?? new Uint8Array(0);
|
|
1136
|
-
message.destinations =
|
|
1137
|
-
object.destinations?.map((e) => RFFDestinationPair.fromPartial(e)) || [];
|
|
1060
|
+
message.destinations = object.destinations?.map((e) => RFFDestinationPair.fromPartial(e)) || [];
|
|
1138
1061
|
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
1139
|
-
message.expiry =
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
: Long.UZERO;
|
|
1062
|
+
message.expiry = (object.expiry !== undefined && object.expiry !== null)
|
|
1063
|
+
? Long.fromValue(object.expiry)
|
|
1064
|
+
: Long.UZERO;
|
|
1143
1065
|
message.user = object.user ?? "";
|
|
1144
|
-
message.signatureData =
|
|
1145
|
-
object.signatureData?.map((e) => SignatureDatum.fromPartial(e)) || [];
|
|
1066
|
+
message.signatureData = object.signatureData?.map((e) => SignatureDatum.fromPartial(e)) || [];
|
|
1146
1067
|
return message;
|
|
1147
1068
|
},
|
|
1148
1069
|
};
|
|
@@ -1193,10 +1114,7 @@ export const MsgCreateRequestForFundsResponse = {
|
|
|
1193
1114
|
},
|
|
1194
1115
|
fromPartial(object) {
|
|
1195
1116
|
const message = createBaseMsgCreateRequestForFundsResponse();
|
|
1196
|
-
message.id =
|
|
1197
|
-
object.id !== undefined && object.id !== null
|
|
1198
|
-
? Long.fromValue(object.id)
|
|
1199
|
-
: Long.UZERO;
|
|
1117
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
1200
1118
|
return message;
|
|
1201
1119
|
},
|
|
1202
1120
|
};
|
|
@@ -1247,10 +1165,7 @@ export const QueryGetRequestForFundsRequest = {
|
|
|
1247
1165
|
},
|
|
1248
1166
|
fromPartial(object) {
|
|
1249
1167
|
const message = createBaseQueryGetRequestForFundsRequest();
|
|
1250
|
-
message.id =
|
|
1251
|
-
object.id !== undefined && object.id !== null
|
|
1252
|
-
? Long.fromValue(object.id)
|
|
1253
|
-
: Long.UZERO;
|
|
1168
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
1254
1169
|
return message;
|
|
1255
1170
|
},
|
|
1256
1171
|
};
|
|
@@ -1288,9 +1203,7 @@ export const QueryGetRequestForFundsResponse = {
|
|
|
1288
1203
|
},
|
|
1289
1204
|
fromJSON(object) {
|
|
1290
1205
|
return {
|
|
1291
|
-
requestForFunds: isSet(object.requestForFunds)
|
|
1292
|
-
? RequestForFunds.fromJSON(object.requestForFunds)
|
|
1293
|
-
: undefined,
|
|
1206
|
+
requestForFunds: isSet(object.requestForFunds) ? RequestForFunds.fromJSON(object.requestForFunds) : undefined,
|
|
1294
1207
|
};
|
|
1295
1208
|
},
|
|
1296
1209
|
toJSON(message) {
|
|
@@ -1305,10 +1218,9 @@ export const QueryGetRequestForFundsResponse = {
|
|
|
1305
1218
|
},
|
|
1306
1219
|
fromPartial(object) {
|
|
1307
1220
|
const message = createBaseQueryGetRequestForFundsResponse();
|
|
1308
|
-
message.requestForFunds =
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
: undefined;
|
|
1221
|
+
message.requestForFunds = (object.requestForFunds !== undefined && object.requestForFunds !== null)
|
|
1222
|
+
? RequestForFunds.fromPartial(object.requestForFunds)
|
|
1223
|
+
: undefined;
|
|
1312
1224
|
return message;
|
|
1313
1225
|
},
|
|
1314
1226
|
};
|
|
@@ -1345,11 +1257,7 @@ export const QueryAllRequestForFundsRequest = {
|
|
|
1345
1257
|
return message;
|
|
1346
1258
|
},
|
|
1347
1259
|
fromJSON(object) {
|
|
1348
|
-
return {
|
|
1349
|
-
pagination: isSet(object.pagination)
|
|
1350
|
-
? PageRequest.fromJSON(object.pagination)
|
|
1351
|
-
: undefined,
|
|
1352
|
-
};
|
|
1260
|
+
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
1353
1261
|
},
|
|
1354
1262
|
toJSON(message) {
|
|
1355
1263
|
const obj = {};
|
|
@@ -1363,10 +1271,9 @@ export const QueryAllRequestForFundsRequest = {
|
|
|
1363
1271
|
},
|
|
1364
1272
|
fromPartial(object) {
|
|
1365
1273
|
const message = createBaseQueryAllRequestForFundsRequest();
|
|
1366
|
-
message.pagination =
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
: undefined;
|
|
1274
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1275
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1276
|
+
: undefined;
|
|
1370
1277
|
return message;
|
|
1371
1278
|
},
|
|
1372
1279
|
};
|
|
@@ -1417,9 +1324,7 @@ export const QueryAllRequestForFundsResponse = {
|
|
|
1417
1324
|
requestForFunds: globalThis.Array.isArray(object?.requestForFunds)
|
|
1418
1325
|
? object.requestForFunds.map((e) => RequestForFunds.fromJSON(e))
|
|
1419
1326
|
: [],
|
|
1420
|
-
pagination: isSet(object.pagination)
|
|
1421
|
-
? PageResponse.fromJSON(object.pagination)
|
|
1422
|
-
: undefined,
|
|
1327
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1423
1328
|
};
|
|
1424
1329
|
},
|
|
1425
1330
|
toJSON(message) {
|
|
@@ -1437,13 +1342,10 @@ export const QueryAllRequestForFundsResponse = {
|
|
|
1437
1342
|
},
|
|
1438
1343
|
fromPartial(object) {
|
|
1439
1344
|
const message = createBaseQueryAllRequestForFundsResponse();
|
|
1440
|
-
message.requestForFunds =
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
object.pagination !== undefined && object.pagination !== null
|
|
1445
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1446
|
-
: undefined;
|
|
1345
|
+
message.requestForFunds = object.requestForFunds?.map((e) => RequestForFunds.fromPartial(e)) || [];
|
|
1346
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1347
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1348
|
+
: undefined;
|
|
1447
1349
|
return message;
|
|
1448
1350
|
},
|
|
1449
1351
|
};
|
|
@@ -1549,15 +1451,9 @@ export const RouteFee = {
|
|
|
1549
1451
|
},
|
|
1550
1452
|
fromJSON(object) {
|
|
1551
1453
|
return {
|
|
1552
|
-
sourceUniverse: isSet(object.sourceUniverse)
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
destinationUniverse: isSet(object.destinationUniverse)
|
|
1556
|
-
? universeFromJSON(object.destinationUniverse)
|
|
1557
|
-
: 0,
|
|
1558
|
-
sourceChainID: isSet(object.sourceChainID)
|
|
1559
|
-
? bytesFromBase64(object.sourceChainID)
|
|
1560
|
-
: new Uint8Array(0),
|
|
1454
|
+
sourceUniverse: isSet(object.sourceUniverse) ? universeFromJSON(object.sourceUniverse) : 0,
|
|
1455
|
+
destinationUniverse: isSet(object.destinationUniverse) ? universeFromJSON(object.destinationUniverse) : 0,
|
|
1456
|
+
sourceChainID: isSet(object.sourceChainID) ? bytesFromBase64(object.sourceChainID) : new Uint8Array(0),
|
|
1561
1457
|
destinationChainID: isSet(object.destinationChainID)
|
|
1562
1458
|
? bytesFromBase64(object.destinationChainID)
|
|
1563
1459
|
: new Uint8Array(0),
|
|
@@ -1605,18 +1501,13 @@ export const RouteFee = {
|
|
|
1605
1501
|
message.sourceChainID = object.sourceChainID ?? new Uint8Array(0);
|
|
1606
1502
|
message.destinationChainID = object.destinationChainID ?? new Uint8Array(0);
|
|
1607
1503
|
message.sourceTokenAddress = object.sourceTokenAddress ?? new Uint8Array(0);
|
|
1608
|
-
message.destinationTokenAddress =
|
|
1609
|
-
object.destinationTokenAddress ?? new Uint8Array(0);
|
|
1504
|
+
message.destinationTokenAddress = object.destinationTokenAddress ?? new Uint8Array(0);
|
|
1610
1505
|
message.feeBP = object.feeBP ?? 0;
|
|
1611
1506
|
return message;
|
|
1612
1507
|
},
|
|
1613
1508
|
};
|
|
1614
1509
|
function createBaseSolverAddress() {
|
|
1615
|
-
return {
|
|
1616
|
-
universe: 0,
|
|
1617
|
-
address: new Uint8Array(0),
|
|
1618
|
-
signature: new Uint8Array(0),
|
|
1619
|
-
};
|
|
1510
|
+
return { universe: 0, address: new Uint8Array(0), signature: new Uint8Array(0) };
|
|
1620
1511
|
}
|
|
1621
1512
|
export const SolverAddress = {
|
|
1622
1513
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -1670,12 +1561,8 @@ export const SolverAddress = {
|
|
|
1670
1561
|
fromJSON(object) {
|
|
1671
1562
|
return {
|
|
1672
1563
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
1673
|
-
address: isSet(object.address)
|
|
1674
|
-
|
|
1675
|
-
: new Uint8Array(0),
|
|
1676
|
-
signature: isSet(object.signature)
|
|
1677
|
-
? bytesFromBase64(object.signature)
|
|
1678
|
-
: new Uint8Array(0),
|
|
1564
|
+
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
|
|
1565
|
+
signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(0),
|
|
1679
1566
|
};
|
|
1680
1567
|
},
|
|
1681
1568
|
toJSON(message) {
|
|
@@ -1756,9 +1643,7 @@ export const SolverData = {
|
|
|
1756
1643
|
},
|
|
1757
1644
|
fromJSON(object) {
|
|
1758
1645
|
return {
|
|
1759
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
1760
|
-
? globalThis.String(object.cosmosAddress)
|
|
1761
|
-
: "",
|
|
1646
|
+
cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "",
|
|
1762
1647
|
advertisedFees: globalThis.Array.isArray(object?.advertisedFees)
|
|
1763
1648
|
? object.advertisedFees.map((e) => RouteFee.fromJSON(e))
|
|
1764
1649
|
: [],
|
|
@@ -1786,10 +1671,8 @@ export const SolverData = {
|
|
|
1786
1671
|
fromPartial(object) {
|
|
1787
1672
|
const message = createBaseSolverData();
|
|
1788
1673
|
message.cosmosAddress = object.cosmosAddress ?? "";
|
|
1789
|
-
message.advertisedFees =
|
|
1790
|
-
|
|
1791
|
-
message.addresses =
|
|
1792
|
-
object.addresses?.map((e) => SolverAddress.fromPartial(e)) || [];
|
|
1674
|
+
message.advertisedFees = object.advertisedFees?.map((e) => RouteFee.fromPartial(e)) || [];
|
|
1675
|
+
message.addresses = object.addresses?.map((e) => SolverAddress.fromPartial(e)) || [];
|
|
1793
1676
|
return message;
|
|
1794
1677
|
},
|
|
1795
1678
|
};
|
|
@@ -1826,11 +1709,7 @@ export const QueryGetSolverDataRequest = {
|
|
|
1826
1709
|
return message;
|
|
1827
1710
|
},
|
|
1828
1711
|
fromJSON(object) {
|
|
1829
|
-
return {
|
|
1830
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
1831
|
-
? globalThis.String(object.cosmosAddress)
|
|
1832
|
-
: "",
|
|
1833
|
-
};
|
|
1712
|
+
return { cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "" };
|
|
1834
1713
|
},
|
|
1835
1714
|
toJSON(message) {
|
|
1836
1715
|
const obj = {};
|
|
@@ -1881,11 +1760,7 @@ export const QueryGetSolverDataResponse = {
|
|
|
1881
1760
|
return message;
|
|
1882
1761
|
},
|
|
1883
1762
|
fromJSON(object) {
|
|
1884
|
-
return {
|
|
1885
|
-
solverData: isSet(object.solverData)
|
|
1886
|
-
? SolverData.fromJSON(object.solverData)
|
|
1887
|
-
: undefined,
|
|
1888
|
-
};
|
|
1763
|
+
return { solverData: isSet(object.solverData) ? SolverData.fromJSON(object.solverData) : undefined };
|
|
1889
1764
|
},
|
|
1890
1765
|
toJSON(message) {
|
|
1891
1766
|
const obj = {};
|
|
@@ -1899,10 +1774,9 @@ export const QueryGetSolverDataResponse = {
|
|
|
1899
1774
|
},
|
|
1900
1775
|
fromPartial(object) {
|
|
1901
1776
|
const message = createBaseQueryGetSolverDataResponse();
|
|
1902
|
-
message.solverData =
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
: undefined;
|
|
1777
|
+
message.solverData = (object.solverData !== undefined && object.solverData !== null)
|
|
1778
|
+
? SolverData.fromPartial(object.solverData)
|
|
1779
|
+
: undefined;
|
|
1906
1780
|
return message;
|
|
1907
1781
|
},
|
|
1908
1782
|
};
|
|
@@ -1939,11 +1813,7 @@ export const QueryAllSolverDataRequest = {
|
|
|
1939
1813
|
return message;
|
|
1940
1814
|
},
|
|
1941
1815
|
fromJSON(object) {
|
|
1942
|
-
return {
|
|
1943
|
-
pagination: isSet(object.pagination)
|
|
1944
|
-
? PageRequest.fromJSON(object.pagination)
|
|
1945
|
-
: undefined,
|
|
1946
|
-
};
|
|
1816
|
+
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
1947
1817
|
},
|
|
1948
1818
|
toJSON(message) {
|
|
1949
1819
|
const obj = {};
|
|
@@ -1957,10 +1827,9 @@ export const QueryAllSolverDataRequest = {
|
|
|
1957
1827
|
},
|
|
1958
1828
|
fromPartial(object) {
|
|
1959
1829
|
const message = createBaseQueryAllSolverDataRequest();
|
|
1960
|
-
message.pagination =
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
: undefined;
|
|
1830
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1831
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1832
|
+
: undefined;
|
|
1964
1833
|
return message;
|
|
1965
1834
|
},
|
|
1966
1835
|
};
|
|
@@ -2011,9 +1880,7 @@ export const QueryAllSolverDataResponse = {
|
|
|
2011
1880
|
solverData: globalThis.Array.isArray(object?.solverData)
|
|
2012
1881
|
? object.solverData.map((e) => SolverData.fromJSON(e))
|
|
2013
1882
|
: [],
|
|
2014
|
-
pagination: isSet(object.pagination)
|
|
2015
|
-
? PageResponse.fromJSON(object.pagination)
|
|
2016
|
-
: undefined,
|
|
1883
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
2017
1884
|
};
|
|
2018
1885
|
},
|
|
2019
1886
|
toJSON(message) {
|
|
@@ -2031,12 +1898,10 @@ export const QueryAllSolverDataResponse = {
|
|
|
2031
1898
|
},
|
|
2032
1899
|
fromPartial(object) {
|
|
2033
1900
|
const message = createBaseQueryAllSolverDataResponse();
|
|
2034
|
-
message.solverData =
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
? PageResponse.fromPartial(object.pagination)
|
|
2039
|
-
: undefined;
|
|
1901
|
+
message.solverData = object.solverData?.map((e) => SolverData.fromPartial(e)) || [];
|
|
1902
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1903
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1904
|
+
: undefined;
|
|
2040
1905
|
return message;
|
|
2041
1906
|
},
|
|
2042
1907
|
};
|
|
@@ -2094,9 +1959,7 @@ export const MsgCreateSolverData = {
|
|
|
2094
1959
|
},
|
|
2095
1960
|
fromJSON(object) {
|
|
2096
1961
|
return {
|
|
2097
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
2098
|
-
? globalThis.String(object.cosmosAddress)
|
|
2099
|
-
: "",
|
|
1962
|
+
cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "",
|
|
2100
1963
|
advertisedFees: globalThis.Array.isArray(object?.advertisedFees)
|
|
2101
1964
|
? object.advertisedFees.map((e) => RouteFee.fromJSON(e))
|
|
2102
1965
|
: [],
|
|
@@ -2124,10 +1987,8 @@ export const MsgCreateSolverData = {
|
|
|
2124
1987
|
fromPartial(object) {
|
|
2125
1988
|
const message = createBaseMsgCreateSolverData();
|
|
2126
1989
|
message.cosmosAddress = object.cosmosAddress ?? "";
|
|
2127
|
-
message.advertisedFees =
|
|
2128
|
-
|
|
2129
|
-
message.addresses =
|
|
2130
|
-
object.addresses?.map((e) => SolverAddress.fromPartial(e)) || [];
|
|
1990
|
+
message.advertisedFees = object.advertisedFees?.map((e) => RouteFee.fromPartial(e)) || [];
|
|
1991
|
+
message.addresses = object.addresses?.map((e) => SolverAddress.fromPartial(e)) || [];
|
|
2131
1992
|
return message;
|
|
2132
1993
|
},
|
|
2133
1994
|
};
|
|
@@ -2222,9 +2083,7 @@ export const MsgUpdateSolverData = {
|
|
|
2222
2083
|
},
|
|
2223
2084
|
fromJSON(object) {
|
|
2224
2085
|
return {
|
|
2225
|
-
cosmosAddress: isSet(object.cosmosAddress)
|
|
2226
|
-
? globalThis.String(object.cosmosAddress)
|
|
2227
|
-
: "",
|
|
2086
|
+
cosmosAddress: isSet(object.cosmosAddress) ? globalThis.String(object.cosmosAddress) : "",
|
|
2228
2087
|
advertisedFees: globalThis.Array.isArray(object?.advertisedFees)
|
|
2229
2088
|
? object.advertisedFees.map((e) => RouteFee.fromJSON(e))
|
|
2230
2089
|
: [],
|
|
@@ -2252,10 +2111,8 @@ export const MsgUpdateSolverData = {
|
|
|
2252
2111
|
fromPartial(object) {
|
|
2253
2112
|
const message = createBaseMsgUpdateSolverData();
|
|
2254
2113
|
message.cosmosAddress = object.cosmosAddress ?? "";
|
|
2255
|
-
message.advertisedFees =
|
|
2256
|
-
|
|
2257
|
-
message.addresses =
|
|
2258
|
-
object.addresses?.map((e) => SolverAddress.fromPartial(e)) || [];
|
|
2114
|
+
message.advertisedFees = object.advertisedFees?.map((e) => RouteFee.fromPartial(e)) || [];
|
|
2115
|
+
message.addresses = object.addresses?.map((e) => SolverAddress.fromPartial(e)) || [];
|
|
2259
2116
|
return message;
|
|
2260
2117
|
},
|
|
2261
2118
|
};
|
|
@@ -2400,21 +2257,13 @@ export const Settlement = {
|
|
|
2400
2257
|
return {
|
|
2401
2258
|
id: isSet(object.id) ? bytesFromBase64(object.id) : new Uint8Array(0),
|
|
2402
2259
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
2403
|
-
chainId: isSet(object.chainId)
|
|
2404
|
-
|
|
2405
|
-
: new Uint8Array(0),
|
|
2406
|
-
amounts: globalThis.Array.isArray(object?.amounts)
|
|
2407
|
-
? object.amounts.map((e) => bytesFromBase64(e))
|
|
2408
|
-
: [],
|
|
2260
|
+
chainId: isSet(object.chainId) ? bytesFromBase64(object.chainId) : new Uint8Array(0),
|
|
2261
|
+
amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e) => bytesFromBase64(e)) : [],
|
|
2409
2262
|
contractAddresses: globalThis.Array.isArray(object?.contractAddresses)
|
|
2410
2263
|
? object.contractAddresses.map((e) => bytesFromBase64(e))
|
|
2411
2264
|
: [],
|
|
2412
|
-
filler: globalThis.Array.isArray(object?.filler)
|
|
2413
|
-
|
|
2414
|
-
: [],
|
|
2415
|
-
success: isSet(object.success)
|
|
2416
|
-
? globalThis.Boolean(object.success)
|
|
2417
|
-
: false,
|
|
2265
|
+
filler: globalThis.Array.isArray(object?.filler) ? object.filler.map((e) => bytesFromBase64(e)) : [],
|
|
2266
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
2418
2267
|
};
|
|
2419
2268
|
},
|
|
2420
2269
|
toJSON(message) {
|
|
@@ -2504,10 +2353,7 @@ export const QueryGetSettlementRequest = {
|
|
|
2504
2353
|
},
|
|
2505
2354
|
fromPartial(object) {
|
|
2506
2355
|
const message = createBaseQueryGetSettlementRequest();
|
|
2507
|
-
message.id =
|
|
2508
|
-
object.id !== undefined && object.id !== null
|
|
2509
|
-
? Long.fromValue(object.id)
|
|
2510
|
-
: Long.UZERO;
|
|
2356
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
2511
2357
|
return message;
|
|
2512
2358
|
},
|
|
2513
2359
|
};
|
|
@@ -2544,11 +2390,7 @@ export const QueryGetSettlementResponse = {
|
|
|
2544
2390
|
return message;
|
|
2545
2391
|
},
|
|
2546
2392
|
fromJSON(object) {
|
|
2547
|
-
return {
|
|
2548
|
-
Settlement: isSet(object.Settlement)
|
|
2549
|
-
? Settlement.fromJSON(object.Settlement)
|
|
2550
|
-
: undefined,
|
|
2551
|
-
};
|
|
2393
|
+
return { Settlement: isSet(object.Settlement) ? Settlement.fromJSON(object.Settlement) : undefined };
|
|
2552
2394
|
},
|
|
2553
2395
|
toJSON(message) {
|
|
2554
2396
|
const obj = {};
|
|
@@ -2562,10 +2404,9 @@ export const QueryGetSettlementResponse = {
|
|
|
2562
2404
|
},
|
|
2563
2405
|
fromPartial(object) {
|
|
2564
2406
|
const message = createBaseQueryGetSettlementResponse();
|
|
2565
|
-
message.Settlement =
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
: undefined;
|
|
2407
|
+
message.Settlement = (object.Settlement !== undefined && object.Settlement !== null)
|
|
2408
|
+
? Settlement.fromPartial(object.Settlement)
|
|
2409
|
+
: undefined;
|
|
2569
2410
|
return message;
|
|
2570
2411
|
},
|
|
2571
2412
|
};
|
|
@@ -2602,11 +2443,7 @@ export const QueryAllSettlementRequest = {
|
|
|
2602
2443
|
return message;
|
|
2603
2444
|
},
|
|
2604
2445
|
fromJSON(object) {
|
|
2605
|
-
return {
|
|
2606
|
-
pagination: isSet(object.pagination)
|
|
2607
|
-
? PageRequest.fromJSON(object.pagination)
|
|
2608
|
-
: undefined,
|
|
2609
|
-
};
|
|
2446
|
+
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
2610
2447
|
},
|
|
2611
2448
|
toJSON(message) {
|
|
2612
2449
|
const obj = {};
|
|
@@ -2620,10 +2457,9 @@ export const QueryAllSettlementRequest = {
|
|
|
2620
2457
|
},
|
|
2621
2458
|
fromPartial(object) {
|
|
2622
2459
|
const message = createBaseQueryAllSettlementRequest();
|
|
2623
|
-
message.pagination =
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
: undefined;
|
|
2460
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2461
|
+
? PageRequest.fromPartial(object.pagination)
|
|
2462
|
+
: undefined;
|
|
2627
2463
|
return message;
|
|
2628
2464
|
},
|
|
2629
2465
|
};
|
|
@@ -2674,9 +2510,7 @@ export const QueryAllSettlementResponse = {
|
|
|
2674
2510
|
Settlement: globalThis.Array.isArray(object?.Settlement)
|
|
2675
2511
|
? object.Settlement.map((e) => Settlement.fromJSON(e))
|
|
2676
2512
|
: [],
|
|
2677
|
-
pagination: isSet(object.pagination)
|
|
2678
|
-
? PageResponse.fromJSON(object.pagination)
|
|
2679
|
-
: undefined,
|
|
2513
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
2680
2514
|
};
|
|
2681
2515
|
},
|
|
2682
2516
|
toJSON(message) {
|
|
@@ -2694,12 +2528,10 @@ export const QueryAllSettlementResponse = {
|
|
|
2694
2528
|
},
|
|
2695
2529
|
fromPartial(object) {
|
|
2696
2530
|
const message = createBaseQueryAllSettlementResponse();
|
|
2697
|
-
message.Settlement =
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
? PageResponse.fromPartial(object.pagination)
|
|
2702
|
-
: undefined;
|
|
2531
|
+
message.Settlement = object.Settlement?.map((e) => Settlement.fromPartial(e)) || [];
|
|
2532
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2533
|
+
? PageResponse.fromPartial(object.pagination)
|
|
2534
|
+
: undefined;
|
|
2703
2535
|
return message;
|
|
2704
2536
|
},
|
|
2705
2537
|
};
|
|
@@ -2748,9 +2580,7 @@ export const QueryRequestForFundsByAddressRequest = {
|
|
|
2748
2580
|
fromJSON(object) {
|
|
2749
2581
|
return {
|
|
2750
2582
|
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
2751
|
-
pagination: isSet(object.pagination)
|
|
2752
|
-
? PageRequest.fromJSON(object.pagination)
|
|
2753
|
-
: undefined,
|
|
2583
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
2754
2584
|
};
|
|
2755
2585
|
},
|
|
2756
2586
|
toJSON(message) {
|
|
@@ -2769,20 +2599,14 @@ export const QueryRequestForFundsByAddressRequest = {
|
|
|
2769
2599
|
fromPartial(object) {
|
|
2770
2600
|
const message = createBaseQueryRequestForFundsByAddressRequest();
|
|
2771
2601
|
message.account = object.account ?? "";
|
|
2772
|
-
message.pagination =
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
: undefined;
|
|
2602
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2603
|
+
? PageRequest.fromPartial(object.pagination)
|
|
2604
|
+
: undefined;
|
|
2776
2605
|
return message;
|
|
2777
2606
|
},
|
|
2778
2607
|
};
|
|
2779
2608
|
function createBaseFixedFeeTuple() {
|
|
2780
|
-
return {
|
|
2781
|
-
universe: 0,
|
|
2782
|
-
chainID: new Uint8Array(0),
|
|
2783
|
-
tokenAddress: new Uint8Array(0),
|
|
2784
|
-
fee: new Uint8Array(0),
|
|
2785
|
-
};
|
|
2609
|
+
return { universe: 0, chainID: new Uint8Array(0), tokenAddress: new Uint8Array(0), fee: new Uint8Array(0) };
|
|
2786
2610
|
}
|
|
2787
2611
|
export const FixedFeeTuple = {
|
|
2788
2612
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -2846,12 +2670,8 @@ export const FixedFeeTuple = {
|
|
|
2846
2670
|
fromJSON(object) {
|
|
2847
2671
|
return {
|
|
2848
2672
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
2849
|
-
chainID: isSet(object.chainID)
|
|
2850
|
-
|
|
2851
|
-
: new Uint8Array(0),
|
|
2852
|
-
tokenAddress: isSet(object.tokenAddress)
|
|
2853
|
-
? bytesFromBase64(object.tokenAddress)
|
|
2854
|
-
: new Uint8Array(0),
|
|
2673
|
+
chainID: isSet(object.chainID) ? bytesFromBase64(object.chainID) : new Uint8Array(0),
|
|
2674
|
+
tokenAddress: isSet(object.tokenAddress) ? bytesFromBase64(object.tokenAddress) : new Uint8Array(0),
|
|
2855
2675
|
fee: isSet(object.fee) ? bytesFromBase64(object.fee) : new Uint8Array(0),
|
|
2856
2676
|
};
|
|
2857
2677
|
},
|
|
@@ -2928,9 +2748,7 @@ export const AdminFeeRecipient = {
|
|
|
2928
2748
|
fromJSON(object) {
|
|
2929
2749
|
return {
|
|
2930
2750
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
2931
|
-
address: isSet(object.address)
|
|
2932
|
-
? bytesFromBase64(object.address)
|
|
2933
|
-
: new Uint8Array(0),
|
|
2751
|
+
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
|
|
2934
2752
|
};
|
|
2935
2753
|
},
|
|
2936
2754
|
toJSON(message) {
|
|
@@ -2954,13 +2772,7 @@ export const AdminFeeRecipient = {
|
|
|
2954
2772
|
},
|
|
2955
2773
|
};
|
|
2956
2774
|
function createBaseProtocolFees() {
|
|
2957
|
-
return {
|
|
2958
|
-
feeBP: Long.UZERO,
|
|
2959
|
-
collectionFees: [],
|
|
2960
|
-
fulfilmentFees: [],
|
|
2961
|
-
admin: "",
|
|
2962
|
-
feeRecipients: [],
|
|
2963
|
-
};
|
|
2775
|
+
return { feeBP: Long.UZERO, collectionFees: [], fulfilmentFees: [], admin: "", feeRecipients: [] };
|
|
2964
2776
|
}
|
|
2965
2777
|
export const ProtocolFees = {
|
|
2966
2778
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -3070,17 +2882,11 @@ export const ProtocolFees = {
|
|
|
3070
2882
|
},
|
|
3071
2883
|
fromPartial(object) {
|
|
3072
2884
|
const message = createBaseProtocolFees();
|
|
3073
|
-
message.feeBP =
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
: Long.UZERO;
|
|
3077
|
-
message.collectionFees =
|
|
3078
|
-
object.collectionFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3079
|
-
message.fulfilmentFees =
|
|
3080
|
-
object.fulfilmentFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
2885
|
+
message.feeBP = (object.feeBP !== undefined && object.feeBP !== null) ? Long.fromValue(object.feeBP) : Long.UZERO;
|
|
2886
|
+
message.collectionFees = object.collectionFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
2887
|
+
message.fulfilmentFees = object.fulfilmentFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3081
2888
|
message.admin = object.admin ?? "";
|
|
3082
|
-
message.feeRecipients =
|
|
3083
|
-
object.feeRecipients?.map((e) => AdminFeeRecipient.fromPartial(e)) || [];
|
|
2889
|
+
message.feeRecipients = object.feeRecipients?.map((e) => AdminFeeRecipient.fromPartial(e)) || [];
|
|
3084
2890
|
return message;
|
|
3085
2891
|
},
|
|
3086
2892
|
};
|
|
@@ -3154,11 +2960,7 @@ export const QueryGetProtocolFeesResponse = {
|
|
|
3154
2960
|
return message;
|
|
3155
2961
|
},
|
|
3156
2962
|
fromJSON(object) {
|
|
3157
|
-
return {
|
|
3158
|
-
ProtocolFees: isSet(object.ProtocolFees)
|
|
3159
|
-
? ProtocolFees.fromJSON(object.ProtocolFees)
|
|
3160
|
-
: undefined,
|
|
3161
|
-
};
|
|
2963
|
+
return { ProtocolFees: isSet(object.ProtocolFees) ? ProtocolFees.fromJSON(object.ProtocolFees) : undefined };
|
|
3162
2964
|
},
|
|
3163
2965
|
toJSON(message) {
|
|
3164
2966
|
const obj = {};
|
|
@@ -3172,21 +2974,14 @@ export const QueryGetProtocolFeesResponse = {
|
|
|
3172
2974
|
},
|
|
3173
2975
|
fromPartial(object) {
|
|
3174
2976
|
const message = createBaseQueryGetProtocolFeesResponse();
|
|
3175
|
-
message.ProtocolFees =
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
: undefined;
|
|
2977
|
+
message.ProtocolFees = (object.ProtocolFees !== undefined && object.ProtocolFees !== null)
|
|
2978
|
+
? ProtocolFees.fromPartial(object.ProtocolFees)
|
|
2979
|
+
: undefined;
|
|
3179
2980
|
return message;
|
|
3180
2981
|
},
|
|
3181
2982
|
};
|
|
3182
2983
|
function createBaseMsgCreateProtocolFees() {
|
|
3183
|
-
return {
|
|
3184
|
-
creator: "",
|
|
3185
|
-
feeBP: Long.UZERO,
|
|
3186
|
-
collectionFees: [],
|
|
3187
|
-
fulfilmentFees: [],
|
|
3188
|
-
feeRecipients: [],
|
|
3189
|
-
};
|
|
2984
|
+
return { creator: "", feeBP: Long.UZERO, collectionFees: [], fulfilmentFees: [], feeRecipients: [] };
|
|
3190
2985
|
}
|
|
3191
2986
|
export const MsgCreateProtocolFees = {
|
|
3192
2987
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -3297,16 +3092,10 @@ export const MsgCreateProtocolFees = {
|
|
|
3297
3092
|
fromPartial(object) {
|
|
3298
3093
|
const message = createBaseMsgCreateProtocolFees();
|
|
3299
3094
|
message.creator = object.creator ?? "";
|
|
3300
|
-
message.feeBP =
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
message.collectionFees =
|
|
3305
|
-
object.collectionFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3306
|
-
message.fulfilmentFees =
|
|
3307
|
-
object.fulfilmentFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3308
|
-
message.feeRecipients =
|
|
3309
|
-
object.feeRecipients?.map((e) => AdminFeeRecipient.fromPartial(e)) || [];
|
|
3095
|
+
message.feeBP = (object.feeBP !== undefined && object.feeBP !== null) ? Long.fromValue(object.feeBP) : Long.UZERO;
|
|
3096
|
+
message.collectionFees = object.collectionFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3097
|
+
message.fulfilmentFees = object.fulfilmentFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3098
|
+
message.feeRecipients = object.feeRecipients?.map((e) => AdminFeeRecipient.fromPartial(e)) || [];
|
|
3310
3099
|
return message;
|
|
3311
3100
|
},
|
|
3312
3101
|
};
|
|
@@ -3348,13 +3137,7 @@ export const MsgCreateProtocolFeesResponse = {
|
|
|
3348
3137
|
},
|
|
3349
3138
|
};
|
|
3350
3139
|
function createBaseMsgUpdateProtocolFees() {
|
|
3351
|
-
return {
|
|
3352
|
-
creator: "",
|
|
3353
|
-
feeBP: Long.UZERO,
|
|
3354
|
-
collectionFees: [],
|
|
3355
|
-
fulfilmentFees: [],
|
|
3356
|
-
feeRecipients: [],
|
|
3357
|
-
};
|
|
3140
|
+
return { creator: "", feeBP: Long.UZERO, collectionFees: [], fulfilmentFees: [], feeRecipients: [] };
|
|
3358
3141
|
}
|
|
3359
3142
|
export const MsgUpdateProtocolFees = {
|
|
3360
3143
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -3465,16 +3248,10 @@ export const MsgUpdateProtocolFees = {
|
|
|
3465
3248
|
fromPartial(object) {
|
|
3466
3249
|
const message = createBaseMsgUpdateProtocolFees();
|
|
3467
3250
|
message.creator = object.creator ?? "";
|
|
3468
|
-
message.feeBP =
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
message.collectionFees =
|
|
3473
|
-
object.collectionFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3474
|
-
message.fulfilmentFees =
|
|
3475
|
-
object.fulfilmentFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3476
|
-
message.feeRecipients =
|
|
3477
|
-
object.feeRecipients?.map((e) => AdminFeeRecipient.fromPartial(e)) || [];
|
|
3251
|
+
message.feeBP = (object.feeBP !== undefined && object.feeBP !== null) ? Long.fromValue(object.feeBP) : Long.UZERO;
|
|
3252
|
+
message.collectionFees = object.collectionFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3253
|
+
message.fulfilmentFees = object.fulfilmentFees?.map((e) => FixedFeeTuple.fromPartial(e)) || [];
|
|
3254
|
+
message.feeRecipients = object.feeRecipients?.map((e) => AdminFeeRecipient.fromPartial(e)) || [];
|
|
3478
3255
|
return message;
|
|
3479
3256
|
},
|
|
3480
3257
|
};
|
|
@@ -3596,15 +3373,9 @@ export const PriceOracleDatum = {
|
|
|
3596
3373
|
fromJSON(object) {
|
|
3597
3374
|
return {
|
|
3598
3375
|
universe: isSet(object.universe) ? universeFromJSON(object.universe) : 0,
|
|
3599
|
-
chainID: isSet(object.chainID)
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
tokenAddress: isSet(object.tokenAddress)
|
|
3603
|
-
? bytesFromBase64(object.tokenAddress)
|
|
3604
|
-
: new Uint8Array(0),
|
|
3605
|
-
price: isSet(object.price)
|
|
3606
|
-
? bytesFromBase64(object.price)
|
|
3607
|
-
: new Uint8Array(0),
|
|
3376
|
+
chainID: isSet(object.chainID) ? bytesFromBase64(object.chainID) : new Uint8Array(0),
|
|
3377
|
+
tokenAddress: isSet(object.tokenAddress) ? bytesFromBase64(object.tokenAddress) : new Uint8Array(0),
|
|
3378
|
+
price: isSet(object.price) ? bytesFromBase64(object.price) : new Uint8Array(0),
|
|
3608
3379
|
decimals: isSet(object.decimals) ? globalThis.Number(object.decimals) : 0,
|
|
3609
3380
|
};
|
|
3610
3381
|
},
|
|
@@ -3691,8 +3462,7 @@ export const PriceOracleData = {
|
|
|
3691
3462
|
},
|
|
3692
3463
|
fromPartial(object) {
|
|
3693
3464
|
const message = createBasePriceOracleData();
|
|
3694
|
-
message.priceData =
|
|
3695
|
-
object.priceData?.map((e) => PriceOracleDatum.fromPartial(e)) || [];
|
|
3465
|
+
message.priceData = object.priceData?.map((e) => PriceOracleDatum.fromPartial(e)) || [];
|
|
3696
3466
|
return message;
|
|
3697
3467
|
},
|
|
3698
3468
|
};
|
|
@@ -3767,9 +3537,7 @@ export const QueryGetPriceOracleDataResponse = {
|
|
|
3767
3537
|
},
|
|
3768
3538
|
fromJSON(object) {
|
|
3769
3539
|
return {
|
|
3770
|
-
PriceOracleData: isSet(object.PriceOracleData)
|
|
3771
|
-
? PriceOracleData.fromJSON(object.PriceOracleData)
|
|
3772
|
-
: undefined,
|
|
3540
|
+
PriceOracleData: isSet(object.PriceOracleData) ? PriceOracleData.fromJSON(object.PriceOracleData) : undefined,
|
|
3773
3541
|
};
|
|
3774
3542
|
},
|
|
3775
3543
|
toJSON(message) {
|
|
@@ -3784,10 +3552,9 @@ export const QueryGetPriceOracleDataResponse = {
|
|
|
3784
3552
|
},
|
|
3785
3553
|
fromPartial(object) {
|
|
3786
3554
|
const message = createBaseQueryGetPriceOracleDataResponse();
|
|
3787
|
-
message.PriceOracleData =
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
: undefined;
|
|
3555
|
+
message.PriceOracleData = (object.PriceOracleData !== undefined && object.PriceOracleData !== null)
|
|
3556
|
+
? PriceOracleData.fromPartial(object.PriceOracleData)
|
|
3557
|
+
: undefined;
|
|
3791
3558
|
return message;
|
|
3792
3559
|
},
|
|
3793
3560
|
};
|
|
@@ -3855,10 +3622,7 @@ export const MsgRefundReq = {
|
|
|
3855
3622
|
fromPartial(object) {
|
|
3856
3623
|
const message = createBaseMsgRefundReq();
|
|
3857
3624
|
message.creator = object.creator ?? "";
|
|
3858
|
-
message.rffID =
|
|
3859
|
-
object.rffID !== undefined && object.rffID !== null
|
|
3860
|
-
? Long.fromValue(object.rffID)
|
|
3861
|
-
: Long.UZERO;
|
|
3625
|
+
message.rffID = (object.rffID !== undefined && object.rffID !== null) ? Long.fromValue(object.rffID) : Long.UZERO;
|
|
3862
3626
|
return message;
|
|
3863
3627
|
},
|
|
3864
3628
|
};
|
|
@@ -3944,9 +3708,7 @@ export const DepositVEPacket = {
|
|
|
3944
3708
|
fromJSON(object) {
|
|
3945
3709
|
return {
|
|
3946
3710
|
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
3947
|
-
gasRefunded: isSet(object.gasRefunded)
|
|
3948
|
-
? globalThis.Boolean(object.gasRefunded)
|
|
3949
|
-
: false,
|
|
3711
|
+
gasRefunded: isSet(object.gasRefunded) ? globalThis.Boolean(object.gasRefunded) : false,
|
|
3950
3712
|
};
|
|
3951
3713
|
},
|
|
3952
3714
|
toJSON(message) {
|
|
@@ -3964,20 +3726,13 @@ export const DepositVEPacket = {
|
|
|
3964
3726
|
},
|
|
3965
3727
|
fromPartial(object) {
|
|
3966
3728
|
const message = createBaseDepositVEPacket();
|
|
3967
|
-
message.id =
|
|
3968
|
-
object.id !== undefined && object.id !== null
|
|
3969
|
-
? Long.fromValue(object.id)
|
|
3970
|
-
: Long.UZERO;
|
|
3729
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
3971
3730
|
message.gasRefunded = object.gasRefunded ?? false;
|
|
3972
3731
|
return message;
|
|
3973
3732
|
},
|
|
3974
3733
|
};
|
|
3975
3734
|
function createBaseFillVEPacket() {
|
|
3976
|
-
return {
|
|
3977
|
-
id: Long.UZERO,
|
|
3978
|
-
fillerAddress: new Uint8Array(0),
|
|
3979
|
-
transactionHash: new Uint8Array(0),
|
|
3980
|
-
};
|
|
3735
|
+
return { id: Long.UZERO, fillerAddress: new Uint8Array(0), transactionHash: new Uint8Array(0) };
|
|
3981
3736
|
}
|
|
3982
3737
|
export const FillVEPacket = {
|
|
3983
3738
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -4031,12 +3786,8 @@ export const FillVEPacket = {
|
|
|
4031
3786
|
fromJSON(object) {
|
|
4032
3787
|
return {
|
|
4033
3788
|
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
4034
|
-
fillerAddress: isSet(object.fillerAddress)
|
|
4035
|
-
|
|
4036
|
-
: new Uint8Array(0),
|
|
4037
|
-
transactionHash: isSet(object.transactionHash)
|
|
4038
|
-
? bytesFromBase64(object.transactionHash)
|
|
4039
|
-
: new Uint8Array(0),
|
|
3789
|
+
fillerAddress: isSet(object.fillerAddress) ? bytesFromBase64(object.fillerAddress) : new Uint8Array(0),
|
|
3790
|
+
transactionHash: isSet(object.transactionHash) ? bytesFromBase64(object.transactionHash) : new Uint8Array(0),
|
|
4040
3791
|
};
|
|
4041
3792
|
},
|
|
4042
3793
|
toJSON(message) {
|
|
@@ -4057,22 +3808,14 @@ export const FillVEPacket = {
|
|
|
4057
3808
|
},
|
|
4058
3809
|
fromPartial(object) {
|
|
4059
3810
|
const message = createBaseFillVEPacket();
|
|
4060
|
-
message.id =
|
|
4061
|
-
object.id !== undefined && object.id !== null
|
|
4062
|
-
? Long.fromValue(object.id)
|
|
4063
|
-
: Long.UZERO;
|
|
3811
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
4064
3812
|
message.fillerAddress = object.fillerAddress ?? new Uint8Array(0);
|
|
4065
3813
|
message.transactionHash = object.transactionHash ?? new Uint8Array(0);
|
|
4066
3814
|
return message;
|
|
4067
3815
|
},
|
|
4068
3816
|
};
|
|
4069
3817
|
function createBaseMsgDoubleCheckTx() {
|
|
4070
|
-
return {
|
|
4071
|
-
creator: "",
|
|
4072
|
-
txUniverse: 0,
|
|
4073
|
-
txChainID: new Uint8Array(0),
|
|
4074
|
-
packet: undefined,
|
|
4075
|
-
};
|
|
3818
|
+
return { creator: "", txUniverse: 0, txChainID: new Uint8Array(0), packet: undefined };
|
|
4076
3819
|
}
|
|
4077
3820
|
export const MsgDoubleCheckTx = {
|
|
4078
3821
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -4127,20 +3870,14 @@ export const MsgDoubleCheckTx = {
|
|
|
4127
3870
|
if (tag !== 42) {
|
|
4128
3871
|
break;
|
|
4129
3872
|
}
|
|
4130
|
-
message.packet = {
|
|
4131
|
-
$case: "depositPacket",
|
|
4132
|
-
value: DepositVEPacket.decode(reader, reader.uint32()),
|
|
4133
|
-
};
|
|
3873
|
+
message.packet = { $case: "depositPacket", value: DepositVEPacket.decode(reader, reader.uint32()) };
|
|
4134
3874
|
continue;
|
|
4135
3875
|
}
|
|
4136
3876
|
case 6: {
|
|
4137
3877
|
if (tag !== 50) {
|
|
4138
3878
|
break;
|
|
4139
3879
|
}
|
|
4140
|
-
message.packet = {
|
|
4141
|
-
$case: "fillPacket",
|
|
4142
|
-
value: FillVEPacket.decode(reader, reader.uint32()),
|
|
4143
|
-
};
|
|
3880
|
+
message.packet = { $case: "fillPacket", value: FillVEPacket.decode(reader, reader.uint32()) };
|
|
4144
3881
|
continue;
|
|
4145
3882
|
}
|
|
4146
3883
|
}
|
|
@@ -4154,22 +3891,12 @@ export const MsgDoubleCheckTx = {
|
|
|
4154
3891
|
fromJSON(object) {
|
|
4155
3892
|
return {
|
|
4156
3893
|
creator: isSet(object.creator) ? globalThis.String(object.creator) : "",
|
|
4157
|
-
txUniverse: isSet(object.txUniverse)
|
|
4158
|
-
|
|
4159
|
-
: 0,
|
|
4160
|
-
txChainID: isSet(object.txChainID)
|
|
4161
|
-
? bytesFromBase64(object.txChainID)
|
|
4162
|
-
: new Uint8Array(0),
|
|
3894
|
+
txUniverse: isSet(object.txUniverse) ? universeFromJSON(object.txUniverse) : 0,
|
|
3895
|
+
txChainID: isSet(object.txChainID) ? bytesFromBase64(object.txChainID) : new Uint8Array(0),
|
|
4163
3896
|
packet: isSet(object.depositPacket)
|
|
4164
|
-
? {
|
|
4165
|
-
$case: "depositPacket",
|
|
4166
|
-
value: DepositVEPacket.fromJSON(object.depositPacket),
|
|
4167
|
-
}
|
|
3897
|
+
? { $case: "depositPacket", value: DepositVEPacket.fromJSON(object.depositPacket) }
|
|
4168
3898
|
: isSet(object.fillPacket)
|
|
4169
|
-
? {
|
|
4170
|
-
$case: "fillPacket",
|
|
4171
|
-
value: FillVEPacket.fromJSON(object.fillPacket),
|
|
4172
|
-
}
|
|
3899
|
+
? { $case: "fillPacket", value: FillVEPacket.fromJSON(object.fillPacket) }
|
|
4173
3900
|
: undefined,
|
|
4174
3901
|
};
|
|
4175
3902
|
},
|
|
@@ -4202,22 +3929,14 @@ export const MsgDoubleCheckTx = {
|
|
|
4202
3929
|
message.txChainID = object.txChainID ?? new Uint8Array(0);
|
|
4203
3930
|
switch (object.packet?.$case) {
|
|
4204
3931
|
case "depositPacket": {
|
|
4205
|
-
if (object.packet?.value !== undefined &&
|
|
4206
|
-
object.packet
|
|
4207
|
-
message.packet = {
|
|
4208
|
-
$case: "depositPacket",
|
|
4209
|
-
value: DepositVEPacket.fromPartial(object.packet.value),
|
|
4210
|
-
};
|
|
3932
|
+
if (object.packet?.value !== undefined && object.packet?.value !== null) {
|
|
3933
|
+
message.packet = { $case: "depositPacket", value: DepositVEPacket.fromPartial(object.packet.value) };
|
|
4211
3934
|
}
|
|
4212
3935
|
break;
|
|
4213
3936
|
}
|
|
4214
3937
|
case "fillPacket": {
|
|
4215
|
-
if (object.packet?.value !== undefined &&
|
|
4216
|
-
object.packet
|
|
4217
|
-
message.packet = {
|
|
4218
|
-
$case: "fillPacket",
|
|
4219
|
-
value: FillVEPacket.fromPartial(object.packet.value),
|
|
4220
|
-
};
|
|
3938
|
+
if (object.packet?.value !== undefined && object.packet?.value !== null) {
|
|
3939
|
+
message.packet = { $case: "fillPacket", value: FillVEPacket.fromPartial(object.packet.value) };
|
|
4221
3940
|
}
|
|
4222
3941
|
break;
|
|
4223
3942
|
}
|