@iconlake/client 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +93683 -0
- package/dist/index.umd.js +35 -0
- package/package.json +9 -6
- package/types.d.ts +21 -0
- package/dist/client.js +0 -135
- package/dist/cosmos.auth.v1beta1/index.js +0 -5
- package/dist/cosmos.auth.v1beta1/module.js +0 -64
- package/dist/cosmos.auth.v1beta1/registry.js +0 -2
- package/dist/cosmos.auth.v1beta1/rest.js +0 -228
- package/dist/cosmos.auth.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -344
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.js +0 -67
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +0 -969
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +0 -105
- package/dist/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.auth.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.auth.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.auth.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.auth.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.auth.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.auth.v1beta1/types.js +0 -5
- package/dist/cosmos.authz.v1beta1/index.js +0 -5
- package/dist/cosmos.authz.v1beta1/module.js +0 -140
- package/dist/cosmos.authz.v1beta1/registry.js +0 -9
- package/dist/cosmos.authz.v1beta1/rest.js +0 -131
- package/dist/cosmos.authz.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.js +0 -244
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.js +0 -128
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.js +0 -54
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.js +0 -394
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.js +0 -362
- package/dist/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.authz.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.authz.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.authz.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.authz.v1beta1/types.js +0 -7
- package/dist/cosmos.bank.v1beta1/index.js +0 -5
- package/dist/cosmos.bank.v1beta1/module.js +0 -125
- package/dist/cosmos.bank.v1beta1/registry.js +0 -7
- package/dist/cosmos.bank.v1beta1/rest.js +0 -253
- package/dist/cosmos.bank.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +0 -66
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.js +0 -455
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +0 -170
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +0 -1243
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +0 -424
- package/dist/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.bank.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.bank.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.bank.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.bank.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.bank.v1beta1/types.js +0 -11
- package/dist/cosmos.base.node.v1beta1/index.js +0 -5
- package/dist/cosmos.base.node.v1beta1/module.js +0 -55
- package/dist/cosmos.base.node.v1beta1/registry.js +0 -2
- package/dist/cosmos.base.node.v1beta1/rest.js +0 -100
- package/dist/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.js +0 -91
- package/dist/cosmos.base.node.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.base.node.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.base.node.v1beta1/types.js +0 -1
- package/dist/cosmos.base.tendermint.v1beta1/index.js +0 -5
- package/dist/cosmos.base.tendermint.v1beta1/module.js +0 -70
- package/dist/cosmos.base.tendermint.v1beta1/registry.js +0 -2
- package/dist/cosmos.base.tendermint.v1beta1/rest.js +0 -209
- package/dist/cosmos.base.tendermint.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.js +0 -1281
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.js +0 -350
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.base.tendermint.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.base.tendermint.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.js +0 -100
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.js +0 -356
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.js +0 -352
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.js +0 -86
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.js +0 -343
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.js +0 -1207
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.js +0 -254
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.js +0 -133
- package/dist/cosmos.base.tendermint.v1beta1/types.js +0 -8
- package/dist/cosmos.consensus.v1/index.js +0 -5
- package/dist/cosmos.consensus.v1/module.js +0 -81
- package/dist/cosmos.consensus.v1/registry.js +0 -5
- package/dist/cosmos.consensus.v1/rest.js +0 -100
- package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +0 -94
- package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +0 -129
- package/dist/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.consensus.v1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.consensus.v1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.consensus.v1/types/google/api/http.js +0 -260
- package/dist/cosmos.consensus.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.consensus.v1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.consensus.v1/types/tendermint/types/params.js +0 -369
- package/dist/cosmos.consensus.v1/types.js +0 -1
- package/dist/cosmos.crisis.v1beta1/index.js +0 -5
- package/dist/cosmos.crisis.v1beta1/module.js +0 -104
- package/dist/cosmos.crisis.v1beta1/registry.js +0 -7
- package/dist/cosmos.crisis.v1beta1/rest.js +0 -83
- package/dist/cosmos.crisis.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.js +0 -51
- package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -206
- package/dist/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.crisis.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.crisis.v1beta1/types.js +0 -1
- package/dist/cosmos.distribution.v1beta1/index.js +0 -5
- package/dist/cosmos.distribution.v1beta1/module.js +0 -235
- package/dist/cosmos.distribution.v1beta1/registry.js +0 -15
- package/dist/cosmos.distribution.v1beta1/rest.js +0 -228
- package/dist/cosmos.distribution.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.js +0 -737
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.js +0 -656
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -1046
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -595
- package/dist/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.distribution.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.distribution.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.distribution.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.distribution.v1beta1/types.js +0 -20
- package/dist/cosmos.evidence.v1beta1/index.js +0 -5
- package/dist/cosmos.evidence.v1beta1/module.js +0 -84
- package/dist/cosmos.evidence.v1beta1/registry.js +0 -5
- package/dist/cosmos.evidence.v1beta1/rest.js +0 -116
- package/dist/cosmos.evidence.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.js +0 -124
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.js +0 -50
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +0 -265
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.js +0 -154
- package/dist/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.evidence.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.evidence.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.evidence.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.evidence.v1beta1/types.js +0 -2
- package/dist/cosmos.feegrant.v1beta1/index.js +0 -5
- package/dist/cosmos.feegrant.v1beta1/module.js +0 -113
- package/dist/cosmos.feegrant.v1beta1/registry.js +0 -7
- package/dist/cosmos.feegrant.v1beta1/rest.js +0 -130
- package/dist/cosmos.feegrant.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.js +0 -307
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.js +0 -52
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.js +0 -357
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.js +0 -205
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.feegrant.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.feegrant.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.feegrant.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.feegrant.v1beta1/types.js +0 -5
- package/dist/cosmos.gov.v1/index.js +0 -5
- package/dist/cosmos.gov.v1/module.js +0 -192
- package/dist/cosmos.gov.v1/registry.js +0 -13
- package/dist/cosmos.gov.v1/rest.js +0 -242
- package/dist/cosmos.gov.v1/types/amino/amino.js +0 -2
- package/dist/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +0 -174
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -945
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/query.js +0 -928
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +0 -701
- package/dist/cosmos.gov.v1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.gov.v1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.gov.v1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.gov.v1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.gov.v1/types/google/api/http.js +0 -260
- package/dist/cosmos.gov.v1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.gov.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.gov.v1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.gov.v1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.gov.v1/types.js +0 -10
- package/dist/cosmos.gov.v1beta1/index.js +0 -5
- package/dist/cosmos.gov.v1beta1/module.js +0 -169
- package/dist/cosmos.gov.v1beta1/registry.js +0 -11
- package/dist/cosmos.gov.v1beta1/rest.js +0 -242
- package/dist/cosmos.gov.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.js +0 -162
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.js +0 -832
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.js +0 -917
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.js +0 -467
- package/dist/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.gov.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.gov.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.gov.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.gov.v1beta1/types.js +0 -10
- package/dist/cosmos.group.v1/index.js +0 -5
- package/dist/cosmos.group.v1/module.js +0 -423
- package/dist/cosmos.group.v1/registry.js +0 -31
- package/dist/cosmos.group.v1/rest.js +0 -366
- package/dist/cosmos.group.v1/types/amino/amino.js +0 -2
- package/dist/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.group.v1/types/cosmos/group/v1/events.js +0 -497
- package/dist/cosmos.group.v1/types/cosmos/group/v1/genesis.js +0 -177
- package/dist/cosmos.group.v1/types/cosmos/group/v1/query.js +0 -1578
- package/dist/cosmos.group.v1/types/cosmos/group/v1/tx.js +0 -1639
- package/dist/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -1125
- package/dist/cosmos.group.v1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.group.v1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.group.v1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.group.v1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.group.v1/types/google/api/http.js +0 -260
- package/dist/cosmos.group.v1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.group.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.group.v1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.group.v1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.group.v1/types.js +0 -22
- package/dist/cosmos.mint.v1beta1/index.js +0 -5
- package/dist/cosmos.mint.v1beta1/module.js +0 -60
- package/dist/cosmos.mint.v1beta1/registry.js +0 -2
- package/dist/cosmos.mint.v1beta1/rest.js +0 -128
- package/dist/cosmos.mint.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.js +0 -63
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.js +0 -179
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.js +0 -298
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +0 -105
- package/dist/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.mint.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.mint.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.mint.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.mint.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.mint.v1beta1/types.js +0 -3
- package/dist/cosmos.nft.v1beta1/index.js +0 -5
- package/dist/cosmos.nft.v1beta1/module.js +0 -68
- package/dist/cosmos.nft.v1beta1/registry.js +0 -2
- package/dist/cosmos.nft.v1beta1/rest.js +0 -187
- package/dist/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.js +0 -198
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.js +0 -126
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.js +0 -183
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.js +0 -752
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.js +0 -120
- package/dist/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.nft.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.nft.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.nft.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.nft.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.nft.v1beta1/types.js +0 -7
- package/dist/cosmos.params.v1beta1/index.js +0 -5
- package/dist/cosmos.params.v1beta1/module.js +0 -62
- package/dist/cosmos.params.v1beta1/registry.js +0 -2
- package/dist/cosmos.params.v1beta1/rest.js +0 -116
- package/dist/cosmos.params.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.js +0 -133
- package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.js +0 -257
- package/dist/cosmos.params.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.params.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.params.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.params.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.params.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.params.v1beta1/types.js +0 -4
- package/dist/cosmos.slashing.v1beta1/index.js +0 -5
- package/dist/cosmos.slashing.v1beta1/module.js +0 -92
- package/dist/cosmos.slashing.v1beta1/registry.js +0 -5
- package/dist/cosmos.slashing.v1beta1/rest.js +0 -129
- package/dist/cosmos.slashing.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.js +0 -279
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.js +0 -300
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.js +0 -275
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -185
- package/dist/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.slashing.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.slashing.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.slashing.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.slashing.v1beta1/types.js +0 -6
- package/dist/cosmos.staking.v1beta1/index.js +0 -5
- package/dist/cosmos.staking.v1beta1/module.js +0 -245
- package/dist/cosmos.staking.v1beta1/registry.js +0 -15
- package/dist/cosmos.staking.v1beta1/rest.js +0 -308
- package/dist/cosmos.staking.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.js +0 -184
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.js +0 -259
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.js +0 -1568
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +0 -1614
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +0 -861
- package/dist/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.staking.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.staking.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.staking.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.staking.v1beta1/types/tendermint/abci/types.js +0 -3812
- package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/keys.js +0 -100
- package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/proof.js +0 -356
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/params.js +0 -369
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/types.js +0 -1207
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/validator.js +0 -254
- package/dist/cosmos.staking.v1beta1/types/tendermint/version/types.js +0 -133
- package/dist/cosmos.staking.v1beta1/types.js +0 -25
- package/dist/cosmos.tx.v1beta1/index.js +0 -5
- package/dist/cosmos.tx.v1beta1/module.js +0 -82
- package/dist/cosmos.tx.v1beta1/registry.js +0 -2
- package/dist/cosmos.tx.v1beta1/rest.js +0 -320
- package/dist/cosmos.tx.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +0 -803
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.js +0 -147
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.js +0 -449
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +0 -1160
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.js +0 -959
- package/dist/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.tx.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.tx.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.tx.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/duration.js +0 -84
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.tx.v1beta1/types/tendermint/abci/types.js +0 -3812
- package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/keys.js +0 -100
- package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/proof.js +0 -356
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/block.js +0 -86
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/evidence.js +0 -343
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/params.js +0 -369
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/types.js +0 -1207
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/validator.js +0 -254
- package/dist/cosmos.tx.v1beta1/types/tendermint/version/types.js +0 -133
- package/dist/cosmos.tx.v1beta1/types.js +0 -14
- package/dist/cosmos.upgrade.v1beta1/index.js +0 -5
- package/dist/cosmos.upgrade.v1beta1/module.js +0 -113
- package/dist/cosmos.upgrade.v1beta1/registry.js +0 -7
- package/dist/cosmos.upgrade.v1beta1/rest.js +0 -162
- package/dist/cosmos.upgrade.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.js +0 -501
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.js +0 -183
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.js +0 -302
- package/dist/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.upgrade.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.upgrade.v1beta1/types/google/api/annotations.js +0 -2
- package/dist/cosmos.upgrade.v1beta1/types/google/api/http.js +0 -260
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.js +0 -84
- package/dist/cosmos.upgrade.v1beta1/types.js +0 -5
- package/dist/cosmos.vesting.v1beta1/index.js +0 -5
- package/dist/cosmos.vesting.v1beta1/module.js +0 -140
- package/dist/cosmos.vesting.v1beta1/registry.js +0 -9
- package/dist/cosmos.vesting.v1beta1/rest.js +0 -83
- package/dist/cosmos.vesting.v1beta1/types/amino/amino.js +0 -2
- package/dist/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -344
- package/dist/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.js +0 -383
- package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.js +0 -422
- package/dist/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/cosmos.vesting.v1beta1/types/gogoproto/gogo.js +0 -2
- package/dist/cosmos.vesting.v1beta1/types/google/protobuf/any.js +0 -99
- package/dist/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/cosmos.vesting.v1beta1/types.js +0 -7
- package/dist/env.js +0 -1
- package/dist/helpers.js +0 -11
- package/dist/ibc.applications.interchain_accounts.controller.v1/index.js +0 -5
- package/dist/ibc.applications.interchain_accounts.controller.v1/module.js +0 -58
- package/dist/ibc.applications.interchain_accounts.controller.v1/registry.js +0 -2
- package/dist/ibc.applications.interchain_accounts.controller.v1/rest.js +0 -123
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.js +0 -2
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.js +0 -2
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.js +0 -260
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +0 -99
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.js +0 -47
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.js +0 -193
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +0 -277
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +0 -192
- package/dist/ibc.applications.interchain_accounts.controller.v1/types.js +0 -2
- package/dist/ibc.applications.interchain_accounts.host.v1/index.js +0 -5
- package/dist/ibc.applications.interchain_accounts.host.v1/module.js +0 -58
- package/dist/ibc.applications.interchain_accounts.host.v1/registry.js +0 -2
- package/dist/ibc.applications.interchain_accounts.host.v1/rest.js +0 -100
- package/dist/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.js +0 -2
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.js +0 -2
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/http.js +0 -260
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.js +0 -63
- package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.js +0 -94
- package/dist/ibc.applications.interchain_accounts.host.v1/types.js +0 -2
- package/dist/ibc.applications.transfer.v1/index.js +0 -5
- package/dist/ibc.applications.transfer.v1/module.js +0 -64
- package/dist/ibc.applications.transfer.v1/registry.js +0 -2
- package/dist/ibc.applications.transfer.v1/rest.js +0 -171
- package/dist/ibc.applications.transfer.v1/types/amino/amino.js +0 -2
- package/dist/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.js +0 -302
- package/dist/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/ibc.applications.transfer.v1/types/gogoproto/gogo.js +0 -2
- package/dist/ibc.applications.transfer.v1/types/google/api/annotations.js +0 -2
- package/dist/ibc.applications.transfer.v1/types/google/api/http.js +0 -260
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/any.js +0 -99
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/timestamp.js +0 -84
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +0 -135
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +0 -90
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -574
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.js +0 -110
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +0 -204
- package/dist/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.js +0 -448
- package/dist/ibc.applications.transfer.v1/types.js +0 -5
- package/dist/ibc.core.channel.v1/index.js +0 -5
- package/dist/ibc.core.channel.v1/module.js +0 -72
- package/dist/ibc.core.channel.v1/registry.js +0 -2
- package/dist/ibc.core.channel.v1/rest.js +0 -323
- package/dist/ibc.core.channel.v1/types/amino/amino.js +0 -2
- package/dist/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.js +0 -302
- package/dist/ibc.core.channel.v1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/ibc.core.channel.v1/types/gogoproto/gogo.js +0 -2
- package/dist/ibc.core.channel.v1/types/google/api/annotations.js +0 -2
- package/dist/ibc.core.channel.v1/types/google/api/http.js +0 -260
- package/dist/ibc.core.channel.v1/types/google/protobuf/any.js +0 -99
- package/dist/ibc.core.channel.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/ibc.core.channel.v1/types/google/protobuf/timestamp.js +0 -84
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.js +0 -714
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.js +0 -254
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/query.js +0 -1866
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +0 -1436
- package/dist/ibc.core.channel.v1/types/ibc/core/client/v1/client.js +0 -448
- package/dist/ibc.core.channel.v1/types.js +0 -9
- package/dist/ibc.core.client.v1/index.js +0 -5
- package/dist/ibc.core.client.v1/module.js +0 -74
- package/dist/ibc.core.client.v1/registry.js +0 -2
- package/dist/ibc.core.client.v1/rest.js +0 -218
- package/dist/ibc.core.client.v1/types/amino/amino.js +0 -2
- package/dist/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.js +0 -302
- package/dist/ibc.core.client.v1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/ibc.core.client.v1/types/gogoproto/gogo.js +0 -2
- package/dist/ibc.core.client.v1/types/google/api/annotations.js +0 -2
- package/dist/ibc.core.client.v1/types/google/api/http.js +0 -260
- package/dist/ibc.core.client.v1/types/google/protobuf/any.js +0 -99
- package/dist/ibc.core.client.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/ibc.core.client.v1/types/google/protobuf/timestamp.js +0 -84
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/client.js +0 -448
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/genesis.js +0 -287
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/query.js +0 -1026
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +0 -510
- package/dist/ibc.core.client.v1/types.js +0 -10
- package/dist/ibc.core.connection.v1/index.js +0 -5
- package/dist/ibc.core.connection.v1/module.js +0 -70
- package/dist/ibc.core.connection.v1/registry.js +0 -2
- package/dist/ibc.core.connection.v1/rest.js +0 -191
- package/dist/ibc.core.connection.v1/types/amino/amino.js +0 -2
- package/dist/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/ibc.core.connection.v1/types/cosmos/ics23/v1/proofs.js +0 -1126
- package/dist/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.js +0 -302
- package/dist/ibc.core.connection.v1/types/cosmos_proto/cosmos.js +0 -171
- package/dist/ibc.core.connection.v1/types/gogoproto/gogo.js +0 -2
- package/dist/ibc.core.connection.v1/types/google/api/annotations.js +0 -2
- package/dist/ibc.core.connection.v1/types/google/api/http.js +0 -260
- package/dist/ibc.core.connection.v1/types/google/protobuf/any.js +0 -99
- package/dist/ibc.core.connection.v1/types/google/protobuf/descriptor.js +0 -2830
- package/dist/ibc.core.connection.v1/types/google/protobuf/timestamp.js +0 -84
- package/dist/ibc.core.connection.v1/types/ibc/core/client/v1/client.js +0 -448
- package/dist/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +0 -223
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.js +0 -537
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.js +0 -120
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +0 -766
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -731
- package/dist/ibc.core.connection.v1/types.js +0 -8
- package/dist/iconlake.drop/index.js +0 -5
- package/dist/iconlake.drop/module.js +0 -86
- package/dist/iconlake.drop/registry.js +0 -5
- package/dist/iconlake.drop/rest.js +0 -128
- package/dist/iconlake.drop/types/amino/amino.js +0 -2
- package/dist/iconlake.drop/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/iconlake.drop/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/iconlake.drop/types/cosmos_proto/cosmos.js +0 -171
- package/dist/iconlake.drop/types/gogoproto/gogo.js +0 -2
- package/dist/iconlake.drop/types/google/api/annotations.js +0 -2
- package/dist/iconlake.drop/types/google/api/http.js +0 -260
- package/dist/iconlake.drop/types/google/protobuf/descriptor.js +0 -2830
- package/dist/iconlake.drop/types/iconlake/drop/genesis.js +0 -67
- package/dist/iconlake.drop/types/iconlake/drop/info.js +0 -84
- package/dist/iconlake.drop/types/iconlake/drop/params.js +0 -36
- package/dist/iconlake.drop/types/iconlake/drop/query.js +0 -294
- package/dist/iconlake.drop/types/iconlake/drop/tx.js +0 -152
- package/dist/iconlake.drop/types.js +0 -3
- package/dist/iconlake.icon/index.js +0 -5
- package/dist/iconlake.icon/module.js +0 -88
- package/dist/iconlake.icon/registry.js +0 -5
- package/dist/iconlake.icon/rest.js +0 -115
- package/dist/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/iconlake.icon/types/gogoproto/gogo.js +0 -2
- package/dist/iconlake.icon/types/google/api/annotations.js +0 -2
- package/dist/iconlake.icon/types/google/api/http.js +0 -260
- package/dist/iconlake.icon/types/google/protobuf/descriptor.js +0 -2830
- package/dist/iconlake.icon/types/iconlake/icon/class_data.js +0 -58
- package/dist/iconlake.icon/types/iconlake/icon/genesis.js +0 -50
- package/dist/iconlake.icon/types/iconlake/icon/icon_data.js +0 -76
- package/dist/iconlake.icon/types/iconlake/icon/params.js +0 -36
- package/dist/iconlake.icon/types/iconlake/icon/query.js +0 -204
- package/dist/iconlake.icon/types/iconlake/icon/tx.js +0 -174
- package/dist/iconlake.icon/types.js +0 -4
- package/dist/iconlake.iconlake/index.js +0 -5
- package/dist/iconlake.iconlake/module.js +0 -86
- package/dist/iconlake.iconlake/registry.js +0 -5
- package/dist/iconlake.iconlake/rest.js +0 -128
- package/dist/iconlake.iconlake/types/amino/amino.js +0 -2
- package/dist/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.js +0 -190
- package/dist/iconlake.iconlake/types/cosmos/base/v1beta1/coin.js +0 -192
- package/dist/iconlake.iconlake/types/cosmos_proto/cosmos.js +0 -171
- package/dist/iconlake.iconlake/types/gogoproto/gogo.js +0 -2
- package/dist/iconlake.iconlake/types/google/api/annotations.js +0 -2
- package/dist/iconlake.iconlake/types/google/api/http.js +0 -260
- package/dist/iconlake.iconlake/types/google/protobuf/descriptor.js +0 -2830
- package/dist/iconlake.iconlake/types/iconlake/iconlake/account.js +0 -84
- package/dist/iconlake.iconlake/types/iconlake/iconlake/genesis.js +0 -67
- package/dist/iconlake.iconlake/types/iconlake/iconlake/params.js +0 -36
- package/dist/iconlake.iconlake/types/iconlake/iconlake/query.js +0 -296
- package/dist/iconlake.iconlake/types/iconlake/iconlake/tx.js +0 -113
- package/dist/iconlake.iconlake/types.js +0 -3
- package/dist/index.js +0 -68
- package/dist/modules.js +0 -1
|
@@ -1,832 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import Long from "long";
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { Any } from "../../../google/protobuf/any";
|
|
5
|
-
import { Duration } from "../../../google/protobuf/duration";
|
|
6
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
7
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
8
|
-
export const protobufPackage = "cosmos.gov.v1beta1";
|
|
9
|
-
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
|
10
|
-
export var VoteOption;
|
|
11
|
-
(function (VoteOption) {
|
|
12
|
-
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
|
13
|
-
VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED";
|
|
14
|
-
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
|
15
|
-
VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES";
|
|
16
|
-
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
|
17
|
-
VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN";
|
|
18
|
-
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
|
19
|
-
VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO";
|
|
20
|
-
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
|
21
|
-
VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO";
|
|
22
|
-
VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
-
})(VoteOption || (VoteOption = {}));
|
|
24
|
-
export function voteOptionFromJSON(object) {
|
|
25
|
-
switch (object) {
|
|
26
|
-
case 0:
|
|
27
|
-
case "VOTE_OPTION_UNSPECIFIED":
|
|
28
|
-
return VoteOption.VOTE_OPTION_UNSPECIFIED;
|
|
29
|
-
case 1:
|
|
30
|
-
case "VOTE_OPTION_YES":
|
|
31
|
-
return VoteOption.VOTE_OPTION_YES;
|
|
32
|
-
case 2:
|
|
33
|
-
case "VOTE_OPTION_ABSTAIN":
|
|
34
|
-
return VoteOption.VOTE_OPTION_ABSTAIN;
|
|
35
|
-
case 3:
|
|
36
|
-
case "VOTE_OPTION_NO":
|
|
37
|
-
return VoteOption.VOTE_OPTION_NO;
|
|
38
|
-
case 4:
|
|
39
|
-
case "VOTE_OPTION_NO_WITH_VETO":
|
|
40
|
-
return VoteOption.VOTE_OPTION_NO_WITH_VETO;
|
|
41
|
-
case -1:
|
|
42
|
-
case "UNRECOGNIZED":
|
|
43
|
-
default:
|
|
44
|
-
return VoteOption.UNRECOGNIZED;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export function voteOptionToJSON(object) {
|
|
48
|
-
switch (object) {
|
|
49
|
-
case VoteOption.VOTE_OPTION_UNSPECIFIED:
|
|
50
|
-
return "VOTE_OPTION_UNSPECIFIED";
|
|
51
|
-
case VoteOption.VOTE_OPTION_YES:
|
|
52
|
-
return "VOTE_OPTION_YES";
|
|
53
|
-
case VoteOption.VOTE_OPTION_ABSTAIN:
|
|
54
|
-
return "VOTE_OPTION_ABSTAIN";
|
|
55
|
-
case VoteOption.VOTE_OPTION_NO:
|
|
56
|
-
return "VOTE_OPTION_NO";
|
|
57
|
-
case VoteOption.VOTE_OPTION_NO_WITH_VETO:
|
|
58
|
-
return "VOTE_OPTION_NO_WITH_VETO";
|
|
59
|
-
case VoteOption.UNRECOGNIZED:
|
|
60
|
-
default:
|
|
61
|
-
return "UNRECOGNIZED";
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
|
65
|
-
export var ProposalStatus;
|
|
66
|
-
(function (ProposalStatus) {
|
|
67
|
-
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */
|
|
68
|
-
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED";
|
|
69
|
-
/**
|
|
70
|
-
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
|
71
|
-
* period.
|
|
72
|
-
*/
|
|
73
|
-
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD";
|
|
74
|
-
/**
|
|
75
|
-
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
|
76
|
-
* period.
|
|
77
|
-
*/
|
|
78
|
-
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD";
|
|
79
|
-
/**
|
|
80
|
-
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
|
81
|
-
* passed.
|
|
82
|
-
*/
|
|
83
|
-
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED";
|
|
84
|
-
/**
|
|
85
|
-
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
|
86
|
-
* been rejected.
|
|
87
|
-
*/
|
|
88
|
-
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED";
|
|
89
|
-
/**
|
|
90
|
-
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
|
91
|
-
* failed.
|
|
92
|
-
*/
|
|
93
|
-
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED";
|
|
94
|
-
ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
95
|
-
})(ProposalStatus || (ProposalStatus = {}));
|
|
96
|
-
export function proposalStatusFromJSON(object) {
|
|
97
|
-
switch (object) {
|
|
98
|
-
case 0:
|
|
99
|
-
case "PROPOSAL_STATUS_UNSPECIFIED":
|
|
100
|
-
return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
|
|
101
|
-
case 1:
|
|
102
|
-
case "PROPOSAL_STATUS_DEPOSIT_PERIOD":
|
|
103
|
-
return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD;
|
|
104
|
-
case 2:
|
|
105
|
-
case "PROPOSAL_STATUS_VOTING_PERIOD":
|
|
106
|
-
return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD;
|
|
107
|
-
case 3:
|
|
108
|
-
case "PROPOSAL_STATUS_PASSED":
|
|
109
|
-
return ProposalStatus.PROPOSAL_STATUS_PASSED;
|
|
110
|
-
case 4:
|
|
111
|
-
case "PROPOSAL_STATUS_REJECTED":
|
|
112
|
-
return ProposalStatus.PROPOSAL_STATUS_REJECTED;
|
|
113
|
-
case 5:
|
|
114
|
-
case "PROPOSAL_STATUS_FAILED":
|
|
115
|
-
return ProposalStatus.PROPOSAL_STATUS_FAILED;
|
|
116
|
-
case -1:
|
|
117
|
-
case "UNRECOGNIZED":
|
|
118
|
-
default:
|
|
119
|
-
return ProposalStatus.UNRECOGNIZED;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export function proposalStatusToJSON(object) {
|
|
123
|
-
switch (object) {
|
|
124
|
-
case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
|
|
125
|
-
return "PROPOSAL_STATUS_UNSPECIFIED";
|
|
126
|
-
case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD:
|
|
127
|
-
return "PROPOSAL_STATUS_DEPOSIT_PERIOD";
|
|
128
|
-
case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD:
|
|
129
|
-
return "PROPOSAL_STATUS_VOTING_PERIOD";
|
|
130
|
-
case ProposalStatus.PROPOSAL_STATUS_PASSED:
|
|
131
|
-
return "PROPOSAL_STATUS_PASSED";
|
|
132
|
-
case ProposalStatus.PROPOSAL_STATUS_REJECTED:
|
|
133
|
-
return "PROPOSAL_STATUS_REJECTED";
|
|
134
|
-
case ProposalStatus.PROPOSAL_STATUS_FAILED:
|
|
135
|
-
return "PROPOSAL_STATUS_FAILED";
|
|
136
|
-
case ProposalStatus.UNRECOGNIZED:
|
|
137
|
-
default:
|
|
138
|
-
return "UNRECOGNIZED";
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function createBaseWeightedVoteOption() {
|
|
142
|
-
return { option: 0, weight: "" };
|
|
143
|
-
}
|
|
144
|
-
export const WeightedVoteOption = {
|
|
145
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
146
|
-
if (message.option !== 0) {
|
|
147
|
-
writer.uint32(8).int32(message.option);
|
|
148
|
-
}
|
|
149
|
-
if (message.weight !== "") {
|
|
150
|
-
writer.uint32(18).string(message.weight);
|
|
151
|
-
}
|
|
152
|
-
return writer;
|
|
153
|
-
},
|
|
154
|
-
decode(input, length) {
|
|
155
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
156
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
157
|
-
const message = createBaseWeightedVoteOption();
|
|
158
|
-
while (reader.pos < end) {
|
|
159
|
-
const tag = reader.uint32();
|
|
160
|
-
switch (tag >>> 3) {
|
|
161
|
-
case 1:
|
|
162
|
-
message.option = reader.int32();
|
|
163
|
-
break;
|
|
164
|
-
case 2:
|
|
165
|
-
message.weight = reader.string();
|
|
166
|
-
break;
|
|
167
|
-
default:
|
|
168
|
-
reader.skipType(tag & 7);
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
return message;
|
|
173
|
-
},
|
|
174
|
-
fromJSON(object) {
|
|
175
|
-
return {
|
|
176
|
-
option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0,
|
|
177
|
-
weight: isSet(object.weight) ? String(object.weight) : "",
|
|
178
|
-
};
|
|
179
|
-
},
|
|
180
|
-
toJSON(message) {
|
|
181
|
-
const obj = {};
|
|
182
|
-
message.option !== undefined && (obj.option = voteOptionToJSON(message.option));
|
|
183
|
-
message.weight !== undefined && (obj.weight = message.weight);
|
|
184
|
-
return obj;
|
|
185
|
-
},
|
|
186
|
-
fromPartial(object) {
|
|
187
|
-
const message = createBaseWeightedVoteOption();
|
|
188
|
-
message.option = object.option ?? 0;
|
|
189
|
-
message.weight = object.weight ?? "";
|
|
190
|
-
return message;
|
|
191
|
-
},
|
|
192
|
-
};
|
|
193
|
-
function createBaseTextProposal() {
|
|
194
|
-
return { title: "", description: "" };
|
|
195
|
-
}
|
|
196
|
-
export const TextProposal = {
|
|
197
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
198
|
-
if (message.title !== "") {
|
|
199
|
-
writer.uint32(10).string(message.title);
|
|
200
|
-
}
|
|
201
|
-
if (message.description !== "") {
|
|
202
|
-
writer.uint32(18).string(message.description);
|
|
203
|
-
}
|
|
204
|
-
return writer;
|
|
205
|
-
},
|
|
206
|
-
decode(input, length) {
|
|
207
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
208
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
209
|
-
const message = createBaseTextProposal();
|
|
210
|
-
while (reader.pos < end) {
|
|
211
|
-
const tag = reader.uint32();
|
|
212
|
-
switch (tag >>> 3) {
|
|
213
|
-
case 1:
|
|
214
|
-
message.title = reader.string();
|
|
215
|
-
break;
|
|
216
|
-
case 2:
|
|
217
|
-
message.description = reader.string();
|
|
218
|
-
break;
|
|
219
|
-
default:
|
|
220
|
-
reader.skipType(tag & 7);
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
return message;
|
|
225
|
-
},
|
|
226
|
-
fromJSON(object) {
|
|
227
|
-
return {
|
|
228
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
229
|
-
description: isSet(object.description) ? String(object.description) : "",
|
|
230
|
-
};
|
|
231
|
-
},
|
|
232
|
-
toJSON(message) {
|
|
233
|
-
const obj = {};
|
|
234
|
-
message.title !== undefined && (obj.title = message.title);
|
|
235
|
-
message.description !== undefined && (obj.description = message.description);
|
|
236
|
-
return obj;
|
|
237
|
-
},
|
|
238
|
-
fromPartial(object) {
|
|
239
|
-
const message = createBaseTextProposal();
|
|
240
|
-
message.title = object.title ?? "";
|
|
241
|
-
message.description = object.description ?? "";
|
|
242
|
-
return message;
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
function createBaseDeposit() {
|
|
246
|
-
return { proposalId: 0, depositor: "", amount: [] };
|
|
247
|
-
}
|
|
248
|
-
export const Deposit = {
|
|
249
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
250
|
-
if (message.proposalId !== 0) {
|
|
251
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
252
|
-
}
|
|
253
|
-
if (message.depositor !== "") {
|
|
254
|
-
writer.uint32(18).string(message.depositor);
|
|
255
|
-
}
|
|
256
|
-
for (const v of message.amount) {
|
|
257
|
-
Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
258
|
-
}
|
|
259
|
-
return writer;
|
|
260
|
-
},
|
|
261
|
-
decode(input, length) {
|
|
262
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
263
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
264
|
-
const message = createBaseDeposit();
|
|
265
|
-
while (reader.pos < end) {
|
|
266
|
-
const tag = reader.uint32();
|
|
267
|
-
switch (tag >>> 3) {
|
|
268
|
-
case 1:
|
|
269
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
270
|
-
break;
|
|
271
|
-
case 2:
|
|
272
|
-
message.depositor = reader.string();
|
|
273
|
-
break;
|
|
274
|
-
case 3:
|
|
275
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
276
|
-
break;
|
|
277
|
-
default:
|
|
278
|
-
reader.skipType(tag & 7);
|
|
279
|
-
break;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
return message;
|
|
283
|
-
},
|
|
284
|
-
fromJSON(object) {
|
|
285
|
-
return {
|
|
286
|
-
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
287
|
-
depositor: isSet(object.depositor) ? String(object.depositor) : "",
|
|
288
|
-
amount: Array.isArray(object?.amount) ? object.amount.map((e) => Coin.fromJSON(e)) : [],
|
|
289
|
-
};
|
|
290
|
-
},
|
|
291
|
-
toJSON(message) {
|
|
292
|
-
const obj = {};
|
|
293
|
-
message.proposalId !== undefined && (obj.proposalId = Math.round(message.proposalId));
|
|
294
|
-
message.depositor !== undefined && (obj.depositor = message.depositor);
|
|
295
|
-
if (message.amount) {
|
|
296
|
-
obj.amount = message.amount.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
obj.amount = [];
|
|
300
|
-
}
|
|
301
|
-
return obj;
|
|
302
|
-
},
|
|
303
|
-
fromPartial(object) {
|
|
304
|
-
const message = createBaseDeposit();
|
|
305
|
-
message.proposalId = object.proposalId ?? 0;
|
|
306
|
-
message.depositor = object.depositor ?? "";
|
|
307
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
308
|
-
return message;
|
|
309
|
-
},
|
|
310
|
-
};
|
|
311
|
-
function createBaseProposal() {
|
|
312
|
-
return {
|
|
313
|
-
proposalId: 0,
|
|
314
|
-
content: undefined,
|
|
315
|
-
status: 0,
|
|
316
|
-
finalTallyResult: undefined,
|
|
317
|
-
submitTime: undefined,
|
|
318
|
-
depositEndTime: undefined,
|
|
319
|
-
totalDeposit: [],
|
|
320
|
-
votingStartTime: undefined,
|
|
321
|
-
votingEndTime: undefined,
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
export const Proposal = {
|
|
325
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
326
|
-
if (message.proposalId !== 0) {
|
|
327
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
328
|
-
}
|
|
329
|
-
if (message.content !== undefined) {
|
|
330
|
-
Any.encode(message.content, writer.uint32(18).fork()).ldelim();
|
|
331
|
-
}
|
|
332
|
-
if (message.status !== 0) {
|
|
333
|
-
writer.uint32(24).int32(message.status);
|
|
334
|
-
}
|
|
335
|
-
if (message.finalTallyResult !== undefined) {
|
|
336
|
-
TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim();
|
|
337
|
-
}
|
|
338
|
-
if (message.submitTime !== undefined) {
|
|
339
|
-
Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
|
|
340
|
-
}
|
|
341
|
-
if (message.depositEndTime !== undefined) {
|
|
342
|
-
Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim();
|
|
343
|
-
}
|
|
344
|
-
for (const v of message.totalDeposit) {
|
|
345
|
-
Coin.encode(v, writer.uint32(58).fork()).ldelim();
|
|
346
|
-
}
|
|
347
|
-
if (message.votingStartTime !== undefined) {
|
|
348
|
-
Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim();
|
|
349
|
-
}
|
|
350
|
-
if (message.votingEndTime !== undefined) {
|
|
351
|
-
Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim();
|
|
352
|
-
}
|
|
353
|
-
return writer;
|
|
354
|
-
},
|
|
355
|
-
decode(input, length) {
|
|
356
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
357
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
358
|
-
const message = createBaseProposal();
|
|
359
|
-
while (reader.pos < end) {
|
|
360
|
-
const tag = reader.uint32();
|
|
361
|
-
switch (tag >>> 3) {
|
|
362
|
-
case 1:
|
|
363
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
364
|
-
break;
|
|
365
|
-
case 2:
|
|
366
|
-
message.content = Any.decode(reader, reader.uint32());
|
|
367
|
-
break;
|
|
368
|
-
case 3:
|
|
369
|
-
message.status = reader.int32();
|
|
370
|
-
break;
|
|
371
|
-
case 4:
|
|
372
|
-
message.finalTallyResult = TallyResult.decode(reader, reader.uint32());
|
|
373
|
-
break;
|
|
374
|
-
case 5:
|
|
375
|
-
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
376
|
-
break;
|
|
377
|
-
case 6:
|
|
378
|
-
message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
379
|
-
break;
|
|
380
|
-
case 7:
|
|
381
|
-
message.totalDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
382
|
-
break;
|
|
383
|
-
case 8:
|
|
384
|
-
message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
385
|
-
break;
|
|
386
|
-
case 9:
|
|
387
|
-
message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
388
|
-
break;
|
|
389
|
-
default:
|
|
390
|
-
reader.skipType(tag & 7);
|
|
391
|
-
break;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
return message;
|
|
395
|
-
},
|
|
396
|
-
fromJSON(object) {
|
|
397
|
-
return {
|
|
398
|
-
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
399
|
-
content: isSet(object.content) ? Any.fromJSON(object.content) : undefined,
|
|
400
|
-
status: isSet(object.status) ? proposalStatusFromJSON(object.status) : 0,
|
|
401
|
-
finalTallyResult: isSet(object.finalTallyResult) ? TallyResult.fromJSON(object.finalTallyResult) : undefined,
|
|
402
|
-
submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined,
|
|
403
|
-
depositEndTime: isSet(object.depositEndTime) ? fromJsonTimestamp(object.depositEndTime) : undefined,
|
|
404
|
-
totalDeposit: Array.isArray(object?.totalDeposit) ? object.totalDeposit.map((e) => Coin.fromJSON(e)) : [],
|
|
405
|
-
votingStartTime: isSet(object.votingStartTime) ? fromJsonTimestamp(object.votingStartTime) : undefined,
|
|
406
|
-
votingEndTime: isSet(object.votingEndTime) ? fromJsonTimestamp(object.votingEndTime) : undefined,
|
|
407
|
-
};
|
|
408
|
-
},
|
|
409
|
-
toJSON(message) {
|
|
410
|
-
const obj = {};
|
|
411
|
-
message.proposalId !== undefined && (obj.proposalId = Math.round(message.proposalId));
|
|
412
|
-
message.content !== undefined && (obj.content = message.content ? Any.toJSON(message.content) : undefined);
|
|
413
|
-
message.status !== undefined && (obj.status = proposalStatusToJSON(message.status));
|
|
414
|
-
message.finalTallyResult !== undefined
|
|
415
|
-
&& (obj.finalTallyResult = message.finalTallyResult ? TallyResult.toJSON(message.finalTallyResult) : undefined);
|
|
416
|
-
message.submitTime !== undefined && (obj.submitTime = message.submitTime.toISOString());
|
|
417
|
-
message.depositEndTime !== undefined && (obj.depositEndTime = message.depositEndTime.toISOString());
|
|
418
|
-
if (message.totalDeposit) {
|
|
419
|
-
obj.totalDeposit = message.totalDeposit.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
obj.totalDeposit = [];
|
|
423
|
-
}
|
|
424
|
-
message.votingStartTime !== undefined && (obj.votingStartTime = message.votingStartTime.toISOString());
|
|
425
|
-
message.votingEndTime !== undefined && (obj.votingEndTime = message.votingEndTime.toISOString());
|
|
426
|
-
return obj;
|
|
427
|
-
},
|
|
428
|
-
fromPartial(object) {
|
|
429
|
-
const message = createBaseProposal();
|
|
430
|
-
message.proposalId = object.proposalId ?? 0;
|
|
431
|
-
message.content = (object.content !== undefined && object.content !== null)
|
|
432
|
-
? Any.fromPartial(object.content)
|
|
433
|
-
: undefined;
|
|
434
|
-
message.status = object.status ?? 0;
|
|
435
|
-
message.finalTallyResult = (object.finalTallyResult !== undefined && object.finalTallyResult !== null)
|
|
436
|
-
? TallyResult.fromPartial(object.finalTallyResult)
|
|
437
|
-
: undefined;
|
|
438
|
-
message.submitTime = object.submitTime ?? undefined;
|
|
439
|
-
message.depositEndTime = object.depositEndTime ?? undefined;
|
|
440
|
-
message.totalDeposit = object.totalDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
441
|
-
message.votingStartTime = object.votingStartTime ?? undefined;
|
|
442
|
-
message.votingEndTime = object.votingEndTime ?? undefined;
|
|
443
|
-
return message;
|
|
444
|
-
},
|
|
445
|
-
};
|
|
446
|
-
function createBaseTallyResult() {
|
|
447
|
-
return { yes: "", abstain: "", no: "", noWithVeto: "" };
|
|
448
|
-
}
|
|
449
|
-
export const TallyResult = {
|
|
450
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
451
|
-
if (message.yes !== "") {
|
|
452
|
-
writer.uint32(10).string(message.yes);
|
|
453
|
-
}
|
|
454
|
-
if (message.abstain !== "") {
|
|
455
|
-
writer.uint32(18).string(message.abstain);
|
|
456
|
-
}
|
|
457
|
-
if (message.no !== "") {
|
|
458
|
-
writer.uint32(26).string(message.no);
|
|
459
|
-
}
|
|
460
|
-
if (message.noWithVeto !== "") {
|
|
461
|
-
writer.uint32(34).string(message.noWithVeto);
|
|
462
|
-
}
|
|
463
|
-
return writer;
|
|
464
|
-
},
|
|
465
|
-
decode(input, length) {
|
|
466
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
467
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
468
|
-
const message = createBaseTallyResult();
|
|
469
|
-
while (reader.pos < end) {
|
|
470
|
-
const tag = reader.uint32();
|
|
471
|
-
switch (tag >>> 3) {
|
|
472
|
-
case 1:
|
|
473
|
-
message.yes = reader.string();
|
|
474
|
-
break;
|
|
475
|
-
case 2:
|
|
476
|
-
message.abstain = reader.string();
|
|
477
|
-
break;
|
|
478
|
-
case 3:
|
|
479
|
-
message.no = reader.string();
|
|
480
|
-
break;
|
|
481
|
-
case 4:
|
|
482
|
-
message.noWithVeto = reader.string();
|
|
483
|
-
break;
|
|
484
|
-
default:
|
|
485
|
-
reader.skipType(tag & 7);
|
|
486
|
-
break;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
return message;
|
|
490
|
-
},
|
|
491
|
-
fromJSON(object) {
|
|
492
|
-
return {
|
|
493
|
-
yes: isSet(object.yes) ? String(object.yes) : "",
|
|
494
|
-
abstain: isSet(object.abstain) ? String(object.abstain) : "",
|
|
495
|
-
no: isSet(object.no) ? String(object.no) : "",
|
|
496
|
-
noWithVeto: isSet(object.noWithVeto) ? String(object.noWithVeto) : "",
|
|
497
|
-
};
|
|
498
|
-
},
|
|
499
|
-
toJSON(message) {
|
|
500
|
-
const obj = {};
|
|
501
|
-
message.yes !== undefined && (obj.yes = message.yes);
|
|
502
|
-
message.abstain !== undefined && (obj.abstain = message.abstain);
|
|
503
|
-
message.no !== undefined && (obj.no = message.no);
|
|
504
|
-
message.noWithVeto !== undefined && (obj.noWithVeto = message.noWithVeto);
|
|
505
|
-
return obj;
|
|
506
|
-
},
|
|
507
|
-
fromPartial(object) {
|
|
508
|
-
const message = createBaseTallyResult();
|
|
509
|
-
message.yes = object.yes ?? "";
|
|
510
|
-
message.abstain = object.abstain ?? "";
|
|
511
|
-
message.no = object.no ?? "";
|
|
512
|
-
message.noWithVeto = object.noWithVeto ?? "";
|
|
513
|
-
return message;
|
|
514
|
-
},
|
|
515
|
-
};
|
|
516
|
-
function createBaseVote() {
|
|
517
|
-
return { proposalId: 0, voter: "", option: 0, options: [] };
|
|
518
|
-
}
|
|
519
|
-
export const Vote = {
|
|
520
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
521
|
-
if (message.proposalId !== 0) {
|
|
522
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
523
|
-
}
|
|
524
|
-
if (message.voter !== "") {
|
|
525
|
-
writer.uint32(18).string(message.voter);
|
|
526
|
-
}
|
|
527
|
-
if (message.option !== 0) {
|
|
528
|
-
writer.uint32(24).int32(message.option);
|
|
529
|
-
}
|
|
530
|
-
for (const v of message.options) {
|
|
531
|
-
WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim();
|
|
532
|
-
}
|
|
533
|
-
return writer;
|
|
534
|
-
},
|
|
535
|
-
decode(input, length) {
|
|
536
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
537
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
538
|
-
const message = createBaseVote();
|
|
539
|
-
while (reader.pos < end) {
|
|
540
|
-
const tag = reader.uint32();
|
|
541
|
-
switch (tag >>> 3) {
|
|
542
|
-
case 1:
|
|
543
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
544
|
-
break;
|
|
545
|
-
case 2:
|
|
546
|
-
message.voter = reader.string();
|
|
547
|
-
break;
|
|
548
|
-
case 3:
|
|
549
|
-
message.option = reader.int32();
|
|
550
|
-
break;
|
|
551
|
-
case 4:
|
|
552
|
-
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
|
553
|
-
break;
|
|
554
|
-
default:
|
|
555
|
-
reader.skipType(tag & 7);
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
return message;
|
|
560
|
-
},
|
|
561
|
-
fromJSON(object) {
|
|
562
|
-
return {
|
|
563
|
-
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
564
|
-
voter: isSet(object.voter) ? String(object.voter) : "",
|
|
565
|
-
option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0,
|
|
566
|
-
options: Array.isArray(object?.options) ? object.options.map((e) => WeightedVoteOption.fromJSON(e)) : [],
|
|
567
|
-
};
|
|
568
|
-
},
|
|
569
|
-
toJSON(message) {
|
|
570
|
-
const obj = {};
|
|
571
|
-
message.proposalId !== undefined && (obj.proposalId = Math.round(message.proposalId));
|
|
572
|
-
message.voter !== undefined && (obj.voter = message.voter);
|
|
573
|
-
message.option !== undefined && (obj.option = voteOptionToJSON(message.option));
|
|
574
|
-
if (message.options) {
|
|
575
|
-
obj.options = message.options.map((e) => e ? WeightedVoteOption.toJSON(e) : undefined);
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
obj.options = [];
|
|
579
|
-
}
|
|
580
|
-
return obj;
|
|
581
|
-
},
|
|
582
|
-
fromPartial(object) {
|
|
583
|
-
const message = createBaseVote();
|
|
584
|
-
message.proposalId = object.proposalId ?? 0;
|
|
585
|
-
message.voter = object.voter ?? "";
|
|
586
|
-
message.option = object.option ?? 0;
|
|
587
|
-
message.options = object.options?.map((e) => WeightedVoteOption.fromPartial(e)) || [];
|
|
588
|
-
return message;
|
|
589
|
-
},
|
|
590
|
-
};
|
|
591
|
-
function createBaseDepositParams() {
|
|
592
|
-
return { minDeposit: [], maxDepositPeriod: undefined };
|
|
593
|
-
}
|
|
594
|
-
export const DepositParams = {
|
|
595
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
596
|
-
for (const v of message.minDeposit) {
|
|
597
|
-
Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
598
|
-
}
|
|
599
|
-
if (message.maxDepositPeriod !== undefined) {
|
|
600
|
-
Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
|
|
601
|
-
}
|
|
602
|
-
return writer;
|
|
603
|
-
},
|
|
604
|
-
decode(input, length) {
|
|
605
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
606
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
607
|
-
const message = createBaseDepositParams();
|
|
608
|
-
while (reader.pos < end) {
|
|
609
|
-
const tag = reader.uint32();
|
|
610
|
-
switch (tag >>> 3) {
|
|
611
|
-
case 1:
|
|
612
|
-
message.minDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
613
|
-
break;
|
|
614
|
-
case 2:
|
|
615
|
-
message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
|
|
616
|
-
break;
|
|
617
|
-
default:
|
|
618
|
-
reader.skipType(tag & 7);
|
|
619
|
-
break;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
return message;
|
|
623
|
-
},
|
|
624
|
-
fromJSON(object) {
|
|
625
|
-
return {
|
|
626
|
-
minDeposit: Array.isArray(object?.minDeposit) ? object.minDeposit.map((e) => Coin.fromJSON(e)) : [],
|
|
627
|
-
maxDepositPeriod: isSet(object.maxDepositPeriod) ? Duration.fromJSON(object.maxDepositPeriod) : undefined,
|
|
628
|
-
};
|
|
629
|
-
},
|
|
630
|
-
toJSON(message) {
|
|
631
|
-
const obj = {};
|
|
632
|
-
if (message.minDeposit) {
|
|
633
|
-
obj.minDeposit = message.minDeposit.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
634
|
-
}
|
|
635
|
-
else {
|
|
636
|
-
obj.minDeposit = [];
|
|
637
|
-
}
|
|
638
|
-
message.maxDepositPeriod !== undefined
|
|
639
|
-
&& (obj.maxDepositPeriod = message.maxDepositPeriod ? Duration.toJSON(message.maxDepositPeriod) : undefined);
|
|
640
|
-
return obj;
|
|
641
|
-
},
|
|
642
|
-
fromPartial(object) {
|
|
643
|
-
const message = createBaseDepositParams();
|
|
644
|
-
message.minDeposit = object.minDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
645
|
-
message.maxDepositPeriod = (object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null)
|
|
646
|
-
? Duration.fromPartial(object.maxDepositPeriod)
|
|
647
|
-
: undefined;
|
|
648
|
-
return message;
|
|
649
|
-
},
|
|
650
|
-
};
|
|
651
|
-
function createBaseVotingParams() {
|
|
652
|
-
return { votingPeriod: undefined };
|
|
653
|
-
}
|
|
654
|
-
export const VotingParams = {
|
|
655
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
656
|
-
if (message.votingPeriod !== undefined) {
|
|
657
|
-
Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
|
|
658
|
-
}
|
|
659
|
-
return writer;
|
|
660
|
-
},
|
|
661
|
-
decode(input, length) {
|
|
662
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
663
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
664
|
-
const message = createBaseVotingParams();
|
|
665
|
-
while (reader.pos < end) {
|
|
666
|
-
const tag = reader.uint32();
|
|
667
|
-
switch (tag >>> 3) {
|
|
668
|
-
case 1:
|
|
669
|
-
message.votingPeriod = Duration.decode(reader, reader.uint32());
|
|
670
|
-
break;
|
|
671
|
-
default:
|
|
672
|
-
reader.skipType(tag & 7);
|
|
673
|
-
break;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
return message;
|
|
677
|
-
},
|
|
678
|
-
fromJSON(object) {
|
|
679
|
-
return { votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined };
|
|
680
|
-
},
|
|
681
|
-
toJSON(message) {
|
|
682
|
-
const obj = {};
|
|
683
|
-
message.votingPeriod !== undefined
|
|
684
|
-
&& (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined);
|
|
685
|
-
return obj;
|
|
686
|
-
},
|
|
687
|
-
fromPartial(object) {
|
|
688
|
-
const message = createBaseVotingParams();
|
|
689
|
-
message.votingPeriod = (object.votingPeriod !== undefined && object.votingPeriod !== null)
|
|
690
|
-
? Duration.fromPartial(object.votingPeriod)
|
|
691
|
-
: undefined;
|
|
692
|
-
return message;
|
|
693
|
-
},
|
|
694
|
-
};
|
|
695
|
-
function createBaseTallyParams() {
|
|
696
|
-
return { quorum: new Uint8Array(), threshold: new Uint8Array(), vetoThreshold: new Uint8Array() };
|
|
697
|
-
}
|
|
698
|
-
export const TallyParams = {
|
|
699
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
700
|
-
if (message.quorum.length !== 0) {
|
|
701
|
-
writer.uint32(10).bytes(message.quorum);
|
|
702
|
-
}
|
|
703
|
-
if (message.threshold.length !== 0) {
|
|
704
|
-
writer.uint32(18).bytes(message.threshold);
|
|
705
|
-
}
|
|
706
|
-
if (message.vetoThreshold.length !== 0) {
|
|
707
|
-
writer.uint32(26).bytes(message.vetoThreshold);
|
|
708
|
-
}
|
|
709
|
-
return writer;
|
|
710
|
-
},
|
|
711
|
-
decode(input, length) {
|
|
712
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
713
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
714
|
-
const message = createBaseTallyParams();
|
|
715
|
-
while (reader.pos < end) {
|
|
716
|
-
const tag = reader.uint32();
|
|
717
|
-
switch (tag >>> 3) {
|
|
718
|
-
case 1:
|
|
719
|
-
message.quorum = reader.bytes();
|
|
720
|
-
break;
|
|
721
|
-
case 2:
|
|
722
|
-
message.threshold = reader.bytes();
|
|
723
|
-
break;
|
|
724
|
-
case 3:
|
|
725
|
-
message.vetoThreshold = reader.bytes();
|
|
726
|
-
break;
|
|
727
|
-
default:
|
|
728
|
-
reader.skipType(tag & 7);
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
return message;
|
|
733
|
-
},
|
|
734
|
-
fromJSON(object) {
|
|
735
|
-
return {
|
|
736
|
-
quorum: isSet(object.quorum) ? bytesFromBase64(object.quorum) : new Uint8Array(),
|
|
737
|
-
threshold: isSet(object.threshold) ? bytesFromBase64(object.threshold) : new Uint8Array(),
|
|
738
|
-
vetoThreshold: isSet(object.vetoThreshold) ? bytesFromBase64(object.vetoThreshold) : new Uint8Array(),
|
|
739
|
-
};
|
|
740
|
-
},
|
|
741
|
-
toJSON(message) {
|
|
742
|
-
const obj = {};
|
|
743
|
-
message.quorum !== undefined
|
|
744
|
-
&& (obj.quorum = base64FromBytes(message.quorum !== undefined ? message.quorum : new Uint8Array()));
|
|
745
|
-
message.threshold !== undefined
|
|
746
|
-
&& (obj.threshold = base64FromBytes(message.threshold !== undefined ? message.threshold : new Uint8Array()));
|
|
747
|
-
message.vetoThreshold !== undefined
|
|
748
|
-
&& (obj.vetoThreshold = base64FromBytes(message.vetoThreshold !== undefined ? message.vetoThreshold : new Uint8Array()));
|
|
749
|
-
return obj;
|
|
750
|
-
},
|
|
751
|
-
fromPartial(object) {
|
|
752
|
-
const message = createBaseTallyParams();
|
|
753
|
-
message.quorum = object.quorum ?? new Uint8Array();
|
|
754
|
-
message.threshold = object.threshold ?? new Uint8Array();
|
|
755
|
-
message.vetoThreshold = object.vetoThreshold ?? new Uint8Array();
|
|
756
|
-
return message;
|
|
757
|
-
},
|
|
758
|
-
};
|
|
759
|
-
var globalThis = (() => {
|
|
760
|
-
if (typeof globalThis !== "undefined") {
|
|
761
|
-
return globalThis;
|
|
762
|
-
}
|
|
763
|
-
if (typeof self !== "undefined") {
|
|
764
|
-
return self;
|
|
765
|
-
}
|
|
766
|
-
if (typeof window !== "undefined") {
|
|
767
|
-
return window;
|
|
768
|
-
}
|
|
769
|
-
if (typeof global !== "undefined") {
|
|
770
|
-
return global;
|
|
771
|
-
}
|
|
772
|
-
throw "Unable to locate global object";
|
|
773
|
-
})();
|
|
774
|
-
function bytesFromBase64(b64) {
|
|
775
|
-
if (globalThis.Buffer) {
|
|
776
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
777
|
-
}
|
|
778
|
-
else {
|
|
779
|
-
const bin = globalThis.atob(b64);
|
|
780
|
-
const arr = new Uint8Array(bin.length);
|
|
781
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
782
|
-
arr[i] = bin.charCodeAt(i);
|
|
783
|
-
}
|
|
784
|
-
return arr;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
function base64FromBytes(arr) {
|
|
788
|
-
if (globalThis.Buffer) {
|
|
789
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
790
|
-
}
|
|
791
|
-
else {
|
|
792
|
-
const bin = [];
|
|
793
|
-
arr.forEach((byte) => {
|
|
794
|
-
bin.push(String.fromCharCode(byte));
|
|
795
|
-
});
|
|
796
|
-
return globalThis.btoa(bin.join(""));
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
function toTimestamp(date) {
|
|
800
|
-
const seconds = date.getTime() / 1000;
|
|
801
|
-
const nanos = (date.getTime() % 1000) * 1000000;
|
|
802
|
-
return { seconds, nanos };
|
|
803
|
-
}
|
|
804
|
-
function fromTimestamp(t) {
|
|
805
|
-
let millis = t.seconds * 1000;
|
|
806
|
-
millis += t.nanos / 1000000;
|
|
807
|
-
return new Date(millis);
|
|
808
|
-
}
|
|
809
|
-
function fromJsonTimestamp(o) {
|
|
810
|
-
if (o instanceof Date) {
|
|
811
|
-
return o;
|
|
812
|
-
}
|
|
813
|
-
else if (typeof o === "string") {
|
|
814
|
-
return new Date(o);
|
|
815
|
-
}
|
|
816
|
-
else {
|
|
817
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
function longToNumber(long) {
|
|
821
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
822
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
823
|
-
}
|
|
824
|
-
return long.toNumber();
|
|
825
|
-
}
|
|
826
|
-
if (_m0.util.Long !== Long) {
|
|
827
|
-
_m0.util.Long = Long;
|
|
828
|
-
_m0.configure();
|
|
829
|
-
}
|
|
830
|
-
function isSet(value) {
|
|
831
|
-
return value !== null && value !== undefined;
|
|
832
|
-
}
|