injectivejs 1.11.5 → 1.11.7
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/binary.d.ts +1 -1
- package/binary.js +1 -1
- package/cosmos/auth/v1beta1/auth.js +6 -0
- package/cosmos/auth/v1beta1/query.js +21 -0
- package/cosmos/authz/v1beta1/authz.js +9 -0
- package/cosmos/authz/v1beta1/tx.js +3 -0
- package/cosmos/bank/v1beta1/bank.js +15 -0
- package/cosmos/bank/v1beta1/query.js +64 -0
- package/cosmos/bank/v1beta1/tx.js +13 -0
- package/cosmos/base/abci/v1beta1/abci.js +19 -0
- package/cosmos/distribution/v1beta1/distribution.js +27 -0
- package/cosmos/distribution/v1beta1/tx.js +19 -0
- package/cosmos/gov/v1/gov.js +16 -0
- package/cosmos/gov/v1/tx.js +15 -0
- package/cosmos/gov/v1beta1/gov.js +15 -0
- package/cosmos/gov/v1beta1/query.js +34 -0
- package/cosmos/gov/v1beta1/tx.js +9 -0
- package/cosmos/group/v1/tx.js +15 -0
- package/cosmos/group/v1/types.js +12 -0
- package/cosmos/ics23/v1/proofs.js +31 -0
- package/cosmos/staking/v1beta1/query.js +64 -0
- package/cosmos/staking/v1beta1/staking.js +33 -0
- package/cosmos/staking/v1beta1/tx.js +24 -0
- package/cosmos/tx/signing/v1beta1/signing.js +13 -0
- package/cosmos/tx/v1beta1/service.js +31 -0
- package/cosmos/tx/v1beta1/tx.js +28 -0
- package/cosmos/upgrade/v1beta1/upgrade.js +6 -0
- package/cosmos/vesting/v1beta1/tx.js +10 -0
- package/cosmos/vesting/v1beta1/vesting.js +19 -0
- package/cosmwasm/wasm/v1/proposal_legacy.js +39 -0
- package/cosmwasm/wasm/v1/query.js +52 -0
- package/cosmwasm/wasm/v1/tx.js +25 -0
- package/cosmwasm/wasm/v1/types.js +9 -0
- package/esm/binary.js +1 -1
- package/esm/cosmos/auth/v1beta1/auth.js +6 -0
- package/esm/cosmos/auth/v1beta1/query.js +21 -0
- package/esm/cosmos/authz/v1beta1/authz.js +9 -0
- package/esm/cosmos/authz/v1beta1/tx.js +3 -0
- package/esm/cosmos/bank/v1beta1/bank.js +15 -0
- package/esm/cosmos/bank/v1beta1/query.js +64 -0
- package/esm/cosmos/bank/v1beta1/tx.js +13 -0
- package/esm/cosmos/base/abci/v1beta1/abci.js +19 -0
- package/esm/cosmos/distribution/v1beta1/distribution.js +27 -0
- package/esm/cosmos/distribution/v1beta1/tx.js +19 -0
- package/esm/cosmos/gov/v1/gov.js +16 -0
- package/esm/cosmos/gov/v1/tx.js +15 -0
- package/esm/cosmos/gov/v1beta1/gov.js +15 -0
- package/esm/cosmos/gov/v1beta1/query.js +34 -0
- package/esm/cosmos/gov/v1beta1/tx.js +9 -0
- package/esm/cosmos/group/v1/tx.js +15 -0
- package/esm/cosmos/group/v1/types.js +12 -0
- package/esm/cosmos/ics23/v1/proofs.js +31 -0
- package/esm/cosmos/staking/v1beta1/query.js +64 -0
- package/esm/cosmos/staking/v1beta1/staking.js +33 -0
- package/esm/cosmos/staking/v1beta1/tx.js +24 -0
- package/esm/cosmos/tx/signing/v1beta1/signing.js +13 -0
- package/esm/cosmos/tx/v1beta1/service.js +31 -0
- package/esm/cosmos/tx/v1beta1/tx.js +28 -0
- package/esm/cosmos/upgrade/v1beta1/upgrade.js +6 -0
- package/esm/cosmos/vesting/v1beta1/tx.js +10 -0
- package/esm/cosmos/vesting/v1beta1/vesting.js +19 -0
- package/esm/cosmwasm/wasm/v1/proposal_legacy.js +39 -0
- package/esm/cosmwasm/wasm/v1/query.js +52 -0
- package/esm/cosmwasm/wasm/v1/tx.js +25 -0
- package/esm/cosmwasm/wasm/v1/types.js +9 -0
- package/esm/extern.js +1 -1
- package/esm/google/api/http.js +7 -0
- package/esm/google/protobuf/descriptor.js +73 -0
- package/esm/helper-func-types.js +1 -1
- package/esm/helpers.js +1 -1
- package/esm/ibc/applications/transfer/v1/transfer.js +4 -0
- package/esm/ibc/applications/transfer/v1/tx.js +7 -0
- package/esm/ibc/core/channel/v1/channel.js +16 -0
- package/esm/ibc/core/channel/v1/tx.js +58 -0
- package/esm/ibc/core/channel/v1/upgrade.js +4 -0
- package/esm/ibc/core/client/v1/client.js +4 -0
- package/esm/ibc/core/client/v1/tx.js +4 -0
- package/esm/ibc/core/commitment/v1/commitment.js +4 -0
- package/esm/ibc/core/connection/v1/connection.js +10 -0
- package/esm/ibc/core/connection/v1/tx.js +16 -0
- package/esm/injective/auction/v1beta1/auction.js +4 -0
- package/esm/injective/auction/v1beta1/genesis.js +4 -0
- package/esm/injective/auction/v1beta1/query.js +13 -0
- package/esm/injective/auction/v1beta1/tx.js +7 -0
- package/esm/injective/exchange/v1beta1/authz.js +33 -0
- package/esm/injective/exchange/v1beta1/events.js +82 -0
- package/esm/injective/exchange/v1beta1/exchange.js +64 -0
- package/esm/injective/exchange/v1beta1/genesis.js +43 -0
- package/esm/injective/exchange/v1beta1/proposal.js +48 -0
- package/esm/injective/exchange/v1beta1/query.js +154 -0
- package/esm/injective/exchange/v1beta1/tx.js +76 -0
- package/esm/injective/insurance/v1beta1/events.js +16 -0
- package/esm/injective/insurance/v1beta1/genesis.js +4 -0
- package/esm/injective/insurance/v1beta1/insurance.js +4 -0
- package/esm/injective/insurance/v1beta1/query.js +19 -0
- package/esm/injective/insurance/v1beta1/tx.js +13 -0
- package/esm/injective/ocr/v1beta1/genesis.js +16 -0
- package/esm/injective/ocr/v1beta1/ocr.js +21 -0
- package/esm/injective/ocr/v1beta1/query.js +22 -0
- package/esm/injective/ocr/v1beta1/tx.js +16 -0
- package/esm/injective/oracle/v1beta1/events.js +7 -0
- package/esm/injective/oracle/v1beta1/genesis.js +4 -0
- package/esm/injective/oracle/v1beta1/oracle.js +37 -0
- package/esm/injective/oracle/v1beta1/proposal.js +33 -0
- package/esm/injective/oracle/v1beta1/query.js +52 -0
- package/esm/injective/oracle/v1beta1/tx.js +10 -0
- package/esm/injective/peggy/v1/batch.js +7 -0
- package/esm/injective/peggy/v1/events.js +7 -0
- package/esm/injective/peggy/v1/genesis.js +4 -0
- package/esm/injective/peggy/v1/msgs.js +10 -0
- package/esm/injective/peggy/v1/params.js +4 -0
- package/esm/injective/peggy/v1/proposal.js +6 -0
- package/esm/injective/peggy/v1/query.js +46 -0
- package/esm/injective/peggy/v1/types.js +4 -0
- package/esm/injective/permissions/v1beta1/events.js +4 -0
- package/esm/injective/permissions/v1beta1/genesis.js +4 -0
- package/esm/injective/permissions/v1beta1/permissions.js +10 -0
- package/esm/injective/permissions/v1beta1/query.js +13 -0
- package/esm/injective/permissions/v1beta1/tx.js +16 -0
- package/esm/injective/stream/v1beta1/query.js +37 -0
- package/esm/injective/tokenfactory/v1beta1/events.js +10 -0
- package/esm/injective/tokenfactory/v1beta1/genesis.js +7 -0
- package/esm/injective/tokenfactory/v1beta1/params.js +4 -0
- package/esm/injective/tokenfactory/v1beta1/query.js +10 -0
- package/esm/injective/tokenfactory/v1beta1/tx.js +13 -0
- package/esm/injective/types/v1beta1/account.js +3 -0
- package/esm/injective/types/v1beta1/tx_response.js +4 -0
- package/esm/injective/wasmx/v1/genesis.js +7 -0
- package/esm/injective/wasmx/v1/proposal.js +15 -0
- package/esm/injective/wasmx/v1/query.js +10 -0
- package/esm/injective/wasmx/v1/tx.js +7 -0
- package/esm/injective/wasmx/v1/wasmx.js +4 -0
- package/esm/registry.js +9 -1
- package/esm/tendermint/abci/types.js +67 -0
- package/esm/tendermint/crypto/proof.js +7 -0
- package/esm/tendermint/types/block.js +4 -0
- package/esm/tendermint/types/evidence.js +13 -0
- package/esm/tendermint/types/params.js +4 -0
- package/esm/tendermint/types/types.js +34 -0
- package/esm/tendermint/types/validator.js +10 -0
- package/esm/types.js +1 -1
- package/esm/utf8.js +1 -1
- package/esm/varint.js +1 -1
- package/extern.d.ts +1 -1
- package/extern.js +1 -1
- package/google/api/http.js +7 -0
- package/google/protobuf/descriptor.js +73 -0
- package/helper-func-types.d.ts +1 -1
- package/helper-func-types.js +1 -1
- package/helpers.d.ts +1 -1
- package/helpers.js +1 -1
- package/ibc/applications/transfer/v1/transfer.js +4 -0
- package/ibc/applications/transfer/v1/tx.js +7 -0
- package/ibc/core/channel/v1/channel.js +16 -0
- package/ibc/core/channel/v1/tx.js +58 -0
- package/ibc/core/channel/v1/upgrade.js +4 -0
- package/ibc/core/client/v1/client.js +4 -0
- package/ibc/core/client/v1/tx.js +4 -0
- package/ibc/core/commitment/v1/commitment.js +4 -0
- package/ibc/core/connection/v1/connection.js +10 -0
- package/ibc/core/connection/v1/tx.js +16 -0
- package/injective/auction/v1beta1/auction.js +4 -0
- package/injective/auction/v1beta1/genesis.js +4 -0
- package/injective/auction/v1beta1/query.js +13 -0
- package/injective/auction/v1beta1/tx.js +7 -0
- package/injective/exchange/v1beta1/authz.js +33 -0
- package/injective/exchange/v1beta1/events.js +82 -0
- package/injective/exchange/v1beta1/exchange.js +64 -0
- package/injective/exchange/v1beta1/genesis.js +43 -0
- package/injective/exchange/v1beta1/proposal.js +48 -0
- package/injective/exchange/v1beta1/query.js +154 -0
- package/injective/exchange/v1beta1/tx.js +76 -0
- package/injective/insurance/v1beta1/events.js +16 -0
- package/injective/insurance/v1beta1/genesis.js +4 -0
- package/injective/insurance/v1beta1/insurance.js +4 -0
- package/injective/insurance/v1beta1/query.js +19 -0
- package/injective/insurance/v1beta1/tx.js +13 -0
- package/injective/ocr/v1beta1/genesis.js +16 -0
- package/injective/ocr/v1beta1/ocr.js +21 -0
- package/injective/ocr/v1beta1/query.js +22 -0
- package/injective/ocr/v1beta1/tx.js +16 -0
- package/injective/oracle/v1beta1/events.js +7 -0
- package/injective/oracle/v1beta1/genesis.js +4 -0
- package/injective/oracle/v1beta1/oracle.js +37 -0
- package/injective/oracle/v1beta1/proposal.js +33 -0
- package/injective/oracle/v1beta1/query.js +52 -0
- package/injective/oracle/v1beta1/tx.js +10 -0
- package/injective/peggy/v1/batch.js +7 -0
- package/injective/peggy/v1/events.js +7 -0
- package/injective/peggy/v1/genesis.js +4 -0
- package/injective/peggy/v1/msgs.js +10 -0
- package/injective/peggy/v1/params.js +4 -0
- package/injective/peggy/v1/proposal.js +6 -0
- package/injective/peggy/v1/query.js +46 -0
- package/injective/peggy/v1/types.js +4 -0
- package/injective/permissions/v1beta1/events.js +4 -0
- package/injective/permissions/v1beta1/genesis.js +4 -0
- package/injective/permissions/v1beta1/permissions.js +10 -0
- package/injective/permissions/v1beta1/query.js +13 -0
- package/injective/permissions/v1beta1/tx.js +16 -0
- package/injective/stream/v1beta1/query.js +37 -0
- package/injective/tokenfactory/v1beta1/events.js +10 -0
- package/injective/tokenfactory/v1beta1/genesis.js +7 -0
- package/injective/tokenfactory/v1beta1/params.js +4 -0
- package/injective/tokenfactory/v1beta1/query.js +10 -0
- package/injective/tokenfactory/v1beta1/tx.js +13 -0
- package/injective/types/v1beta1/account.js +3 -0
- package/injective/types/v1beta1/tx_response.js +4 -0
- package/injective/wasmx/v1/genesis.js +7 -0
- package/injective/wasmx/v1/proposal.js +15 -0
- package/injective/wasmx/v1/query.js +10 -0
- package/injective/wasmx/v1/tx.js +7 -0
- package/injective/wasmx/v1/wasmx.js +4 -0
- package/package.json +8 -8
- package/registry.d.ts +3 -1
- package/registry.js +9 -1
- package/tendermint/abci/types.js +67 -0
- package/tendermint/crypto/proof.js +7 -0
- package/tendermint/types/block.js +4 -0
- package/tendermint/types/evidence.js +13 -0
- package/tendermint/types/params.js +4 -0
- package/tendermint/types/types.js +34 -0
- package/tendermint/types/validator.js +10 -0
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/utf8.d.ts +1 -1
- package/utf8.js +1 -1
- package/varint.d.ts +1 -1
- package/varint.js +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FeedConfig, Report, Params } from "./ocr";
|
|
2
2
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
5
|
import { bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
5
6
|
function createBaseMsgCreateFeed() {
|
|
6
7
|
return {
|
|
@@ -90,6 +91,9 @@ export const MsgCreateFeed = {
|
|
|
90
91
|
};
|
|
91
92
|
},
|
|
92
93
|
registerTypeUrl() {
|
|
94
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgCreateFeed.typeUrl)) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
93
97
|
FeedConfig.registerTypeUrl();
|
|
94
98
|
}
|
|
95
99
|
};
|
|
@@ -549,6 +553,9 @@ export const MsgTransmit = {
|
|
|
549
553
|
};
|
|
550
554
|
},
|
|
551
555
|
registerTypeUrl() {
|
|
556
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgTransmit.typeUrl)) {
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
552
559
|
Report.registerTypeUrl();
|
|
553
560
|
}
|
|
554
561
|
};
|
|
@@ -709,6 +716,9 @@ export const MsgFundFeedRewardPool = {
|
|
|
709
716
|
};
|
|
710
717
|
},
|
|
711
718
|
registerTypeUrl() {
|
|
719
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgFundFeedRewardPool.typeUrl)) {
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
712
722
|
Coin.registerTypeUrl();
|
|
713
723
|
}
|
|
714
724
|
};
|
|
@@ -869,6 +879,9 @@ export const MsgWithdrawFeedRewardPool = {
|
|
|
869
879
|
};
|
|
870
880
|
},
|
|
871
881
|
registerTypeUrl() {
|
|
882
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgWithdrawFeedRewardPool.typeUrl)) {
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
872
885
|
Coin.registerTypeUrl();
|
|
873
886
|
}
|
|
874
887
|
};
|
|
@@ -1521,6 +1534,9 @@ export const MsgUpdateParams = {
|
|
|
1521
1534
|
};
|
|
1522
1535
|
},
|
|
1523
1536
|
registerTypeUrl() {
|
|
1537
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgUpdateParams.typeUrl)) {
|
|
1538
|
+
return;
|
|
1539
|
+
}
|
|
1524
1540
|
Params.registerTypeUrl();
|
|
1525
1541
|
}
|
|
1526
1542
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StorkPriceState, PythPriceState } from "./oracle";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { Decimal } from "@interchainjs/math";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
5
|
function createBaseSetChainlinkPriceEvent() {
|
|
5
6
|
return {
|
|
6
7
|
feedId: "",
|
|
@@ -961,6 +962,9 @@ export const EventSetStorkPrices = {
|
|
|
961
962
|
};
|
|
962
963
|
},
|
|
963
964
|
registerTypeUrl() {
|
|
965
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EventSetStorkPrices.typeUrl)) {
|
|
966
|
+
return;
|
|
967
|
+
}
|
|
964
968
|
StorkPriceState.registerTypeUrl();
|
|
965
969
|
}
|
|
966
970
|
};
|
|
@@ -1036,6 +1040,9 @@ export const EventSetPythPrices = {
|
|
|
1036
1040
|
};
|
|
1037
1041
|
},
|
|
1038
1042
|
registerTypeUrl() {
|
|
1043
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EventSetPythPrices.typeUrl)) {
|
|
1044
|
+
return;
|
|
1045
|
+
}
|
|
1039
1046
|
PythPriceState.registerTypeUrl();
|
|
1040
1047
|
}
|
|
1041
1048
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Params, BandPriceState, PriceFeedState, CoinbasePriceState, BandOracleRequest, BandIBCParams, ChainlinkPriceState, PriceRecords, ProviderState, PythPriceState, StorkPriceState } from "./oracle";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
3
4
|
import { bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
4
5
|
function createBaseGenesisState() {
|
|
5
6
|
return {
|
|
@@ -301,6 +302,9 @@ export const GenesisState = {
|
|
|
301
302
|
};
|
|
302
303
|
},
|
|
303
304
|
registerTypeUrl() {
|
|
305
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(GenesisState.typeUrl)) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
304
308
|
Params.registerTypeUrl();
|
|
305
309
|
BandPriceState.registerTypeUrl();
|
|
306
310
|
PriceFeedState.registerTypeUrl();
|
|
@@ -2,6 +2,7 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
4
4
|
import { Decimal } from "@interchainjs/math";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
6
|
export var OracleType;
|
|
6
7
|
(function (OracleType) {
|
|
7
8
|
OracleType[OracleType["Unspecified"] = 0] = "Unspecified";
|
|
@@ -364,6 +365,9 @@ export const ChainlinkPriceState = {
|
|
|
364
365
|
};
|
|
365
366
|
},
|
|
366
367
|
registerTypeUrl() {
|
|
368
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(ChainlinkPriceState.typeUrl)) {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
367
371
|
PriceState.registerTypeUrl();
|
|
368
372
|
}
|
|
369
373
|
};
|
|
@@ -484,6 +488,9 @@ export const BandPriceState = {
|
|
|
484
488
|
};
|
|
485
489
|
},
|
|
486
490
|
registerTypeUrl() {
|
|
491
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(BandPriceState.typeUrl)) {
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
487
494
|
PriceState.registerTypeUrl();
|
|
488
495
|
}
|
|
489
496
|
};
|
|
@@ -595,6 +602,9 @@ export const PriceFeedState = {
|
|
|
595
602
|
};
|
|
596
603
|
},
|
|
597
604
|
registerTypeUrl() {
|
|
605
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(PriceFeedState.typeUrl)) {
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
598
608
|
PriceState.registerTypeUrl();
|
|
599
609
|
}
|
|
600
610
|
};
|
|
@@ -767,6 +777,9 @@ export const ProviderState = {
|
|
|
767
777
|
};
|
|
768
778
|
},
|
|
769
779
|
registerTypeUrl() {
|
|
780
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(ProviderState.typeUrl)) {
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
770
783
|
ProviderInfo.registerTypeUrl();
|
|
771
784
|
ProviderPriceState.registerTypeUrl();
|
|
772
785
|
}
|
|
@@ -852,6 +865,9 @@ export const ProviderPriceState = {
|
|
|
852
865
|
};
|
|
853
866
|
},
|
|
854
867
|
registerTypeUrl() {
|
|
868
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(ProviderPriceState.typeUrl)) {
|
|
869
|
+
return;
|
|
870
|
+
}
|
|
855
871
|
PriceState.registerTypeUrl();
|
|
856
872
|
}
|
|
857
873
|
};
|
|
@@ -1124,6 +1140,9 @@ export const CoinbasePriceState = {
|
|
|
1124
1140
|
};
|
|
1125
1141
|
},
|
|
1126
1142
|
registerTypeUrl() {
|
|
1143
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(CoinbasePriceState.typeUrl)) {
|
|
1144
|
+
return;
|
|
1145
|
+
}
|
|
1127
1146
|
PriceState.registerTypeUrl();
|
|
1128
1147
|
}
|
|
1129
1148
|
};
|
|
@@ -1232,6 +1251,9 @@ export const StorkPriceState = {
|
|
|
1232
1251
|
};
|
|
1233
1252
|
},
|
|
1234
1253
|
registerTypeUrl() {
|
|
1254
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(StorkPriceState.typeUrl)) {
|
|
1255
|
+
return;
|
|
1256
|
+
}
|
|
1235
1257
|
PriceState.registerTypeUrl();
|
|
1236
1258
|
}
|
|
1237
1259
|
};
|
|
@@ -1458,6 +1480,9 @@ export const PythPriceState = {
|
|
|
1458
1480
|
};
|
|
1459
1481
|
},
|
|
1460
1482
|
registerTypeUrl() {
|
|
1483
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(PythPriceState.typeUrl)) {
|
|
1484
|
+
return;
|
|
1485
|
+
}
|
|
1461
1486
|
PriceState.registerTypeUrl();
|
|
1462
1487
|
}
|
|
1463
1488
|
};
|
|
@@ -1632,6 +1657,9 @@ export const BandOracleRequest = {
|
|
|
1632
1657
|
};
|
|
1633
1658
|
},
|
|
1634
1659
|
registerTypeUrl() {
|
|
1660
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(BandOracleRequest.typeUrl)) {
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1635
1663
|
Coin.registerTypeUrl();
|
|
1636
1664
|
}
|
|
1637
1665
|
};
|
|
@@ -1944,6 +1972,9 @@ export const LastPriceTimestamps = {
|
|
|
1944
1972
|
};
|
|
1945
1973
|
},
|
|
1946
1974
|
registerTypeUrl() {
|
|
1975
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(LastPriceTimestamps.typeUrl)) {
|
|
1976
|
+
return;
|
|
1977
|
+
}
|
|
1947
1978
|
SymbolPriceTimestamp.registerTypeUrl();
|
|
1948
1979
|
}
|
|
1949
1980
|
};
|
|
@@ -2043,6 +2074,9 @@ export const PriceRecords = {
|
|
|
2043
2074
|
};
|
|
2044
2075
|
},
|
|
2045
2076
|
registerTypeUrl() {
|
|
2077
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(PriceRecords.typeUrl)) {
|
|
2078
|
+
return;
|
|
2079
|
+
}
|
|
2046
2080
|
PriceRecord.registerTypeUrl();
|
|
2047
2081
|
}
|
|
2048
2082
|
};
|
|
@@ -2532,6 +2566,9 @@ export const AssetPair = {
|
|
|
2532
2566
|
};
|
|
2533
2567
|
},
|
|
2534
2568
|
registerTypeUrl() {
|
|
2569
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(AssetPair.typeUrl)) {
|
|
2570
|
+
return;
|
|
2571
|
+
}
|
|
2535
2572
|
SignedPriceOfAssetPair.registerTypeUrl();
|
|
2536
2573
|
}
|
|
2537
2574
|
};
|
|
@@ -104,6 +104,9 @@ export const GrantBandOraclePrivilegeProposal = {
|
|
|
104
104
|
};
|
|
105
105
|
},
|
|
106
106
|
registerTypeUrl() {
|
|
107
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(GrantBandOraclePrivilegeProposal.typeUrl)) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
107
110
|
GlobalDecoderRegistry.register(GrantBandOraclePrivilegeProposal.typeUrl, GrantBandOraclePrivilegeProposal);
|
|
108
111
|
GlobalDecoderRegistry.registerAminoProtoMapping(GrantBandOraclePrivilegeProposal.aminoType, GrantBandOraclePrivilegeProposal.typeUrl);
|
|
109
112
|
}
|
|
@@ -211,6 +214,9 @@ export const RevokeBandOraclePrivilegeProposal = {
|
|
|
211
214
|
};
|
|
212
215
|
},
|
|
213
216
|
registerTypeUrl() {
|
|
217
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(RevokeBandOraclePrivilegeProposal.typeUrl)) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
214
220
|
GlobalDecoderRegistry.register(RevokeBandOraclePrivilegeProposal.typeUrl, RevokeBandOraclePrivilegeProposal);
|
|
215
221
|
GlobalDecoderRegistry.registerAminoProtoMapping(RevokeBandOraclePrivilegeProposal.aminoType, RevokeBandOraclePrivilegeProposal.typeUrl);
|
|
216
222
|
}
|
|
@@ -342,6 +348,9 @@ export const GrantPriceFeederPrivilegeProposal = {
|
|
|
342
348
|
};
|
|
343
349
|
},
|
|
344
350
|
registerTypeUrl() {
|
|
351
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(GrantPriceFeederPrivilegeProposal.typeUrl)) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
345
354
|
GlobalDecoderRegistry.register(GrantPriceFeederPrivilegeProposal.typeUrl, GrantPriceFeederPrivilegeProposal);
|
|
346
355
|
GlobalDecoderRegistry.registerAminoProtoMapping(GrantPriceFeederPrivilegeProposal.aminoType, GrantPriceFeederPrivilegeProposal.typeUrl);
|
|
347
356
|
}
|
|
@@ -461,6 +470,9 @@ export const GrantProviderPrivilegeProposal = {
|
|
|
461
470
|
};
|
|
462
471
|
},
|
|
463
472
|
registerTypeUrl() {
|
|
473
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(GrantProviderPrivilegeProposal.typeUrl)) {
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
464
476
|
GlobalDecoderRegistry.register(GrantProviderPrivilegeProposal.typeUrl, GrantProviderPrivilegeProposal);
|
|
465
477
|
GlobalDecoderRegistry.registerAminoProtoMapping(GrantProviderPrivilegeProposal.aminoType, GrantProviderPrivilegeProposal.typeUrl);
|
|
466
478
|
}
|
|
@@ -580,6 +592,9 @@ export const RevokeProviderPrivilegeProposal = {
|
|
|
580
592
|
};
|
|
581
593
|
},
|
|
582
594
|
registerTypeUrl() {
|
|
595
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(RevokeProviderPrivilegeProposal.typeUrl)) {
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
583
598
|
GlobalDecoderRegistry.register(RevokeProviderPrivilegeProposal.typeUrl, RevokeProviderPrivilegeProposal);
|
|
584
599
|
GlobalDecoderRegistry.registerAminoProtoMapping(RevokeProviderPrivilegeProposal.aminoType, RevokeProviderPrivilegeProposal.typeUrl);
|
|
585
600
|
}
|
|
@@ -711,6 +726,9 @@ export const RevokePriceFeederPrivilegeProposal = {
|
|
|
711
726
|
};
|
|
712
727
|
},
|
|
713
728
|
registerTypeUrl() {
|
|
729
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(RevokePriceFeederPrivilegeProposal.typeUrl)) {
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
714
732
|
GlobalDecoderRegistry.register(RevokePriceFeederPrivilegeProposal.typeUrl, RevokePriceFeederPrivilegeProposal);
|
|
715
733
|
GlobalDecoderRegistry.registerAminoProtoMapping(RevokePriceFeederPrivilegeProposal.aminoType, RevokePriceFeederPrivilegeProposal.typeUrl);
|
|
716
734
|
}
|
|
@@ -815,6 +833,9 @@ export const AuthorizeBandOracleRequestProposal = {
|
|
|
815
833
|
};
|
|
816
834
|
},
|
|
817
835
|
registerTypeUrl() {
|
|
836
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(AuthorizeBandOracleRequestProposal.typeUrl)) {
|
|
837
|
+
return;
|
|
838
|
+
}
|
|
818
839
|
GlobalDecoderRegistry.register(AuthorizeBandOracleRequestProposal.typeUrl, AuthorizeBandOracleRequestProposal);
|
|
819
840
|
GlobalDecoderRegistry.registerAminoProtoMapping(AuthorizeBandOracleRequestProposal.aminoType, AuthorizeBandOracleRequestProposal.typeUrl);
|
|
820
841
|
BandOracleRequest.registerTypeUrl();
|
|
@@ -945,6 +966,9 @@ export const UpdateBandOracleRequestProposal = {
|
|
|
945
966
|
};
|
|
946
967
|
},
|
|
947
968
|
registerTypeUrl() {
|
|
969
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(UpdateBandOracleRequestProposal.typeUrl)) {
|
|
970
|
+
return;
|
|
971
|
+
}
|
|
948
972
|
GlobalDecoderRegistry.register(UpdateBandOracleRequestProposal.typeUrl, UpdateBandOracleRequestProposal);
|
|
949
973
|
GlobalDecoderRegistry.registerAminoProtoMapping(UpdateBandOracleRequestProposal.aminoType, UpdateBandOracleRequestProposal.typeUrl);
|
|
950
974
|
BandOracleRequest.registerTypeUrl();
|
|
@@ -1050,6 +1074,9 @@ export const EnableBandIBCProposal = {
|
|
|
1050
1074
|
};
|
|
1051
1075
|
},
|
|
1052
1076
|
registerTypeUrl() {
|
|
1077
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EnableBandIBCProposal.typeUrl)) {
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1053
1080
|
GlobalDecoderRegistry.register(EnableBandIBCProposal.typeUrl, EnableBandIBCProposal);
|
|
1054
1081
|
GlobalDecoderRegistry.registerAminoProtoMapping(EnableBandIBCProposal.aminoType, EnableBandIBCProposal.typeUrl);
|
|
1055
1082
|
BandIBCParams.registerTypeUrl();
|
|
@@ -1158,6 +1185,9 @@ export const GrantStorkPublisherPrivilegeProposal = {
|
|
|
1158
1185
|
};
|
|
1159
1186
|
},
|
|
1160
1187
|
registerTypeUrl() {
|
|
1188
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(GrantStorkPublisherPrivilegeProposal.typeUrl)) {
|
|
1189
|
+
return;
|
|
1190
|
+
}
|
|
1161
1191
|
GlobalDecoderRegistry.register(GrantStorkPublisherPrivilegeProposal.typeUrl, GrantStorkPublisherPrivilegeProposal);
|
|
1162
1192
|
GlobalDecoderRegistry.registerAminoProtoMapping(GrantStorkPublisherPrivilegeProposal.aminoType, GrantStorkPublisherPrivilegeProposal.typeUrl);
|
|
1163
1193
|
}
|
|
@@ -1265,6 +1295,9 @@ export const RevokeStorkPublisherPrivilegeProposal = {
|
|
|
1265
1295
|
};
|
|
1266
1296
|
},
|
|
1267
1297
|
registerTypeUrl() {
|
|
1298
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(RevokeStorkPublisherPrivilegeProposal.typeUrl)) {
|
|
1299
|
+
return;
|
|
1300
|
+
}
|
|
1268
1301
|
GlobalDecoderRegistry.register(RevokeStorkPublisherPrivilegeProposal.typeUrl, RevokeStorkPublisherPrivilegeProposal);
|
|
1269
1302
|
GlobalDecoderRegistry.registerAminoProtoMapping(RevokeStorkPublisherPrivilegeProposal.aminoType, RevokeStorkPublisherPrivilegeProposal.typeUrl);
|
|
1270
1303
|
}
|
|
@@ -2,6 +2,7 @@ import { OracleInfo, PythPriceState, Params, BandPriceState, PriceFeedState, Coi
|
|
|
2
2
|
import { GenesisState } from "./genesis";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { isSet } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
6
|
import { Decimal } from "@interchainjs/math";
|
|
6
7
|
function createBaseQueryPythPriceRequest() {
|
|
7
8
|
return {
|
|
@@ -142,6 +143,9 @@ export const QueryPythPriceResponse = {
|
|
|
142
143
|
};
|
|
143
144
|
},
|
|
144
145
|
registerTypeUrl() {
|
|
146
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryPythPriceResponse.typeUrl)) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
145
149
|
PythPriceState.registerTypeUrl();
|
|
146
150
|
}
|
|
147
151
|
};
|
|
@@ -271,6 +275,9 @@ export const QueryParamsResponse = {
|
|
|
271
275
|
};
|
|
272
276
|
},
|
|
273
277
|
registerTypeUrl() {
|
|
278
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryParamsResponse.typeUrl)) {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
274
281
|
Params.registerTypeUrl();
|
|
275
282
|
}
|
|
276
283
|
};
|
|
@@ -533,6 +540,9 @@ export const QueryBandPriceStatesResponse = {
|
|
|
533
540
|
};
|
|
534
541
|
},
|
|
535
542
|
registerTypeUrl() {
|
|
543
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryBandPriceStatesResponse.typeUrl)) {
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
536
546
|
BandPriceState.registerTypeUrl();
|
|
537
547
|
}
|
|
538
548
|
};
|
|
@@ -665,6 +675,9 @@ export const QueryBandIBCPriceStatesResponse = {
|
|
|
665
675
|
};
|
|
666
676
|
},
|
|
667
677
|
registerTypeUrl() {
|
|
678
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryBandIBCPriceStatesResponse.typeUrl)) {
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
668
681
|
BandPriceState.registerTypeUrl();
|
|
669
682
|
}
|
|
670
683
|
};
|
|
@@ -797,6 +810,9 @@ export const QueryPriceFeedPriceStatesResponse = {
|
|
|
797
810
|
};
|
|
798
811
|
},
|
|
799
812
|
registerTypeUrl() {
|
|
813
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryPriceFeedPriceStatesResponse.typeUrl)) {
|
|
814
|
+
return;
|
|
815
|
+
}
|
|
800
816
|
PriceFeedState.registerTypeUrl();
|
|
801
817
|
}
|
|
802
818
|
};
|
|
@@ -929,6 +945,9 @@ export const QueryCoinbasePriceStatesResponse = {
|
|
|
929
945
|
};
|
|
930
946
|
},
|
|
931
947
|
registerTypeUrl() {
|
|
948
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryCoinbasePriceStatesResponse.typeUrl)) {
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
932
951
|
CoinbasePriceState.registerTypeUrl();
|
|
933
952
|
}
|
|
934
953
|
};
|
|
@@ -1061,6 +1080,9 @@ export const QueryPythPriceStatesResponse = {
|
|
|
1061
1080
|
};
|
|
1062
1081
|
},
|
|
1063
1082
|
registerTypeUrl() {
|
|
1083
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryPythPriceStatesResponse.typeUrl)) {
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1064
1086
|
PythPriceState.registerTypeUrl();
|
|
1065
1087
|
}
|
|
1066
1088
|
};
|
|
@@ -1193,6 +1215,9 @@ export const QueryStorkPriceStatesResponse = {
|
|
|
1193
1215
|
};
|
|
1194
1216
|
},
|
|
1195
1217
|
registerTypeUrl() {
|
|
1218
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryStorkPriceStatesResponse.typeUrl)) {
|
|
1219
|
+
return;
|
|
1220
|
+
}
|
|
1196
1221
|
StorkPriceState.registerTypeUrl();
|
|
1197
1222
|
}
|
|
1198
1223
|
};
|
|
@@ -1477,6 +1502,9 @@ export const QueryProviderPriceStateResponse = {
|
|
|
1477
1502
|
};
|
|
1478
1503
|
},
|
|
1479
1504
|
registerTypeUrl() {
|
|
1505
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryProviderPriceStateResponse.typeUrl)) {
|
|
1506
|
+
return;
|
|
1507
|
+
}
|
|
1480
1508
|
PriceState.registerTypeUrl();
|
|
1481
1509
|
}
|
|
1482
1510
|
};
|
|
@@ -1606,6 +1634,9 @@ export const QueryModuleStateResponse = {
|
|
|
1606
1634
|
};
|
|
1607
1635
|
},
|
|
1608
1636
|
registerTypeUrl() {
|
|
1637
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryModuleStateResponse.typeUrl)) {
|
|
1638
|
+
return;
|
|
1639
|
+
}
|
|
1609
1640
|
GenesisState.registerTypeUrl();
|
|
1610
1641
|
}
|
|
1611
1642
|
};
|
|
@@ -1763,6 +1794,9 @@ export const QueryHistoricalPriceRecordsResponse = {
|
|
|
1763
1794
|
};
|
|
1764
1795
|
},
|
|
1765
1796
|
registerTypeUrl() {
|
|
1797
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryHistoricalPriceRecordsResponse.typeUrl)) {
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1766
1800
|
PriceRecords.registerTypeUrl();
|
|
1767
1801
|
}
|
|
1768
1802
|
};
|
|
@@ -1953,6 +1987,9 @@ export const QueryOracleVolatilityRequest = {
|
|
|
1953
1987
|
};
|
|
1954
1988
|
},
|
|
1955
1989
|
registerTypeUrl() {
|
|
1990
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryOracleVolatilityRequest.typeUrl)) {
|
|
1991
|
+
return;
|
|
1992
|
+
}
|
|
1956
1993
|
OracleInfo.registerTypeUrl();
|
|
1957
1994
|
OracleHistoryOptions.registerTypeUrl();
|
|
1958
1995
|
}
|
|
@@ -2053,6 +2090,9 @@ export const QueryOracleVolatilityResponse = {
|
|
|
2053
2090
|
};
|
|
2054
2091
|
},
|
|
2055
2092
|
registerTypeUrl() {
|
|
2093
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryOracleVolatilityResponse.typeUrl)) {
|
|
2094
|
+
return;
|
|
2095
|
+
}
|
|
2056
2096
|
MetadataStatistics.registerTypeUrl();
|
|
2057
2097
|
PriceRecord.registerTypeUrl();
|
|
2058
2098
|
}
|
|
@@ -2186,6 +2226,9 @@ export const QueryOracleProvidersInfoResponse = {
|
|
|
2186
2226
|
};
|
|
2187
2227
|
},
|
|
2188
2228
|
registerTypeUrl() {
|
|
2229
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryOracleProvidersInfoResponse.typeUrl)) {
|
|
2230
|
+
return;
|
|
2231
|
+
}
|
|
2189
2232
|
ProviderInfo.registerTypeUrl();
|
|
2190
2233
|
}
|
|
2191
2234
|
};
|
|
@@ -2331,6 +2374,9 @@ export const QueryOracleProviderPricesResponse = {
|
|
|
2331
2374
|
};
|
|
2332
2375
|
},
|
|
2333
2376
|
registerTypeUrl() {
|
|
2377
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryOracleProviderPricesResponse.typeUrl)) {
|
|
2378
|
+
return;
|
|
2379
|
+
}
|
|
2334
2380
|
ProviderState.registerTypeUrl();
|
|
2335
2381
|
}
|
|
2336
2382
|
};
|
|
@@ -2521,6 +2567,9 @@ export const QueryOraclePriceRequest = {
|
|
|
2521
2567
|
};
|
|
2522
2568
|
},
|
|
2523
2569
|
registerTypeUrl() {
|
|
2570
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryOraclePriceRequest.typeUrl)) {
|
|
2571
|
+
return;
|
|
2572
|
+
}
|
|
2524
2573
|
ScalingOptions.registerTypeUrl();
|
|
2525
2574
|
}
|
|
2526
2575
|
};
|
|
@@ -2735,6 +2784,9 @@ export const QueryOraclePriceResponse = {
|
|
|
2735
2784
|
};
|
|
2736
2785
|
},
|
|
2737
2786
|
registerTypeUrl() {
|
|
2787
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(QueryOraclePriceResponse.typeUrl)) {
|
|
2788
|
+
return;
|
|
2789
|
+
}
|
|
2738
2790
|
PricePairState.registerTypeUrl();
|
|
2739
2791
|
}
|
|
2740
2792
|
};
|
|
@@ -2,6 +2,7 @@ import { AssetPair, PriceAttestation, Params } from "./oracle";
|
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { Decimal } from "@interchainjs/math";
|
|
4
4
|
import { bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
6
|
function createBaseMsgRelayProviderPrices() {
|
|
6
7
|
return {
|
|
7
8
|
sender: "",
|
|
@@ -829,6 +830,9 @@ export const MsgRelayStorkPrices = {
|
|
|
829
830
|
};
|
|
830
831
|
},
|
|
831
832
|
registerTypeUrl() {
|
|
833
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgRelayStorkPrices.typeUrl)) {
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
832
836
|
AssetPair.registerTypeUrl();
|
|
833
837
|
}
|
|
834
838
|
};
|
|
@@ -1126,6 +1130,9 @@ export const MsgRelayPythPrices = {
|
|
|
1126
1130
|
};
|
|
1127
1131
|
},
|
|
1128
1132
|
registerTypeUrl() {
|
|
1133
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgRelayPythPrices.typeUrl)) {
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1129
1136
|
PriceAttestation.registerTypeUrl();
|
|
1130
1137
|
}
|
|
1131
1138
|
};
|
|
@@ -1274,6 +1281,9 @@ export const MsgUpdateParams = {
|
|
|
1274
1281
|
};
|
|
1275
1282
|
},
|
|
1276
1283
|
registerTypeUrl() {
|
|
1284
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgUpdateParams.typeUrl)) {
|
|
1285
|
+
return;
|
|
1286
|
+
}
|
|
1277
1287
|
Params.registerTypeUrl();
|
|
1278
1288
|
}
|
|
1279
1289
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ERC20Token } from "./attestation";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
3
4
|
function createBaseOutgoingTxBatch() {
|
|
4
5
|
return {
|
|
5
6
|
batchNonce: BigInt(0),
|
|
@@ -120,6 +121,9 @@ export const OutgoingTxBatch = {
|
|
|
120
121
|
};
|
|
121
122
|
},
|
|
122
123
|
registerTypeUrl() {
|
|
124
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(OutgoingTxBatch.typeUrl)) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
123
127
|
OutgoingTransferTx.registerTypeUrl();
|
|
124
128
|
}
|
|
125
129
|
};
|
|
@@ -240,6 +244,9 @@ export const OutgoingTransferTx = {
|
|
|
240
244
|
};
|
|
241
245
|
},
|
|
242
246
|
registerTypeUrl() {
|
|
247
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(OutgoingTransferTx.typeUrl)) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
243
250
|
ERC20Token.registerTypeUrl();
|
|
244
251
|
}
|
|
245
252
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BridgeValidator } from "./types";
|
|
2
2
|
import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
5
|
function createBaseEventAttestationObserved() {
|
|
5
6
|
return {
|
|
6
7
|
attestationType: 0,
|
|
@@ -558,6 +559,9 @@ export const EventValsetUpdateRequest = {
|
|
|
558
559
|
};
|
|
559
560
|
},
|
|
560
561
|
registerTypeUrl() {
|
|
562
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EventValsetUpdateRequest.typeUrl)) {
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
561
565
|
BridgeValidator.registerTypeUrl();
|
|
562
566
|
}
|
|
563
567
|
};
|
|
@@ -1649,6 +1653,9 @@ export const EventValsetUpdateClaim = {
|
|
|
1649
1653
|
};
|
|
1650
1654
|
},
|
|
1651
1655
|
registerTypeUrl() {
|
|
1656
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EventValsetUpdateClaim.typeUrl)) {
|
|
1657
|
+
return;
|
|
1658
|
+
}
|
|
1652
1659
|
BridgeValidator.registerTypeUrl();
|
|
1653
1660
|
}
|
|
1654
1661
|
};
|
|
@@ -4,6 +4,7 @@ import { MsgValsetConfirm, MsgConfirmBatch, MsgSetOrchestratorAddresses } from "
|
|
|
4
4
|
import { OutgoingTxBatch, OutgoingTransferTx } from "./batch";
|
|
5
5
|
import { Attestation } from "./attestation";
|
|
6
6
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
7
8
|
function createBaseGenesisState() {
|
|
8
9
|
return {
|
|
9
10
|
params: undefined,
|
|
@@ -268,6 +269,9 @@ export const GenesisState = {
|
|
|
268
269
|
};
|
|
269
270
|
},
|
|
270
271
|
registerTypeUrl() {
|
|
272
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(GenesisState.typeUrl)) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
271
275
|
Params.registerTypeUrl();
|
|
272
276
|
Valset.registerTypeUrl();
|
|
273
277
|
MsgValsetConfirm.registerTypeUrl();
|
|
@@ -3,6 +3,7 @@ import { BridgeValidator } from "./types";
|
|
|
3
3
|
import { Any } from "../../../google/protobuf/any";
|
|
4
4
|
import { Params } from "./params";
|
|
5
5
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
6
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
7
|
function createBaseMsgSetOrchestratorAddresses() {
|
|
7
8
|
return {
|
|
8
9
|
sender: "",
|
|
@@ -443,6 +444,9 @@ export const MsgSendToEth = {
|
|
|
443
444
|
};
|
|
444
445
|
},
|
|
445
446
|
registerTypeUrl() {
|
|
447
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgSendToEth.typeUrl)) {
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
446
450
|
Coin.registerTypeUrl();
|
|
447
451
|
}
|
|
448
452
|
};
|
|
@@ -1904,6 +1908,9 @@ export const MsgValsetUpdatedClaim = {
|
|
|
1904
1908
|
};
|
|
1905
1909
|
},
|
|
1906
1910
|
registerTypeUrl() {
|
|
1911
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgValsetUpdatedClaim.typeUrl)) {
|
|
1912
|
+
return;
|
|
1913
|
+
}
|
|
1907
1914
|
BridgeValidator.registerTypeUrl();
|
|
1908
1915
|
}
|
|
1909
1916
|
};
|
|
@@ -2052,6 +2059,9 @@ export const MsgUpdateParams = {
|
|
|
2052
2059
|
};
|
|
2053
2060
|
},
|
|
2054
2061
|
registerTypeUrl() {
|
|
2062
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MsgUpdateParams.typeUrl)) {
|
|
2063
|
+
return;
|
|
2064
|
+
}
|
|
2055
2065
|
Params.registerTypeUrl();
|
|
2056
2066
|
}
|
|
2057
2067
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
3
4
|
import { bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
4
5
|
function createBaseParams() {
|
|
5
6
|
return {
|
|
@@ -332,6 +333,9 @@ export const Params = {
|
|
|
332
333
|
};
|
|
333
334
|
},
|
|
334
335
|
registerTypeUrl() {
|
|
336
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(Params.typeUrl)) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
335
339
|
Coin.registerTypeUrl();
|
|
336
340
|
}
|
|
337
341
|
};
|
|
@@ -96,6 +96,9 @@ export const BlacklistEthereumAddressesProposal = {
|
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
98
|
registerTypeUrl() {
|
|
99
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(BlacklistEthereumAddressesProposal.typeUrl)) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
99
102
|
GlobalDecoderRegistry.register(BlacklistEthereumAddressesProposal.typeUrl, BlacklistEthereumAddressesProposal);
|
|
100
103
|
}
|
|
101
104
|
};
|
|
@@ -195,6 +198,9 @@ export const RevokeEthereumBlacklistProposal = {
|
|
|
195
198
|
};
|
|
196
199
|
},
|
|
197
200
|
registerTypeUrl() {
|
|
201
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(RevokeEthereumBlacklistProposal.typeUrl)) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
198
204
|
GlobalDecoderRegistry.register(RevokeEthereumBlacklistProposal.typeUrl, RevokeEthereumBlacklistProposal);
|
|
199
205
|
}
|
|
200
206
|
};
|