injectivejs 0.0.1-beta.30
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/.eslintignore +1 -0
- package/CHANGELOG.md +176 -0
- package/README.md +21 -0
- package/jest.starship.config.js +18 -0
- package/package.json +48 -0
- package/src/amino/amino.ts +1 -0
- package/src/binary.ts +534 -0
- package/src/cosmos/auth/v1beta1/auth.ts +550 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +72 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/authz/v1beta1/authz.ts +477 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/authz/v1beta1/tx.ts +647 -0
- package/src/cosmos/bank/v1beta1/bank.ts +974 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +93 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/v1beta1/coin.ts +439 -0
- package/src/cosmos/crypto/ed25519/keys.ts +209 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
- package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
- package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/feegrant/v1beta1/tx.ts +596 -0
- package/src/cosmos/gov/v1/gov.ts +1843 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +45 -0
- package/src/cosmos/gov/v1/tx.ts +1660 -0
- package/src/cosmos/gov/v1beta1/gov.ts +1428 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +58 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/gov/v1beta1/tx.ts +884 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +87 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.ts +2081 -0
- package/src/cosmos/ics23/v1/proofs.ts +2060 -0
- package/src/cosmos/msg/v1/msg.ts +1 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +100 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
- package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +65 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -0
- package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
- package/src/cosmos_proto/cosmos.ts +341 -0
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +100 -0
- package/src/cosmwasm/wasm/v1/query.ts +3235 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +105 -0
- package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
- package/src/cosmwasm/wasm/v1/types.ts +1120 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.ts +191 -0
- package/src/helpers.ts +259 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +373 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +15 -0
- package/src/ibc/applications/transfer/v1/tx.ts +569 -0
- package/src/ibc/core/channel/v1/channel.ts +1510 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +117 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -0
- package/src/ibc/core/client/v1/client.ts +602 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +45 -0
- package/src/ibc/core/client/v1/tx.ts +1560 -0
- package/src/ibc/core/commitment/v1/commitment.ts +314 -0
- package/src/ibc/core/connection/v1/connection.ts +1010 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +33 -0
- package/src/ibc/core/connection/v1/tx.ts +1393 -0
- package/src/injective/auction/v1beta1/auction.ts +692 -0
- package/src/injective/auction/v1beta1/genesis.ts +156 -0
- package/src/injective/auction/v1beta1/query.rpc.func.ts +30 -0
- package/src/injective/auction/v1beta1/query.ts +726 -0
- package/src/injective/auction/v1beta1/tx.rpc.func.ts +15 -0
- package/src/injective/auction/v1beta1/tx.ts +383 -0
- package/src/injective/crypto/v1beta1/ethsecp256k1/keys.ts +205 -0
- package/src/injective/exchange/v1beta1/authz.ts +1213 -0
- package/src/injective/exchange/v1beta1/events.ts +4016 -0
- package/src/injective/exchange/v1beta1/exchange.ts +7789 -0
- package/src/injective/exchange/v1beta1/genesis.ts +2460 -0
- package/src/injective/exchange/v1beta1/proposal.ts +4383 -0
- package/src/injective/exchange/v1beta1/query.rpc.func.ts +422 -0
- package/src/injective/exchange/v1beta1/query.ts +13590 -0
- package/src/injective/exchange/v1beta1/tx.rpc.func.ts +213 -0
- package/src/injective/exchange/v1beta1/tx.ts +9492 -0
- package/src/injective/insurance/v1beta1/events.ts +521 -0
- package/src/injective/insurance/v1beta1/genesis.ts +178 -0
- package/src/injective/insurance/v1beta1/insurance.ts +531 -0
- package/src/injective/insurance/v1beta1/query.rpc.func.ts +44 -0
- package/src/injective/insurance/v1beta1/query.ts +1095 -0
- package/src/injective/insurance/v1beta1/tx.rpc.func.ts +27 -0
- package/src/injective/insurance/v1beta1/tx.ts +892 -0
- package/src/injective/ocr/v1beta1/genesis.ts +945 -0
- package/src/injective/ocr/v1beta1/ocr.ts +3044 -0
- package/src/injective/ocr/v1beta1/query.rpc.func.ts +51 -0
- package/src/injective/ocr/v1beta1/query.ts +1218 -0
- package/src/injective/ocr/v1beta1/tx.rpc.func.ts +57 -0
- package/src/injective/ocr/v1beta1/tx.ts +1900 -0
- package/src/injective/oracle/v1beta1/events.ts +1234 -0
- package/src/injective/oracle/v1beta1/genesis.ts +440 -0
- package/src/injective/oracle/v1beta1/oracle.ts +3206 -0
- package/src/injective/oracle/v1beta1/proposal.ts +1449 -0
- package/src/injective/oracle/v1beta1/query.rpc.func.ts +121 -0
- package/src/injective/oracle/v1beta1/query.ts +3446 -0
- package/src/injective/oracle/v1beta1/tx.rpc.func.ts +51 -0
- package/src/injective/oracle/v1beta1/tx.ts +1605 -0
- package/src/injective/peggy/v1/attestation.ts +333 -0
- package/src/injective/peggy/v1/batch.ts +290 -0
- package/src/injective/peggy/v1/ethereum_signer.ts +38 -0
- package/src/injective/peggy/v1/events.ts +2274 -0
- package/src/injective/peggy/v1/genesis.ts +308 -0
- package/src/injective/peggy/v1/msgs.rpc.func.ts +87 -0
- package/src/injective/peggy/v1/msgs.ts +3087 -0
- package/src/injective/peggy/v1/params.ts +392 -0
- package/src/injective/peggy/v1/pool.ts +198 -0
- package/src/injective/peggy/v1/proposal.ts +231 -0
- package/src/injective/peggy/v1/query.rpc.func.ts +149 -0
- package/src/injective/peggy/v1/query.ts +3578 -0
- package/src/injective/peggy/v1/types.ts +575 -0
- package/src/injective/permissions/v1beta1/events.ts +102 -0
- package/src/injective/permissions/v1beta1/genesis.ts +109 -0
- package/src/injective/permissions/v1beta1/params.ts +97 -0
- package/src/injective/permissions/v1beta1/permissions.ts +709 -0
- package/src/injective/permissions/v1beta1/query.rpc.func.ts +44 -0
- package/src/injective/permissions/v1beta1/query.ts +1084 -0
- package/src/injective/permissions/v1beta1/tx.rpc.func.ts +45 -0
- package/src/injective/permissions/v1beta1/tx.ts +1682 -0
- package/src/injective/stream/v1beta1/query.ts +2870 -0
- package/src/injective/tokenfactory/v1beta1/authorityMetadata.ts +99 -0
- package/src/injective/tokenfactory/v1beta1/events.ts +495 -0
- package/src/injective/tokenfactory/v1beta1/genesis.ts +259 -0
- package/src/injective/tokenfactory/v1beta1/params.ts +100 -0
- package/src/injective/tokenfactory/v1beta1/query.rpc.func.ts +30 -0
- package/src/injective/tokenfactory/v1beta1/query.ts +714 -0
- package/src/injective/tokenfactory/v1beta1/tx.rpc.func.ts +39 -0
- package/src/injective/tokenfactory/v1beta1/tx.ts +1208 -0
- package/src/injective/types/v1beta1/account.ts +110 -0
- package/src/injective/types/v1beta1/tx_ext.ts +139 -0
- package/src/injective/types/v1beta1/tx_response.ts +197 -0
- package/src/injective/wasmx/v1/events.ts +396 -0
- package/src/injective/wasmx/v1/genesis.ts +214 -0
- package/src/injective/wasmx/v1/proposal.ts +769 -0
- package/src/injective/wasmx/v1/query.rpc.func.ts +23 -0
- package/src/injective/wasmx/v1/query.ts +509 -0
- package/src/injective/wasmx/v1/tx.rpc.func.ts +39 -0
- package/src/injective/wasmx/v1/tx.ts +1174 -0
- package/src/injective/wasmx/v1/wasmx.ts +379 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.ts +155 -0
- package/src/utf8.ts +148 -0
- package/src/varint.ts +488 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,1900 @@
|
|
|
1
|
+
import { FeedConfig, FeedConfigAmino, Report, ReportAmino, Params, ParamsAmino } from "./ocr";
|
|
2
|
+
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
export interface MsgCreateFeed {
|
|
7
|
+
sender: string;
|
|
8
|
+
config?: FeedConfig;
|
|
9
|
+
}
|
|
10
|
+
export interface MsgCreateFeedProtoMsg {
|
|
11
|
+
typeUrl: "/injective.ocr.v1beta1.MsgCreateFeed";
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
export interface MsgCreateFeedAmino {
|
|
15
|
+
sender: string;
|
|
16
|
+
config?: FeedConfigAmino;
|
|
17
|
+
}
|
|
18
|
+
export interface MsgCreateFeedAminoMsg {
|
|
19
|
+
type: "ocr/MsgCreateFeed";
|
|
20
|
+
value: MsgCreateFeedAmino;
|
|
21
|
+
}
|
|
22
|
+
export interface MsgCreateFeedResponse {}
|
|
23
|
+
export interface MsgCreateFeedResponseProtoMsg {
|
|
24
|
+
typeUrl: "/injective.ocr.v1beta1.MsgCreateFeedResponse";
|
|
25
|
+
value: Uint8Array;
|
|
26
|
+
}
|
|
27
|
+
export interface MsgCreateFeedResponseAmino {}
|
|
28
|
+
export interface MsgCreateFeedResponseAminoMsg {
|
|
29
|
+
type: "/injective.ocr.v1beta1.MsgCreateFeedResponse";
|
|
30
|
+
value: MsgCreateFeedResponseAmino;
|
|
31
|
+
}
|
|
32
|
+
export interface MsgUpdateFeed {
|
|
33
|
+
sender: string;
|
|
34
|
+
/** feed_id is an unique ID for the target of this config */
|
|
35
|
+
feedId: string;
|
|
36
|
+
/** signers ith element is address ith oracle uses to sign a report */
|
|
37
|
+
signers: string[];
|
|
38
|
+
/**
|
|
39
|
+
* transmitters ith element is address ith oracle uses to transmit a report
|
|
40
|
+
* via the transmit method
|
|
41
|
+
*/
|
|
42
|
+
transmitters: string[];
|
|
43
|
+
/** Fixed LINK reward for each observer */
|
|
44
|
+
linkPerObservation?: string;
|
|
45
|
+
/** Fixed LINK reward for transmitter */
|
|
46
|
+
linkPerTransmission?: string;
|
|
47
|
+
/** Native denom for LINK coin in the bank keeper */
|
|
48
|
+
linkDenom: string;
|
|
49
|
+
/** feed administrator */
|
|
50
|
+
feedAdmin: string;
|
|
51
|
+
/** feed billing administrator */
|
|
52
|
+
billingAdmin: string;
|
|
53
|
+
}
|
|
54
|
+
export interface MsgUpdateFeedProtoMsg {
|
|
55
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeed";
|
|
56
|
+
value: Uint8Array;
|
|
57
|
+
}
|
|
58
|
+
export interface MsgUpdateFeedAmino {
|
|
59
|
+
sender: string;
|
|
60
|
+
/** feed_id is an unique ID for the target of this config */
|
|
61
|
+
feed_id: string;
|
|
62
|
+
/** signers ith element is address ith oracle uses to sign a report */
|
|
63
|
+
signers: string[];
|
|
64
|
+
/**
|
|
65
|
+
* transmitters ith element is address ith oracle uses to transmit a report
|
|
66
|
+
* via the transmit method
|
|
67
|
+
*/
|
|
68
|
+
transmitters: string[];
|
|
69
|
+
/** Fixed LINK reward for each observer */
|
|
70
|
+
link_per_observation?: string;
|
|
71
|
+
/** Fixed LINK reward for transmitter */
|
|
72
|
+
link_per_transmission?: string;
|
|
73
|
+
/** Native denom for LINK coin in the bank keeper */
|
|
74
|
+
link_denom: string;
|
|
75
|
+
/** feed administrator */
|
|
76
|
+
feed_admin: string;
|
|
77
|
+
/** feed billing administrator */
|
|
78
|
+
billing_admin: string;
|
|
79
|
+
}
|
|
80
|
+
export interface MsgUpdateFeedAminoMsg {
|
|
81
|
+
type: "ocr/MsgUpdateFeed";
|
|
82
|
+
value: MsgUpdateFeedAmino;
|
|
83
|
+
}
|
|
84
|
+
export interface MsgUpdateFeedResponse {}
|
|
85
|
+
export interface MsgUpdateFeedResponseProtoMsg {
|
|
86
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeedResponse";
|
|
87
|
+
value: Uint8Array;
|
|
88
|
+
}
|
|
89
|
+
export interface MsgUpdateFeedResponseAmino {}
|
|
90
|
+
export interface MsgUpdateFeedResponseAminoMsg {
|
|
91
|
+
type: "/injective.ocr.v1beta1.MsgUpdateFeedResponse";
|
|
92
|
+
value: MsgUpdateFeedResponseAmino;
|
|
93
|
+
}
|
|
94
|
+
export interface MsgTransmit {
|
|
95
|
+
/** Address of the transmitter */
|
|
96
|
+
transmitter: string;
|
|
97
|
+
configDigest: Uint8Array;
|
|
98
|
+
feedId: string;
|
|
99
|
+
epoch: bigint;
|
|
100
|
+
round: bigint;
|
|
101
|
+
extraHash: Uint8Array;
|
|
102
|
+
report?: Report;
|
|
103
|
+
signatures: Uint8Array[];
|
|
104
|
+
}
|
|
105
|
+
export interface MsgTransmitProtoMsg {
|
|
106
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransmit";
|
|
107
|
+
value: Uint8Array;
|
|
108
|
+
}
|
|
109
|
+
export interface MsgTransmitAmino {
|
|
110
|
+
/** Address of the transmitter */
|
|
111
|
+
transmitter: string;
|
|
112
|
+
config_digest: string;
|
|
113
|
+
feed_id: string;
|
|
114
|
+
epoch: string;
|
|
115
|
+
round: string;
|
|
116
|
+
extra_hash: string;
|
|
117
|
+
report?: ReportAmino;
|
|
118
|
+
signatures: string[];
|
|
119
|
+
}
|
|
120
|
+
export interface MsgTransmitAminoMsg {
|
|
121
|
+
type: "ocr/MsgTransmit";
|
|
122
|
+
value: MsgTransmitAmino;
|
|
123
|
+
}
|
|
124
|
+
export interface MsgTransmitResponse {}
|
|
125
|
+
export interface MsgTransmitResponseProtoMsg {
|
|
126
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransmitResponse";
|
|
127
|
+
value: Uint8Array;
|
|
128
|
+
}
|
|
129
|
+
export interface MsgTransmitResponseAmino {}
|
|
130
|
+
export interface MsgTransmitResponseAminoMsg {
|
|
131
|
+
type: "/injective.ocr.v1beta1.MsgTransmitResponse";
|
|
132
|
+
value: MsgTransmitResponseAmino;
|
|
133
|
+
}
|
|
134
|
+
export interface MsgFundFeedRewardPool {
|
|
135
|
+
sender: string;
|
|
136
|
+
feedId: string;
|
|
137
|
+
amount: Coin;
|
|
138
|
+
}
|
|
139
|
+
export interface MsgFundFeedRewardPoolProtoMsg {
|
|
140
|
+
typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPool";
|
|
141
|
+
value: Uint8Array;
|
|
142
|
+
}
|
|
143
|
+
export interface MsgFundFeedRewardPoolAmino {
|
|
144
|
+
sender: string;
|
|
145
|
+
feed_id: string;
|
|
146
|
+
amount: CoinAmino;
|
|
147
|
+
}
|
|
148
|
+
export interface MsgFundFeedRewardPoolAminoMsg {
|
|
149
|
+
type: "ocr/MsgFundFeedRewardPool";
|
|
150
|
+
value: MsgFundFeedRewardPoolAmino;
|
|
151
|
+
}
|
|
152
|
+
export interface MsgFundFeedRewardPoolResponse {}
|
|
153
|
+
export interface MsgFundFeedRewardPoolResponseProtoMsg {
|
|
154
|
+
typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPoolResponse";
|
|
155
|
+
value: Uint8Array;
|
|
156
|
+
}
|
|
157
|
+
export interface MsgFundFeedRewardPoolResponseAmino {}
|
|
158
|
+
export interface MsgFundFeedRewardPoolResponseAminoMsg {
|
|
159
|
+
type: "/injective.ocr.v1beta1.MsgFundFeedRewardPoolResponse";
|
|
160
|
+
value: MsgFundFeedRewardPoolResponseAmino;
|
|
161
|
+
}
|
|
162
|
+
export interface MsgWithdrawFeedRewardPool {
|
|
163
|
+
sender: string;
|
|
164
|
+
feedId: string;
|
|
165
|
+
amount: Coin;
|
|
166
|
+
}
|
|
167
|
+
export interface MsgWithdrawFeedRewardPoolProtoMsg {
|
|
168
|
+
typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPool";
|
|
169
|
+
value: Uint8Array;
|
|
170
|
+
}
|
|
171
|
+
export interface MsgWithdrawFeedRewardPoolAmino {
|
|
172
|
+
sender: string;
|
|
173
|
+
feed_id: string;
|
|
174
|
+
amount: CoinAmino;
|
|
175
|
+
}
|
|
176
|
+
export interface MsgWithdrawFeedRewardPoolAminoMsg {
|
|
177
|
+
type: "ocr/MsgWithdrawFeedRewardPool";
|
|
178
|
+
value: MsgWithdrawFeedRewardPoolAmino;
|
|
179
|
+
}
|
|
180
|
+
export interface MsgWithdrawFeedRewardPoolResponse {}
|
|
181
|
+
export interface MsgWithdrawFeedRewardPoolResponseProtoMsg {
|
|
182
|
+
typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPoolResponse";
|
|
183
|
+
value: Uint8Array;
|
|
184
|
+
}
|
|
185
|
+
export interface MsgWithdrawFeedRewardPoolResponseAmino {}
|
|
186
|
+
export interface MsgWithdrawFeedRewardPoolResponseAminoMsg {
|
|
187
|
+
type: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPoolResponse";
|
|
188
|
+
value: MsgWithdrawFeedRewardPoolResponseAmino;
|
|
189
|
+
}
|
|
190
|
+
export interface MsgSetPayees {
|
|
191
|
+
sender: string;
|
|
192
|
+
feedId: string;
|
|
193
|
+
/** addresses oracles use to transmit the reports */
|
|
194
|
+
transmitters: string[];
|
|
195
|
+
/** addresses of payees corresponding to list of transmitters */
|
|
196
|
+
payees: string[];
|
|
197
|
+
}
|
|
198
|
+
export interface MsgSetPayeesProtoMsg {
|
|
199
|
+
typeUrl: "/injective.ocr.v1beta1.MsgSetPayees";
|
|
200
|
+
value: Uint8Array;
|
|
201
|
+
}
|
|
202
|
+
export interface MsgSetPayeesAmino {
|
|
203
|
+
sender: string;
|
|
204
|
+
feed_id: string;
|
|
205
|
+
/** addresses oracles use to transmit the reports */
|
|
206
|
+
transmitters: string[];
|
|
207
|
+
/** addresses of payees corresponding to list of transmitters */
|
|
208
|
+
payees: string[];
|
|
209
|
+
}
|
|
210
|
+
export interface MsgSetPayeesAminoMsg {
|
|
211
|
+
type: "ocr/MsgSetPayees";
|
|
212
|
+
value: MsgSetPayeesAmino;
|
|
213
|
+
}
|
|
214
|
+
export interface MsgSetPayeesResponse {}
|
|
215
|
+
export interface MsgSetPayeesResponseProtoMsg {
|
|
216
|
+
typeUrl: "/injective.ocr.v1beta1.MsgSetPayeesResponse";
|
|
217
|
+
value: Uint8Array;
|
|
218
|
+
}
|
|
219
|
+
export interface MsgSetPayeesResponseAmino {}
|
|
220
|
+
export interface MsgSetPayeesResponseAminoMsg {
|
|
221
|
+
type: "/injective.ocr.v1beta1.MsgSetPayeesResponse";
|
|
222
|
+
value: MsgSetPayeesResponseAmino;
|
|
223
|
+
}
|
|
224
|
+
export interface MsgTransferPayeeship {
|
|
225
|
+
/** transmitter address of oracle whose payee is changing */
|
|
226
|
+
sender: string;
|
|
227
|
+
transmitter: string;
|
|
228
|
+
feedId: string;
|
|
229
|
+
/** new payee address */
|
|
230
|
+
proposed: string;
|
|
231
|
+
}
|
|
232
|
+
export interface MsgTransferPayeeshipProtoMsg {
|
|
233
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeship";
|
|
234
|
+
value: Uint8Array;
|
|
235
|
+
}
|
|
236
|
+
export interface MsgTransferPayeeshipAmino {
|
|
237
|
+
/** transmitter address of oracle whose payee is changing */
|
|
238
|
+
sender: string;
|
|
239
|
+
transmitter: string;
|
|
240
|
+
feed_id: string;
|
|
241
|
+
/** new payee address */
|
|
242
|
+
proposed: string;
|
|
243
|
+
}
|
|
244
|
+
export interface MsgTransferPayeeshipAminoMsg {
|
|
245
|
+
type: "ocr/MsgTransferPayeeship";
|
|
246
|
+
value: MsgTransferPayeeshipAmino;
|
|
247
|
+
}
|
|
248
|
+
export interface MsgTransferPayeeshipResponse {}
|
|
249
|
+
export interface MsgTransferPayeeshipResponseProtoMsg {
|
|
250
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeshipResponse";
|
|
251
|
+
value: Uint8Array;
|
|
252
|
+
}
|
|
253
|
+
export interface MsgTransferPayeeshipResponseAmino {}
|
|
254
|
+
export interface MsgTransferPayeeshipResponseAminoMsg {
|
|
255
|
+
type: "/injective.ocr.v1beta1.MsgTransferPayeeshipResponse";
|
|
256
|
+
value: MsgTransferPayeeshipResponseAmino;
|
|
257
|
+
}
|
|
258
|
+
export interface MsgAcceptPayeeship {
|
|
259
|
+
/** new payee address */
|
|
260
|
+
payee: string;
|
|
261
|
+
/** transmitter address of oracle whose payee is changing */
|
|
262
|
+
transmitter: string;
|
|
263
|
+
feedId: string;
|
|
264
|
+
}
|
|
265
|
+
export interface MsgAcceptPayeeshipProtoMsg {
|
|
266
|
+
typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeship";
|
|
267
|
+
value: Uint8Array;
|
|
268
|
+
}
|
|
269
|
+
export interface MsgAcceptPayeeshipAmino {
|
|
270
|
+
/** new payee address */
|
|
271
|
+
payee: string;
|
|
272
|
+
/** transmitter address of oracle whose payee is changing */
|
|
273
|
+
transmitter: string;
|
|
274
|
+
feed_id: string;
|
|
275
|
+
}
|
|
276
|
+
export interface MsgAcceptPayeeshipAminoMsg {
|
|
277
|
+
type: "ocr/MsgAcceptPayeeship";
|
|
278
|
+
value: MsgAcceptPayeeshipAmino;
|
|
279
|
+
}
|
|
280
|
+
export interface MsgAcceptPayeeshipResponse {}
|
|
281
|
+
export interface MsgAcceptPayeeshipResponseProtoMsg {
|
|
282
|
+
typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeshipResponse";
|
|
283
|
+
value: Uint8Array;
|
|
284
|
+
}
|
|
285
|
+
export interface MsgAcceptPayeeshipResponseAmino {}
|
|
286
|
+
export interface MsgAcceptPayeeshipResponseAminoMsg {
|
|
287
|
+
type: "/injective.ocr.v1beta1.MsgAcceptPayeeshipResponse";
|
|
288
|
+
value: MsgAcceptPayeeshipResponseAmino;
|
|
289
|
+
}
|
|
290
|
+
export interface MsgUpdateParams {
|
|
291
|
+
/** authority is the address of the governance account. */
|
|
292
|
+
authority: string;
|
|
293
|
+
/**
|
|
294
|
+
* params defines the ocr parameters to update.
|
|
295
|
+
*
|
|
296
|
+
* NOTE: All parameters must be supplied.
|
|
297
|
+
*/
|
|
298
|
+
params: Params;
|
|
299
|
+
}
|
|
300
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
301
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateParams";
|
|
302
|
+
value: Uint8Array;
|
|
303
|
+
}
|
|
304
|
+
export interface MsgUpdateParamsAmino {
|
|
305
|
+
/** authority is the address of the governance account. */
|
|
306
|
+
authority: string;
|
|
307
|
+
/**
|
|
308
|
+
* params defines the ocr parameters to update.
|
|
309
|
+
*
|
|
310
|
+
* NOTE: All parameters must be supplied.
|
|
311
|
+
*/
|
|
312
|
+
params: ParamsAmino;
|
|
313
|
+
}
|
|
314
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
315
|
+
type: "ocr/MsgUpdateParams";
|
|
316
|
+
value: MsgUpdateParamsAmino;
|
|
317
|
+
}
|
|
318
|
+
export interface MsgUpdateParamsResponse {}
|
|
319
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
320
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateParamsResponse";
|
|
321
|
+
value: Uint8Array;
|
|
322
|
+
}
|
|
323
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
324
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
325
|
+
type: "/injective.ocr.v1beta1.MsgUpdateParamsResponse";
|
|
326
|
+
value: MsgUpdateParamsResponseAmino;
|
|
327
|
+
}
|
|
328
|
+
function createBaseMsgCreateFeed(): MsgCreateFeed {
|
|
329
|
+
return {
|
|
330
|
+
sender: "",
|
|
331
|
+
config: undefined
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
export const MsgCreateFeed = {
|
|
335
|
+
typeUrl: "/injective.ocr.v1beta1.MsgCreateFeed",
|
|
336
|
+
aminoType: "ocr/MsgCreateFeed",
|
|
337
|
+
is(o: any): o is MsgCreateFeed {
|
|
338
|
+
return o && (o.$typeUrl === MsgCreateFeed.typeUrl || typeof o.sender === "string");
|
|
339
|
+
},
|
|
340
|
+
isAmino(o: any): o is MsgCreateFeedAmino {
|
|
341
|
+
return o && (o.$typeUrl === MsgCreateFeed.typeUrl || typeof o.sender === "string");
|
|
342
|
+
},
|
|
343
|
+
encode(message: MsgCreateFeed, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
344
|
+
if (message.sender !== "") {
|
|
345
|
+
writer.uint32(10).string(message.sender);
|
|
346
|
+
}
|
|
347
|
+
if (message.config !== undefined) {
|
|
348
|
+
FeedConfig.encode(message.config, writer.uint32(18).fork()).ldelim();
|
|
349
|
+
}
|
|
350
|
+
return writer;
|
|
351
|
+
},
|
|
352
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateFeed {
|
|
353
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
354
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
355
|
+
const message = createBaseMsgCreateFeed();
|
|
356
|
+
while (reader.pos < end) {
|
|
357
|
+
const tag = reader.uint32();
|
|
358
|
+
switch (tag >>> 3) {
|
|
359
|
+
case 1:
|
|
360
|
+
message.sender = reader.string();
|
|
361
|
+
break;
|
|
362
|
+
case 2:
|
|
363
|
+
message.config = FeedConfig.decode(reader, reader.uint32());
|
|
364
|
+
break;
|
|
365
|
+
default:
|
|
366
|
+
reader.skipType(tag & 7);
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return message;
|
|
371
|
+
},
|
|
372
|
+
fromPartial(object: DeepPartial<MsgCreateFeed>): MsgCreateFeed {
|
|
373
|
+
const message = createBaseMsgCreateFeed();
|
|
374
|
+
message.sender = object.sender ?? "";
|
|
375
|
+
message.config = object.config !== undefined && object.config !== null ? FeedConfig.fromPartial(object.config) : undefined;
|
|
376
|
+
return message;
|
|
377
|
+
},
|
|
378
|
+
fromAmino(object: MsgCreateFeedAmino): MsgCreateFeed {
|
|
379
|
+
const message = createBaseMsgCreateFeed();
|
|
380
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
381
|
+
message.sender = object.sender;
|
|
382
|
+
}
|
|
383
|
+
if (object.config !== undefined && object.config !== null) {
|
|
384
|
+
message.config = FeedConfig.fromAmino(object.config);
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
},
|
|
388
|
+
toAmino(message: MsgCreateFeed): MsgCreateFeedAmino {
|
|
389
|
+
const obj: any = {};
|
|
390
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
391
|
+
obj.config = message.config ? FeedConfig.toAmino(message.config) : undefined;
|
|
392
|
+
return obj;
|
|
393
|
+
},
|
|
394
|
+
fromAminoMsg(object: MsgCreateFeedAminoMsg): MsgCreateFeed {
|
|
395
|
+
return MsgCreateFeed.fromAmino(object.value);
|
|
396
|
+
},
|
|
397
|
+
toAminoMsg(message: MsgCreateFeed): MsgCreateFeedAminoMsg {
|
|
398
|
+
return {
|
|
399
|
+
type: "ocr/MsgCreateFeed",
|
|
400
|
+
value: MsgCreateFeed.toAmino(message)
|
|
401
|
+
};
|
|
402
|
+
},
|
|
403
|
+
fromProtoMsg(message: MsgCreateFeedProtoMsg): MsgCreateFeed {
|
|
404
|
+
return MsgCreateFeed.decode(message.value);
|
|
405
|
+
},
|
|
406
|
+
toProto(message: MsgCreateFeed): Uint8Array {
|
|
407
|
+
return MsgCreateFeed.encode(message).finish();
|
|
408
|
+
},
|
|
409
|
+
toProtoMsg(message: MsgCreateFeed): MsgCreateFeedProtoMsg {
|
|
410
|
+
return {
|
|
411
|
+
typeUrl: "/injective.ocr.v1beta1.MsgCreateFeed",
|
|
412
|
+
value: MsgCreateFeed.encode(message).finish()
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
GlobalDecoderRegistry.register(MsgCreateFeed.typeUrl, MsgCreateFeed);
|
|
417
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgCreateFeed.aminoType, MsgCreateFeed.typeUrl);
|
|
418
|
+
function createBaseMsgCreateFeedResponse(): MsgCreateFeedResponse {
|
|
419
|
+
return {};
|
|
420
|
+
}
|
|
421
|
+
export const MsgCreateFeedResponse = {
|
|
422
|
+
typeUrl: "/injective.ocr.v1beta1.MsgCreateFeedResponse",
|
|
423
|
+
is(o: any): o is MsgCreateFeedResponse {
|
|
424
|
+
return o && o.$typeUrl === MsgCreateFeedResponse.typeUrl;
|
|
425
|
+
},
|
|
426
|
+
isAmino(o: any): o is MsgCreateFeedResponseAmino {
|
|
427
|
+
return o && o.$typeUrl === MsgCreateFeedResponse.typeUrl;
|
|
428
|
+
},
|
|
429
|
+
encode(_: MsgCreateFeedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
430
|
+
return writer;
|
|
431
|
+
},
|
|
432
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateFeedResponse {
|
|
433
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
434
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
435
|
+
const message = createBaseMsgCreateFeedResponse();
|
|
436
|
+
while (reader.pos < end) {
|
|
437
|
+
const tag = reader.uint32();
|
|
438
|
+
switch (tag >>> 3) {
|
|
439
|
+
default:
|
|
440
|
+
reader.skipType(tag & 7);
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
return message;
|
|
445
|
+
},
|
|
446
|
+
fromPartial(_: DeepPartial<MsgCreateFeedResponse>): MsgCreateFeedResponse {
|
|
447
|
+
const message = createBaseMsgCreateFeedResponse();
|
|
448
|
+
return message;
|
|
449
|
+
},
|
|
450
|
+
fromAmino(_: MsgCreateFeedResponseAmino): MsgCreateFeedResponse {
|
|
451
|
+
const message = createBaseMsgCreateFeedResponse();
|
|
452
|
+
return message;
|
|
453
|
+
},
|
|
454
|
+
toAmino(_: MsgCreateFeedResponse): MsgCreateFeedResponseAmino {
|
|
455
|
+
const obj: any = {};
|
|
456
|
+
return obj;
|
|
457
|
+
},
|
|
458
|
+
fromAminoMsg(object: MsgCreateFeedResponseAminoMsg): MsgCreateFeedResponse {
|
|
459
|
+
return MsgCreateFeedResponse.fromAmino(object.value);
|
|
460
|
+
},
|
|
461
|
+
fromProtoMsg(message: MsgCreateFeedResponseProtoMsg): MsgCreateFeedResponse {
|
|
462
|
+
return MsgCreateFeedResponse.decode(message.value);
|
|
463
|
+
},
|
|
464
|
+
toProto(message: MsgCreateFeedResponse): Uint8Array {
|
|
465
|
+
return MsgCreateFeedResponse.encode(message).finish();
|
|
466
|
+
},
|
|
467
|
+
toProtoMsg(message: MsgCreateFeedResponse): MsgCreateFeedResponseProtoMsg {
|
|
468
|
+
return {
|
|
469
|
+
typeUrl: "/injective.ocr.v1beta1.MsgCreateFeedResponse",
|
|
470
|
+
value: MsgCreateFeedResponse.encode(message).finish()
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
GlobalDecoderRegistry.register(MsgCreateFeedResponse.typeUrl, MsgCreateFeedResponse);
|
|
475
|
+
function createBaseMsgUpdateFeed(): MsgUpdateFeed {
|
|
476
|
+
return {
|
|
477
|
+
sender: "",
|
|
478
|
+
feedId: "",
|
|
479
|
+
signers: [],
|
|
480
|
+
transmitters: [],
|
|
481
|
+
linkPerObservation: undefined,
|
|
482
|
+
linkPerTransmission: undefined,
|
|
483
|
+
linkDenom: "",
|
|
484
|
+
feedAdmin: "",
|
|
485
|
+
billingAdmin: ""
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
export const MsgUpdateFeed = {
|
|
489
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeed",
|
|
490
|
+
aminoType: "ocr/MsgUpdateFeed",
|
|
491
|
+
is(o: any): o is MsgUpdateFeed {
|
|
492
|
+
return o && (o.$typeUrl === MsgUpdateFeed.typeUrl || typeof o.sender === "string" && typeof o.feedId === "string" && Array.isArray(o.signers) && (!o.signers.length || typeof o.signers[0] === "string") && Array.isArray(o.transmitters) && (!o.transmitters.length || typeof o.transmitters[0] === "string") && typeof o.linkDenom === "string" && typeof o.feedAdmin === "string" && typeof o.billingAdmin === "string");
|
|
493
|
+
},
|
|
494
|
+
isAmino(o: any): o is MsgUpdateFeedAmino {
|
|
495
|
+
return o && (o.$typeUrl === MsgUpdateFeed.typeUrl || typeof o.sender === "string" && typeof o.feed_id === "string" && Array.isArray(o.signers) && (!o.signers.length || typeof o.signers[0] === "string") && Array.isArray(o.transmitters) && (!o.transmitters.length || typeof o.transmitters[0] === "string") && typeof o.link_denom === "string" && typeof o.feed_admin === "string" && typeof o.billing_admin === "string");
|
|
496
|
+
},
|
|
497
|
+
encode(message: MsgUpdateFeed, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
498
|
+
if (message.sender !== "") {
|
|
499
|
+
writer.uint32(10).string(message.sender);
|
|
500
|
+
}
|
|
501
|
+
if (message.feedId !== "") {
|
|
502
|
+
writer.uint32(18).string(message.feedId);
|
|
503
|
+
}
|
|
504
|
+
for (const v of message.signers) {
|
|
505
|
+
writer.uint32(26).string(v!);
|
|
506
|
+
}
|
|
507
|
+
for (const v of message.transmitters) {
|
|
508
|
+
writer.uint32(34).string(v!);
|
|
509
|
+
}
|
|
510
|
+
if (message.linkPerObservation !== undefined) {
|
|
511
|
+
writer.uint32(42).string(message.linkPerObservation);
|
|
512
|
+
}
|
|
513
|
+
if (message.linkPerTransmission !== undefined) {
|
|
514
|
+
writer.uint32(50).string(message.linkPerTransmission);
|
|
515
|
+
}
|
|
516
|
+
if (message.linkDenom !== "") {
|
|
517
|
+
writer.uint32(58).string(message.linkDenom);
|
|
518
|
+
}
|
|
519
|
+
if (message.feedAdmin !== "") {
|
|
520
|
+
writer.uint32(66).string(message.feedAdmin);
|
|
521
|
+
}
|
|
522
|
+
if (message.billingAdmin !== "") {
|
|
523
|
+
writer.uint32(74).string(message.billingAdmin);
|
|
524
|
+
}
|
|
525
|
+
return writer;
|
|
526
|
+
},
|
|
527
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateFeed {
|
|
528
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
529
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
530
|
+
const message = createBaseMsgUpdateFeed();
|
|
531
|
+
while (reader.pos < end) {
|
|
532
|
+
const tag = reader.uint32();
|
|
533
|
+
switch (tag >>> 3) {
|
|
534
|
+
case 1:
|
|
535
|
+
message.sender = reader.string();
|
|
536
|
+
break;
|
|
537
|
+
case 2:
|
|
538
|
+
message.feedId = reader.string();
|
|
539
|
+
break;
|
|
540
|
+
case 3:
|
|
541
|
+
message.signers.push(reader.string());
|
|
542
|
+
break;
|
|
543
|
+
case 4:
|
|
544
|
+
message.transmitters.push(reader.string());
|
|
545
|
+
break;
|
|
546
|
+
case 5:
|
|
547
|
+
message.linkPerObservation = reader.string();
|
|
548
|
+
break;
|
|
549
|
+
case 6:
|
|
550
|
+
message.linkPerTransmission = reader.string();
|
|
551
|
+
break;
|
|
552
|
+
case 7:
|
|
553
|
+
message.linkDenom = reader.string();
|
|
554
|
+
break;
|
|
555
|
+
case 8:
|
|
556
|
+
message.feedAdmin = reader.string();
|
|
557
|
+
break;
|
|
558
|
+
case 9:
|
|
559
|
+
message.billingAdmin = reader.string();
|
|
560
|
+
break;
|
|
561
|
+
default:
|
|
562
|
+
reader.skipType(tag & 7);
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
return message;
|
|
567
|
+
},
|
|
568
|
+
fromPartial(object: DeepPartial<MsgUpdateFeed>): MsgUpdateFeed {
|
|
569
|
+
const message = createBaseMsgUpdateFeed();
|
|
570
|
+
message.sender = object.sender ?? "";
|
|
571
|
+
message.feedId = object.feedId ?? "";
|
|
572
|
+
message.signers = object.signers?.map(e => e) || [];
|
|
573
|
+
message.transmitters = object.transmitters?.map(e => e) || [];
|
|
574
|
+
message.linkPerObservation = object.linkPerObservation ?? undefined;
|
|
575
|
+
message.linkPerTransmission = object.linkPerTransmission ?? undefined;
|
|
576
|
+
message.linkDenom = object.linkDenom ?? "";
|
|
577
|
+
message.feedAdmin = object.feedAdmin ?? "";
|
|
578
|
+
message.billingAdmin = object.billingAdmin ?? "";
|
|
579
|
+
return message;
|
|
580
|
+
},
|
|
581
|
+
fromAmino(object: MsgUpdateFeedAmino): MsgUpdateFeed {
|
|
582
|
+
const message = createBaseMsgUpdateFeed();
|
|
583
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
584
|
+
message.sender = object.sender;
|
|
585
|
+
}
|
|
586
|
+
if (object.feed_id !== undefined && object.feed_id !== null) {
|
|
587
|
+
message.feedId = object.feed_id;
|
|
588
|
+
}
|
|
589
|
+
message.signers = object.signers?.map(e => e) || [];
|
|
590
|
+
message.transmitters = object.transmitters?.map(e => e) || [];
|
|
591
|
+
if (object.link_per_observation !== undefined && object.link_per_observation !== null) {
|
|
592
|
+
message.linkPerObservation = object.link_per_observation;
|
|
593
|
+
}
|
|
594
|
+
if (object.link_per_transmission !== undefined && object.link_per_transmission !== null) {
|
|
595
|
+
message.linkPerTransmission = object.link_per_transmission;
|
|
596
|
+
}
|
|
597
|
+
if (object.link_denom !== undefined && object.link_denom !== null) {
|
|
598
|
+
message.linkDenom = object.link_denom;
|
|
599
|
+
}
|
|
600
|
+
if (object.feed_admin !== undefined && object.feed_admin !== null) {
|
|
601
|
+
message.feedAdmin = object.feed_admin;
|
|
602
|
+
}
|
|
603
|
+
if (object.billing_admin !== undefined && object.billing_admin !== null) {
|
|
604
|
+
message.billingAdmin = object.billing_admin;
|
|
605
|
+
}
|
|
606
|
+
return message;
|
|
607
|
+
},
|
|
608
|
+
toAmino(message: MsgUpdateFeed): MsgUpdateFeedAmino {
|
|
609
|
+
const obj: any = {};
|
|
610
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
611
|
+
obj.feed_id = message.feedId === "" ? undefined : message.feedId;
|
|
612
|
+
if (message.signers) {
|
|
613
|
+
obj.signers = message.signers.map(e => e);
|
|
614
|
+
} else {
|
|
615
|
+
obj.signers = message.signers;
|
|
616
|
+
}
|
|
617
|
+
if (message.transmitters) {
|
|
618
|
+
obj.transmitters = message.transmitters.map(e => e);
|
|
619
|
+
} else {
|
|
620
|
+
obj.transmitters = message.transmitters;
|
|
621
|
+
}
|
|
622
|
+
obj.link_per_observation = message.linkPerObservation === null ? undefined : message.linkPerObservation;
|
|
623
|
+
obj.link_per_transmission = message.linkPerTransmission === null ? undefined : message.linkPerTransmission;
|
|
624
|
+
obj.link_denom = message.linkDenom === "" ? undefined : message.linkDenom;
|
|
625
|
+
obj.feed_admin = message.feedAdmin === "" ? undefined : message.feedAdmin;
|
|
626
|
+
obj.billing_admin = message.billingAdmin === "" ? undefined : message.billingAdmin;
|
|
627
|
+
return obj;
|
|
628
|
+
},
|
|
629
|
+
fromAminoMsg(object: MsgUpdateFeedAminoMsg): MsgUpdateFeed {
|
|
630
|
+
return MsgUpdateFeed.fromAmino(object.value);
|
|
631
|
+
},
|
|
632
|
+
toAminoMsg(message: MsgUpdateFeed): MsgUpdateFeedAminoMsg {
|
|
633
|
+
return {
|
|
634
|
+
type: "ocr/MsgUpdateFeed",
|
|
635
|
+
value: MsgUpdateFeed.toAmino(message)
|
|
636
|
+
};
|
|
637
|
+
},
|
|
638
|
+
fromProtoMsg(message: MsgUpdateFeedProtoMsg): MsgUpdateFeed {
|
|
639
|
+
return MsgUpdateFeed.decode(message.value);
|
|
640
|
+
},
|
|
641
|
+
toProto(message: MsgUpdateFeed): Uint8Array {
|
|
642
|
+
return MsgUpdateFeed.encode(message).finish();
|
|
643
|
+
},
|
|
644
|
+
toProtoMsg(message: MsgUpdateFeed): MsgUpdateFeedProtoMsg {
|
|
645
|
+
return {
|
|
646
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeed",
|
|
647
|
+
value: MsgUpdateFeed.encode(message).finish()
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
GlobalDecoderRegistry.register(MsgUpdateFeed.typeUrl, MsgUpdateFeed);
|
|
652
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateFeed.aminoType, MsgUpdateFeed.typeUrl);
|
|
653
|
+
function createBaseMsgUpdateFeedResponse(): MsgUpdateFeedResponse {
|
|
654
|
+
return {};
|
|
655
|
+
}
|
|
656
|
+
export const MsgUpdateFeedResponse = {
|
|
657
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeedResponse",
|
|
658
|
+
is(o: any): o is MsgUpdateFeedResponse {
|
|
659
|
+
return o && o.$typeUrl === MsgUpdateFeedResponse.typeUrl;
|
|
660
|
+
},
|
|
661
|
+
isAmino(o: any): o is MsgUpdateFeedResponseAmino {
|
|
662
|
+
return o && o.$typeUrl === MsgUpdateFeedResponse.typeUrl;
|
|
663
|
+
},
|
|
664
|
+
encode(_: MsgUpdateFeedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
665
|
+
return writer;
|
|
666
|
+
},
|
|
667
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateFeedResponse {
|
|
668
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
669
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
670
|
+
const message = createBaseMsgUpdateFeedResponse();
|
|
671
|
+
while (reader.pos < end) {
|
|
672
|
+
const tag = reader.uint32();
|
|
673
|
+
switch (tag >>> 3) {
|
|
674
|
+
default:
|
|
675
|
+
reader.skipType(tag & 7);
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return message;
|
|
680
|
+
},
|
|
681
|
+
fromPartial(_: DeepPartial<MsgUpdateFeedResponse>): MsgUpdateFeedResponse {
|
|
682
|
+
const message = createBaseMsgUpdateFeedResponse();
|
|
683
|
+
return message;
|
|
684
|
+
},
|
|
685
|
+
fromAmino(_: MsgUpdateFeedResponseAmino): MsgUpdateFeedResponse {
|
|
686
|
+
const message = createBaseMsgUpdateFeedResponse();
|
|
687
|
+
return message;
|
|
688
|
+
},
|
|
689
|
+
toAmino(_: MsgUpdateFeedResponse): MsgUpdateFeedResponseAmino {
|
|
690
|
+
const obj: any = {};
|
|
691
|
+
return obj;
|
|
692
|
+
},
|
|
693
|
+
fromAminoMsg(object: MsgUpdateFeedResponseAminoMsg): MsgUpdateFeedResponse {
|
|
694
|
+
return MsgUpdateFeedResponse.fromAmino(object.value);
|
|
695
|
+
},
|
|
696
|
+
fromProtoMsg(message: MsgUpdateFeedResponseProtoMsg): MsgUpdateFeedResponse {
|
|
697
|
+
return MsgUpdateFeedResponse.decode(message.value);
|
|
698
|
+
},
|
|
699
|
+
toProto(message: MsgUpdateFeedResponse): Uint8Array {
|
|
700
|
+
return MsgUpdateFeedResponse.encode(message).finish();
|
|
701
|
+
},
|
|
702
|
+
toProtoMsg(message: MsgUpdateFeedResponse): MsgUpdateFeedResponseProtoMsg {
|
|
703
|
+
return {
|
|
704
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeedResponse",
|
|
705
|
+
value: MsgUpdateFeedResponse.encode(message).finish()
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
GlobalDecoderRegistry.register(MsgUpdateFeedResponse.typeUrl, MsgUpdateFeedResponse);
|
|
710
|
+
function createBaseMsgTransmit(): MsgTransmit {
|
|
711
|
+
return {
|
|
712
|
+
transmitter: "",
|
|
713
|
+
configDigest: new Uint8Array(),
|
|
714
|
+
feedId: "",
|
|
715
|
+
epoch: BigInt(0),
|
|
716
|
+
round: BigInt(0),
|
|
717
|
+
extraHash: new Uint8Array(),
|
|
718
|
+
report: undefined,
|
|
719
|
+
signatures: []
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
export const MsgTransmit = {
|
|
723
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransmit",
|
|
724
|
+
aminoType: "ocr/MsgTransmit",
|
|
725
|
+
is(o: any): o is MsgTransmit {
|
|
726
|
+
return o && (o.$typeUrl === MsgTransmit.typeUrl || typeof o.transmitter === "string" && (o.configDigest instanceof Uint8Array || typeof o.configDigest === "string") && typeof o.feedId === "string" && typeof o.epoch === "bigint" && typeof o.round === "bigint" && (o.extraHash instanceof Uint8Array || typeof o.extraHash === "string") && Array.isArray(o.signatures) && (!o.signatures.length || o.signatures[0] instanceof Uint8Array || typeof o.signatures[0] === "string"));
|
|
727
|
+
},
|
|
728
|
+
isAmino(o: any): o is MsgTransmitAmino {
|
|
729
|
+
return o && (o.$typeUrl === MsgTransmit.typeUrl || typeof o.transmitter === "string" && (o.config_digest instanceof Uint8Array || typeof o.config_digest === "string") && typeof o.feed_id === "string" && typeof o.epoch === "bigint" && typeof o.round === "bigint" && (o.extra_hash instanceof Uint8Array || typeof o.extra_hash === "string") && Array.isArray(o.signatures) && (!o.signatures.length || o.signatures[0] instanceof Uint8Array || typeof o.signatures[0] === "string"));
|
|
730
|
+
},
|
|
731
|
+
encode(message: MsgTransmit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
732
|
+
if (message.transmitter !== "") {
|
|
733
|
+
writer.uint32(10).string(message.transmitter);
|
|
734
|
+
}
|
|
735
|
+
if (message.configDigest.length !== 0) {
|
|
736
|
+
writer.uint32(18).bytes(message.configDigest);
|
|
737
|
+
}
|
|
738
|
+
if (message.feedId !== "") {
|
|
739
|
+
writer.uint32(26).string(message.feedId);
|
|
740
|
+
}
|
|
741
|
+
if (message.epoch !== BigInt(0)) {
|
|
742
|
+
writer.uint32(32).uint64(message.epoch);
|
|
743
|
+
}
|
|
744
|
+
if (message.round !== BigInt(0)) {
|
|
745
|
+
writer.uint32(40).uint64(message.round);
|
|
746
|
+
}
|
|
747
|
+
if (message.extraHash.length !== 0) {
|
|
748
|
+
writer.uint32(50).bytes(message.extraHash);
|
|
749
|
+
}
|
|
750
|
+
if (message.report !== undefined) {
|
|
751
|
+
Report.encode(message.report, writer.uint32(58).fork()).ldelim();
|
|
752
|
+
}
|
|
753
|
+
for (const v of message.signatures) {
|
|
754
|
+
writer.uint32(66).bytes(v!);
|
|
755
|
+
}
|
|
756
|
+
return writer;
|
|
757
|
+
},
|
|
758
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgTransmit {
|
|
759
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
760
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
761
|
+
const message = createBaseMsgTransmit();
|
|
762
|
+
while (reader.pos < end) {
|
|
763
|
+
const tag = reader.uint32();
|
|
764
|
+
switch (tag >>> 3) {
|
|
765
|
+
case 1:
|
|
766
|
+
message.transmitter = reader.string();
|
|
767
|
+
break;
|
|
768
|
+
case 2:
|
|
769
|
+
message.configDigest = reader.bytes();
|
|
770
|
+
break;
|
|
771
|
+
case 3:
|
|
772
|
+
message.feedId = reader.string();
|
|
773
|
+
break;
|
|
774
|
+
case 4:
|
|
775
|
+
message.epoch = reader.uint64();
|
|
776
|
+
break;
|
|
777
|
+
case 5:
|
|
778
|
+
message.round = reader.uint64();
|
|
779
|
+
break;
|
|
780
|
+
case 6:
|
|
781
|
+
message.extraHash = reader.bytes();
|
|
782
|
+
break;
|
|
783
|
+
case 7:
|
|
784
|
+
message.report = Report.decode(reader, reader.uint32());
|
|
785
|
+
break;
|
|
786
|
+
case 8:
|
|
787
|
+
message.signatures.push(reader.bytes());
|
|
788
|
+
break;
|
|
789
|
+
default:
|
|
790
|
+
reader.skipType(tag & 7);
|
|
791
|
+
break;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
return message;
|
|
795
|
+
},
|
|
796
|
+
fromPartial(object: DeepPartial<MsgTransmit>): MsgTransmit {
|
|
797
|
+
const message = createBaseMsgTransmit();
|
|
798
|
+
message.transmitter = object.transmitter ?? "";
|
|
799
|
+
message.configDigest = object.configDigest ?? new Uint8Array();
|
|
800
|
+
message.feedId = object.feedId ?? "";
|
|
801
|
+
message.epoch = object.epoch !== undefined && object.epoch !== null ? BigInt(object.epoch.toString()) : BigInt(0);
|
|
802
|
+
message.round = object.round !== undefined && object.round !== null ? BigInt(object.round.toString()) : BigInt(0);
|
|
803
|
+
message.extraHash = object.extraHash ?? new Uint8Array();
|
|
804
|
+
message.report = object.report !== undefined && object.report !== null ? Report.fromPartial(object.report) : undefined;
|
|
805
|
+
message.signatures = object.signatures?.map(e => e) || [];
|
|
806
|
+
return message;
|
|
807
|
+
},
|
|
808
|
+
fromAmino(object: MsgTransmitAmino): MsgTransmit {
|
|
809
|
+
const message = createBaseMsgTransmit();
|
|
810
|
+
if (object.transmitter !== undefined && object.transmitter !== null) {
|
|
811
|
+
message.transmitter = object.transmitter;
|
|
812
|
+
}
|
|
813
|
+
if (object.config_digest !== undefined && object.config_digest !== null) {
|
|
814
|
+
message.configDigest = bytesFromBase64(object.config_digest);
|
|
815
|
+
}
|
|
816
|
+
if (object.feed_id !== undefined && object.feed_id !== null) {
|
|
817
|
+
message.feedId = object.feed_id;
|
|
818
|
+
}
|
|
819
|
+
if (object.epoch !== undefined && object.epoch !== null) {
|
|
820
|
+
message.epoch = BigInt(object.epoch);
|
|
821
|
+
}
|
|
822
|
+
if (object.round !== undefined && object.round !== null) {
|
|
823
|
+
message.round = BigInt(object.round);
|
|
824
|
+
}
|
|
825
|
+
if (object.extra_hash !== undefined && object.extra_hash !== null) {
|
|
826
|
+
message.extraHash = bytesFromBase64(object.extra_hash);
|
|
827
|
+
}
|
|
828
|
+
if (object.report !== undefined && object.report !== null) {
|
|
829
|
+
message.report = Report.fromAmino(object.report);
|
|
830
|
+
}
|
|
831
|
+
message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || [];
|
|
832
|
+
return message;
|
|
833
|
+
},
|
|
834
|
+
toAmino(message: MsgTransmit): MsgTransmitAmino {
|
|
835
|
+
const obj: any = {};
|
|
836
|
+
obj.transmitter = message.transmitter === "" ? undefined : message.transmitter;
|
|
837
|
+
obj.config_digest = message.configDigest ? base64FromBytes(message.configDigest) : undefined;
|
|
838
|
+
obj.feed_id = message.feedId === "" ? undefined : message.feedId;
|
|
839
|
+
obj.epoch = message.epoch !== BigInt(0) ? message.epoch?.toString() : undefined;
|
|
840
|
+
obj.round = message.round !== BigInt(0) ? message.round?.toString() : undefined;
|
|
841
|
+
obj.extra_hash = message.extraHash ? base64FromBytes(message.extraHash) : undefined;
|
|
842
|
+
obj.report = message.report ? Report.toAmino(message.report) : undefined;
|
|
843
|
+
if (message.signatures) {
|
|
844
|
+
obj.signatures = message.signatures.map(e => base64FromBytes(e));
|
|
845
|
+
} else {
|
|
846
|
+
obj.signatures = message.signatures;
|
|
847
|
+
}
|
|
848
|
+
return obj;
|
|
849
|
+
},
|
|
850
|
+
fromAminoMsg(object: MsgTransmitAminoMsg): MsgTransmit {
|
|
851
|
+
return MsgTransmit.fromAmino(object.value);
|
|
852
|
+
},
|
|
853
|
+
toAminoMsg(message: MsgTransmit): MsgTransmitAminoMsg {
|
|
854
|
+
return {
|
|
855
|
+
type: "ocr/MsgTransmit",
|
|
856
|
+
value: MsgTransmit.toAmino(message)
|
|
857
|
+
};
|
|
858
|
+
},
|
|
859
|
+
fromProtoMsg(message: MsgTransmitProtoMsg): MsgTransmit {
|
|
860
|
+
return MsgTransmit.decode(message.value);
|
|
861
|
+
},
|
|
862
|
+
toProto(message: MsgTransmit): Uint8Array {
|
|
863
|
+
return MsgTransmit.encode(message).finish();
|
|
864
|
+
},
|
|
865
|
+
toProtoMsg(message: MsgTransmit): MsgTransmitProtoMsg {
|
|
866
|
+
return {
|
|
867
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransmit",
|
|
868
|
+
value: MsgTransmit.encode(message).finish()
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
GlobalDecoderRegistry.register(MsgTransmit.typeUrl, MsgTransmit);
|
|
873
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgTransmit.aminoType, MsgTransmit.typeUrl);
|
|
874
|
+
function createBaseMsgTransmitResponse(): MsgTransmitResponse {
|
|
875
|
+
return {};
|
|
876
|
+
}
|
|
877
|
+
export const MsgTransmitResponse = {
|
|
878
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransmitResponse",
|
|
879
|
+
is(o: any): o is MsgTransmitResponse {
|
|
880
|
+
return o && o.$typeUrl === MsgTransmitResponse.typeUrl;
|
|
881
|
+
},
|
|
882
|
+
isAmino(o: any): o is MsgTransmitResponseAmino {
|
|
883
|
+
return o && o.$typeUrl === MsgTransmitResponse.typeUrl;
|
|
884
|
+
},
|
|
885
|
+
encode(_: MsgTransmitResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
886
|
+
return writer;
|
|
887
|
+
},
|
|
888
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgTransmitResponse {
|
|
889
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
890
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
891
|
+
const message = createBaseMsgTransmitResponse();
|
|
892
|
+
while (reader.pos < end) {
|
|
893
|
+
const tag = reader.uint32();
|
|
894
|
+
switch (tag >>> 3) {
|
|
895
|
+
default:
|
|
896
|
+
reader.skipType(tag & 7);
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
return message;
|
|
901
|
+
},
|
|
902
|
+
fromPartial(_: DeepPartial<MsgTransmitResponse>): MsgTransmitResponse {
|
|
903
|
+
const message = createBaseMsgTransmitResponse();
|
|
904
|
+
return message;
|
|
905
|
+
},
|
|
906
|
+
fromAmino(_: MsgTransmitResponseAmino): MsgTransmitResponse {
|
|
907
|
+
const message = createBaseMsgTransmitResponse();
|
|
908
|
+
return message;
|
|
909
|
+
},
|
|
910
|
+
toAmino(_: MsgTransmitResponse): MsgTransmitResponseAmino {
|
|
911
|
+
const obj: any = {};
|
|
912
|
+
return obj;
|
|
913
|
+
},
|
|
914
|
+
fromAminoMsg(object: MsgTransmitResponseAminoMsg): MsgTransmitResponse {
|
|
915
|
+
return MsgTransmitResponse.fromAmino(object.value);
|
|
916
|
+
},
|
|
917
|
+
fromProtoMsg(message: MsgTransmitResponseProtoMsg): MsgTransmitResponse {
|
|
918
|
+
return MsgTransmitResponse.decode(message.value);
|
|
919
|
+
},
|
|
920
|
+
toProto(message: MsgTransmitResponse): Uint8Array {
|
|
921
|
+
return MsgTransmitResponse.encode(message).finish();
|
|
922
|
+
},
|
|
923
|
+
toProtoMsg(message: MsgTransmitResponse): MsgTransmitResponseProtoMsg {
|
|
924
|
+
return {
|
|
925
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransmitResponse",
|
|
926
|
+
value: MsgTransmitResponse.encode(message).finish()
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
};
|
|
930
|
+
GlobalDecoderRegistry.register(MsgTransmitResponse.typeUrl, MsgTransmitResponse);
|
|
931
|
+
function createBaseMsgFundFeedRewardPool(): MsgFundFeedRewardPool {
|
|
932
|
+
return {
|
|
933
|
+
sender: "",
|
|
934
|
+
feedId: "",
|
|
935
|
+
amount: Coin.fromPartial({})
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
export const MsgFundFeedRewardPool = {
|
|
939
|
+
typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPool",
|
|
940
|
+
aminoType: "ocr/MsgFundFeedRewardPool",
|
|
941
|
+
is(o: any): o is MsgFundFeedRewardPool {
|
|
942
|
+
return o && (o.$typeUrl === MsgFundFeedRewardPool.typeUrl || typeof o.sender === "string" && typeof o.feedId === "string" && Coin.is(o.amount));
|
|
943
|
+
},
|
|
944
|
+
isAmino(o: any): o is MsgFundFeedRewardPoolAmino {
|
|
945
|
+
return o && (o.$typeUrl === MsgFundFeedRewardPool.typeUrl || typeof o.sender === "string" && typeof o.feed_id === "string" && Coin.isAmino(o.amount));
|
|
946
|
+
},
|
|
947
|
+
encode(message: MsgFundFeedRewardPool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
948
|
+
if (message.sender !== "") {
|
|
949
|
+
writer.uint32(10).string(message.sender);
|
|
950
|
+
}
|
|
951
|
+
if (message.feedId !== "") {
|
|
952
|
+
writer.uint32(18).string(message.feedId);
|
|
953
|
+
}
|
|
954
|
+
if (message.amount !== undefined) {
|
|
955
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
956
|
+
}
|
|
957
|
+
return writer;
|
|
958
|
+
},
|
|
959
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundFeedRewardPool {
|
|
960
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
961
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
962
|
+
const message = createBaseMsgFundFeedRewardPool();
|
|
963
|
+
while (reader.pos < end) {
|
|
964
|
+
const tag = reader.uint32();
|
|
965
|
+
switch (tag >>> 3) {
|
|
966
|
+
case 1:
|
|
967
|
+
message.sender = reader.string();
|
|
968
|
+
break;
|
|
969
|
+
case 2:
|
|
970
|
+
message.feedId = reader.string();
|
|
971
|
+
break;
|
|
972
|
+
case 3:
|
|
973
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
974
|
+
break;
|
|
975
|
+
default:
|
|
976
|
+
reader.skipType(tag & 7);
|
|
977
|
+
break;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
return message;
|
|
981
|
+
},
|
|
982
|
+
fromPartial(object: DeepPartial<MsgFundFeedRewardPool>): MsgFundFeedRewardPool {
|
|
983
|
+
const message = createBaseMsgFundFeedRewardPool();
|
|
984
|
+
message.sender = object.sender ?? "";
|
|
985
|
+
message.feedId = object.feedId ?? "";
|
|
986
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
987
|
+
return message;
|
|
988
|
+
},
|
|
989
|
+
fromAmino(object: MsgFundFeedRewardPoolAmino): MsgFundFeedRewardPool {
|
|
990
|
+
const message = createBaseMsgFundFeedRewardPool();
|
|
991
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
992
|
+
message.sender = object.sender;
|
|
993
|
+
}
|
|
994
|
+
if (object.feed_id !== undefined && object.feed_id !== null) {
|
|
995
|
+
message.feedId = object.feed_id;
|
|
996
|
+
}
|
|
997
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
998
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
999
|
+
}
|
|
1000
|
+
return message;
|
|
1001
|
+
},
|
|
1002
|
+
toAmino(message: MsgFundFeedRewardPool): MsgFundFeedRewardPoolAmino {
|
|
1003
|
+
const obj: any = {};
|
|
1004
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1005
|
+
obj.feed_id = message.feedId === "" ? undefined : message.feedId;
|
|
1006
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined;
|
|
1007
|
+
return obj;
|
|
1008
|
+
},
|
|
1009
|
+
fromAminoMsg(object: MsgFundFeedRewardPoolAminoMsg): MsgFundFeedRewardPool {
|
|
1010
|
+
return MsgFundFeedRewardPool.fromAmino(object.value);
|
|
1011
|
+
},
|
|
1012
|
+
toAminoMsg(message: MsgFundFeedRewardPool): MsgFundFeedRewardPoolAminoMsg {
|
|
1013
|
+
return {
|
|
1014
|
+
type: "ocr/MsgFundFeedRewardPool",
|
|
1015
|
+
value: MsgFundFeedRewardPool.toAmino(message)
|
|
1016
|
+
};
|
|
1017
|
+
},
|
|
1018
|
+
fromProtoMsg(message: MsgFundFeedRewardPoolProtoMsg): MsgFundFeedRewardPool {
|
|
1019
|
+
return MsgFundFeedRewardPool.decode(message.value);
|
|
1020
|
+
},
|
|
1021
|
+
toProto(message: MsgFundFeedRewardPool): Uint8Array {
|
|
1022
|
+
return MsgFundFeedRewardPool.encode(message).finish();
|
|
1023
|
+
},
|
|
1024
|
+
toProtoMsg(message: MsgFundFeedRewardPool): MsgFundFeedRewardPoolProtoMsg {
|
|
1025
|
+
return {
|
|
1026
|
+
typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPool",
|
|
1027
|
+
value: MsgFundFeedRewardPool.encode(message).finish()
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
GlobalDecoderRegistry.register(MsgFundFeedRewardPool.typeUrl, MsgFundFeedRewardPool);
|
|
1032
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgFundFeedRewardPool.aminoType, MsgFundFeedRewardPool.typeUrl);
|
|
1033
|
+
function createBaseMsgFundFeedRewardPoolResponse(): MsgFundFeedRewardPoolResponse {
|
|
1034
|
+
return {};
|
|
1035
|
+
}
|
|
1036
|
+
export const MsgFundFeedRewardPoolResponse = {
|
|
1037
|
+
typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPoolResponse",
|
|
1038
|
+
is(o: any): o is MsgFundFeedRewardPoolResponse {
|
|
1039
|
+
return o && o.$typeUrl === MsgFundFeedRewardPoolResponse.typeUrl;
|
|
1040
|
+
},
|
|
1041
|
+
isAmino(o: any): o is MsgFundFeedRewardPoolResponseAmino {
|
|
1042
|
+
return o && o.$typeUrl === MsgFundFeedRewardPoolResponse.typeUrl;
|
|
1043
|
+
},
|
|
1044
|
+
encode(_: MsgFundFeedRewardPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1045
|
+
return writer;
|
|
1046
|
+
},
|
|
1047
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundFeedRewardPoolResponse {
|
|
1048
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1049
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1050
|
+
const message = createBaseMsgFundFeedRewardPoolResponse();
|
|
1051
|
+
while (reader.pos < end) {
|
|
1052
|
+
const tag = reader.uint32();
|
|
1053
|
+
switch (tag >>> 3) {
|
|
1054
|
+
default:
|
|
1055
|
+
reader.skipType(tag & 7);
|
|
1056
|
+
break;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
return message;
|
|
1060
|
+
},
|
|
1061
|
+
fromPartial(_: DeepPartial<MsgFundFeedRewardPoolResponse>): MsgFundFeedRewardPoolResponse {
|
|
1062
|
+
const message = createBaseMsgFundFeedRewardPoolResponse();
|
|
1063
|
+
return message;
|
|
1064
|
+
},
|
|
1065
|
+
fromAmino(_: MsgFundFeedRewardPoolResponseAmino): MsgFundFeedRewardPoolResponse {
|
|
1066
|
+
const message = createBaseMsgFundFeedRewardPoolResponse();
|
|
1067
|
+
return message;
|
|
1068
|
+
},
|
|
1069
|
+
toAmino(_: MsgFundFeedRewardPoolResponse): MsgFundFeedRewardPoolResponseAmino {
|
|
1070
|
+
const obj: any = {};
|
|
1071
|
+
return obj;
|
|
1072
|
+
},
|
|
1073
|
+
fromAminoMsg(object: MsgFundFeedRewardPoolResponseAminoMsg): MsgFundFeedRewardPoolResponse {
|
|
1074
|
+
return MsgFundFeedRewardPoolResponse.fromAmino(object.value);
|
|
1075
|
+
},
|
|
1076
|
+
fromProtoMsg(message: MsgFundFeedRewardPoolResponseProtoMsg): MsgFundFeedRewardPoolResponse {
|
|
1077
|
+
return MsgFundFeedRewardPoolResponse.decode(message.value);
|
|
1078
|
+
},
|
|
1079
|
+
toProto(message: MsgFundFeedRewardPoolResponse): Uint8Array {
|
|
1080
|
+
return MsgFundFeedRewardPoolResponse.encode(message).finish();
|
|
1081
|
+
},
|
|
1082
|
+
toProtoMsg(message: MsgFundFeedRewardPoolResponse): MsgFundFeedRewardPoolResponseProtoMsg {
|
|
1083
|
+
return {
|
|
1084
|
+
typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPoolResponse",
|
|
1085
|
+
value: MsgFundFeedRewardPoolResponse.encode(message).finish()
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
GlobalDecoderRegistry.register(MsgFundFeedRewardPoolResponse.typeUrl, MsgFundFeedRewardPoolResponse);
|
|
1090
|
+
function createBaseMsgWithdrawFeedRewardPool(): MsgWithdrawFeedRewardPool {
|
|
1091
|
+
return {
|
|
1092
|
+
sender: "",
|
|
1093
|
+
feedId: "",
|
|
1094
|
+
amount: Coin.fromPartial({})
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
export const MsgWithdrawFeedRewardPool = {
|
|
1098
|
+
typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPool",
|
|
1099
|
+
aminoType: "ocr/MsgWithdrawFeedRewardPool",
|
|
1100
|
+
is(o: any): o is MsgWithdrawFeedRewardPool {
|
|
1101
|
+
return o && (o.$typeUrl === MsgWithdrawFeedRewardPool.typeUrl || typeof o.sender === "string" && typeof o.feedId === "string" && Coin.is(o.amount));
|
|
1102
|
+
},
|
|
1103
|
+
isAmino(o: any): o is MsgWithdrawFeedRewardPoolAmino {
|
|
1104
|
+
return o && (o.$typeUrl === MsgWithdrawFeedRewardPool.typeUrl || typeof o.sender === "string" && typeof o.feed_id === "string" && Coin.isAmino(o.amount));
|
|
1105
|
+
},
|
|
1106
|
+
encode(message: MsgWithdrawFeedRewardPool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1107
|
+
if (message.sender !== "") {
|
|
1108
|
+
writer.uint32(10).string(message.sender);
|
|
1109
|
+
}
|
|
1110
|
+
if (message.feedId !== "") {
|
|
1111
|
+
writer.uint32(18).string(message.feedId);
|
|
1112
|
+
}
|
|
1113
|
+
if (message.amount !== undefined) {
|
|
1114
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
1115
|
+
}
|
|
1116
|
+
return writer;
|
|
1117
|
+
},
|
|
1118
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawFeedRewardPool {
|
|
1119
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1120
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1121
|
+
const message = createBaseMsgWithdrawFeedRewardPool();
|
|
1122
|
+
while (reader.pos < end) {
|
|
1123
|
+
const tag = reader.uint32();
|
|
1124
|
+
switch (tag >>> 3) {
|
|
1125
|
+
case 1:
|
|
1126
|
+
message.sender = reader.string();
|
|
1127
|
+
break;
|
|
1128
|
+
case 2:
|
|
1129
|
+
message.feedId = reader.string();
|
|
1130
|
+
break;
|
|
1131
|
+
case 3:
|
|
1132
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1133
|
+
break;
|
|
1134
|
+
default:
|
|
1135
|
+
reader.skipType(tag & 7);
|
|
1136
|
+
break;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
return message;
|
|
1140
|
+
},
|
|
1141
|
+
fromPartial(object: DeepPartial<MsgWithdrawFeedRewardPool>): MsgWithdrawFeedRewardPool {
|
|
1142
|
+
const message = createBaseMsgWithdrawFeedRewardPool();
|
|
1143
|
+
message.sender = object.sender ?? "";
|
|
1144
|
+
message.feedId = object.feedId ?? "";
|
|
1145
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1146
|
+
return message;
|
|
1147
|
+
},
|
|
1148
|
+
fromAmino(object: MsgWithdrawFeedRewardPoolAmino): MsgWithdrawFeedRewardPool {
|
|
1149
|
+
const message = createBaseMsgWithdrawFeedRewardPool();
|
|
1150
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
1151
|
+
message.sender = object.sender;
|
|
1152
|
+
}
|
|
1153
|
+
if (object.feed_id !== undefined && object.feed_id !== null) {
|
|
1154
|
+
message.feedId = object.feed_id;
|
|
1155
|
+
}
|
|
1156
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1157
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1158
|
+
}
|
|
1159
|
+
return message;
|
|
1160
|
+
},
|
|
1161
|
+
toAmino(message: MsgWithdrawFeedRewardPool): MsgWithdrawFeedRewardPoolAmino {
|
|
1162
|
+
const obj: any = {};
|
|
1163
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1164
|
+
obj.feed_id = message.feedId === "" ? undefined : message.feedId;
|
|
1165
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined;
|
|
1166
|
+
return obj;
|
|
1167
|
+
},
|
|
1168
|
+
fromAminoMsg(object: MsgWithdrawFeedRewardPoolAminoMsg): MsgWithdrawFeedRewardPool {
|
|
1169
|
+
return MsgWithdrawFeedRewardPool.fromAmino(object.value);
|
|
1170
|
+
},
|
|
1171
|
+
toAminoMsg(message: MsgWithdrawFeedRewardPool): MsgWithdrawFeedRewardPoolAminoMsg {
|
|
1172
|
+
return {
|
|
1173
|
+
type: "ocr/MsgWithdrawFeedRewardPool",
|
|
1174
|
+
value: MsgWithdrawFeedRewardPool.toAmino(message)
|
|
1175
|
+
};
|
|
1176
|
+
},
|
|
1177
|
+
fromProtoMsg(message: MsgWithdrawFeedRewardPoolProtoMsg): MsgWithdrawFeedRewardPool {
|
|
1178
|
+
return MsgWithdrawFeedRewardPool.decode(message.value);
|
|
1179
|
+
},
|
|
1180
|
+
toProto(message: MsgWithdrawFeedRewardPool): Uint8Array {
|
|
1181
|
+
return MsgWithdrawFeedRewardPool.encode(message).finish();
|
|
1182
|
+
},
|
|
1183
|
+
toProtoMsg(message: MsgWithdrawFeedRewardPool): MsgWithdrawFeedRewardPoolProtoMsg {
|
|
1184
|
+
return {
|
|
1185
|
+
typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPool",
|
|
1186
|
+
value: MsgWithdrawFeedRewardPool.encode(message).finish()
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
GlobalDecoderRegistry.register(MsgWithdrawFeedRewardPool.typeUrl, MsgWithdrawFeedRewardPool);
|
|
1191
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgWithdrawFeedRewardPool.aminoType, MsgWithdrawFeedRewardPool.typeUrl);
|
|
1192
|
+
function createBaseMsgWithdrawFeedRewardPoolResponse(): MsgWithdrawFeedRewardPoolResponse {
|
|
1193
|
+
return {};
|
|
1194
|
+
}
|
|
1195
|
+
export const MsgWithdrawFeedRewardPoolResponse = {
|
|
1196
|
+
typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPoolResponse",
|
|
1197
|
+
is(o: any): o is MsgWithdrawFeedRewardPoolResponse {
|
|
1198
|
+
return o && o.$typeUrl === MsgWithdrawFeedRewardPoolResponse.typeUrl;
|
|
1199
|
+
},
|
|
1200
|
+
isAmino(o: any): o is MsgWithdrawFeedRewardPoolResponseAmino {
|
|
1201
|
+
return o && o.$typeUrl === MsgWithdrawFeedRewardPoolResponse.typeUrl;
|
|
1202
|
+
},
|
|
1203
|
+
encode(_: MsgWithdrawFeedRewardPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1204
|
+
return writer;
|
|
1205
|
+
},
|
|
1206
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawFeedRewardPoolResponse {
|
|
1207
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1208
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1209
|
+
const message = createBaseMsgWithdrawFeedRewardPoolResponse();
|
|
1210
|
+
while (reader.pos < end) {
|
|
1211
|
+
const tag = reader.uint32();
|
|
1212
|
+
switch (tag >>> 3) {
|
|
1213
|
+
default:
|
|
1214
|
+
reader.skipType(tag & 7);
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
return message;
|
|
1219
|
+
},
|
|
1220
|
+
fromPartial(_: DeepPartial<MsgWithdrawFeedRewardPoolResponse>): MsgWithdrawFeedRewardPoolResponse {
|
|
1221
|
+
const message = createBaseMsgWithdrawFeedRewardPoolResponse();
|
|
1222
|
+
return message;
|
|
1223
|
+
},
|
|
1224
|
+
fromAmino(_: MsgWithdrawFeedRewardPoolResponseAmino): MsgWithdrawFeedRewardPoolResponse {
|
|
1225
|
+
const message = createBaseMsgWithdrawFeedRewardPoolResponse();
|
|
1226
|
+
return message;
|
|
1227
|
+
},
|
|
1228
|
+
toAmino(_: MsgWithdrawFeedRewardPoolResponse): MsgWithdrawFeedRewardPoolResponseAmino {
|
|
1229
|
+
const obj: any = {};
|
|
1230
|
+
return obj;
|
|
1231
|
+
},
|
|
1232
|
+
fromAminoMsg(object: MsgWithdrawFeedRewardPoolResponseAminoMsg): MsgWithdrawFeedRewardPoolResponse {
|
|
1233
|
+
return MsgWithdrawFeedRewardPoolResponse.fromAmino(object.value);
|
|
1234
|
+
},
|
|
1235
|
+
fromProtoMsg(message: MsgWithdrawFeedRewardPoolResponseProtoMsg): MsgWithdrawFeedRewardPoolResponse {
|
|
1236
|
+
return MsgWithdrawFeedRewardPoolResponse.decode(message.value);
|
|
1237
|
+
},
|
|
1238
|
+
toProto(message: MsgWithdrawFeedRewardPoolResponse): Uint8Array {
|
|
1239
|
+
return MsgWithdrawFeedRewardPoolResponse.encode(message).finish();
|
|
1240
|
+
},
|
|
1241
|
+
toProtoMsg(message: MsgWithdrawFeedRewardPoolResponse): MsgWithdrawFeedRewardPoolResponseProtoMsg {
|
|
1242
|
+
return {
|
|
1243
|
+
typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPoolResponse",
|
|
1244
|
+
value: MsgWithdrawFeedRewardPoolResponse.encode(message).finish()
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
GlobalDecoderRegistry.register(MsgWithdrawFeedRewardPoolResponse.typeUrl, MsgWithdrawFeedRewardPoolResponse);
|
|
1249
|
+
function createBaseMsgSetPayees(): MsgSetPayees {
|
|
1250
|
+
return {
|
|
1251
|
+
sender: "",
|
|
1252
|
+
feedId: "",
|
|
1253
|
+
transmitters: [],
|
|
1254
|
+
payees: []
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
export const MsgSetPayees = {
|
|
1258
|
+
typeUrl: "/injective.ocr.v1beta1.MsgSetPayees",
|
|
1259
|
+
aminoType: "ocr/MsgSetPayees",
|
|
1260
|
+
is(o: any): o is MsgSetPayees {
|
|
1261
|
+
return o && (o.$typeUrl === MsgSetPayees.typeUrl || typeof o.sender === "string" && typeof o.feedId === "string" && Array.isArray(o.transmitters) && (!o.transmitters.length || typeof o.transmitters[0] === "string") && Array.isArray(o.payees) && (!o.payees.length || typeof o.payees[0] === "string"));
|
|
1262
|
+
},
|
|
1263
|
+
isAmino(o: any): o is MsgSetPayeesAmino {
|
|
1264
|
+
return o && (o.$typeUrl === MsgSetPayees.typeUrl || typeof o.sender === "string" && typeof o.feed_id === "string" && Array.isArray(o.transmitters) && (!o.transmitters.length || typeof o.transmitters[0] === "string") && Array.isArray(o.payees) && (!o.payees.length || typeof o.payees[0] === "string"));
|
|
1265
|
+
},
|
|
1266
|
+
encode(message: MsgSetPayees, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1267
|
+
if (message.sender !== "") {
|
|
1268
|
+
writer.uint32(10).string(message.sender);
|
|
1269
|
+
}
|
|
1270
|
+
if (message.feedId !== "") {
|
|
1271
|
+
writer.uint32(18).string(message.feedId);
|
|
1272
|
+
}
|
|
1273
|
+
for (const v of message.transmitters) {
|
|
1274
|
+
writer.uint32(26).string(v!);
|
|
1275
|
+
}
|
|
1276
|
+
for (const v of message.payees) {
|
|
1277
|
+
writer.uint32(34).string(v!);
|
|
1278
|
+
}
|
|
1279
|
+
return writer;
|
|
1280
|
+
},
|
|
1281
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetPayees {
|
|
1282
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1283
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1284
|
+
const message = createBaseMsgSetPayees();
|
|
1285
|
+
while (reader.pos < end) {
|
|
1286
|
+
const tag = reader.uint32();
|
|
1287
|
+
switch (tag >>> 3) {
|
|
1288
|
+
case 1:
|
|
1289
|
+
message.sender = reader.string();
|
|
1290
|
+
break;
|
|
1291
|
+
case 2:
|
|
1292
|
+
message.feedId = reader.string();
|
|
1293
|
+
break;
|
|
1294
|
+
case 3:
|
|
1295
|
+
message.transmitters.push(reader.string());
|
|
1296
|
+
break;
|
|
1297
|
+
case 4:
|
|
1298
|
+
message.payees.push(reader.string());
|
|
1299
|
+
break;
|
|
1300
|
+
default:
|
|
1301
|
+
reader.skipType(tag & 7);
|
|
1302
|
+
break;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
return message;
|
|
1306
|
+
},
|
|
1307
|
+
fromPartial(object: DeepPartial<MsgSetPayees>): MsgSetPayees {
|
|
1308
|
+
const message = createBaseMsgSetPayees();
|
|
1309
|
+
message.sender = object.sender ?? "";
|
|
1310
|
+
message.feedId = object.feedId ?? "";
|
|
1311
|
+
message.transmitters = object.transmitters?.map(e => e) || [];
|
|
1312
|
+
message.payees = object.payees?.map(e => e) || [];
|
|
1313
|
+
return message;
|
|
1314
|
+
},
|
|
1315
|
+
fromAmino(object: MsgSetPayeesAmino): MsgSetPayees {
|
|
1316
|
+
const message = createBaseMsgSetPayees();
|
|
1317
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
1318
|
+
message.sender = object.sender;
|
|
1319
|
+
}
|
|
1320
|
+
if (object.feed_id !== undefined && object.feed_id !== null) {
|
|
1321
|
+
message.feedId = object.feed_id;
|
|
1322
|
+
}
|
|
1323
|
+
message.transmitters = object.transmitters?.map(e => e) || [];
|
|
1324
|
+
message.payees = object.payees?.map(e => e) || [];
|
|
1325
|
+
return message;
|
|
1326
|
+
},
|
|
1327
|
+
toAmino(message: MsgSetPayees): MsgSetPayeesAmino {
|
|
1328
|
+
const obj: any = {};
|
|
1329
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1330
|
+
obj.feed_id = message.feedId === "" ? undefined : message.feedId;
|
|
1331
|
+
if (message.transmitters) {
|
|
1332
|
+
obj.transmitters = message.transmitters.map(e => e);
|
|
1333
|
+
} else {
|
|
1334
|
+
obj.transmitters = message.transmitters;
|
|
1335
|
+
}
|
|
1336
|
+
if (message.payees) {
|
|
1337
|
+
obj.payees = message.payees.map(e => e);
|
|
1338
|
+
} else {
|
|
1339
|
+
obj.payees = message.payees;
|
|
1340
|
+
}
|
|
1341
|
+
return obj;
|
|
1342
|
+
},
|
|
1343
|
+
fromAminoMsg(object: MsgSetPayeesAminoMsg): MsgSetPayees {
|
|
1344
|
+
return MsgSetPayees.fromAmino(object.value);
|
|
1345
|
+
},
|
|
1346
|
+
toAminoMsg(message: MsgSetPayees): MsgSetPayeesAminoMsg {
|
|
1347
|
+
return {
|
|
1348
|
+
type: "ocr/MsgSetPayees",
|
|
1349
|
+
value: MsgSetPayees.toAmino(message)
|
|
1350
|
+
};
|
|
1351
|
+
},
|
|
1352
|
+
fromProtoMsg(message: MsgSetPayeesProtoMsg): MsgSetPayees {
|
|
1353
|
+
return MsgSetPayees.decode(message.value);
|
|
1354
|
+
},
|
|
1355
|
+
toProto(message: MsgSetPayees): Uint8Array {
|
|
1356
|
+
return MsgSetPayees.encode(message).finish();
|
|
1357
|
+
},
|
|
1358
|
+
toProtoMsg(message: MsgSetPayees): MsgSetPayeesProtoMsg {
|
|
1359
|
+
return {
|
|
1360
|
+
typeUrl: "/injective.ocr.v1beta1.MsgSetPayees",
|
|
1361
|
+
value: MsgSetPayees.encode(message).finish()
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
GlobalDecoderRegistry.register(MsgSetPayees.typeUrl, MsgSetPayees);
|
|
1366
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgSetPayees.aminoType, MsgSetPayees.typeUrl);
|
|
1367
|
+
function createBaseMsgSetPayeesResponse(): MsgSetPayeesResponse {
|
|
1368
|
+
return {};
|
|
1369
|
+
}
|
|
1370
|
+
export const MsgSetPayeesResponse = {
|
|
1371
|
+
typeUrl: "/injective.ocr.v1beta1.MsgSetPayeesResponse",
|
|
1372
|
+
is(o: any): o is MsgSetPayeesResponse {
|
|
1373
|
+
return o && o.$typeUrl === MsgSetPayeesResponse.typeUrl;
|
|
1374
|
+
},
|
|
1375
|
+
isAmino(o: any): o is MsgSetPayeesResponseAmino {
|
|
1376
|
+
return o && o.$typeUrl === MsgSetPayeesResponse.typeUrl;
|
|
1377
|
+
},
|
|
1378
|
+
encode(_: MsgSetPayeesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1379
|
+
return writer;
|
|
1380
|
+
},
|
|
1381
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetPayeesResponse {
|
|
1382
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1383
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1384
|
+
const message = createBaseMsgSetPayeesResponse();
|
|
1385
|
+
while (reader.pos < end) {
|
|
1386
|
+
const tag = reader.uint32();
|
|
1387
|
+
switch (tag >>> 3) {
|
|
1388
|
+
default:
|
|
1389
|
+
reader.skipType(tag & 7);
|
|
1390
|
+
break;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
return message;
|
|
1394
|
+
},
|
|
1395
|
+
fromPartial(_: DeepPartial<MsgSetPayeesResponse>): MsgSetPayeesResponse {
|
|
1396
|
+
const message = createBaseMsgSetPayeesResponse();
|
|
1397
|
+
return message;
|
|
1398
|
+
},
|
|
1399
|
+
fromAmino(_: MsgSetPayeesResponseAmino): MsgSetPayeesResponse {
|
|
1400
|
+
const message = createBaseMsgSetPayeesResponse();
|
|
1401
|
+
return message;
|
|
1402
|
+
},
|
|
1403
|
+
toAmino(_: MsgSetPayeesResponse): MsgSetPayeesResponseAmino {
|
|
1404
|
+
const obj: any = {};
|
|
1405
|
+
return obj;
|
|
1406
|
+
},
|
|
1407
|
+
fromAminoMsg(object: MsgSetPayeesResponseAminoMsg): MsgSetPayeesResponse {
|
|
1408
|
+
return MsgSetPayeesResponse.fromAmino(object.value);
|
|
1409
|
+
},
|
|
1410
|
+
fromProtoMsg(message: MsgSetPayeesResponseProtoMsg): MsgSetPayeesResponse {
|
|
1411
|
+
return MsgSetPayeesResponse.decode(message.value);
|
|
1412
|
+
},
|
|
1413
|
+
toProto(message: MsgSetPayeesResponse): Uint8Array {
|
|
1414
|
+
return MsgSetPayeesResponse.encode(message).finish();
|
|
1415
|
+
},
|
|
1416
|
+
toProtoMsg(message: MsgSetPayeesResponse): MsgSetPayeesResponseProtoMsg {
|
|
1417
|
+
return {
|
|
1418
|
+
typeUrl: "/injective.ocr.v1beta1.MsgSetPayeesResponse",
|
|
1419
|
+
value: MsgSetPayeesResponse.encode(message).finish()
|
|
1420
|
+
};
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
GlobalDecoderRegistry.register(MsgSetPayeesResponse.typeUrl, MsgSetPayeesResponse);
|
|
1424
|
+
function createBaseMsgTransferPayeeship(): MsgTransferPayeeship {
|
|
1425
|
+
return {
|
|
1426
|
+
sender: "",
|
|
1427
|
+
transmitter: "",
|
|
1428
|
+
feedId: "",
|
|
1429
|
+
proposed: ""
|
|
1430
|
+
};
|
|
1431
|
+
}
|
|
1432
|
+
export const MsgTransferPayeeship = {
|
|
1433
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeship",
|
|
1434
|
+
aminoType: "ocr/MsgTransferPayeeship",
|
|
1435
|
+
is(o: any): o is MsgTransferPayeeship {
|
|
1436
|
+
return o && (o.$typeUrl === MsgTransferPayeeship.typeUrl || typeof o.sender === "string" && typeof o.transmitter === "string" && typeof o.feedId === "string" && typeof o.proposed === "string");
|
|
1437
|
+
},
|
|
1438
|
+
isAmino(o: any): o is MsgTransferPayeeshipAmino {
|
|
1439
|
+
return o && (o.$typeUrl === MsgTransferPayeeship.typeUrl || typeof o.sender === "string" && typeof o.transmitter === "string" && typeof o.feed_id === "string" && typeof o.proposed === "string");
|
|
1440
|
+
},
|
|
1441
|
+
encode(message: MsgTransferPayeeship, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1442
|
+
if (message.sender !== "") {
|
|
1443
|
+
writer.uint32(10).string(message.sender);
|
|
1444
|
+
}
|
|
1445
|
+
if (message.transmitter !== "") {
|
|
1446
|
+
writer.uint32(18).string(message.transmitter);
|
|
1447
|
+
}
|
|
1448
|
+
if (message.feedId !== "") {
|
|
1449
|
+
writer.uint32(26).string(message.feedId);
|
|
1450
|
+
}
|
|
1451
|
+
if (message.proposed !== "") {
|
|
1452
|
+
writer.uint32(34).string(message.proposed);
|
|
1453
|
+
}
|
|
1454
|
+
return writer;
|
|
1455
|
+
},
|
|
1456
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferPayeeship {
|
|
1457
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1458
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1459
|
+
const message = createBaseMsgTransferPayeeship();
|
|
1460
|
+
while (reader.pos < end) {
|
|
1461
|
+
const tag = reader.uint32();
|
|
1462
|
+
switch (tag >>> 3) {
|
|
1463
|
+
case 1:
|
|
1464
|
+
message.sender = reader.string();
|
|
1465
|
+
break;
|
|
1466
|
+
case 2:
|
|
1467
|
+
message.transmitter = reader.string();
|
|
1468
|
+
break;
|
|
1469
|
+
case 3:
|
|
1470
|
+
message.feedId = reader.string();
|
|
1471
|
+
break;
|
|
1472
|
+
case 4:
|
|
1473
|
+
message.proposed = reader.string();
|
|
1474
|
+
break;
|
|
1475
|
+
default:
|
|
1476
|
+
reader.skipType(tag & 7);
|
|
1477
|
+
break;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
return message;
|
|
1481
|
+
},
|
|
1482
|
+
fromPartial(object: DeepPartial<MsgTransferPayeeship>): MsgTransferPayeeship {
|
|
1483
|
+
const message = createBaseMsgTransferPayeeship();
|
|
1484
|
+
message.sender = object.sender ?? "";
|
|
1485
|
+
message.transmitter = object.transmitter ?? "";
|
|
1486
|
+
message.feedId = object.feedId ?? "";
|
|
1487
|
+
message.proposed = object.proposed ?? "";
|
|
1488
|
+
return message;
|
|
1489
|
+
},
|
|
1490
|
+
fromAmino(object: MsgTransferPayeeshipAmino): MsgTransferPayeeship {
|
|
1491
|
+
const message = createBaseMsgTransferPayeeship();
|
|
1492
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
1493
|
+
message.sender = object.sender;
|
|
1494
|
+
}
|
|
1495
|
+
if (object.transmitter !== undefined && object.transmitter !== null) {
|
|
1496
|
+
message.transmitter = object.transmitter;
|
|
1497
|
+
}
|
|
1498
|
+
if (object.feed_id !== undefined && object.feed_id !== null) {
|
|
1499
|
+
message.feedId = object.feed_id;
|
|
1500
|
+
}
|
|
1501
|
+
if (object.proposed !== undefined && object.proposed !== null) {
|
|
1502
|
+
message.proposed = object.proposed;
|
|
1503
|
+
}
|
|
1504
|
+
return message;
|
|
1505
|
+
},
|
|
1506
|
+
toAmino(message: MsgTransferPayeeship): MsgTransferPayeeshipAmino {
|
|
1507
|
+
const obj: any = {};
|
|
1508
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1509
|
+
obj.transmitter = message.transmitter === "" ? undefined : message.transmitter;
|
|
1510
|
+
obj.feed_id = message.feedId === "" ? undefined : message.feedId;
|
|
1511
|
+
obj.proposed = message.proposed === "" ? undefined : message.proposed;
|
|
1512
|
+
return obj;
|
|
1513
|
+
},
|
|
1514
|
+
fromAminoMsg(object: MsgTransferPayeeshipAminoMsg): MsgTransferPayeeship {
|
|
1515
|
+
return MsgTransferPayeeship.fromAmino(object.value);
|
|
1516
|
+
},
|
|
1517
|
+
toAminoMsg(message: MsgTransferPayeeship): MsgTransferPayeeshipAminoMsg {
|
|
1518
|
+
return {
|
|
1519
|
+
type: "ocr/MsgTransferPayeeship",
|
|
1520
|
+
value: MsgTransferPayeeship.toAmino(message)
|
|
1521
|
+
};
|
|
1522
|
+
},
|
|
1523
|
+
fromProtoMsg(message: MsgTransferPayeeshipProtoMsg): MsgTransferPayeeship {
|
|
1524
|
+
return MsgTransferPayeeship.decode(message.value);
|
|
1525
|
+
},
|
|
1526
|
+
toProto(message: MsgTransferPayeeship): Uint8Array {
|
|
1527
|
+
return MsgTransferPayeeship.encode(message).finish();
|
|
1528
|
+
},
|
|
1529
|
+
toProtoMsg(message: MsgTransferPayeeship): MsgTransferPayeeshipProtoMsg {
|
|
1530
|
+
return {
|
|
1531
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeship",
|
|
1532
|
+
value: MsgTransferPayeeship.encode(message).finish()
|
|
1533
|
+
};
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
GlobalDecoderRegistry.register(MsgTransferPayeeship.typeUrl, MsgTransferPayeeship);
|
|
1537
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgTransferPayeeship.aminoType, MsgTransferPayeeship.typeUrl);
|
|
1538
|
+
function createBaseMsgTransferPayeeshipResponse(): MsgTransferPayeeshipResponse {
|
|
1539
|
+
return {};
|
|
1540
|
+
}
|
|
1541
|
+
export const MsgTransferPayeeshipResponse = {
|
|
1542
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeshipResponse",
|
|
1543
|
+
is(o: any): o is MsgTransferPayeeshipResponse {
|
|
1544
|
+
return o && o.$typeUrl === MsgTransferPayeeshipResponse.typeUrl;
|
|
1545
|
+
},
|
|
1546
|
+
isAmino(o: any): o is MsgTransferPayeeshipResponseAmino {
|
|
1547
|
+
return o && o.$typeUrl === MsgTransferPayeeshipResponse.typeUrl;
|
|
1548
|
+
},
|
|
1549
|
+
encode(_: MsgTransferPayeeshipResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1550
|
+
return writer;
|
|
1551
|
+
},
|
|
1552
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferPayeeshipResponse {
|
|
1553
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1554
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1555
|
+
const message = createBaseMsgTransferPayeeshipResponse();
|
|
1556
|
+
while (reader.pos < end) {
|
|
1557
|
+
const tag = reader.uint32();
|
|
1558
|
+
switch (tag >>> 3) {
|
|
1559
|
+
default:
|
|
1560
|
+
reader.skipType(tag & 7);
|
|
1561
|
+
break;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
return message;
|
|
1565
|
+
},
|
|
1566
|
+
fromPartial(_: DeepPartial<MsgTransferPayeeshipResponse>): MsgTransferPayeeshipResponse {
|
|
1567
|
+
const message = createBaseMsgTransferPayeeshipResponse();
|
|
1568
|
+
return message;
|
|
1569
|
+
},
|
|
1570
|
+
fromAmino(_: MsgTransferPayeeshipResponseAmino): MsgTransferPayeeshipResponse {
|
|
1571
|
+
const message = createBaseMsgTransferPayeeshipResponse();
|
|
1572
|
+
return message;
|
|
1573
|
+
},
|
|
1574
|
+
toAmino(_: MsgTransferPayeeshipResponse): MsgTransferPayeeshipResponseAmino {
|
|
1575
|
+
const obj: any = {};
|
|
1576
|
+
return obj;
|
|
1577
|
+
},
|
|
1578
|
+
fromAminoMsg(object: MsgTransferPayeeshipResponseAminoMsg): MsgTransferPayeeshipResponse {
|
|
1579
|
+
return MsgTransferPayeeshipResponse.fromAmino(object.value);
|
|
1580
|
+
},
|
|
1581
|
+
fromProtoMsg(message: MsgTransferPayeeshipResponseProtoMsg): MsgTransferPayeeshipResponse {
|
|
1582
|
+
return MsgTransferPayeeshipResponse.decode(message.value);
|
|
1583
|
+
},
|
|
1584
|
+
toProto(message: MsgTransferPayeeshipResponse): Uint8Array {
|
|
1585
|
+
return MsgTransferPayeeshipResponse.encode(message).finish();
|
|
1586
|
+
},
|
|
1587
|
+
toProtoMsg(message: MsgTransferPayeeshipResponse): MsgTransferPayeeshipResponseProtoMsg {
|
|
1588
|
+
return {
|
|
1589
|
+
typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeshipResponse",
|
|
1590
|
+
value: MsgTransferPayeeshipResponse.encode(message).finish()
|
|
1591
|
+
};
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
GlobalDecoderRegistry.register(MsgTransferPayeeshipResponse.typeUrl, MsgTransferPayeeshipResponse);
|
|
1595
|
+
function createBaseMsgAcceptPayeeship(): MsgAcceptPayeeship {
|
|
1596
|
+
return {
|
|
1597
|
+
payee: "",
|
|
1598
|
+
transmitter: "",
|
|
1599
|
+
feedId: ""
|
|
1600
|
+
};
|
|
1601
|
+
}
|
|
1602
|
+
export const MsgAcceptPayeeship = {
|
|
1603
|
+
typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeship",
|
|
1604
|
+
aminoType: "ocr/MsgAcceptPayeeship",
|
|
1605
|
+
is(o: any): o is MsgAcceptPayeeship {
|
|
1606
|
+
return o && (o.$typeUrl === MsgAcceptPayeeship.typeUrl || typeof o.payee === "string" && typeof o.transmitter === "string" && typeof o.feedId === "string");
|
|
1607
|
+
},
|
|
1608
|
+
isAmino(o: any): o is MsgAcceptPayeeshipAmino {
|
|
1609
|
+
return o && (o.$typeUrl === MsgAcceptPayeeship.typeUrl || typeof o.payee === "string" && typeof o.transmitter === "string" && typeof o.feed_id === "string");
|
|
1610
|
+
},
|
|
1611
|
+
encode(message: MsgAcceptPayeeship, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1612
|
+
if (message.payee !== "") {
|
|
1613
|
+
writer.uint32(10).string(message.payee);
|
|
1614
|
+
}
|
|
1615
|
+
if (message.transmitter !== "") {
|
|
1616
|
+
writer.uint32(18).string(message.transmitter);
|
|
1617
|
+
}
|
|
1618
|
+
if (message.feedId !== "") {
|
|
1619
|
+
writer.uint32(26).string(message.feedId);
|
|
1620
|
+
}
|
|
1621
|
+
return writer;
|
|
1622
|
+
},
|
|
1623
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgAcceptPayeeship {
|
|
1624
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1625
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1626
|
+
const message = createBaseMsgAcceptPayeeship();
|
|
1627
|
+
while (reader.pos < end) {
|
|
1628
|
+
const tag = reader.uint32();
|
|
1629
|
+
switch (tag >>> 3) {
|
|
1630
|
+
case 1:
|
|
1631
|
+
message.payee = reader.string();
|
|
1632
|
+
break;
|
|
1633
|
+
case 2:
|
|
1634
|
+
message.transmitter = reader.string();
|
|
1635
|
+
break;
|
|
1636
|
+
case 3:
|
|
1637
|
+
message.feedId = reader.string();
|
|
1638
|
+
break;
|
|
1639
|
+
default:
|
|
1640
|
+
reader.skipType(tag & 7);
|
|
1641
|
+
break;
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
return message;
|
|
1645
|
+
},
|
|
1646
|
+
fromPartial(object: DeepPartial<MsgAcceptPayeeship>): MsgAcceptPayeeship {
|
|
1647
|
+
const message = createBaseMsgAcceptPayeeship();
|
|
1648
|
+
message.payee = object.payee ?? "";
|
|
1649
|
+
message.transmitter = object.transmitter ?? "";
|
|
1650
|
+
message.feedId = object.feedId ?? "";
|
|
1651
|
+
return message;
|
|
1652
|
+
},
|
|
1653
|
+
fromAmino(object: MsgAcceptPayeeshipAmino): MsgAcceptPayeeship {
|
|
1654
|
+
const message = createBaseMsgAcceptPayeeship();
|
|
1655
|
+
if (object.payee !== undefined && object.payee !== null) {
|
|
1656
|
+
message.payee = object.payee;
|
|
1657
|
+
}
|
|
1658
|
+
if (object.transmitter !== undefined && object.transmitter !== null) {
|
|
1659
|
+
message.transmitter = object.transmitter;
|
|
1660
|
+
}
|
|
1661
|
+
if (object.feed_id !== undefined && object.feed_id !== null) {
|
|
1662
|
+
message.feedId = object.feed_id;
|
|
1663
|
+
}
|
|
1664
|
+
return message;
|
|
1665
|
+
},
|
|
1666
|
+
toAmino(message: MsgAcceptPayeeship): MsgAcceptPayeeshipAmino {
|
|
1667
|
+
const obj: any = {};
|
|
1668
|
+
obj.payee = message.payee === "" ? undefined : message.payee;
|
|
1669
|
+
obj.transmitter = message.transmitter === "" ? undefined : message.transmitter;
|
|
1670
|
+
obj.feed_id = message.feedId === "" ? undefined : message.feedId;
|
|
1671
|
+
return obj;
|
|
1672
|
+
},
|
|
1673
|
+
fromAminoMsg(object: MsgAcceptPayeeshipAminoMsg): MsgAcceptPayeeship {
|
|
1674
|
+
return MsgAcceptPayeeship.fromAmino(object.value);
|
|
1675
|
+
},
|
|
1676
|
+
toAminoMsg(message: MsgAcceptPayeeship): MsgAcceptPayeeshipAminoMsg {
|
|
1677
|
+
return {
|
|
1678
|
+
type: "ocr/MsgAcceptPayeeship",
|
|
1679
|
+
value: MsgAcceptPayeeship.toAmino(message)
|
|
1680
|
+
};
|
|
1681
|
+
},
|
|
1682
|
+
fromProtoMsg(message: MsgAcceptPayeeshipProtoMsg): MsgAcceptPayeeship {
|
|
1683
|
+
return MsgAcceptPayeeship.decode(message.value);
|
|
1684
|
+
},
|
|
1685
|
+
toProto(message: MsgAcceptPayeeship): Uint8Array {
|
|
1686
|
+
return MsgAcceptPayeeship.encode(message).finish();
|
|
1687
|
+
},
|
|
1688
|
+
toProtoMsg(message: MsgAcceptPayeeship): MsgAcceptPayeeshipProtoMsg {
|
|
1689
|
+
return {
|
|
1690
|
+
typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeship",
|
|
1691
|
+
value: MsgAcceptPayeeship.encode(message).finish()
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1695
|
+
GlobalDecoderRegistry.register(MsgAcceptPayeeship.typeUrl, MsgAcceptPayeeship);
|
|
1696
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgAcceptPayeeship.aminoType, MsgAcceptPayeeship.typeUrl);
|
|
1697
|
+
function createBaseMsgAcceptPayeeshipResponse(): MsgAcceptPayeeshipResponse {
|
|
1698
|
+
return {};
|
|
1699
|
+
}
|
|
1700
|
+
export const MsgAcceptPayeeshipResponse = {
|
|
1701
|
+
typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeshipResponse",
|
|
1702
|
+
is(o: any): o is MsgAcceptPayeeshipResponse {
|
|
1703
|
+
return o && o.$typeUrl === MsgAcceptPayeeshipResponse.typeUrl;
|
|
1704
|
+
},
|
|
1705
|
+
isAmino(o: any): o is MsgAcceptPayeeshipResponseAmino {
|
|
1706
|
+
return o && o.$typeUrl === MsgAcceptPayeeshipResponse.typeUrl;
|
|
1707
|
+
},
|
|
1708
|
+
encode(_: MsgAcceptPayeeshipResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1709
|
+
return writer;
|
|
1710
|
+
},
|
|
1711
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgAcceptPayeeshipResponse {
|
|
1712
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1713
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1714
|
+
const message = createBaseMsgAcceptPayeeshipResponse();
|
|
1715
|
+
while (reader.pos < end) {
|
|
1716
|
+
const tag = reader.uint32();
|
|
1717
|
+
switch (tag >>> 3) {
|
|
1718
|
+
default:
|
|
1719
|
+
reader.skipType(tag & 7);
|
|
1720
|
+
break;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
return message;
|
|
1724
|
+
},
|
|
1725
|
+
fromPartial(_: DeepPartial<MsgAcceptPayeeshipResponse>): MsgAcceptPayeeshipResponse {
|
|
1726
|
+
const message = createBaseMsgAcceptPayeeshipResponse();
|
|
1727
|
+
return message;
|
|
1728
|
+
},
|
|
1729
|
+
fromAmino(_: MsgAcceptPayeeshipResponseAmino): MsgAcceptPayeeshipResponse {
|
|
1730
|
+
const message = createBaseMsgAcceptPayeeshipResponse();
|
|
1731
|
+
return message;
|
|
1732
|
+
},
|
|
1733
|
+
toAmino(_: MsgAcceptPayeeshipResponse): MsgAcceptPayeeshipResponseAmino {
|
|
1734
|
+
const obj: any = {};
|
|
1735
|
+
return obj;
|
|
1736
|
+
},
|
|
1737
|
+
fromAminoMsg(object: MsgAcceptPayeeshipResponseAminoMsg): MsgAcceptPayeeshipResponse {
|
|
1738
|
+
return MsgAcceptPayeeshipResponse.fromAmino(object.value);
|
|
1739
|
+
},
|
|
1740
|
+
fromProtoMsg(message: MsgAcceptPayeeshipResponseProtoMsg): MsgAcceptPayeeshipResponse {
|
|
1741
|
+
return MsgAcceptPayeeshipResponse.decode(message.value);
|
|
1742
|
+
},
|
|
1743
|
+
toProto(message: MsgAcceptPayeeshipResponse): Uint8Array {
|
|
1744
|
+
return MsgAcceptPayeeshipResponse.encode(message).finish();
|
|
1745
|
+
},
|
|
1746
|
+
toProtoMsg(message: MsgAcceptPayeeshipResponse): MsgAcceptPayeeshipResponseProtoMsg {
|
|
1747
|
+
return {
|
|
1748
|
+
typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeshipResponse",
|
|
1749
|
+
value: MsgAcceptPayeeshipResponse.encode(message).finish()
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
};
|
|
1753
|
+
GlobalDecoderRegistry.register(MsgAcceptPayeeshipResponse.typeUrl, MsgAcceptPayeeshipResponse);
|
|
1754
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
1755
|
+
return {
|
|
1756
|
+
authority: "",
|
|
1757
|
+
params: Params.fromPartial({})
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
export const MsgUpdateParams = {
|
|
1761
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateParams",
|
|
1762
|
+
aminoType: "ocr/MsgUpdateParams",
|
|
1763
|
+
is(o: any): o is MsgUpdateParams {
|
|
1764
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
|
|
1765
|
+
},
|
|
1766
|
+
isAmino(o: any): o is MsgUpdateParamsAmino {
|
|
1767
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
|
|
1768
|
+
},
|
|
1769
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1770
|
+
if (message.authority !== "") {
|
|
1771
|
+
writer.uint32(10).string(message.authority);
|
|
1772
|
+
}
|
|
1773
|
+
if (message.params !== undefined) {
|
|
1774
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1775
|
+
}
|
|
1776
|
+
return writer;
|
|
1777
|
+
},
|
|
1778
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
1779
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1780
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1781
|
+
const message = createBaseMsgUpdateParams();
|
|
1782
|
+
while (reader.pos < end) {
|
|
1783
|
+
const tag = reader.uint32();
|
|
1784
|
+
switch (tag >>> 3) {
|
|
1785
|
+
case 1:
|
|
1786
|
+
message.authority = reader.string();
|
|
1787
|
+
break;
|
|
1788
|
+
case 2:
|
|
1789
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
1790
|
+
break;
|
|
1791
|
+
default:
|
|
1792
|
+
reader.skipType(tag & 7);
|
|
1793
|
+
break;
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
return message;
|
|
1797
|
+
},
|
|
1798
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
|
|
1799
|
+
const message = createBaseMsgUpdateParams();
|
|
1800
|
+
message.authority = object.authority ?? "";
|
|
1801
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1802
|
+
return message;
|
|
1803
|
+
},
|
|
1804
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
1805
|
+
const message = createBaseMsgUpdateParams();
|
|
1806
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1807
|
+
message.authority = object.authority;
|
|
1808
|
+
}
|
|
1809
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1810
|
+
message.params = Params.fromAmino(object.params);
|
|
1811
|
+
}
|
|
1812
|
+
return message;
|
|
1813
|
+
},
|
|
1814
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
1815
|
+
const obj: any = {};
|
|
1816
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1817
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
1818
|
+
return obj;
|
|
1819
|
+
},
|
|
1820
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
1821
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
1822
|
+
},
|
|
1823
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
1824
|
+
return {
|
|
1825
|
+
type: "ocr/MsgUpdateParams",
|
|
1826
|
+
value: MsgUpdateParams.toAmino(message)
|
|
1827
|
+
};
|
|
1828
|
+
},
|
|
1829
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
1830
|
+
return MsgUpdateParams.decode(message.value);
|
|
1831
|
+
},
|
|
1832
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
1833
|
+
return MsgUpdateParams.encode(message).finish();
|
|
1834
|
+
},
|
|
1835
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
1836
|
+
return {
|
|
1837
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateParams",
|
|
1838
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
1839
|
+
};
|
|
1840
|
+
}
|
|
1841
|
+
};
|
|
1842
|
+
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
1843
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
1844
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1845
|
+
return {};
|
|
1846
|
+
}
|
|
1847
|
+
export const MsgUpdateParamsResponse = {
|
|
1848
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateParamsResponse",
|
|
1849
|
+
is(o: any): o is MsgUpdateParamsResponse {
|
|
1850
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1851
|
+
},
|
|
1852
|
+
isAmino(o: any): o is MsgUpdateParamsResponseAmino {
|
|
1853
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1854
|
+
},
|
|
1855
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1856
|
+
return writer;
|
|
1857
|
+
},
|
|
1858
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1859
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1860
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1861
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1862
|
+
while (reader.pos < end) {
|
|
1863
|
+
const tag = reader.uint32();
|
|
1864
|
+
switch (tag >>> 3) {
|
|
1865
|
+
default:
|
|
1866
|
+
reader.skipType(tag & 7);
|
|
1867
|
+
break;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
return message;
|
|
1871
|
+
},
|
|
1872
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
1873
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1874
|
+
return message;
|
|
1875
|
+
},
|
|
1876
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
1877
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1878
|
+
return message;
|
|
1879
|
+
},
|
|
1880
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
1881
|
+
const obj: any = {};
|
|
1882
|
+
return obj;
|
|
1883
|
+
},
|
|
1884
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
1885
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
1886
|
+
},
|
|
1887
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
1888
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
1889
|
+
},
|
|
1890
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
1891
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
1892
|
+
},
|
|
1893
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
1894
|
+
return {
|
|
1895
|
+
typeUrl: "/injective.ocr.v1beta1.MsgUpdateParamsResponse",
|
|
1896
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
};
|
|
1900
|
+
GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
|