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,692 @@
|
|
|
1
|
+
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
export interface Params {
|
|
6
|
+
/** auction_period_duration defines the auction period duration */
|
|
7
|
+
auctionPeriod: bigint;
|
|
8
|
+
/** min_next_bid_increment_rate defines the minimum increment rate for new bids */
|
|
9
|
+
minNextBidIncrementRate: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ParamsProtoMsg {
|
|
12
|
+
typeUrl: "/injective.auction.v1beta1.Params";
|
|
13
|
+
value: Uint8Array;
|
|
14
|
+
}
|
|
15
|
+
export interface ParamsAmino {
|
|
16
|
+
/** auction_period_duration defines the auction period duration */
|
|
17
|
+
auction_period: string;
|
|
18
|
+
/** min_next_bid_increment_rate defines the minimum increment rate for new bids */
|
|
19
|
+
min_next_bid_increment_rate: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ParamsAminoMsg {
|
|
22
|
+
type: "auction/Params";
|
|
23
|
+
value: ParamsAmino;
|
|
24
|
+
}
|
|
25
|
+
export interface Bid {
|
|
26
|
+
bidder: string;
|
|
27
|
+
amount: string;
|
|
28
|
+
}
|
|
29
|
+
export interface BidProtoMsg {
|
|
30
|
+
typeUrl: "/injective.auction.v1beta1.Bid";
|
|
31
|
+
value: Uint8Array;
|
|
32
|
+
}
|
|
33
|
+
export interface BidAmino {
|
|
34
|
+
bidder: string;
|
|
35
|
+
amount: string;
|
|
36
|
+
}
|
|
37
|
+
export interface BidAminoMsg {
|
|
38
|
+
type: "/injective.auction.v1beta1.Bid";
|
|
39
|
+
value: BidAmino;
|
|
40
|
+
}
|
|
41
|
+
export interface LastAuctionResult {
|
|
42
|
+
/** winner describes the address of the winner */
|
|
43
|
+
winner: string;
|
|
44
|
+
/** amount describes the amount the winner get from the auction */
|
|
45
|
+
amount: string;
|
|
46
|
+
/** round defines the round number of auction */
|
|
47
|
+
round: bigint;
|
|
48
|
+
}
|
|
49
|
+
export interface LastAuctionResultProtoMsg {
|
|
50
|
+
typeUrl: "/injective.auction.v1beta1.LastAuctionResult";
|
|
51
|
+
value: Uint8Array;
|
|
52
|
+
}
|
|
53
|
+
export interface LastAuctionResultAmino {
|
|
54
|
+
/** winner describes the address of the winner */
|
|
55
|
+
winner: string;
|
|
56
|
+
/** amount describes the amount the winner get from the auction */
|
|
57
|
+
amount: string;
|
|
58
|
+
/** round defines the round number of auction */
|
|
59
|
+
round: string;
|
|
60
|
+
}
|
|
61
|
+
export interface LastAuctionResultAminoMsg {
|
|
62
|
+
type: "/injective.auction.v1beta1.LastAuctionResult";
|
|
63
|
+
value: LastAuctionResultAmino;
|
|
64
|
+
}
|
|
65
|
+
export interface EventBid {
|
|
66
|
+
/** bidder describes the address of bidder */
|
|
67
|
+
bidder: string;
|
|
68
|
+
/** amount describes the amount the bidder put on the auction */
|
|
69
|
+
amount: string;
|
|
70
|
+
/** round defines the round number of auction */
|
|
71
|
+
round: bigint;
|
|
72
|
+
}
|
|
73
|
+
export interface EventBidProtoMsg {
|
|
74
|
+
typeUrl: "/injective.auction.v1beta1.EventBid";
|
|
75
|
+
value: Uint8Array;
|
|
76
|
+
}
|
|
77
|
+
export interface EventBidAmino {
|
|
78
|
+
/** bidder describes the address of bidder */
|
|
79
|
+
bidder: string;
|
|
80
|
+
/** amount describes the amount the bidder put on the auction */
|
|
81
|
+
amount: string;
|
|
82
|
+
/** round defines the round number of auction */
|
|
83
|
+
round: string;
|
|
84
|
+
}
|
|
85
|
+
export interface EventBidAminoMsg {
|
|
86
|
+
type: "/injective.auction.v1beta1.EventBid";
|
|
87
|
+
value: EventBidAmino;
|
|
88
|
+
}
|
|
89
|
+
export interface EventAuctionResult {
|
|
90
|
+
/** winner describes the address of the winner */
|
|
91
|
+
winner: string;
|
|
92
|
+
/** amount describes the amount the winner get from the auction */
|
|
93
|
+
amount: string;
|
|
94
|
+
/** round defines the round number of auction */
|
|
95
|
+
round: bigint;
|
|
96
|
+
}
|
|
97
|
+
export interface EventAuctionResultProtoMsg {
|
|
98
|
+
typeUrl: "/injective.auction.v1beta1.EventAuctionResult";
|
|
99
|
+
value: Uint8Array;
|
|
100
|
+
}
|
|
101
|
+
export interface EventAuctionResultAmino {
|
|
102
|
+
/** winner describes the address of the winner */
|
|
103
|
+
winner: string;
|
|
104
|
+
/** amount describes the amount the winner get from the auction */
|
|
105
|
+
amount: string;
|
|
106
|
+
/** round defines the round number of auction */
|
|
107
|
+
round: string;
|
|
108
|
+
}
|
|
109
|
+
export interface EventAuctionResultAminoMsg {
|
|
110
|
+
type: "/injective.auction.v1beta1.EventAuctionResult";
|
|
111
|
+
value: EventAuctionResultAmino;
|
|
112
|
+
}
|
|
113
|
+
export interface EventAuctionStart {
|
|
114
|
+
/** round defines the round number of auction */
|
|
115
|
+
round: bigint;
|
|
116
|
+
/** ending_timestamp describes auction end time */
|
|
117
|
+
endingTimestamp: bigint;
|
|
118
|
+
/**
|
|
119
|
+
* new_basket describes auction module balance at the time of new auction
|
|
120
|
+
* start
|
|
121
|
+
*/
|
|
122
|
+
newBasket: Coin[];
|
|
123
|
+
}
|
|
124
|
+
export interface EventAuctionStartProtoMsg {
|
|
125
|
+
typeUrl: "/injective.auction.v1beta1.EventAuctionStart";
|
|
126
|
+
value: Uint8Array;
|
|
127
|
+
}
|
|
128
|
+
export interface EventAuctionStartAmino {
|
|
129
|
+
/** round defines the round number of auction */
|
|
130
|
+
round: string;
|
|
131
|
+
/** ending_timestamp describes auction end time */
|
|
132
|
+
ending_timestamp: string;
|
|
133
|
+
/**
|
|
134
|
+
* new_basket describes auction module balance at the time of new auction
|
|
135
|
+
* start
|
|
136
|
+
*/
|
|
137
|
+
new_basket: CoinAmino[];
|
|
138
|
+
}
|
|
139
|
+
export interface EventAuctionStartAminoMsg {
|
|
140
|
+
type: "/injective.auction.v1beta1.EventAuctionStart";
|
|
141
|
+
value: EventAuctionStartAmino;
|
|
142
|
+
}
|
|
143
|
+
function createBaseParams(): Params {
|
|
144
|
+
return {
|
|
145
|
+
auctionPeriod: BigInt(0),
|
|
146
|
+
minNextBidIncrementRate: ""
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export const Params = {
|
|
150
|
+
typeUrl: "/injective.auction.v1beta1.Params",
|
|
151
|
+
aminoType: "auction/Params",
|
|
152
|
+
is(o: any): o is Params {
|
|
153
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.auctionPeriod === "bigint" && typeof o.minNextBidIncrementRate === "string");
|
|
154
|
+
},
|
|
155
|
+
isAmino(o: any): o is ParamsAmino {
|
|
156
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.auction_period === "bigint" && typeof o.min_next_bid_increment_rate === "string");
|
|
157
|
+
},
|
|
158
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
159
|
+
if (message.auctionPeriod !== BigInt(0)) {
|
|
160
|
+
writer.uint32(8).int64(message.auctionPeriod);
|
|
161
|
+
}
|
|
162
|
+
if (message.minNextBidIncrementRate !== "") {
|
|
163
|
+
writer.uint32(18).string(message.minNextBidIncrementRate);
|
|
164
|
+
}
|
|
165
|
+
return writer;
|
|
166
|
+
},
|
|
167
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
168
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
169
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
170
|
+
const message = createBaseParams();
|
|
171
|
+
while (reader.pos < end) {
|
|
172
|
+
const tag = reader.uint32();
|
|
173
|
+
switch (tag >>> 3) {
|
|
174
|
+
case 1:
|
|
175
|
+
message.auctionPeriod = reader.int64();
|
|
176
|
+
break;
|
|
177
|
+
case 2:
|
|
178
|
+
message.minNextBidIncrementRate = reader.string();
|
|
179
|
+
break;
|
|
180
|
+
default:
|
|
181
|
+
reader.skipType(tag & 7);
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
188
|
+
const message = createBaseParams();
|
|
189
|
+
message.auctionPeriod = object.auctionPeriod !== undefined && object.auctionPeriod !== null ? BigInt(object.auctionPeriod.toString()) : BigInt(0);
|
|
190
|
+
message.minNextBidIncrementRate = object.minNextBidIncrementRate ?? "";
|
|
191
|
+
return message;
|
|
192
|
+
},
|
|
193
|
+
fromAmino(object: ParamsAmino): Params {
|
|
194
|
+
const message = createBaseParams();
|
|
195
|
+
if (object.auction_period !== undefined && object.auction_period !== null) {
|
|
196
|
+
message.auctionPeriod = BigInt(object.auction_period);
|
|
197
|
+
}
|
|
198
|
+
if (object.min_next_bid_increment_rate !== undefined && object.min_next_bid_increment_rate !== null) {
|
|
199
|
+
message.minNextBidIncrementRate = object.min_next_bid_increment_rate;
|
|
200
|
+
}
|
|
201
|
+
return message;
|
|
202
|
+
},
|
|
203
|
+
toAmino(message: Params): ParamsAmino {
|
|
204
|
+
const obj: any = {};
|
|
205
|
+
obj.auction_period = message.auctionPeriod !== BigInt(0) ? message.auctionPeriod?.toString() : undefined;
|
|
206
|
+
obj.min_next_bid_increment_rate = message.minNextBidIncrementRate === "" ? undefined : message.minNextBidIncrementRate;
|
|
207
|
+
return obj;
|
|
208
|
+
},
|
|
209
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
210
|
+
return Params.fromAmino(object.value);
|
|
211
|
+
},
|
|
212
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
213
|
+
return {
|
|
214
|
+
type: "auction/Params",
|
|
215
|
+
value: Params.toAmino(message)
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
219
|
+
return Params.decode(message.value);
|
|
220
|
+
},
|
|
221
|
+
toProto(message: Params): Uint8Array {
|
|
222
|
+
return Params.encode(message).finish();
|
|
223
|
+
},
|
|
224
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
225
|
+
return {
|
|
226
|
+
typeUrl: "/injective.auction.v1beta1.Params",
|
|
227
|
+
value: Params.encode(message).finish()
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
232
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
233
|
+
function createBaseBid(): Bid {
|
|
234
|
+
return {
|
|
235
|
+
bidder: "",
|
|
236
|
+
amount: ""
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
export const Bid = {
|
|
240
|
+
typeUrl: "/injective.auction.v1beta1.Bid",
|
|
241
|
+
is(o: any): o is Bid {
|
|
242
|
+
return o && (o.$typeUrl === Bid.typeUrl || typeof o.bidder === "string" && typeof o.amount === "string");
|
|
243
|
+
},
|
|
244
|
+
isAmino(o: any): o is BidAmino {
|
|
245
|
+
return o && (o.$typeUrl === Bid.typeUrl || typeof o.bidder === "string" && typeof o.amount === "string");
|
|
246
|
+
},
|
|
247
|
+
encode(message: Bid, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
248
|
+
if (message.bidder !== "") {
|
|
249
|
+
writer.uint32(10).string(message.bidder);
|
|
250
|
+
}
|
|
251
|
+
if (message.amount !== "") {
|
|
252
|
+
writer.uint32(18).string(message.amount);
|
|
253
|
+
}
|
|
254
|
+
return writer;
|
|
255
|
+
},
|
|
256
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Bid {
|
|
257
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
258
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
259
|
+
const message = createBaseBid();
|
|
260
|
+
while (reader.pos < end) {
|
|
261
|
+
const tag = reader.uint32();
|
|
262
|
+
switch (tag >>> 3) {
|
|
263
|
+
case 1:
|
|
264
|
+
message.bidder = reader.string();
|
|
265
|
+
break;
|
|
266
|
+
case 2:
|
|
267
|
+
message.amount = reader.string();
|
|
268
|
+
break;
|
|
269
|
+
default:
|
|
270
|
+
reader.skipType(tag & 7);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return message;
|
|
275
|
+
},
|
|
276
|
+
fromPartial(object: DeepPartial<Bid>): Bid {
|
|
277
|
+
const message = createBaseBid();
|
|
278
|
+
message.bidder = object.bidder ?? "";
|
|
279
|
+
message.amount = object.amount ?? "";
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromAmino(object: BidAmino): Bid {
|
|
283
|
+
const message = createBaseBid();
|
|
284
|
+
if (object.bidder !== undefined && object.bidder !== null) {
|
|
285
|
+
message.bidder = object.bidder;
|
|
286
|
+
}
|
|
287
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
288
|
+
message.amount = object.amount;
|
|
289
|
+
}
|
|
290
|
+
return message;
|
|
291
|
+
},
|
|
292
|
+
toAmino(message: Bid): BidAmino {
|
|
293
|
+
const obj: any = {};
|
|
294
|
+
obj.bidder = message.bidder ?? "";
|
|
295
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
296
|
+
return obj;
|
|
297
|
+
},
|
|
298
|
+
fromAminoMsg(object: BidAminoMsg): Bid {
|
|
299
|
+
return Bid.fromAmino(object.value);
|
|
300
|
+
},
|
|
301
|
+
fromProtoMsg(message: BidProtoMsg): Bid {
|
|
302
|
+
return Bid.decode(message.value);
|
|
303
|
+
},
|
|
304
|
+
toProto(message: Bid): Uint8Array {
|
|
305
|
+
return Bid.encode(message).finish();
|
|
306
|
+
},
|
|
307
|
+
toProtoMsg(message: Bid): BidProtoMsg {
|
|
308
|
+
return {
|
|
309
|
+
typeUrl: "/injective.auction.v1beta1.Bid",
|
|
310
|
+
value: Bid.encode(message).finish()
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
GlobalDecoderRegistry.register(Bid.typeUrl, Bid);
|
|
315
|
+
function createBaseLastAuctionResult(): LastAuctionResult {
|
|
316
|
+
return {
|
|
317
|
+
winner: "",
|
|
318
|
+
amount: "",
|
|
319
|
+
round: BigInt(0)
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
export const LastAuctionResult = {
|
|
323
|
+
typeUrl: "/injective.auction.v1beta1.LastAuctionResult",
|
|
324
|
+
is(o: any): o is LastAuctionResult {
|
|
325
|
+
return o && (o.$typeUrl === LastAuctionResult.typeUrl || typeof o.winner === "string" && typeof o.amount === "string" && typeof o.round === "bigint");
|
|
326
|
+
},
|
|
327
|
+
isAmino(o: any): o is LastAuctionResultAmino {
|
|
328
|
+
return o && (o.$typeUrl === LastAuctionResult.typeUrl || typeof o.winner === "string" && typeof o.amount === "string" && typeof o.round === "bigint");
|
|
329
|
+
},
|
|
330
|
+
encode(message: LastAuctionResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
331
|
+
if (message.winner !== "") {
|
|
332
|
+
writer.uint32(10).string(message.winner);
|
|
333
|
+
}
|
|
334
|
+
if (message.amount !== "") {
|
|
335
|
+
writer.uint32(18).string(message.amount);
|
|
336
|
+
}
|
|
337
|
+
if (message.round !== BigInt(0)) {
|
|
338
|
+
writer.uint32(24).uint64(message.round);
|
|
339
|
+
}
|
|
340
|
+
return writer;
|
|
341
|
+
},
|
|
342
|
+
decode(input: BinaryReader | Uint8Array, length?: number): LastAuctionResult {
|
|
343
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
344
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
345
|
+
const message = createBaseLastAuctionResult();
|
|
346
|
+
while (reader.pos < end) {
|
|
347
|
+
const tag = reader.uint32();
|
|
348
|
+
switch (tag >>> 3) {
|
|
349
|
+
case 1:
|
|
350
|
+
message.winner = reader.string();
|
|
351
|
+
break;
|
|
352
|
+
case 2:
|
|
353
|
+
message.amount = reader.string();
|
|
354
|
+
break;
|
|
355
|
+
case 3:
|
|
356
|
+
message.round = reader.uint64();
|
|
357
|
+
break;
|
|
358
|
+
default:
|
|
359
|
+
reader.skipType(tag & 7);
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return message;
|
|
364
|
+
},
|
|
365
|
+
fromPartial(object: DeepPartial<LastAuctionResult>): LastAuctionResult {
|
|
366
|
+
const message = createBaseLastAuctionResult();
|
|
367
|
+
message.winner = object.winner ?? "";
|
|
368
|
+
message.amount = object.amount ?? "";
|
|
369
|
+
message.round = object.round !== undefined && object.round !== null ? BigInt(object.round.toString()) : BigInt(0);
|
|
370
|
+
return message;
|
|
371
|
+
},
|
|
372
|
+
fromAmino(object: LastAuctionResultAmino): LastAuctionResult {
|
|
373
|
+
const message = createBaseLastAuctionResult();
|
|
374
|
+
if (object.winner !== undefined && object.winner !== null) {
|
|
375
|
+
message.winner = object.winner;
|
|
376
|
+
}
|
|
377
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
378
|
+
message.amount = object.amount;
|
|
379
|
+
}
|
|
380
|
+
if (object.round !== undefined && object.round !== null) {
|
|
381
|
+
message.round = BigInt(object.round);
|
|
382
|
+
}
|
|
383
|
+
return message;
|
|
384
|
+
},
|
|
385
|
+
toAmino(message: LastAuctionResult): LastAuctionResultAmino {
|
|
386
|
+
const obj: any = {};
|
|
387
|
+
obj.winner = message.winner === "" ? undefined : message.winner;
|
|
388
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
389
|
+
obj.round = message.round !== BigInt(0) ? message.round?.toString() : undefined;
|
|
390
|
+
return obj;
|
|
391
|
+
},
|
|
392
|
+
fromAminoMsg(object: LastAuctionResultAminoMsg): LastAuctionResult {
|
|
393
|
+
return LastAuctionResult.fromAmino(object.value);
|
|
394
|
+
},
|
|
395
|
+
fromProtoMsg(message: LastAuctionResultProtoMsg): LastAuctionResult {
|
|
396
|
+
return LastAuctionResult.decode(message.value);
|
|
397
|
+
},
|
|
398
|
+
toProto(message: LastAuctionResult): Uint8Array {
|
|
399
|
+
return LastAuctionResult.encode(message).finish();
|
|
400
|
+
},
|
|
401
|
+
toProtoMsg(message: LastAuctionResult): LastAuctionResultProtoMsg {
|
|
402
|
+
return {
|
|
403
|
+
typeUrl: "/injective.auction.v1beta1.LastAuctionResult",
|
|
404
|
+
value: LastAuctionResult.encode(message).finish()
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
GlobalDecoderRegistry.register(LastAuctionResult.typeUrl, LastAuctionResult);
|
|
409
|
+
function createBaseEventBid(): EventBid {
|
|
410
|
+
return {
|
|
411
|
+
bidder: "",
|
|
412
|
+
amount: "",
|
|
413
|
+
round: BigInt(0)
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
export const EventBid = {
|
|
417
|
+
typeUrl: "/injective.auction.v1beta1.EventBid",
|
|
418
|
+
is(o: any): o is EventBid {
|
|
419
|
+
return o && (o.$typeUrl === EventBid.typeUrl || typeof o.bidder === "string" && typeof o.amount === "string" && typeof o.round === "bigint");
|
|
420
|
+
},
|
|
421
|
+
isAmino(o: any): o is EventBidAmino {
|
|
422
|
+
return o && (o.$typeUrl === EventBid.typeUrl || typeof o.bidder === "string" && typeof o.amount === "string" && typeof o.round === "bigint");
|
|
423
|
+
},
|
|
424
|
+
encode(message: EventBid, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
425
|
+
if (message.bidder !== "") {
|
|
426
|
+
writer.uint32(10).string(message.bidder);
|
|
427
|
+
}
|
|
428
|
+
if (message.amount !== "") {
|
|
429
|
+
writer.uint32(18).string(message.amount);
|
|
430
|
+
}
|
|
431
|
+
if (message.round !== BigInt(0)) {
|
|
432
|
+
writer.uint32(24).uint64(message.round);
|
|
433
|
+
}
|
|
434
|
+
return writer;
|
|
435
|
+
},
|
|
436
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventBid {
|
|
437
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
438
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
439
|
+
const message = createBaseEventBid();
|
|
440
|
+
while (reader.pos < end) {
|
|
441
|
+
const tag = reader.uint32();
|
|
442
|
+
switch (tag >>> 3) {
|
|
443
|
+
case 1:
|
|
444
|
+
message.bidder = reader.string();
|
|
445
|
+
break;
|
|
446
|
+
case 2:
|
|
447
|
+
message.amount = reader.string();
|
|
448
|
+
break;
|
|
449
|
+
case 3:
|
|
450
|
+
message.round = reader.uint64();
|
|
451
|
+
break;
|
|
452
|
+
default:
|
|
453
|
+
reader.skipType(tag & 7);
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
return message;
|
|
458
|
+
},
|
|
459
|
+
fromPartial(object: DeepPartial<EventBid>): EventBid {
|
|
460
|
+
const message = createBaseEventBid();
|
|
461
|
+
message.bidder = object.bidder ?? "";
|
|
462
|
+
message.amount = object.amount ?? "";
|
|
463
|
+
message.round = object.round !== undefined && object.round !== null ? BigInt(object.round.toString()) : BigInt(0);
|
|
464
|
+
return message;
|
|
465
|
+
},
|
|
466
|
+
fromAmino(object: EventBidAmino): EventBid {
|
|
467
|
+
const message = createBaseEventBid();
|
|
468
|
+
if (object.bidder !== undefined && object.bidder !== null) {
|
|
469
|
+
message.bidder = object.bidder;
|
|
470
|
+
}
|
|
471
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
472
|
+
message.amount = object.amount;
|
|
473
|
+
}
|
|
474
|
+
if (object.round !== undefined && object.round !== null) {
|
|
475
|
+
message.round = BigInt(object.round);
|
|
476
|
+
}
|
|
477
|
+
return message;
|
|
478
|
+
},
|
|
479
|
+
toAmino(message: EventBid): EventBidAmino {
|
|
480
|
+
const obj: any = {};
|
|
481
|
+
obj.bidder = message.bidder === "" ? undefined : message.bidder;
|
|
482
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
483
|
+
obj.round = message.round !== BigInt(0) ? message.round?.toString() : undefined;
|
|
484
|
+
return obj;
|
|
485
|
+
},
|
|
486
|
+
fromAminoMsg(object: EventBidAminoMsg): EventBid {
|
|
487
|
+
return EventBid.fromAmino(object.value);
|
|
488
|
+
},
|
|
489
|
+
fromProtoMsg(message: EventBidProtoMsg): EventBid {
|
|
490
|
+
return EventBid.decode(message.value);
|
|
491
|
+
},
|
|
492
|
+
toProto(message: EventBid): Uint8Array {
|
|
493
|
+
return EventBid.encode(message).finish();
|
|
494
|
+
},
|
|
495
|
+
toProtoMsg(message: EventBid): EventBidProtoMsg {
|
|
496
|
+
return {
|
|
497
|
+
typeUrl: "/injective.auction.v1beta1.EventBid",
|
|
498
|
+
value: EventBid.encode(message).finish()
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
GlobalDecoderRegistry.register(EventBid.typeUrl, EventBid);
|
|
503
|
+
function createBaseEventAuctionResult(): EventAuctionResult {
|
|
504
|
+
return {
|
|
505
|
+
winner: "",
|
|
506
|
+
amount: "",
|
|
507
|
+
round: BigInt(0)
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
export const EventAuctionResult = {
|
|
511
|
+
typeUrl: "/injective.auction.v1beta1.EventAuctionResult",
|
|
512
|
+
is(o: any): o is EventAuctionResult {
|
|
513
|
+
return o && (o.$typeUrl === EventAuctionResult.typeUrl || typeof o.winner === "string" && typeof o.amount === "string" && typeof o.round === "bigint");
|
|
514
|
+
},
|
|
515
|
+
isAmino(o: any): o is EventAuctionResultAmino {
|
|
516
|
+
return o && (o.$typeUrl === EventAuctionResult.typeUrl || typeof o.winner === "string" && typeof o.amount === "string" && typeof o.round === "bigint");
|
|
517
|
+
},
|
|
518
|
+
encode(message: EventAuctionResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
519
|
+
if (message.winner !== "") {
|
|
520
|
+
writer.uint32(10).string(message.winner);
|
|
521
|
+
}
|
|
522
|
+
if (message.amount !== "") {
|
|
523
|
+
writer.uint32(18).string(message.amount);
|
|
524
|
+
}
|
|
525
|
+
if (message.round !== BigInt(0)) {
|
|
526
|
+
writer.uint32(24).uint64(message.round);
|
|
527
|
+
}
|
|
528
|
+
return writer;
|
|
529
|
+
},
|
|
530
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventAuctionResult {
|
|
531
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
532
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
533
|
+
const message = createBaseEventAuctionResult();
|
|
534
|
+
while (reader.pos < end) {
|
|
535
|
+
const tag = reader.uint32();
|
|
536
|
+
switch (tag >>> 3) {
|
|
537
|
+
case 1:
|
|
538
|
+
message.winner = reader.string();
|
|
539
|
+
break;
|
|
540
|
+
case 2:
|
|
541
|
+
message.amount = reader.string();
|
|
542
|
+
break;
|
|
543
|
+
case 3:
|
|
544
|
+
message.round = reader.uint64();
|
|
545
|
+
break;
|
|
546
|
+
default:
|
|
547
|
+
reader.skipType(tag & 7);
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
return message;
|
|
552
|
+
},
|
|
553
|
+
fromPartial(object: DeepPartial<EventAuctionResult>): EventAuctionResult {
|
|
554
|
+
const message = createBaseEventAuctionResult();
|
|
555
|
+
message.winner = object.winner ?? "";
|
|
556
|
+
message.amount = object.amount ?? "";
|
|
557
|
+
message.round = object.round !== undefined && object.round !== null ? BigInt(object.round.toString()) : BigInt(0);
|
|
558
|
+
return message;
|
|
559
|
+
},
|
|
560
|
+
fromAmino(object: EventAuctionResultAmino): EventAuctionResult {
|
|
561
|
+
const message = createBaseEventAuctionResult();
|
|
562
|
+
if (object.winner !== undefined && object.winner !== null) {
|
|
563
|
+
message.winner = object.winner;
|
|
564
|
+
}
|
|
565
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
566
|
+
message.amount = object.amount;
|
|
567
|
+
}
|
|
568
|
+
if (object.round !== undefined && object.round !== null) {
|
|
569
|
+
message.round = BigInt(object.round);
|
|
570
|
+
}
|
|
571
|
+
return message;
|
|
572
|
+
},
|
|
573
|
+
toAmino(message: EventAuctionResult): EventAuctionResultAmino {
|
|
574
|
+
const obj: any = {};
|
|
575
|
+
obj.winner = message.winner === "" ? undefined : message.winner;
|
|
576
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
577
|
+
obj.round = message.round !== BigInt(0) ? message.round?.toString() : undefined;
|
|
578
|
+
return obj;
|
|
579
|
+
},
|
|
580
|
+
fromAminoMsg(object: EventAuctionResultAminoMsg): EventAuctionResult {
|
|
581
|
+
return EventAuctionResult.fromAmino(object.value);
|
|
582
|
+
},
|
|
583
|
+
fromProtoMsg(message: EventAuctionResultProtoMsg): EventAuctionResult {
|
|
584
|
+
return EventAuctionResult.decode(message.value);
|
|
585
|
+
},
|
|
586
|
+
toProto(message: EventAuctionResult): Uint8Array {
|
|
587
|
+
return EventAuctionResult.encode(message).finish();
|
|
588
|
+
},
|
|
589
|
+
toProtoMsg(message: EventAuctionResult): EventAuctionResultProtoMsg {
|
|
590
|
+
return {
|
|
591
|
+
typeUrl: "/injective.auction.v1beta1.EventAuctionResult",
|
|
592
|
+
value: EventAuctionResult.encode(message).finish()
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
GlobalDecoderRegistry.register(EventAuctionResult.typeUrl, EventAuctionResult);
|
|
597
|
+
function createBaseEventAuctionStart(): EventAuctionStart {
|
|
598
|
+
return {
|
|
599
|
+
round: BigInt(0),
|
|
600
|
+
endingTimestamp: BigInt(0),
|
|
601
|
+
newBasket: []
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
export const EventAuctionStart = {
|
|
605
|
+
typeUrl: "/injective.auction.v1beta1.EventAuctionStart",
|
|
606
|
+
is(o: any): o is EventAuctionStart {
|
|
607
|
+
return o && (o.$typeUrl === EventAuctionStart.typeUrl || typeof o.round === "bigint" && typeof o.endingTimestamp === "bigint" && Array.isArray(o.newBasket) && (!o.newBasket.length || Coin.is(o.newBasket[0])));
|
|
608
|
+
},
|
|
609
|
+
isAmino(o: any): o is EventAuctionStartAmino {
|
|
610
|
+
return o && (o.$typeUrl === EventAuctionStart.typeUrl || typeof o.round === "bigint" && typeof o.ending_timestamp === "bigint" && Array.isArray(o.new_basket) && (!o.new_basket.length || Coin.isAmino(o.new_basket[0])));
|
|
611
|
+
},
|
|
612
|
+
encode(message: EventAuctionStart, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
613
|
+
if (message.round !== BigInt(0)) {
|
|
614
|
+
writer.uint32(8).uint64(message.round);
|
|
615
|
+
}
|
|
616
|
+
if (message.endingTimestamp !== BigInt(0)) {
|
|
617
|
+
writer.uint32(16).int64(message.endingTimestamp);
|
|
618
|
+
}
|
|
619
|
+
for (const v of message.newBasket) {
|
|
620
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
621
|
+
}
|
|
622
|
+
return writer;
|
|
623
|
+
},
|
|
624
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventAuctionStart {
|
|
625
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
626
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
627
|
+
const message = createBaseEventAuctionStart();
|
|
628
|
+
while (reader.pos < end) {
|
|
629
|
+
const tag = reader.uint32();
|
|
630
|
+
switch (tag >>> 3) {
|
|
631
|
+
case 1:
|
|
632
|
+
message.round = reader.uint64();
|
|
633
|
+
break;
|
|
634
|
+
case 2:
|
|
635
|
+
message.endingTimestamp = reader.int64();
|
|
636
|
+
break;
|
|
637
|
+
case 3:
|
|
638
|
+
message.newBasket.push(Coin.decode(reader, reader.uint32()));
|
|
639
|
+
break;
|
|
640
|
+
default:
|
|
641
|
+
reader.skipType(tag & 7);
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return message;
|
|
646
|
+
},
|
|
647
|
+
fromPartial(object: DeepPartial<EventAuctionStart>): EventAuctionStart {
|
|
648
|
+
const message = createBaseEventAuctionStart();
|
|
649
|
+
message.round = object.round !== undefined && object.round !== null ? BigInt(object.round.toString()) : BigInt(0);
|
|
650
|
+
message.endingTimestamp = object.endingTimestamp !== undefined && object.endingTimestamp !== null ? BigInt(object.endingTimestamp.toString()) : BigInt(0);
|
|
651
|
+
message.newBasket = object.newBasket?.map(e => Coin.fromPartial(e)) || [];
|
|
652
|
+
return message;
|
|
653
|
+
},
|
|
654
|
+
fromAmino(object: EventAuctionStartAmino): EventAuctionStart {
|
|
655
|
+
const message = createBaseEventAuctionStart();
|
|
656
|
+
if (object.round !== undefined && object.round !== null) {
|
|
657
|
+
message.round = BigInt(object.round);
|
|
658
|
+
}
|
|
659
|
+
if (object.ending_timestamp !== undefined && object.ending_timestamp !== null) {
|
|
660
|
+
message.endingTimestamp = BigInt(object.ending_timestamp);
|
|
661
|
+
}
|
|
662
|
+
message.newBasket = object.new_basket?.map(e => Coin.fromAmino(e)) || [];
|
|
663
|
+
return message;
|
|
664
|
+
},
|
|
665
|
+
toAmino(message: EventAuctionStart): EventAuctionStartAmino {
|
|
666
|
+
const obj: any = {};
|
|
667
|
+
obj.round = message.round !== BigInt(0) ? message.round?.toString() : undefined;
|
|
668
|
+
obj.ending_timestamp = message.endingTimestamp !== BigInt(0) ? message.endingTimestamp?.toString() : undefined;
|
|
669
|
+
if (message.newBasket) {
|
|
670
|
+
obj.new_basket = message.newBasket.map(e => e ? Coin.toAmino(e) : undefined);
|
|
671
|
+
} else {
|
|
672
|
+
obj.new_basket = message.newBasket;
|
|
673
|
+
}
|
|
674
|
+
return obj;
|
|
675
|
+
},
|
|
676
|
+
fromAminoMsg(object: EventAuctionStartAminoMsg): EventAuctionStart {
|
|
677
|
+
return EventAuctionStart.fromAmino(object.value);
|
|
678
|
+
},
|
|
679
|
+
fromProtoMsg(message: EventAuctionStartProtoMsg): EventAuctionStart {
|
|
680
|
+
return EventAuctionStart.decode(message.value);
|
|
681
|
+
},
|
|
682
|
+
toProto(message: EventAuctionStart): Uint8Array {
|
|
683
|
+
return EventAuctionStart.encode(message).finish();
|
|
684
|
+
},
|
|
685
|
+
toProtoMsg(message: EventAuctionStart): EventAuctionStartProtoMsg {
|
|
686
|
+
return {
|
|
687
|
+
typeUrl: "/injective.auction.v1beta1.EventAuctionStart",
|
|
688
|
+
value: EventAuctionStart.encode(message).finish()
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
GlobalDecoderRegistry.register(EventAuctionStart.typeUrl, EventAuctionStart);
|