bitbadgesjs-sdk 0.3.41 → 0.3.42
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/address-converter/converter.js +56 -41
- package/dist/address-converter/converter.js.map +1 -1
- package/dist/address-converter/index.js +17 -1
- package/dist/address-converter/index.js.map +1 -1
- package/dist/api-indexer/BitBadgesAddressList.js +28 -20
- package/dist/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/api-indexer/BitBadgesApi.js +135 -127
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/BitBadgesCollection.js +128 -123
- package/dist/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.js +44 -37
- package/dist/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/api-indexer/base.js +14 -6
- package/dist/api-indexer/base.js.map +1 -1
- package/dist/api-indexer/docs/activity.js +24 -16
- package/dist/api-indexer/docs/activity.js.map +1 -1
- package/dist/api-indexer/docs/docs.js +157 -120
- package/dist/api-indexer/docs/docs.js.map +1 -1
- package/dist/api-indexer/docs/index.js +20 -4
- package/dist/api-indexer/docs/index.js.map +1 -1
- package/dist/api-indexer/docs/interfaces.js +5 -2
- package/dist/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/api-indexer/index.js +24 -8
- package/dist/api-indexer/index.js.map +1 -1
- package/dist/api-indexer/metadata/badgeMetadata.js +27 -22
- package/dist/api-indexer/metadata/badgeMetadata.js.map +1 -1
- package/dist/api-indexer/metadata/index.js +19 -3
- package/dist/api-indexer/metadata/index.js.map +1 -1
- package/dist/api-indexer/metadata/metadata.js +10 -6
- package/dist/api-indexer/metadata/metadata.js.map +1 -1
- package/dist/api-indexer/metadata/metadataIds.js +26 -18
- package/dist/api-indexer/metadata/metadataIds.js.map +1 -1
- package/dist/api-indexer/requests/blockin.js +23 -15
- package/dist/api-indexer/requests/blockin.js.map +1 -1
- package/dist/api-indexer/requests/collections.js +38 -27
- package/dist/api-indexer/requests/collections.js.map +1 -1
- package/dist/api-indexer/requests/index.js +20 -4
- package/dist/api-indexer/requests/index.js.map +1 -1
- package/dist/api-indexer/requests/maps.js +16 -11
- package/dist/api-indexer/requests/maps.js.map +1 -1
- package/dist/api-indexer/requests/requests.js +154 -98
- package/dist/api-indexer/requests/requests.js.map +1 -1
- package/dist/api-indexer/requests/routes.js +5 -1
- package/dist/api-indexer/requests/routes.js.map +1 -1
- package/dist/chain-drivers/BtcDriver.js +6 -3
- package/dist/chain-drivers/BtcDriver.js.map +1 -1
- package/dist/chain-drivers/CosmosDriver.js +9 -6
- package/dist/chain-drivers/CosmosDriver.js.map +1 -1
- package/dist/chain-drivers/EthDriver.js +8 -5
- package/dist/chain-drivers/EthDriver.js.map +1 -1
- package/dist/chain-drivers/SolDriver.js +11 -5
- package/dist/chain-drivers/SolDriver.js.map +1 -1
- package/dist/chain-drivers/verifySig.js +19 -11
- package/dist/chain-drivers/verifySig.js.map +1 -1
- package/dist/common/base.js +26 -14
- package/dist/common/base.js.map +1 -1
- package/dist/common/constants.js +7 -4
- package/dist/common/constants.js.map +1 -1
- package/dist/common/index.js +21 -5
- package/dist/common/index.js.map +1 -1
- package/dist/common/math.js +28 -13
- package/dist/common/math.js.map +1 -1
- package/dist/common/string-numbers.js +11 -4
- package/dist/common/string-numbers.js.map +1 -1
- package/dist/common/typed-arrays.js +5 -1
- package/dist/common/typed-arrays.js.map +1 -1
- package/dist/common/types.js +5 -2
- package/dist/common/types.js.map +1 -1
- package/dist/core/addressLists.js +38 -11
- package/dist/core/addressLists.js.map +1 -1
- package/dist/core/addressLists.spec.js +28 -24
- package/dist/core/addressLists.spec.js.map +1 -1
- package/dist/core/aliases.js +20 -10
- package/dist/core/aliases.js.map +1 -1
- package/dist/core/approval-utils.js +43 -33
- package/dist/core/approval-utils.js.map +1 -1
- package/dist/core/approvals.js +204 -153
- package/dist/core/approvals.js.map +1 -1
- package/dist/core/balances.js +140 -93
- package/dist/core/balances.js.map +1 -1
- package/dist/core/balances.spec.js +36 -34
- package/dist/core/balances.spec.js.map +1 -1
- package/dist/core/batch-utils.js +19 -14
- package/dist/core/batch-utils.js.map +1 -1
- package/dist/core/batch-utils.spec.js +13 -11
- package/dist/core/batch-utils.spec.js.map +1 -1
- package/dist/core/blockin.js +32 -26
- package/dist/core/blockin.js.map +1 -1
- package/dist/core/coin.js +7 -3
- package/dist/core/coin.js.map +1 -1
- package/dist/core/index.js +32 -16
- package/dist/core/index.js.map +1 -1
- package/dist/core/misc.js +317 -255
- package/dist/core/misc.js.map +1 -1
- package/dist/core/overlaps.js +70 -58
- package/dist/core/overlaps.js.map +1 -1
- package/dist/core/permission-utils.js +26 -22
- package/dist/core/permission-utils.js.map +1 -1
- package/dist/core/permissions.js +206 -189
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/secrets.js +11 -6
- package/dist/core/secrets.js.map +1 -1
- package/dist/core/timelines.js +31 -17
- package/dist/core/timelines.js.map +1 -1
- package/dist/core/transfers.js +102 -67
- package/dist/core/transfers.js.map +1 -1
- package/dist/core/transfers.spec.js +17 -15
- package/dist/core/transfers.spec.js.map +1 -1
- package/dist/core/uintRanges.js +53 -25
- package/dist/core/uintRanges.js.map +1 -1
- package/dist/core/uintRanges.spec.js +12 -10
- package/dist/core/uintRanges.spec.js.map +1 -1
- package/dist/core/userBalances.js +51 -23
- package/dist/core/userBalances.js.map +1 -1
- package/dist/core/validate-utils.js +38 -33
- package/dist/core/validate-utils.js.map +1 -1
- package/dist/index.js +36 -7
- package/dist/index.js.map +1 -1
- package/dist/interfaces/badges/approvals.js +2 -1
- package/dist/interfaces/badges/core.js +2 -1
- package/dist/interfaces/badges/index.js +20 -4
- package/dist/interfaces/badges/index.js.map +1 -1
- package/dist/interfaces/badges/permissions.js +2 -1
- package/dist/interfaces/badges/userBalances.js +2 -1
- package/dist/interfaces/index.js +18 -2
- package/dist/interfaces/index.js.map +1 -1
- package/dist/node-rest-api/account.js +5 -1
- package/dist/node-rest-api/account.js.map +1 -1
- package/dist/node-rest-api/balances.js +5 -1
- package/dist/node-rest-api/balances.js.map +1 -1
- package/dist/node-rest-api/broadcast.js +9 -4
- package/dist/node-rest-api/broadcast.js.map +1 -1
- package/dist/node-rest-api/gov.js +9 -4
- package/dist/node-rest-api/gov.js.map +1 -1
- package/dist/node-rest-api/ibc.js +5 -1
- package/dist/node-rest-api/ibc.js.map +1 -1
- package/dist/node-rest-api/index.js +22 -6
- package/dist/node-rest-api/index.js.map +1 -1
- package/dist/node-rest-api/staking.js +11 -4
- package/dist/node-rest-api/staking.js.map +1 -1
- package/dist/proto/amino/amino_pb.js +9 -6
- package/dist/proto/amino/amino_pb.js.map +1 -1
- package/dist/proto/anchor/genesis_pb.js +14 -10
- package/dist/proto/anchor/genesis_pb.js.map +1 -1
- package/dist/proto/anchor/index.js +21 -5
- package/dist/proto/anchor/index.js.map +1 -1
- package/dist/proto/anchor/packet_pb.js +16 -11
- package/dist/proto/anchor/packet_pb.js.map +1 -1
- package/dist/proto/anchor/params_pb.js +10 -6
- package/dist/proto/anchor/params_pb.js.map +1 -1
- package/dist/proto/anchor/query_pb.js +32 -25
- package/dist/proto/anchor/query_pb.js.map +1 -1
- package/dist/proto/anchor/tx_pb.js +28 -21
- package/dist/proto/anchor/tx_pb.js.map +1 -1
- package/dist/proto/badges/address_lists_pb.js +10 -6
- package/dist/proto/badges/address_lists_pb.js.map +1 -1
- package/dist/proto/badges/balances_pb.js +22 -16
- package/dist/proto/badges/balances_pb.js.map +1 -1
- package/dist/proto/badges/collections_pb.js +23 -19
- package/dist/proto/badges/collections_pb.js.map +1 -1
- package/dist/proto/badges/genesis_pb.js +19 -15
- package/dist/proto/badges/genesis_pb.js.map +1 -1
- package/dist/proto/badges/index.js +29 -13
- package/dist/proto/badges/index.js.map +1 -1
- package/dist/proto/badges/legacytx_pb.js +164 -142
- package/dist/proto/badges/legacytx_pb.js.map +1 -1
- package/dist/proto/badges/metadata_pb.js +24 -18
- package/dist/proto/badges/metadata_pb.js.map +1 -1
- package/dist/proto/badges/packet_pb.js +16 -11
- package/dist/proto/badges/packet_pb.js.map +1 -1
- package/dist/proto/badges/params_pb.js +10 -6
- package/dist/proto/badges/params_pb.js.map +1 -1
- package/dist/proto/badges/permissions_pb.js +87 -75
- package/dist/proto/badges/permissions_pb.js.map +1 -1
- package/dist/proto/badges/query_pb.js +85 -70
- package/dist/proto/badges/query_pb.js.map +1 -1
- package/dist/proto/badges/timelines_pb.js +65 -54
- package/dist/proto/badges/timelines_pb.js.map +1 -1
- package/dist/proto/badges/transfers_pb.js +158 -133
- package/dist/proto/badges/transfers_pb.js.map +1 -1
- package/dist/proto/badges/tx_pb.js +148 -128
- package/dist/proto/badges/tx_pb.js.map +1 -1
- package/dist/proto/bitcoin/index.js +17 -1
- package/dist/proto/bitcoin/index.js.map +1 -1
- package/dist/proto/bitcoin/web3_pb.js +11 -7
- package/dist/proto/bitcoin/web3_pb.js.map +1 -1
- package/dist/proto/cosmos/app/index.js +28 -2
- package/dist/proto/cosmos/app/index.js.map +1 -1
- package/dist/proto/cosmos/app/runtime/index.js +27 -1
- package/dist/proto/cosmos/app/runtime/index.js.map +1 -1
- package/dist/proto/cosmos/app/runtime/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/app/runtime/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/app/runtime/v1alpha1/module_pb.js +16 -11
- package/dist/proto/cosmos/app/runtime/v1alpha1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/config_pb.js +23 -17
- package/dist/proto/cosmos/app/v1alpha1/config_pb.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/index.js +19 -3
- package/dist/proto/cosmos/app/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/module_pb.js +23 -17
- package/dist/proto/cosmos/app/v1alpha1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/query_pb.js +18 -13
- package/dist/proto/cosmos/app/v1alpha1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/index.js +28 -2
- package/dist/proto/cosmos/auth/index.js.map +1 -1
- package/dist/proto/cosmos/auth/module/index.js +27 -1
- package/dist/proto/cosmos/auth/module/index.js.map +1 -1
- package/dist/proto/cosmos/auth/module/v1/index.js +17 -1
- package/dist/proto/cosmos/auth/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/auth/module/v1/module_pb.js +16 -11
- package/dist/proto/cosmos/auth/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/auth_pb.js +36 -29
- package/dist/proto/cosmos/auth/v1beta1/auth_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/genesis_pb.js +13 -9
- package/dist/proto/cosmos/auth/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/auth/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/query_pb.js +136 -113
- package/dist/proto/cosmos/auth/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/tx_pb.js +18 -13
- package/dist/proto/cosmos/auth/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/index.js +28 -2
- package/dist/proto/cosmos/authz/index.js.map +1 -1
- package/dist/proto/cosmos/authz/module/index.js +27 -1
- package/dist/proto/cosmos/authz/module/index.js.map +1 -1
- package/dist/proto/cosmos/authz/module/v1/index.js +17 -1
- package/dist/proto/cosmos/authz/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/authz/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/authz/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/authz_pb.js +32 -25
- package/dist/proto/cosmos/authz/v1beta1/authz_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/event_pb.js +16 -11
- package/dist/proto/cosmos/authz/v1beta1/event_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/genesis_pb.js +12 -8
- package/dist/proto/cosmos/authz/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/authz/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/query_pb.js +51 -42
- package/dist/proto/cosmos/authz/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/tx_pb.js +43 -34
- package/dist/proto/cosmos/authz/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/autocli/index.js +27 -1
- package/dist/proto/cosmos/autocli/index.js.map +1 -1
- package/dist/proto/cosmos/autocli/v1/index.js +18 -2
- package/dist/proto/cosmos/autocli/v1/index.js.map +1 -1
- package/dist/proto/cosmos/autocli/v1/options_pb.js +34 -26
- package/dist/proto/cosmos/autocli/v1/options_pb.js.map +1 -1
- package/dist/proto/cosmos/autocli/v1/query_pb.js +18 -13
- package/dist/proto/cosmos/autocli/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/index.js +28 -2
- package/dist/proto/cosmos/bank/index.js.map +1 -1
- package/dist/proto/cosmos/bank/module/index.js +27 -1
- package/dist/proto/cosmos/bank/module/index.js.map +1 -1
- package/dist/proto/cosmos/bank/module/v1/index.js +17 -1
- package/dist/proto/cosmos/bank/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/bank/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/bank/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/authz_pb.js +12 -8
- package/dist/proto/cosmos/bank/v1beta1/authz_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/bank_pb.js +50 -40
- package/dist/proto/cosmos/bank/v1beta1/bank_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/genesis_pb.js +23 -18
- package/dist/proto/cosmos/bank/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/bank/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/query_pb.js +168 -142
- package/dist/proto/cosmos/bank/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/tx_pb.js +59 -48
- package/dist/proto/cosmos/bank/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/base/abci/index.js +27 -1
- package/dist/proto/cosmos/base/abci/index.js.map +1 -1
- package/dist/proto/cosmos/base/abci/v1beta1/abci_pb.js +80 -67
- package/dist/proto/cosmos/base/abci/v1beta1/abci_pb.js.map +1 -1
- package/dist/proto/cosmos/base/abci/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/abci/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/index.js +35 -9
- package/dist/proto/cosmos/base/index.js.map +1 -1
- package/dist/proto/cosmos/base/kv/index.js +27 -1
- package/dist/proto/cosmos/base/kv/index.js.map +1 -1
- package/dist/proto/cosmos/base/kv/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/kv/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/kv/v1beta1/kv_pb.js +16 -11
- package/dist/proto/cosmos/base/kv/v1beta1/kv_pb.js.map +1 -1
- package/dist/proto/cosmos/base/node/index.js +27 -1
- package/dist/proto/cosmos/base/node/index.js.map +1 -1
- package/dist/proto/cosmos/base/node/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/node/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/node/v1beta1/query_pb.js +16 -11
- package/dist/proto/cosmos/base/node/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/base/query/index.js +27 -1
- package/dist/proto/cosmos/base/query/index.js.map +1 -1
- package/dist/proto/cosmos/base/query/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/query/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/query/v1beta1/pagination_pb.js +19 -14
- package/dist/proto/cosmos/base/query/v1beta1/pagination_pb.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/index.js +28 -2
- package/dist/proto/cosmos/base/reflection/index.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/reflection/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v1beta1/reflection_pb.js +28 -21
- package/dist/proto/cosmos/base/reflection/v1beta1/reflection_pb.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v2alpha1/index.js +17 -1
- package/dist/proto/cosmos/base/reflection/v2alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v2alpha1/reflection_pb.js +160 -131
- package/dist/proto/cosmos/base/reflection/v2alpha1/reflection_pb.js.map +1 -1
- package/dist/proto/cosmos/base/snapshots/index.js +27 -1
- package/dist/proto/cosmos/base/snapshots/index.js.map +1 -1
- package/dist/proto/cosmos/base/snapshots/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/snapshots/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.js +60 -48
- package/dist/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.js.map +1 -1
- package/dist/proto/cosmos/base/store/index.js +27 -1
- package/dist/proto/cosmos/base/store/index.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/commit_info_pb.js +25 -19
- package/dist/proto/cosmos/base/store/v1beta1/commit_info_pb.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/index.js +19 -3
- package/dist/proto/cosmos/base/store/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/listening_pb.js +30 -24
- package/dist/proto/cosmos/base/store/v1beta1/listening_pb.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/snapshot_pb.js +23 -17
- package/dist/proto/cosmos/base/store/v1beta1/snapshot_pb.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/index.js +27 -1
- package/dist/proto/cosmos/base/tendermint/index.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/base/tendermint/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/v1beta1/query_pb.js +144 -122
- package/dist/proto/cosmos/base/tendermint/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/v1beta1/types_pb.js +26 -21
- package/dist/proto/cosmos/base/tendermint/v1beta1/types_pb.js.map +1 -1
- package/dist/proto/cosmos/base/v1beta1/coin_pb.js +28 -21
- package/dist/proto/cosmos/base/v1beta1/coin_pb.js.map +1 -1
- package/dist/proto/cosmos/base/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/capability/index.js +28 -2
- package/dist/proto/cosmos/capability/index.js.map +1 -1
- package/dist/proto/cosmos/capability/module/index.js +27 -1
- package/dist/proto/cosmos/capability/module/index.js.map +1 -1
- package/dist/proto/cosmos/capability/module/v1/index.js +17 -1
- package/dist/proto/cosmos/capability/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/capability/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/capability/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/capability/v1beta1/capability_pb.js +23 -17
- package/dist/proto/cosmos/capability/v1beta1/capability_pb.js.map +1 -1
- package/dist/proto/cosmos/capability/v1beta1/genesis_pb.js +20 -15
- package/dist/proto/cosmos/capability/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/capability/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/capability/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/index.js +28 -2
- package/dist/proto/cosmos/consensus/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/module/index.js +27 -1
- package/dist/proto/cosmos/consensus/module/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/module/v1/index.js +17 -1
- package/dist/proto/cosmos/consensus/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/consensus/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/consensus/v1/index.js +18 -2
- package/dist/proto/cosmos/consensus/v1/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/v1/query_pb.js +18 -13
- package/dist/proto/cosmos/consensus/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/consensus/v1/tx_pb.js +20 -15
- package/dist/proto/cosmos/consensus/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/crisis/index.js +28 -2
- package/dist/proto/cosmos/crisis/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/module/index.js +27 -1
- package/dist/proto/cosmos/crisis/module/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/module/v1/index.js +17 -1
- package/dist/proto/cosmos/crisis/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/crisis/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/crisis/v1beta1/genesis_pb.js +12 -8
- package/dist/proto/cosmos/crisis/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/crisis/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/crisis/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/v1beta1/tx_pb.js +30 -23
- package/dist/proto/cosmos/crisis/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/ed25519/index.js +17 -1
- package/dist/proto/cosmos/crypto/ed25519/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/ed25519/keys_pb.js +16 -11
- package/dist/proto/cosmos/crypto/ed25519/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/hd/index.js +27 -1
- package/dist/proto/cosmos/crypto/hd/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/hd/v1/hd_pb.js +10 -6
- package/dist/proto/cosmos/crypto/hd/v1/hd_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/hd/v1/index.js +17 -1
- package/dist/proto/cosmos/crypto/hd/v1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/index.js +32 -6
- package/dist/proto/cosmos/crypto/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/keyring/index.js +27 -1
- package/dist/proto/cosmos/crypto/keyring/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/keyring/v1/index.js +17 -1
- package/dist/proto/cosmos/crypto/keyring/v1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/keyring/v1/record_pb.js +38 -30
- package/dist/proto/cosmos/crypto/keyring/v1/record_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/index.js +31 -2
- package/dist/proto/cosmos/crypto/multisig/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/keys_pb.js +11 -7
- package/dist/proto/cosmos/crypto/multisig/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/crypto/multisig/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.js +16 -11
- package/dist/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256k1/index.js +17 -1
- package/dist/proto/cosmos/crypto/secp256k1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256k1/keys_pb.js +16 -11
- package/dist/proto/cosmos/crypto/secp256k1/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256r1/index.js +17 -1
- package/dist/proto/cosmos/crypto/secp256r1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256r1/keys_pb.js +16 -11
- package/dist/proto/cosmos/crypto/secp256r1/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/index.js +28 -2
- package/dist/proto/cosmos/distribution/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/module/index.js +27 -1
- package/dist/proto/cosmos/distribution/module/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/module/v1/index.js +17 -1
- package/dist/proto/cosmos/distribution/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/distribution/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/distribution_pb.js +88 -73
- package/dist/proto/cosmos/distribution/v1beta1/distribution_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/genesis_pb.js +65 -54
- package/dist/proto/cosmos/distribution/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/distribution/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/query_pb.js +141 -118
- package/dist/proto/cosmos/distribution/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/tx_pb.js +83 -68
- package/dist/proto/cosmos/distribution/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/index.js +28 -2
- package/dist/proto/cosmos/evidence/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/module/index.js +27 -1
- package/dist/proto/cosmos/evidence/module/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/module/v1/index.js +17 -1
- package/dist/proto/cosmos/evidence/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/evidence/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/evidence_pb.js +13 -9
- package/dist/proto/cosmos/evidence/v1beta1/evidence_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/genesis_pb.js +11 -7
- package/dist/proto/cosmos/evidence/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/evidence/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/query_pb.js +33 -26
- package/dist/proto/cosmos/evidence/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/tx_pb.js +17 -12
- package/dist/proto/cosmos/evidence/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/index.js +28 -2
- package/dist/proto/cosmos/feegrant/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/module/index.js +27 -1
- package/dist/proto/cosmos/feegrant/module/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/module/v1/index.js +17 -1
- package/dist/proto/cosmos/feegrant/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/feegrant/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/feegrant_pb.js +37 -30
- package/dist/proto/cosmos/feegrant/v1beta1/feegrant_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/genesis_pb.js +12 -8
- package/dist/proto/cosmos/feegrant/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/feegrant/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/query_pb.js +49 -40
- package/dist/proto/cosmos/feegrant/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/tx_pb.js +29 -22
- package/dist/proto/cosmos/feegrant/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/genutil/index.js +28 -2
- package/dist/proto/cosmos/genutil/index.js.map +1 -1
- package/dist/proto/cosmos/genutil/module/index.js +27 -1
- package/dist/proto/cosmos/genutil/module/index.js.map +1 -1
- package/dist/proto/cosmos/genutil/module/v1/index.js +17 -1
- package/dist/proto/cosmos/genutil/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/genutil/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/genutil/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/genutil/v1beta1/genesis_pb.js +10 -6
- package/dist/proto/cosmos/genutil/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/genutil/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/genutil/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/index.js +29 -3
- package/dist/proto/cosmos/gov/index.js.map +1 -1
- package/dist/proto/cosmos/gov/module/index.js +27 -1
- package/dist/proto/cosmos/gov/module/index.js.map +1 -1
- package/dist/proto/cosmos/gov/module/v1/index.js +17 -1
- package/dist/proto/cosmos/gov/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/module/v1/module_pb.js +11 -7
- package/dist/proto/cosmos/gov/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/genesis_pb.js +19 -15
- package/dist/proto/cosmos/gov/v1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/gov_pb.js +83 -71
- package/dist/proto/cosmos/gov/v1/gov_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/index.js +20 -4
- package/dist/proto/cosmos/gov/v1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/query_pb.js +127 -108
- package/dist/proto/cosmos/gov/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/tx_pb.js +90 -75
- package/dist/proto/cosmos/gov/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/genesis_pb.js +18 -14
- package/dist/proto/cosmos/gov/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/gov_pb.js +81 -69
- package/dist/proto/cosmos/gov/v1beta1/gov_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/gov/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/query_pb.js +126 -107
- package/dist/proto/cosmos/gov/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/tx_pb.js +64 -53
- package/dist/proto/cosmos/gov/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/group/index.js +28 -2
- package/dist/proto/cosmos/group/index.js.map +1 -1
- package/dist/proto/cosmos/group/module/index.js +27 -1
- package/dist/proto/cosmos/group/module/index.js.map +1 -1
- package/dist/proto/cosmos/group/module/v1/index.js +17 -1
- package/dist/proto/cosmos/group/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/group/module/v1/module_pb.js +12 -8
- package/dist/proto/cosmos/group/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/events_pb.js +78 -65
- package/dist/proto/cosmos/group/v1/events_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/genesis_pb.js +19 -15
- package/dist/proto/cosmos/group/v1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/index.js +21 -5
- package/dist/proto/cosmos/group/v1/index.js.map +1 -1
- package/dist/proto/cosmos/group/v1/query_pb.js +213 -182
- package/dist/proto/cosmos/group/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/tx_pb.js +200 -169
- package/dist/proto/cosmos/group/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/types_pb.js +101 -87
- package/dist/proto/cosmos/group/v1/types_pb.js.map +1 -1
- package/dist/proto/cosmos/index.js +52 -26
- package/dist/proto/cosmos/index.js.map +1 -1
- package/dist/proto/cosmos/mint/index.js +28 -2
- package/dist/proto/cosmos/mint/index.js.map +1 -1
- package/dist/proto/cosmos/mint/module/index.js +27 -1
- package/dist/proto/cosmos/mint/module/index.js.map +1 -1
- package/dist/proto/cosmos/mint/module/v1/index.js +17 -1
- package/dist/proto/cosmos/mint/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/mint/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/mint/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/genesis_pb.js +13 -9
- package/dist/proto/cosmos/mint/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/mint/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/mint_pb.js +17 -12
- package/dist/proto/cosmos/mint/v1beta1/mint_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/query_pb.js +42 -33
- package/dist/proto/cosmos/mint/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/tx_pb.js +18 -13
- package/dist/proto/cosmos/mint/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/msg/v1/msg_pb.js +6 -3
- package/dist/proto/cosmos/msg/v1/msg_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/index.js +28 -2
- package/dist/proto/cosmos/nft/index.js.map +1 -1
- package/dist/proto/cosmos/nft/module/index.js +27 -1
- package/dist/proto/cosmos/nft/module/index.js.map +1 -1
- package/dist/proto/cosmos/nft/module/v1/index.js +17 -1
- package/dist/proto/cosmos/nft/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/nft/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/nft/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/event_pb.js +22 -16
- package/dist/proto/cosmos/nft/v1beta1/event_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/genesis_pb.js +19 -14
- package/dist/proto/cosmos/nft/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/nft/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/nft_pb.js +18 -13
- package/dist/proto/cosmos/nft/v1beta1/nft_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/query_pb.js +100 -83
- package/dist/proto/cosmos/nft/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/tx_pb.js +16 -11
- package/dist/proto/cosmos/nft/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/index.js +30 -4
- package/dist/proto/cosmos/orm/index.js.map +1 -1
- package/dist/proto/cosmos/orm/module/index.js +27 -1
- package/dist/proto/cosmos/orm/module/index.js.map +1 -1
- package/dist/proto/cosmos/orm/module/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/orm/module/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/module/v1alpha1/module_pb.js +10 -6
- package/dist/proto/cosmos/orm/module/v1alpha1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/query/index.js +27 -1
- package/dist/proto/cosmos/orm/query/index.js.map +1 -1
- package/dist/proto/cosmos/orm/query/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/orm/query/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/query/v1alpha1/query_pb.js +53 -43
- package/dist/proto/cosmos/orm/query/v1alpha1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/v1/index.js +17 -1
- package/dist/proto/cosmos/orm/v1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/v1/orm_pb.js +30 -23
- package/dist/proto/cosmos/orm/v1/orm_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/orm/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/v1alpha1/schema_pb.js +21 -16
- package/dist/proto/cosmos/orm/v1alpha1/schema_pb.js.map +1 -1
- package/dist/proto/cosmos/params/index.js +28 -2
- package/dist/proto/cosmos/params/index.js.map +1 -1
- package/dist/proto/cosmos/params/module/index.js +27 -1
- package/dist/proto/cosmos/params/module/index.js.map +1 -1
- package/dist/proto/cosmos/params/module/v1/index.js +17 -1
- package/dist/proto/cosmos/params/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/params/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/params/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/params/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/params/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/params/v1beta1/params_pb.js +16 -11
- package/dist/proto/cosmos/params/v1beta1/params_pb.js.map +1 -1
- package/dist/proto/cosmos/params/v1beta1/query_pb.js +36 -28
- package/dist/proto/cosmos/params/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/query/v1/query_pb.js +5 -2
- package/dist/proto/cosmos/query/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/reflection/index.js +27 -1
- package/dist/proto/cosmos/reflection/index.js.map +1 -1
- package/dist/proto/cosmos/reflection/v1/index.js +17 -1
- package/dist/proto/cosmos/reflection/v1/index.js.map +1 -1
- package/dist/proto/cosmos/reflection/v1/reflection_pb.js +17 -12
- package/dist/proto/cosmos/reflection/v1/reflection_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/index.js +28 -2
- package/dist/proto/cosmos/slashing/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/module/index.js +27 -1
- package/dist/proto/cosmos/slashing/module/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/module/v1/index.js +17 -1
- package/dist/proto/cosmos/slashing/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/slashing/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/genesis_pb.js +32 -25
- package/dist/proto/cosmos/slashing/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/slashing/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/query_pb.js +47 -38
- package/dist/proto/cosmos/slashing/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/slashing_pb.js +22 -17
- package/dist/proto/cosmos/slashing/v1beta1/slashing_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/tx_pb.js +30 -23
- package/dist/proto/cosmos/slashing/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/index.js +28 -2
- package/dist/proto/cosmos/staking/index.js.map +1 -1
- package/dist/proto/cosmos/staking/module/index.js +27 -1
- package/dist/proto/cosmos/staking/module/index.js.map +1 -1
- package/dist/proto/cosmos/staking/module/v1/index.js +17 -1
- package/dist/proto/cosmos/staking/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/staking/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/staking/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/authz_pb.js +22 -17
- package/dist/proto/cosmos/staking/v1beta1/authz_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/genesis_pb.js +23 -18
- package/dist/proto/cosmos/staking/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/staking/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/query_pb.js +203 -172
- package/dist/proto/cosmos/staking/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/staking_pb.js +157 -133
- package/dist/proto/cosmos/staking/v1beta1/staking_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/tx_pb.js +103 -86
- package/dist/proto/cosmos/staking/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/config/index.js +27 -1
- package/dist/proto/cosmos/tx/config/index.js.map +1 -1
- package/dist/proto/cosmos/tx/config/v1/config_pb.js +10 -6
- package/dist/proto/cosmos/tx/config/v1/config_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/config/v1/index.js +17 -1
- package/dist/proto/cosmos/tx/config/v1/index.js.map +1 -1
- package/dist/proto/cosmos/tx/index.js +29 -3
- package/dist/proto/cosmos/tx/index.js.map +1 -1
- package/dist/proto/cosmos/tx/signing/index.js +27 -1
- package/dist/proto/cosmos/tx/signing/index.js.map +1 -1
- package/dist/proto/cosmos/tx/signing/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/tx/signing/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/tx/signing/v1beta1/signing_pb.js +42 -34
- package/dist/proto/cosmos/tx/signing/v1beta1/signing_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/tx/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/tx/v1beta1/service_pb.js +146 -125
- package/dist/proto/cosmos/tx/v1beta1/service_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/v1beta1/tx_pb.js +103 -87
- package/dist/proto/cosmos/tx/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/index.js +28 -2
- package/dist/proto/cosmos/upgrade/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/module/index.js +27 -1
- package/dist/proto/cosmos/upgrade/module/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/module/v1/index.js +17 -1
- package/dist/proto/cosmos/upgrade/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/upgrade/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/index.js +19 -3
- package/dist/proto/cosmos/upgrade/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/query_pb.js +69 -56
- package/dist/proto/cosmos/upgrade/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/tx_pb.js +30 -23
- package/dist/proto/cosmos/upgrade/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/upgrade_pb.js +32 -25
- package/dist/proto/cosmos/upgrade/v1beta1/upgrade_pb.js.map +1 -1
- package/dist/proto/cosmos/vesting/index.js +28 -2
- package/dist/proto/cosmos/vesting/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/module/index.js +27 -1
- package/dist/proto/cosmos/vesting/module/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/module/v1/index.js +17 -1
- package/dist/proto/cosmos/vesting/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/vesting/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/vesting/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/vesting/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/v1beta1/tx_pb.js +47 -38
- package/dist/proto/cosmos/vesting/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/vesting/v1beta1/vesting_pb.js +51 -42
- package/dist/proto/cosmos/vesting/v1beta1/vesting_pb.js.map +1 -1
- package/dist/proto/cosmos_proto/cosmos_pb.js +25 -20
- package/dist/proto/cosmos_proto/cosmos_pb.js.map +1 -1
- package/dist/proto/cosmos_proto/index.js +17 -1
- package/dist/proto/cosmos_proto/index.js.map +1 -1
- package/dist/proto/cosmwasm/index.js +27 -1
- package/dist/proto/cosmwasm/index.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/index.js +27 -1
- package/dist/proto/cosmwasm/wasm/index.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/authz_pb.js +79 -65
- package/dist/proto/cosmwasm/wasm/v1/authz_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/genesis_pb.js +36 -29
- package/dist/proto/cosmwasm/wasm/v1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/ibc_pb.js +25 -19
- package/dist/proto/cosmwasm/wasm/v1/ibc_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/index.js +22 -6
- package/dist/proto/cosmwasm/wasm/v1/index.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/query_pb.js +164 -138
- package/dist/proto/cosmwasm/wasm/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/tx_pb.js +233 -195
- package/dist/proto/cosmwasm/wasm/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/types_pb.js +67 -56
- package/dist/proto/cosmwasm/wasm/v1/types_pb.js.map +1 -1
- package/dist/proto/ethereum/ethsecp256k1/index.js +17 -1
- package/dist/proto/ethereum/ethsecp256k1/index.js.map +1 -1
- package/dist/proto/ethereum/ethsecp256k1/keys_pb.js +16 -11
- package/dist/proto/ethereum/ethsecp256k1/keys_pb.js.map +1 -1
- package/dist/proto/ethereum/index.js +31 -2
- package/dist/proto/ethereum/index.js.map +1 -1
- package/dist/proto/ethereum/web3_pb.js +11 -7
- package/dist/proto/ethereum/web3_pb.js.map +1 -1
- package/dist/proto/gogoproto/gogo_pb.js +82 -78
- package/dist/proto/gogoproto/gogo_pb.js.map +1 -1
- package/dist/proto/google/api/annotations_pb.js +6 -3
- package/dist/proto/google/api/annotations_pb.js.map +1 -1
- package/dist/proto/google/api/http_pb.js +22 -16
- package/dist/proto/google/api/http_pb.js.map +1 -1
- package/dist/proto/google/api/httpbody_pb.js +11 -7
- package/dist/proto/google/api/httpbody_pb.js.map +1 -1
- package/dist/proto/google/api/index.js +18 -2
- package/dist/proto/google/api/index.js.map +1 -1
- package/dist/proto/google/index.js +28 -2
- package/dist/proto/google/index.js.map +1 -1
- package/dist/proto/google/protobuf/any_pb.js +10 -6
- package/dist/proto/google/protobuf/any_pb.js.map +1 -1
- package/dist/proto/google/protobuf/descriptor_pb.js +190 -160
- package/dist/proto/google/protobuf/descriptor_pb.js.map +1 -1
- package/dist/proto/google/protobuf/index.js +18 -2
- package/dist/proto/google/protobuf/index.js.map +1 -1
- package/dist/proto/index.js +43 -14
- package/dist/proto/index.js.map +1 -1
- package/dist/proto/maps/balances_pb.js +10 -6
- package/dist/proto/maps/balances_pb.js.map +1 -1
- package/dist/proto/maps/genesis_pb.js +15 -11
- package/dist/proto/maps/genesis_pb.js.map +1 -1
- package/dist/proto/maps/index.js +25 -9
- package/dist/proto/maps/index.js.map +1 -1
- package/dist/proto/maps/metadata_pb.js +10 -6
- package/dist/proto/maps/metadata_pb.js.map +1 -1
- package/dist/proto/maps/packet_pb.js +16 -11
- package/dist/proto/maps/packet_pb.js.map +1 -1
- package/dist/proto/maps/params_pb.js +10 -6
- package/dist/proto/maps/params_pb.js.map +1 -1
- package/dist/proto/maps/permissions_pb.js +22 -17
- package/dist/proto/maps/permissions_pb.js.map +1 -1
- package/dist/proto/maps/query_pb.js +45 -36
- package/dist/proto/maps/query_pb.js.map +1 -1
- package/dist/proto/maps/timelines_pb.js +21 -16
- package/dist/proto/maps/timelines_pb.js.map +1 -1
- package/dist/proto/maps/tx_pb.js +105 -87
- package/dist/proto/maps/tx_pb.js.map +1 -1
- package/dist/proto/proofs_pb.js +94 -78
- package/dist/proto/proofs_pb.js.map +1 -1
- package/dist/proto/protocols/genesis_pb.js +14 -10
- package/dist/proto/protocols/genesis_pb.js.map +1 -1
- package/dist/proto/protocols/index.js +21 -5
- package/dist/proto/protocols/index.js.map +1 -1
- package/dist/proto/protocols/packet_pb.js +16 -11
- package/dist/proto/protocols/packet_pb.js.map +1 -1
- package/dist/proto/protocols/params_pb.js +10 -6
- package/dist/proto/protocols/params_pb.js.map +1 -1
- package/dist/proto/protocols/query_pb.js +44 -35
- package/dist/proto/protocols/query_pb.js.map +1 -1
- package/dist/proto/protocols/tx_pb.js +76 -61
- package/dist/proto/protocols/tx_pb.js.map +1 -1
- package/dist/proto/solana/index.js +17 -1
- package/dist/proto/solana/index.js.map +1 -1
- package/dist/proto/solana/web3_pb.js +11 -7
- package/dist/proto/solana/web3_pb.js.map +1 -1
- package/dist/proto/tendermint/abci/index.js +17 -1
- package/dist/proto/tendermint/abci/index.js.map +1 -1
- package/dist/proto/tendermint/abci/types_pb.js +340 -290
- package/dist/proto/tendermint/abci/types_pb.js.map +1 -1
- package/dist/proto/tendermint/crypto/index.js +18 -2
- package/dist/proto/tendermint/crypto/index.js.map +1 -1
- package/dist/proto/tendermint/crypto/keys_pb.js +10 -6
- package/dist/proto/tendermint/crypto/keys_pb.js.map +1 -1
- package/dist/proto/tendermint/crypto/proof_pb.js +36 -28
- package/dist/proto/tendermint/crypto/proof_pb.js.map +1 -1
- package/dist/proto/tendermint/index.js +32 -6
- package/dist/proto/tendermint/index.js.map +1 -1
- package/dist/proto/tendermint/libs/bits/index.js +17 -1
- package/dist/proto/tendermint/libs/bits/index.js.map +1 -1
- package/dist/proto/tendermint/libs/bits/types_pb.js +11 -7
- package/dist/proto/tendermint/libs/bits/types_pb.js.map +1 -1
- package/dist/proto/tendermint/libs/index.js +27 -1
- package/dist/proto/tendermint/libs/index.js.map +1 -1
- package/dist/proto/tendermint/p2p/index.js +17 -1
- package/dist/proto/tendermint/p2p/index.js.map +1 -1
- package/dist/proto/tendermint/p2p/types_pb.js +31 -24
- package/dist/proto/tendermint/p2p/types_pb.js.map +1 -1
- package/dist/proto/tendermint/types/block_pb.js +16 -12
- package/dist/proto/tendermint/types/block_pb.js.map +1 -1
- package/dist/proto/tendermint/types/evidence_pb.js +40 -33
- package/dist/proto/tendermint/types/evidence_pb.js.map +1 -1
- package/dist/proto/tendermint/types/index.js +21 -5
- package/dist/proto/tendermint/types/index.js.map +1 -1
- package/dist/proto/tendermint/types/params_pb.js +48 -39
- package/dist/proto/tendermint/types/params_pb.js.map +1 -1
- package/dist/proto/tendermint/types/types_pb.js +108 -92
- package/dist/proto/tendermint/types/types_pb.js.map +1 -1
- package/dist/proto/tendermint/types/validator_pb.js +29 -23
- package/dist/proto/tendermint/types/validator_pb.js.map +1 -1
- package/dist/proto/tendermint/version/index.js +17 -1
- package/dist/proto/tendermint/version/index.js.map +1 -1
- package/dist/proto/tendermint/version/types_pb.js +19 -14
- package/dist/proto/tendermint/version/types_pb.js.map +1 -1
- package/dist/proto/wasmx/genesis_pb.js +12 -8
- package/dist/proto/wasmx/genesis_pb.js.map +1 -1
- package/dist/proto/wasmx/index.js +20 -4
- package/dist/proto/wasmx/index.js.map +1 -1
- package/dist/proto/wasmx/query_pb.js +32 -25
- package/dist/proto/wasmx/query_pb.js.map +1 -1
- package/dist/proto/wasmx/tx_pb.js +28 -21
- package/dist/proto/wasmx/tx_pb.js.map +1 -1
- package/dist/proto/wasmx/wasmx_pb.js +13 -9
- package/dist/proto/wasmx/wasmx_pb.js.map +1 -1
- package/dist/transactions/amino/objectConverter.js +20 -10
- package/dist/transactions/amino/objectConverter.js.map +1 -1
- package/dist/transactions/amino/registry.js +63 -53
- package/dist/transactions/amino/registry.js.map +1 -1
- package/dist/transactions/eip712/payload/createDomain.js +12 -9
- package/dist/transactions/eip712/payload/createDomain.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypedData.js +16 -9
- package/dist/transactions/eip712/payload/createTypedData.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypes/index.js +8 -1
- package/dist/transactions/eip712/payload/createTypes/index.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypes/parseMessage.js +14 -11
- package/dist/transactions/eip712/payload/createTypes/parseMessage.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypes/parsePayload.js +18 -11
- package/dist/transactions/eip712/payload/createTypes/parsePayload.js.map +1 -1
- package/dist/transactions/eip712/payload/eip712Types.js +9 -3
- package/dist/transactions/eip712/payload/eip712Types.js.map +1 -1
- package/dist/transactions/eip712/payload/flattenPayload.js +7 -3
- package/dist/transactions/eip712/payload/flattenPayload.js.map +1 -1
- package/dist/transactions/eip712/payload/samples/getSampleMsg.js +237 -228
- package/dist/transactions/eip712/payload/samples/getSampleMsg.js.map +1 -1
- package/dist/transactions/eip712/payload/types.js +2 -1
- package/dist/transactions/index.js +17 -1
- package/dist/transactions/index.js.map +1 -1
- package/dist/transactions/messages/base.js +48 -40
- package/dist/transactions/messages/base.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/index.js +24 -8
- package/dist/transactions/messages/bitbadges/badges/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/interfaces.js +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js +33 -6
- package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js +60 -33
- package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js +33 -6
- package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js +36 -9
- package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js +60 -33
- package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js +57 -30
- package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js +42 -15
- package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js.map +1 -1
- package/dist/transactions/messages/bitbadges/index.js +19 -3
- package/dist/transactions/messages/bitbadges/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/maps/index.js +17 -1
- package/dist/transactions/messages/bitbadges/maps/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/maps/interfaces.js +66 -30
- package/dist/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
- package/dist/transactions/messages/bitbadges/wasmx/index.js +19 -3
- package/dist/transactions/messages/bitbadges/wasmx/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/wasmx/interfaces.js +2 -1
- package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js +30 -3
- package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js.map +1 -1
- package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js +30 -3
- package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js.map +1 -1
- package/dist/transactions/messages/common.js +2 -1
- package/dist/transactions/messages/index.js +19 -3
- package/dist/transactions/messages/index.js.map +1 -1
- package/dist/transactions/messages/signDoc.js +13 -5
- package/dist/transactions/messages/signDoc.js.map +1 -1
- package/dist/transactions/messages/transaction.js +62 -46
- package/dist/transactions/messages/transaction.js.map +1 -1
- package/dist/transactions/messages/txRaw.js +22 -14
- package/dist/transactions/messages/txRaw.js.map +1 -1
- package/dist/transactions/messages/utils.js +7 -3
- package/dist/transactions/messages/utils.js.map +1 -1
- package/dist/transactions/messages/web3Extension.js +41 -9
- package/dist/transactions/messages/web3Extension.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/core/permissions.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPermissionsWithDetails = exports.CollectionPermissionsWithDetails = exports.UserOutgoingApprovalPermissionWithDetails = exports.UserIncomingApprovalPermissionWithDetails = exports.CollectionApprovalPermissionWithDetails = exports.CollectionApprovalPermission = exports.TimedUpdateWithBadgeIdsPermission = exports.BalancesActionPermission = exports.TimedUpdatePermission = exports.ActionPermission = exports.CollectionPermissions = exports.UserIncomingApprovalPermission = exports.UserOutgoingApprovalPermission = exports.UserPermissions = void 0;
|
|
4
|
+
const base_1 = require("../common/base");
|
|
5
|
+
const proto_1 = require("../proto");
|
|
6
|
+
const addressLists_1 = require("./addressLists");
|
|
7
|
+
const overlaps_1 = require("./overlaps");
|
|
8
|
+
const string_numbers_1 = require("../common/string-numbers");
|
|
9
|
+
const uintRanges_1 = require("./uintRanges");
|
|
10
|
+
const validate_utils_1 = require("./validate-utils");
|
|
11
|
+
class UserPermissions extends base_1.BaseNumberTypeClass {
|
|
9
12
|
canUpdateOutgoingApprovals;
|
|
10
13
|
canUpdateIncomingApprovals;
|
|
11
14
|
canUpdateAutoApproveSelfInitiatedOutgoingTransfers;
|
|
@@ -18,16 +21,16 @@ export class UserPermissions extends BaseNumberTypeClass {
|
|
|
18
21
|
this.canUpdateAutoApproveSelfInitiatedIncomingTransfers = msg.canUpdateAutoApproveSelfInitiatedIncomingTransfers.map((x) => new ActionPermission(x));
|
|
19
22
|
}
|
|
20
23
|
convert(convertFunction) {
|
|
21
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
24
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
22
25
|
}
|
|
23
26
|
toProto() {
|
|
24
|
-
return new badges.UserPermissions(this.convert(Stringify));
|
|
27
|
+
return new proto_1.badges.UserPermissions(this.convert(string_numbers_1.Stringify));
|
|
25
28
|
}
|
|
26
29
|
static fromJson(jsonValue, convertFunction, options) {
|
|
27
|
-
return UserPermissions.fromProto(badges.UserPermissions.fromJson(jsonValue, options), convertFunction);
|
|
30
|
+
return UserPermissions.fromProto(proto_1.badges.UserPermissions.fromJson(jsonValue, options), convertFunction);
|
|
28
31
|
}
|
|
29
32
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
30
|
-
return UserPermissions.fromProto(badges.UserPermissions.fromJsonString(jsonString, options), convertFunction);
|
|
33
|
+
return UserPermissions.fromProto(proto_1.badges.UserPermissions.fromJsonString(jsonString, options), convertFunction);
|
|
31
34
|
}
|
|
32
35
|
static fromProto(protoMsg, convertFunction) {
|
|
33
36
|
return new UserPermissions({
|
|
@@ -55,7 +58,8 @@ export class UserPermissions extends BaseNumberTypeClass {
|
|
|
55
58
|
});
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
|
-
|
|
61
|
+
exports.UserPermissions = UserPermissions;
|
|
62
|
+
class UserOutgoingApprovalPermission extends base_1.BaseNumberTypeClass {
|
|
59
63
|
toListId;
|
|
60
64
|
initiatedByListId;
|
|
61
65
|
transferTimes;
|
|
@@ -68,35 +72,35 @@ export class UserOutgoingApprovalPermission extends BaseNumberTypeClass {
|
|
|
68
72
|
super();
|
|
69
73
|
this.toListId = msg.toListId;
|
|
70
74
|
this.initiatedByListId = msg.initiatedByListId;
|
|
71
|
-
this.transferTimes = UintRangeArray.From(msg.transferTimes);
|
|
72
|
-
this.badgeIds = UintRangeArray.From(msg.badgeIds);
|
|
73
|
-
this.ownershipTimes = UintRangeArray.From(msg.ownershipTimes);
|
|
75
|
+
this.transferTimes = uintRanges_1.UintRangeArray.From(msg.transferTimes);
|
|
76
|
+
this.badgeIds = uintRanges_1.UintRangeArray.From(msg.badgeIds);
|
|
77
|
+
this.ownershipTimes = uintRanges_1.UintRangeArray.From(msg.ownershipTimes);
|
|
74
78
|
this.approvalId = msg.approvalId;
|
|
75
|
-
this.permanentlyPermittedTimes = UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
76
|
-
this.permanentlyForbiddenTimes = UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
79
|
+
this.permanentlyPermittedTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
80
|
+
this.permanentlyForbiddenTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
77
81
|
}
|
|
78
82
|
convert(convertFunction) {
|
|
79
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
83
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
80
84
|
}
|
|
81
85
|
toProto() {
|
|
82
|
-
return new badges.UserOutgoingApprovalPermission(this.convert(Stringify));
|
|
86
|
+
return new proto_1.badges.UserOutgoingApprovalPermission(this.convert(string_numbers_1.Stringify));
|
|
83
87
|
}
|
|
84
88
|
static fromJson(jsonValue, convertFunction, options) {
|
|
85
|
-
return UserOutgoingApprovalPermission.fromProto(badges.UserOutgoingApprovalPermission.fromJson(jsonValue, options), convertFunction);
|
|
89
|
+
return UserOutgoingApprovalPermission.fromProto(proto_1.badges.UserOutgoingApprovalPermission.fromJson(jsonValue, options), convertFunction);
|
|
86
90
|
}
|
|
87
91
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
88
|
-
return UserOutgoingApprovalPermission.fromProto(badges.UserOutgoingApprovalPermission.fromJsonString(jsonString, options), convertFunction);
|
|
92
|
+
return UserOutgoingApprovalPermission.fromProto(proto_1.badges.UserOutgoingApprovalPermission.fromJsonString(jsonString, options), convertFunction);
|
|
89
93
|
}
|
|
90
94
|
static fromProto(protoMsg, convertFunction) {
|
|
91
95
|
return new UserOutgoingApprovalPermission({
|
|
92
96
|
toListId: protoMsg.toListId,
|
|
93
97
|
initiatedByListId: protoMsg.initiatedByListId,
|
|
94
|
-
transferTimes: protoMsg.transferTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
95
|
-
badgeIds: protoMsg.badgeIds.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
96
|
-
ownershipTimes: protoMsg.ownershipTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
98
|
+
transferTimes: protoMsg.transferTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
99
|
+
badgeIds: protoMsg.badgeIds.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
100
|
+
ownershipTimes: protoMsg.ownershipTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
97
101
|
approvalId: protoMsg.approvalId,
|
|
98
|
-
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
99
|
-
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => UintRange.fromProto(x, convertFunction))
|
|
102
|
+
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
103
|
+
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction))
|
|
100
104
|
});
|
|
101
105
|
}
|
|
102
106
|
castToCollectionApprovalPermission(address) {
|
|
@@ -110,14 +114,15 @@ export class UserOutgoingApprovalPermission extends BaseNumberTypeClass {
|
|
|
110
114
|
const dummyAddress = '0x';
|
|
111
115
|
const castedPermissions = permissions.map((x) => x.castToCollectionApprovalPermission(dummyAddress).castToUniversalPermission());
|
|
112
116
|
const castedNewPermissions = newPermission.map((x) => x.castToCollectionApprovalPermission(dummyAddress).castToUniversalPermission());
|
|
113
|
-
return validateUniversalPermissionUpdate(GetFirstMatchOnly(castedPermissions), GetFirstMatchOnly(castedNewPermissions));
|
|
117
|
+
return validateUniversalPermissionUpdate((0, overlaps_1.GetFirstMatchOnly)(castedPermissions), (0, overlaps_1.GetFirstMatchOnly)(castedNewPermissions));
|
|
114
118
|
}
|
|
115
119
|
static check(details, permissions, time) {
|
|
116
120
|
const dummyAddress = '0x';
|
|
117
121
|
return CollectionApprovalPermission.check(details, permissions.map((x) => x.castToCollectionApprovalPermission(dummyAddress)), time);
|
|
118
122
|
}
|
|
119
123
|
}
|
|
120
|
-
|
|
124
|
+
exports.UserOutgoingApprovalPermission = UserOutgoingApprovalPermission;
|
|
125
|
+
class UserIncomingApprovalPermission extends base_1.BaseNumberTypeClass {
|
|
121
126
|
fromListId;
|
|
122
127
|
initiatedByListId;
|
|
123
128
|
transferTimes;
|
|
@@ -131,35 +136,35 @@ export class UserIncomingApprovalPermission extends BaseNumberTypeClass {
|
|
|
131
136
|
this.fromListId = msg.fromListId;
|
|
132
137
|
this.initiatedByListId = msg.initiatedByListId;
|
|
133
138
|
this.approvalId = msg.approvalId;
|
|
134
|
-
this.transferTimes = UintRangeArray.From(msg.transferTimes);
|
|
135
|
-
this.badgeIds = UintRangeArray.From(msg.badgeIds);
|
|
136
|
-
this.ownershipTimes = UintRangeArray.From(msg.ownershipTimes);
|
|
139
|
+
this.transferTimes = uintRanges_1.UintRangeArray.From(msg.transferTimes);
|
|
140
|
+
this.badgeIds = uintRanges_1.UintRangeArray.From(msg.badgeIds);
|
|
141
|
+
this.ownershipTimes = uintRanges_1.UintRangeArray.From(msg.ownershipTimes);
|
|
137
142
|
this.approvalId = msg.approvalId;
|
|
138
|
-
this.permanentlyPermittedTimes = UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
139
|
-
this.permanentlyForbiddenTimes = UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
143
|
+
this.permanentlyPermittedTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
144
|
+
this.permanentlyForbiddenTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
140
145
|
}
|
|
141
146
|
convert(convertFunction) {
|
|
142
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
147
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
143
148
|
}
|
|
144
149
|
toProto() {
|
|
145
|
-
return new badges.UserIncomingApprovalPermission(this.convert(Stringify));
|
|
150
|
+
return new proto_1.badges.UserIncomingApprovalPermission(this.convert(string_numbers_1.Stringify));
|
|
146
151
|
}
|
|
147
152
|
static fromJson(jsonValue, convertFunction, options) {
|
|
148
|
-
return UserIncomingApprovalPermission.fromProto(badges.UserIncomingApprovalPermission.fromJson(jsonValue, options), convertFunction);
|
|
153
|
+
return UserIncomingApprovalPermission.fromProto(proto_1.badges.UserIncomingApprovalPermission.fromJson(jsonValue, options), convertFunction);
|
|
149
154
|
}
|
|
150
155
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
151
|
-
return UserIncomingApprovalPermission.fromProto(badges.UserIncomingApprovalPermission.fromJsonString(jsonString, options), convertFunction);
|
|
156
|
+
return UserIncomingApprovalPermission.fromProto(proto_1.badges.UserIncomingApprovalPermission.fromJsonString(jsonString, options), convertFunction);
|
|
152
157
|
}
|
|
153
158
|
static fromProto(protoMsg, convertFunction) {
|
|
154
159
|
return new UserIncomingApprovalPermission({
|
|
155
160
|
fromListId: protoMsg.fromListId,
|
|
156
161
|
initiatedByListId: protoMsg.initiatedByListId,
|
|
157
|
-
transferTimes: protoMsg.transferTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
158
|
-
badgeIds: protoMsg.badgeIds.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
159
|
-
ownershipTimes: protoMsg.ownershipTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
162
|
+
transferTimes: protoMsg.transferTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
163
|
+
badgeIds: protoMsg.badgeIds.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
164
|
+
ownershipTimes: protoMsg.ownershipTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
160
165
|
approvalId: protoMsg.approvalId,
|
|
161
|
-
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
162
|
-
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => UintRange.fromProto(x, convertFunction))
|
|
166
|
+
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
167
|
+
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction))
|
|
163
168
|
});
|
|
164
169
|
}
|
|
165
170
|
castToCollectionApprovalPermission(address) {
|
|
@@ -173,14 +178,15 @@ export class UserIncomingApprovalPermission extends BaseNumberTypeClass {
|
|
|
173
178
|
const dummyAddress = '0x';
|
|
174
179
|
const castedPermissions = permissions.map((x) => x.castToCollectionApprovalPermission(dummyAddress).castToUniversalPermission());
|
|
175
180
|
const castedNewPermissions = newPermission.map((x) => x.castToCollectionApprovalPermission(dummyAddress).castToUniversalPermission());
|
|
176
|
-
return validateUniversalPermissionUpdate(GetFirstMatchOnly(castedPermissions), GetFirstMatchOnly(castedNewPermissions));
|
|
181
|
+
return validateUniversalPermissionUpdate((0, overlaps_1.GetFirstMatchOnly)(castedPermissions), (0, overlaps_1.GetFirstMatchOnly)(castedNewPermissions));
|
|
177
182
|
}
|
|
178
183
|
static check(details, permissions, time) {
|
|
179
184
|
const dummyAddress = '0x';
|
|
180
185
|
return CollectionApprovalPermission.check(details, permissions.map((x) => x.castToCollectionApprovalPermission(dummyAddress)), time);
|
|
181
186
|
}
|
|
182
187
|
}
|
|
183
|
-
|
|
188
|
+
exports.UserIncomingApprovalPermission = UserIncomingApprovalPermission;
|
|
189
|
+
class CollectionPermissions extends base_1.BaseNumberTypeClass {
|
|
184
190
|
canDeleteCollection;
|
|
185
191
|
canArchiveCollection;
|
|
186
192
|
canUpdateOffChainBalancesMetadata;
|
|
@@ -205,7 +211,7 @@ export class CollectionPermissions extends BaseNumberTypeClass {
|
|
|
205
211
|
this.canUpdateCollectionApprovals = msg.canUpdateCollectionApprovals.map((x) => new CollectionApprovalPermission(x));
|
|
206
212
|
}
|
|
207
213
|
convert(convertFunction) {
|
|
208
|
-
return new CollectionPermissions(deepCopyPrimitives({
|
|
214
|
+
return new CollectionPermissions((0, base_1.deepCopyPrimitives)({
|
|
209
215
|
canDeleteCollection: this.canDeleteCollection.map((x) => x.convert(convertFunction)),
|
|
210
216
|
canArchiveCollection: this.canArchiveCollection.map((x) => x.convert(convertFunction)),
|
|
211
217
|
canUpdateOffChainBalancesMetadata: this.canUpdateOffChainBalancesMetadata.map((x) => x.convert(convertFunction)),
|
|
@@ -219,13 +225,13 @@ export class CollectionPermissions extends BaseNumberTypeClass {
|
|
|
219
225
|
}));
|
|
220
226
|
}
|
|
221
227
|
toProto() {
|
|
222
|
-
return new badges.CollectionPermissions(this.convert(Stringify));
|
|
228
|
+
return new proto_1.badges.CollectionPermissions(this.convert(string_numbers_1.Stringify));
|
|
223
229
|
}
|
|
224
230
|
static fromJson(jsonValue, convertFunction, options) {
|
|
225
|
-
return CollectionPermissions.fromProto(badges.CollectionPermissions.fromJson(jsonValue, options), convertFunction);
|
|
231
|
+
return CollectionPermissions.fromProto(proto_1.badges.CollectionPermissions.fromJson(jsonValue, options), convertFunction);
|
|
226
232
|
}
|
|
227
233
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
228
|
-
return CollectionPermissions.fromProto(badges.CollectionPermissions.fromJsonString(jsonString, options), convertFunction);
|
|
234
|
+
return CollectionPermissions.fromProto(proto_1.badges.CollectionPermissions.fromJsonString(jsonString, options), convertFunction);
|
|
229
235
|
}
|
|
230
236
|
static fromProto(protoMsg, convertFunction) {
|
|
231
237
|
return new CollectionPermissions({
|
|
@@ -271,54 +277,56 @@ export class CollectionPermissions extends BaseNumberTypeClass {
|
|
|
271
277
|
});
|
|
272
278
|
}
|
|
273
279
|
}
|
|
274
|
-
|
|
280
|
+
exports.CollectionPermissions = CollectionPermissions;
|
|
281
|
+
class ActionPermission extends base_1.BaseNumberTypeClass {
|
|
275
282
|
permanentlyPermittedTimes;
|
|
276
283
|
permanentlyForbiddenTimes;
|
|
277
284
|
constructor(msg) {
|
|
278
285
|
super();
|
|
279
|
-
this.permanentlyPermittedTimes = UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
280
|
-
this.permanentlyForbiddenTimes = UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
286
|
+
this.permanentlyPermittedTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
287
|
+
this.permanentlyForbiddenTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
281
288
|
}
|
|
282
289
|
convert(convertFunction) {
|
|
283
|
-
return new ActionPermission(deepCopyPrimitives({
|
|
290
|
+
return new ActionPermission((0, base_1.deepCopyPrimitives)({
|
|
284
291
|
permanentlyPermittedTimes: this.permanentlyPermittedTimes.map((x) => x.convert(convertFunction)),
|
|
285
292
|
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.map((x) => x.convert(convertFunction))
|
|
286
293
|
}));
|
|
287
294
|
}
|
|
288
295
|
toProto() {
|
|
289
|
-
return new badges.ActionPermission(this.convert(Stringify));
|
|
296
|
+
return new proto_1.badges.ActionPermission(this.convert(string_numbers_1.Stringify));
|
|
290
297
|
}
|
|
291
298
|
static fromJson(jsonValue, convertFunction, options) {
|
|
292
|
-
return ActionPermission.fromProto(badges.ActionPermission.fromJson(jsonValue, options), convertFunction);
|
|
299
|
+
return ActionPermission.fromProto(proto_1.badges.ActionPermission.fromJson(jsonValue, options), convertFunction);
|
|
293
300
|
}
|
|
294
301
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
295
|
-
return ActionPermission.fromProto(badges.ActionPermission.fromJsonString(jsonString, options), convertFunction);
|
|
302
|
+
return ActionPermission.fromProto(proto_1.badges.ActionPermission.fromJsonString(jsonString, options), convertFunction);
|
|
296
303
|
}
|
|
297
304
|
static fromProto(protoMsg, convertFunction) {
|
|
298
305
|
return new ActionPermission({
|
|
299
|
-
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
300
|
-
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => UintRange.fromProto(x, convertFunction))
|
|
306
|
+
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
307
|
+
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction))
|
|
301
308
|
});
|
|
302
309
|
}
|
|
303
310
|
castToUniversalPermission() {
|
|
304
311
|
return {
|
|
305
|
-
...AllDefaultValues,
|
|
306
|
-
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(BigIntify),
|
|
307
|
-
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(BigIntify)
|
|
312
|
+
...validate_utils_1.AllDefaultValues,
|
|
313
|
+
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(string_numbers_1.BigIntify),
|
|
314
|
+
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(string_numbers_1.BigIntify)
|
|
308
315
|
};
|
|
309
316
|
}
|
|
310
317
|
static validateUpdate(permissions, newPermission) {
|
|
311
318
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
312
319
|
const castedNewPermissions = newPermission.map((x) => x.castToUniversalPermission());
|
|
313
|
-
return validateUniversalPermissionUpdate(GetFirstMatchOnly(castedPermissions), GetFirstMatchOnly(castedNewPermissions));
|
|
320
|
+
return validateUniversalPermissionUpdate((0, overlaps_1.GetFirstMatchOnly)(castedPermissions), (0, overlaps_1.GetFirstMatchOnly)(castedNewPermissions));
|
|
314
321
|
}
|
|
315
322
|
static check(permissions, time) {
|
|
316
323
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
317
324
|
return checkUniversalPermissionPermits(castedPermissions, time);
|
|
318
325
|
}
|
|
319
326
|
}
|
|
327
|
+
exports.ActionPermission = ActionPermission;
|
|
320
328
|
function checkUniversalPermissionPermits(permissions, time) {
|
|
321
|
-
const permissionDetails = GetFirstMatchOnly(permissions);
|
|
329
|
+
const permissionDetails = (0, overlaps_1.GetFirstMatchOnly)(permissions);
|
|
322
330
|
for (const permissionDetail of permissionDetails) {
|
|
323
331
|
const err = checkNotForbidden(permissionDetail, time ? BigInt(time) : undefined);
|
|
324
332
|
if (err) {
|
|
@@ -327,74 +335,75 @@ function checkUniversalPermissionPermits(permissions, time) {
|
|
|
327
335
|
}
|
|
328
336
|
return null;
|
|
329
337
|
}
|
|
330
|
-
|
|
338
|
+
class TimedUpdatePermission extends base_1.BaseNumberTypeClass {
|
|
331
339
|
timelineTimes;
|
|
332
340
|
permanentlyPermittedTimes;
|
|
333
341
|
permanentlyForbiddenTimes;
|
|
334
342
|
constructor(msg) {
|
|
335
343
|
super();
|
|
336
|
-
this.timelineTimes = UintRangeArray.From(msg.timelineTimes);
|
|
337
|
-
this.permanentlyPermittedTimes = UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
338
|
-
this.permanentlyForbiddenTimes = UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
344
|
+
this.timelineTimes = uintRanges_1.UintRangeArray.From(msg.timelineTimes);
|
|
345
|
+
this.permanentlyPermittedTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
346
|
+
this.permanentlyForbiddenTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
339
347
|
}
|
|
340
348
|
convert(convertFunction) {
|
|
341
|
-
return new TimedUpdatePermission(deepCopyPrimitives({
|
|
349
|
+
return new TimedUpdatePermission((0, base_1.deepCopyPrimitives)({
|
|
342
350
|
timelineTimes: this.timelineTimes.map((x) => x.convert(convertFunction)),
|
|
343
351
|
permanentlyPermittedTimes: this.permanentlyPermittedTimes.map((x) => x.convert(convertFunction)),
|
|
344
352
|
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.map((x) => x.convert(convertFunction))
|
|
345
353
|
}));
|
|
346
354
|
}
|
|
347
355
|
toProto() {
|
|
348
|
-
return new badges.TimedUpdatePermission(this.convert(Stringify));
|
|
356
|
+
return new proto_1.badges.TimedUpdatePermission(this.convert(string_numbers_1.Stringify));
|
|
349
357
|
}
|
|
350
358
|
static fromJson(jsonValue, convertFunction, options) {
|
|
351
|
-
return TimedUpdatePermission.fromProto(badges.TimedUpdatePermission.fromJson(jsonValue, options), convertFunction);
|
|
359
|
+
return TimedUpdatePermission.fromProto(proto_1.badges.TimedUpdatePermission.fromJson(jsonValue, options), convertFunction);
|
|
352
360
|
}
|
|
353
361
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
354
|
-
return TimedUpdatePermission.fromProto(badges.TimedUpdatePermission.fromJsonString(jsonString, options), convertFunction);
|
|
362
|
+
return TimedUpdatePermission.fromProto(proto_1.badges.TimedUpdatePermission.fromJsonString(jsonString, options), convertFunction);
|
|
355
363
|
}
|
|
356
364
|
static fromProto(protoMsg, convertFunction) {
|
|
357
365
|
return new TimedUpdatePermission({
|
|
358
|
-
timelineTimes: protoMsg.timelineTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
359
|
-
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
360
|
-
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => UintRange.fromProto(x, convertFunction))
|
|
366
|
+
timelineTimes: protoMsg.timelineTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
367
|
+
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
368
|
+
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction))
|
|
361
369
|
});
|
|
362
370
|
}
|
|
363
371
|
castToUniversalPermission() {
|
|
364
372
|
return {
|
|
365
|
-
...AllDefaultValues,
|
|
366
|
-
timelineTimes: this.timelineTimes.convert(BigIntify),
|
|
367
|
-
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(BigIntify),
|
|
368
|
-
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(BigIntify),
|
|
373
|
+
...validate_utils_1.AllDefaultValues,
|
|
374
|
+
timelineTimes: this.timelineTimes.convert(string_numbers_1.BigIntify),
|
|
375
|
+
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(string_numbers_1.BigIntify),
|
|
376
|
+
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(string_numbers_1.BigIntify),
|
|
369
377
|
usesTimelineTimes: true
|
|
370
378
|
};
|
|
371
379
|
}
|
|
372
380
|
static validateUpdate(permissions, newPermission) {
|
|
373
381
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
374
382
|
const castedNewPermissions = newPermission.map((x) => x.castToUniversalPermission());
|
|
375
|
-
return validateUniversalPermissionUpdate(GetFirstMatchOnly(castedPermissions), GetFirstMatchOnly(castedNewPermissions));
|
|
383
|
+
return validateUniversalPermissionUpdate((0, overlaps_1.GetFirstMatchOnly)(castedPermissions), (0, overlaps_1.GetFirstMatchOnly)(castedNewPermissions));
|
|
376
384
|
}
|
|
377
385
|
static check(timelineTimes, permissions, time) {
|
|
378
386
|
const detailsToCheck = [];
|
|
379
387
|
for (const timelineTime of timelineTimes) {
|
|
380
388
|
detailsToCheck.push({
|
|
381
389
|
...AllDefaultDetailsValues,
|
|
382
|
-
timelineTime: timelineTime.convert(BigIntify)
|
|
390
|
+
timelineTime: timelineTime.convert(string_numbers_1.BigIntify)
|
|
383
391
|
});
|
|
384
392
|
}
|
|
385
393
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
386
|
-
const permissionDetails = GetFirstMatchOnly(castedPermissions);
|
|
394
|
+
const permissionDetails = (0, overlaps_1.GetFirstMatchOnly)(castedPermissions);
|
|
387
395
|
return checkNotForbiddenForAllOverlaps(permissionDetails, detailsToCheck, time ? BigInt(time) : undefined);
|
|
388
396
|
}
|
|
389
397
|
}
|
|
398
|
+
exports.TimedUpdatePermission = TimedUpdatePermission;
|
|
390
399
|
const AllDefaultDetailsValues = {
|
|
391
|
-
timelineTime: new UintRange({ start: -1n, end: -1n }),
|
|
392
|
-
badgeId: new UintRange({ start: -1n, end: -1n }),
|
|
393
|
-
ownershipTime: new UintRange({ start: -1n, end: -1n }),
|
|
394
|
-
transferTime: new UintRange({ start: -1n, end: -1n }),
|
|
395
|
-
toList: new AddressList({ listId: 'All', addresses: [], whitelist: false, uri: '', customData: '', createdBy: '' }),
|
|
396
|
-
fromList: new AddressList({ listId: 'All', addresses: [], whitelist: false, uri: '', customData: '', createdBy: '' }),
|
|
397
|
-
initiatedByList: new AddressList({
|
|
400
|
+
timelineTime: new uintRanges_1.UintRange({ start: -1n, end: -1n }),
|
|
401
|
+
badgeId: new uintRanges_1.UintRange({ start: -1n, end: -1n }),
|
|
402
|
+
ownershipTime: new uintRanges_1.UintRange({ start: -1n, end: -1n }),
|
|
403
|
+
transferTime: new uintRanges_1.UintRange({ start: -1n, end: -1n }),
|
|
404
|
+
toList: new addressLists_1.AddressList({ listId: 'All', addresses: [], whitelist: false, uri: '', customData: '', createdBy: '' }),
|
|
405
|
+
fromList: new addressLists_1.AddressList({ listId: 'All', addresses: [], whitelist: false, uri: '', customData: '', createdBy: '' }),
|
|
406
|
+
initiatedByList: new addressLists_1.AddressList({
|
|
398
407
|
listId: 'All',
|
|
399
408
|
addresses: [],
|
|
400
409
|
whitelist: false,
|
|
@@ -402,7 +411,7 @@ const AllDefaultDetailsValues = {
|
|
|
402
411
|
customData: '',
|
|
403
412
|
createdBy: ''
|
|
404
413
|
}),
|
|
405
|
-
approvalIdList: new AddressList({
|
|
414
|
+
approvalIdList: new addressLists_1.AddressList({
|
|
406
415
|
listId: 'All',
|
|
407
416
|
addresses: [],
|
|
408
417
|
whitelist: false,
|
|
@@ -410,24 +419,24 @@ const AllDefaultDetailsValues = {
|
|
|
410
419
|
customData: '',
|
|
411
420
|
createdBy: ''
|
|
412
421
|
}),
|
|
413
|
-
permanentlyPermittedTimes: UintRangeArray.From([]),
|
|
414
|
-
permanentlyForbiddenTimes: UintRangeArray.From([]),
|
|
422
|
+
permanentlyPermittedTimes: uintRanges_1.UintRangeArray.From([]),
|
|
423
|
+
permanentlyForbiddenTimes: uintRanges_1.UintRangeArray.From([]),
|
|
415
424
|
arbitraryValue: undefined
|
|
416
425
|
};
|
|
417
|
-
|
|
426
|
+
class BalancesActionPermission extends base_1.BaseNumberTypeClass {
|
|
418
427
|
badgeIds;
|
|
419
428
|
ownershipTimes;
|
|
420
429
|
permanentlyPermittedTimes;
|
|
421
430
|
permanentlyForbiddenTimes;
|
|
422
431
|
constructor(msg) {
|
|
423
432
|
super();
|
|
424
|
-
this.badgeIds = UintRangeArray.From(msg.badgeIds);
|
|
425
|
-
this.ownershipTimes = UintRangeArray.From(msg.ownershipTimes);
|
|
426
|
-
this.permanentlyPermittedTimes = UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
427
|
-
this.permanentlyForbiddenTimes = UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
433
|
+
this.badgeIds = uintRanges_1.UintRangeArray.From(msg.badgeIds);
|
|
434
|
+
this.ownershipTimes = uintRanges_1.UintRangeArray.From(msg.ownershipTimes);
|
|
435
|
+
this.permanentlyPermittedTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
436
|
+
this.permanentlyForbiddenTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
428
437
|
}
|
|
429
438
|
convert(convertFunction) {
|
|
430
|
-
return new BalancesActionPermission(deepCopyPrimitives({
|
|
439
|
+
return new BalancesActionPermission((0, base_1.deepCopyPrimitives)({
|
|
431
440
|
badgeIds: this.badgeIds.map((x) => x.convert(convertFunction)),
|
|
432
441
|
ownershipTimes: this.ownershipTimes.map((x) => x.convert(convertFunction)),
|
|
433
442
|
permanentlyPermittedTimes: this.permanentlyPermittedTimes.map((x) => x.convert(convertFunction)),
|
|
@@ -435,29 +444,29 @@ export class BalancesActionPermission extends BaseNumberTypeClass {
|
|
|
435
444
|
}));
|
|
436
445
|
}
|
|
437
446
|
toProto() {
|
|
438
|
-
return new badges.BalancesActionPermission(this.convert(Stringify));
|
|
447
|
+
return new proto_1.badges.BalancesActionPermission(this.convert(string_numbers_1.Stringify));
|
|
439
448
|
}
|
|
440
449
|
static fromJson(jsonValue, convertFunction, options) {
|
|
441
|
-
return BalancesActionPermission.fromProto(badges.BalancesActionPermission.fromJson(jsonValue, options), convertFunction);
|
|
450
|
+
return BalancesActionPermission.fromProto(proto_1.badges.BalancesActionPermission.fromJson(jsonValue, options), convertFunction);
|
|
442
451
|
}
|
|
443
452
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
444
|
-
return BalancesActionPermission.fromProto(badges.BalancesActionPermission.fromJsonString(jsonString, options), convertFunction);
|
|
453
|
+
return BalancesActionPermission.fromProto(proto_1.badges.BalancesActionPermission.fromJsonString(jsonString, options), convertFunction);
|
|
445
454
|
}
|
|
446
455
|
static fromProto(protoMsg, convertFunction) {
|
|
447
456
|
return new BalancesActionPermission({
|
|
448
|
-
badgeIds: protoMsg.badgeIds.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
449
|
-
ownershipTimes: protoMsg.ownershipTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
450
|
-
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
451
|
-
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => UintRange.fromProto(x, convertFunction))
|
|
457
|
+
badgeIds: protoMsg.badgeIds.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
458
|
+
ownershipTimes: protoMsg.ownershipTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
459
|
+
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
460
|
+
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction))
|
|
452
461
|
});
|
|
453
462
|
}
|
|
454
463
|
castToUniversalPermission() {
|
|
455
464
|
return {
|
|
456
|
-
...AllDefaultValues,
|
|
457
|
-
badgeIds: this.badgeIds.convert(BigIntify),
|
|
458
|
-
ownershipTimes: this.ownershipTimes.convert(BigIntify),
|
|
459
|
-
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(BigIntify),
|
|
460
|
-
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(BigIntify),
|
|
465
|
+
...validate_utils_1.AllDefaultValues,
|
|
466
|
+
badgeIds: this.badgeIds.convert(string_numbers_1.BigIntify),
|
|
467
|
+
ownershipTimes: this.ownershipTimes.convert(string_numbers_1.BigIntify),
|
|
468
|
+
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(string_numbers_1.BigIntify),
|
|
469
|
+
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(string_numbers_1.BigIntify),
|
|
461
470
|
usesBadgeIds: true,
|
|
462
471
|
usesOwnershipTimes: true
|
|
463
472
|
};
|
|
@@ -465,7 +474,7 @@ export class BalancesActionPermission extends BaseNumberTypeClass {
|
|
|
465
474
|
static validateUpdate(permissions, newPermission) {
|
|
466
475
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
467
476
|
const castedNewPermissions = newPermission.map((x) => x.castToUniversalPermission());
|
|
468
|
-
return validateUniversalPermissionUpdate(GetFirstMatchOnly(castedPermissions), GetFirstMatchOnly(castedNewPermissions));
|
|
477
|
+
return validateUniversalPermissionUpdate((0, overlaps_1.GetFirstMatchOnly)(castedPermissions), (0, overlaps_1.GetFirstMatchOnly)(castedNewPermissions));
|
|
469
478
|
}
|
|
470
479
|
static check(details, permissions, time) {
|
|
471
480
|
const detailsToCheck = [];
|
|
@@ -474,31 +483,32 @@ export class BalancesActionPermission extends BaseNumberTypeClass {
|
|
|
474
483
|
for (const badgeId of detail.badgeIds) {
|
|
475
484
|
detailsToCheck.push({
|
|
476
485
|
...AllDefaultDetailsValues,
|
|
477
|
-
ownershipTime: ownershipTime.convert(BigIntify),
|
|
478
|
-
badgeId: badgeId.convert(BigIntify)
|
|
486
|
+
ownershipTime: ownershipTime.convert(string_numbers_1.BigIntify),
|
|
487
|
+
badgeId: badgeId.convert(string_numbers_1.BigIntify)
|
|
479
488
|
});
|
|
480
489
|
}
|
|
481
490
|
}
|
|
482
491
|
}
|
|
483
492
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
484
|
-
const permissionDetails = GetFirstMatchOnly(castedPermissions);
|
|
493
|
+
const permissionDetails = (0, overlaps_1.GetFirstMatchOnly)(castedPermissions);
|
|
485
494
|
return checkNotForbiddenForAllOverlaps(permissionDetails, detailsToCheck, time ? BigInt(time) : undefined);
|
|
486
495
|
}
|
|
487
496
|
}
|
|
488
|
-
|
|
497
|
+
exports.BalancesActionPermission = BalancesActionPermission;
|
|
498
|
+
class TimedUpdateWithBadgeIdsPermission extends base_1.BaseNumberTypeClass {
|
|
489
499
|
timelineTimes;
|
|
490
500
|
badgeIds;
|
|
491
501
|
permanentlyPermittedTimes;
|
|
492
502
|
permanentlyForbiddenTimes;
|
|
493
503
|
constructor(msg) {
|
|
494
504
|
super();
|
|
495
|
-
this.timelineTimes = UintRangeArray.From(msg.timelineTimes);
|
|
496
|
-
this.badgeIds = UintRangeArray.From(msg.badgeIds);
|
|
497
|
-
this.permanentlyPermittedTimes = UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
498
|
-
this.permanentlyForbiddenTimes = UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
505
|
+
this.timelineTimes = uintRanges_1.UintRangeArray.From(msg.timelineTimes);
|
|
506
|
+
this.badgeIds = uintRanges_1.UintRangeArray.From(msg.badgeIds);
|
|
507
|
+
this.permanentlyPermittedTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
508
|
+
this.permanentlyForbiddenTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
499
509
|
}
|
|
500
510
|
convert(convertFunction) {
|
|
501
|
-
return new TimedUpdateWithBadgeIdsPermission(deepCopyPrimitives({
|
|
511
|
+
return new TimedUpdateWithBadgeIdsPermission((0, base_1.deepCopyPrimitives)({
|
|
502
512
|
timelineTimes: this.timelineTimes.map((x) => x.convert(convertFunction)),
|
|
503
513
|
badgeIds: this.badgeIds.map((x) => x.convert(convertFunction)),
|
|
504
514
|
permanentlyPermittedTimes: this.permanentlyPermittedTimes.map((x) => x.convert(convertFunction)),
|
|
@@ -506,29 +516,29 @@ export class TimedUpdateWithBadgeIdsPermission extends BaseNumberTypeClass {
|
|
|
506
516
|
}));
|
|
507
517
|
}
|
|
508
518
|
toProto() {
|
|
509
|
-
return new badges.TimedUpdateWithBadgeIdsPermission(this.convert(Stringify));
|
|
519
|
+
return new proto_1.badges.TimedUpdateWithBadgeIdsPermission(this.convert(string_numbers_1.Stringify));
|
|
510
520
|
}
|
|
511
521
|
static fromJson(jsonValue, convertFunction, options) {
|
|
512
|
-
return TimedUpdateWithBadgeIdsPermission.fromProto(badges.TimedUpdateWithBadgeIdsPermission.fromJson(jsonValue, options), convertFunction);
|
|
522
|
+
return TimedUpdateWithBadgeIdsPermission.fromProto(proto_1.badges.TimedUpdateWithBadgeIdsPermission.fromJson(jsonValue, options), convertFunction);
|
|
513
523
|
}
|
|
514
524
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
515
|
-
return TimedUpdateWithBadgeIdsPermission.fromProto(badges.TimedUpdateWithBadgeIdsPermission.fromJsonString(jsonString, options), convertFunction);
|
|
525
|
+
return TimedUpdateWithBadgeIdsPermission.fromProto(proto_1.badges.TimedUpdateWithBadgeIdsPermission.fromJsonString(jsonString, options), convertFunction);
|
|
516
526
|
}
|
|
517
527
|
static fromProto(protoMsg, convertFunction) {
|
|
518
528
|
return new TimedUpdateWithBadgeIdsPermission({
|
|
519
|
-
timelineTimes: protoMsg.timelineTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
520
|
-
badgeIds: protoMsg.badgeIds.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
521
|
-
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
522
|
-
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => UintRange.fromProto(x, convertFunction))
|
|
529
|
+
timelineTimes: protoMsg.timelineTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
530
|
+
badgeIds: protoMsg.badgeIds.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
531
|
+
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
532
|
+
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction))
|
|
523
533
|
});
|
|
524
534
|
}
|
|
525
535
|
castToUniversalPermission() {
|
|
526
536
|
return {
|
|
527
|
-
...AllDefaultValues,
|
|
528
|
-
timelineTimes: this.timelineTimes.convert(BigIntify),
|
|
529
|
-
badgeIds: this.badgeIds.convert(BigIntify),
|
|
530
|
-
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(BigIntify),
|
|
531
|
-
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(BigIntify),
|
|
537
|
+
...validate_utils_1.AllDefaultValues,
|
|
538
|
+
timelineTimes: this.timelineTimes.convert(string_numbers_1.BigIntify),
|
|
539
|
+
badgeIds: this.badgeIds.convert(string_numbers_1.BigIntify),
|
|
540
|
+
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(string_numbers_1.BigIntify),
|
|
541
|
+
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(string_numbers_1.BigIntify),
|
|
532
542
|
usesTimelineTimes: true,
|
|
533
543
|
usesBadgeIds: true
|
|
534
544
|
};
|
|
@@ -536,7 +546,7 @@ export class TimedUpdateWithBadgeIdsPermission extends BaseNumberTypeClass {
|
|
|
536
546
|
static validateUpdate(permissions, newPermission) {
|
|
537
547
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
538
548
|
const castedNewPermissions = newPermission.map((x) => x.castToUniversalPermission());
|
|
539
|
-
return validateUniversalPermissionUpdate(GetFirstMatchOnly(castedPermissions), GetFirstMatchOnly(castedNewPermissions));
|
|
549
|
+
return validateUniversalPermissionUpdate((0, overlaps_1.GetFirstMatchOnly)(castedPermissions), (0, overlaps_1.GetFirstMatchOnly)(castedNewPermissions));
|
|
540
550
|
}
|
|
541
551
|
static check(details, permissions, time) {
|
|
542
552
|
const detailsToCheck = [];
|
|
@@ -545,18 +555,19 @@ export class TimedUpdateWithBadgeIdsPermission extends BaseNumberTypeClass {
|
|
|
545
555
|
for (const badgeId of detail.badgeIds) {
|
|
546
556
|
detailsToCheck.push({
|
|
547
557
|
...AllDefaultDetailsValues,
|
|
548
|
-
timelineTime: timelineTime.convert(BigIntify),
|
|
549
|
-
badgeId: badgeId.convert(BigIntify)
|
|
558
|
+
timelineTime: timelineTime.convert(string_numbers_1.BigIntify),
|
|
559
|
+
badgeId: badgeId.convert(string_numbers_1.BigIntify)
|
|
550
560
|
});
|
|
551
561
|
}
|
|
552
562
|
}
|
|
553
563
|
}
|
|
554
564
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
555
|
-
const permissionDetails = GetFirstMatchOnly(castedPermissions);
|
|
565
|
+
const permissionDetails = (0, overlaps_1.GetFirstMatchOnly)(castedPermissions);
|
|
556
566
|
return checkNotForbiddenForAllOverlaps(permissionDetails, detailsToCheck, time ? BigInt(time) : undefined);
|
|
557
567
|
}
|
|
558
568
|
}
|
|
559
|
-
|
|
569
|
+
exports.TimedUpdateWithBadgeIdsPermission = TimedUpdateWithBadgeIdsPermission;
|
|
570
|
+
class CollectionApprovalPermission extends base_1.BaseNumberTypeClass {
|
|
560
571
|
fromListId;
|
|
561
572
|
toListId;
|
|
562
573
|
initiatedByListId;
|
|
@@ -571,15 +582,15 @@ export class CollectionApprovalPermission extends BaseNumberTypeClass {
|
|
|
571
582
|
this.fromListId = msg.fromListId;
|
|
572
583
|
this.toListId = msg.toListId;
|
|
573
584
|
this.initiatedByListId = msg.initiatedByListId;
|
|
574
|
-
this.transferTimes = UintRangeArray.From(msg.transferTimes);
|
|
575
|
-
this.badgeIds = UintRangeArray.From(msg.badgeIds);
|
|
576
|
-
this.ownershipTimes = UintRangeArray.From(msg.ownershipTimes);
|
|
585
|
+
this.transferTimes = uintRanges_1.UintRangeArray.From(msg.transferTimes);
|
|
586
|
+
this.badgeIds = uintRanges_1.UintRangeArray.From(msg.badgeIds);
|
|
587
|
+
this.ownershipTimes = uintRanges_1.UintRangeArray.From(msg.ownershipTimes);
|
|
577
588
|
this.approvalId = msg.approvalId;
|
|
578
|
-
this.permanentlyPermittedTimes = UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
579
|
-
this.permanentlyForbiddenTimes = UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
589
|
+
this.permanentlyPermittedTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyPermittedTimes);
|
|
590
|
+
this.permanentlyForbiddenTimes = uintRanges_1.UintRangeArray.From(msg.permanentlyForbiddenTimes);
|
|
580
591
|
}
|
|
581
592
|
convert(convertFunction) {
|
|
582
|
-
return new CollectionApprovalPermission(deepCopyPrimitives({
|
|
593
|
+
return new CollectionApprovalPermission((0, base_1.deepCopyPrimitives)({
|
|
583
594
|
fromListId: this.fromListId,
|
|
584
595
|
toListId: this.toListId,
|
|
585
596
|
initiatedByListId: this.initiatedByListId,
|
|
@@ -592,31 +603,31 @@ export class CollectionApprovalPermission extends BaseNumberTypeClass {
|
|
|
592
603
|
}));
|
|
593
604
|
}
|
|
594
605
|
toProto() {
|
|
595
|
-
return new badges.CollectionApprovalPermission(this.convert(Stringify));
|
|
606
|
+
return new proto_1.badges.CollectionApprovalPermission(this.convert(string_numbers_1.Stringify));
|
|
596
607
|
}
|
|
597
608
|
static fromJson(jsonValue, convertFunction, options) {
|
|
598
|
-
return CollectionApprovalPermission.fromProto(badges.CollectionApprovalPermission.fromJson(jsonValue, options), convertFunction);
|
|
609
|
+
return CollectionApprovalPermission.fromProto(proto_1.badges.CollectionApprovalPermission.fromJson(jsonValue, options), convertFunction);
|
|
599
610
|
}
|
|
600
611
|
static fromJsonString(jsonString, convertFunction, options) {
|
|
601
|
-
return CollectionApprovalPermission.fromProto(badges.CollectionApprovalPermission.fromJsonString(jsonString, options), convertFunction);
|
|
612
|
+
return CollectionApprovalPermission.fromProto(proto_1.badges.CollectionApprovalPermission.fromJsonString(jsonString, options), convertFunction);
|
|
602
613
|
}
|
|
603
614
|
static fromProto(protoMsg, convertFunction) {
|
|
604
615
|
return new CollectionApprovalPermission({
|
|
605
616
|
fromListId: protoMsg.fromListId,
|
|
606
617
|
toListId: protoMsg.toListId,
|
|
607
618
|
initiatedByListId: protoMsg.initiatedByListId,
|
|
608
|
-
transferTimes: protoMsg.transferTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
609
|
-
badgeIds: protoMsg.badgeIds.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
610
|
-
ownershipTimes: protoMsg.ownershipTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
619
|
+
transferTimes: protoMsg.transferTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
620
|
+
badgeIds: protoMsg.badgeIds.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
621
|
+
ownershipTimes: protoMsg.ownershipTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
611
622
|
approvalId: protoMsg.approvalId,
|
|
612
|
-
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => UintRange.fromProto(x, convertFunction)),
|
|
613
|
-
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => UintRange.fromProto(x, convertFunction))
|
|
623
|
+
permanentlyPermittedTimes: protoMsg.permanentlyPermittedTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction)),
|
|
624
|
+
permanentlyForbiddenTimes: protoMsg.permanentlyForbiddenTimes.map((x) => uintRanges_1.UintRange.fromProto(x, convertFunction))
|
|
614
625
|
});
|
|
615
626
|
}
|
|
616
627
|
static validateUpdate(permissions, newPermission) {
|
|
617
628
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
618
629
|
const castedNewPermissions = newPermission.map((x) => x.castToUniversalPermission());
|
|
619
|
-
return validateUniversalPermissionUpdate(GetFirstMatchOnly(castedPermissions), GetFirstMatchOnly(castedNewPermissions));
|
|
630
|
+
return validateUniversalPermissionUpdate((0, overlaps_1.GetFirstMatchOnly)(castedPermissions), (0, overlaps_1.GetFirstMatchOnly)(castedNewPermissions));
|
|
620
631
|
}
|
|
621
632
|
static check(details, permissions, time) {
|
|
622
633
|
const detailsToCheck = [];
|
|
@@ -626,9 +637,9 @@ export class CollectionApprovalPermission extends BaseNumberTypeClass {
|
|
|
626
637
|
for (const ownershipTime of detail.ownershipTimes) {
|
|
627
638
|
detailsToCheck.push({
|
|
628
639
|
...AllDefaultDetailsValues,
|
|
629
|
-
transferTime: transferTime.convert(BigIntify),
|
|
630
|
-
badgeId: badgeId.convert(BigIntify),
|
|
631
|
-
ownershipTime: ownershipTime.convert(BigIntify),
|
|
640
|
+
transferTime: transferTime.convert(string_numbers_1.BigIntify),
|
|
641
|
+
badgeId: badgeId.convert(string_numbers_1.BigIntify),
|
|
642
|
+
ownershipTime: ownershipTime.convert(string_numbers_1.BigIntify),
|
|
632
643
|
toList: detail.toList,
|
|
633
644
|
fromList: detail.fromList,
|
|
634
645
|
initiatedByList: detail.initiatedByList,
|
|
@@ -639,36 +650,37 @@ export class CollectionApprovalPermission extends BaseNumberTypeClass {
|
|
|
639
650
|
}
|
|
640
651
|
}
|
|
641
652
|
const castedPermissions = permissions.map((x) => x.castToUniversalPermission());
|
|
642
|
-
const permissionDetails = GetFirstMatchOnly(castedPermissions);
|
|
653
|
+
const permissionDetails = (0, overlaps_1.GetFirstMatchOnly)(castedPermissions);
|
|
643
654
|
return checkNotForbiddenForAllOverlaps(permissionDetails, detailsToCheck, time ? BigInt(time) : undefined, true);
|
|
644
655
|
}
|
|
645
656
|
}
|
|
646
|
-
|
|
647
|
-
|
|
657
|
+
exports.CollectionApprovalPermission = CollectionApprovalPermission;
|
|
658
|
+
const { getReservedAddressList, getReservedTrackerList } = addressLists_1.AddressList;
|
|
659
|
+
class CollectionApprovalPermissionWithDetails extends CollectionApprovalPermission {
|
|
648
660
|
toList;
|
|
649
661
|
fromList;
|
|
650
662
|
initiatedByList;
|
|
651
663
|
constructor(data) {
|
|
652
664
|
super(data);
|
|
653
|
-
this.toList = new AddressList(data.toList);
|
|
654
|
-
this.fromList = new AddressList(data.fromList);
|
|
655
|
-
this.initiatedByList = new AddressList(data.initiatedByList);
|
|
665
|
+
this.toList = new addressLists_1.AddressList(data.toList);
|
|
666
|
+
this.fromList = new addressLists_1.AddressList(data.fromList);
|
|
667
|
+
this.initiatedByList = new addressLists_1.AddressList(data.initiatedByList);
|
|
656
668
|
}
|
|
657
669
|
clone() {
|
|
658
670
|
return super.clone();
|
|
659
671
|
}
|
|
660
672
|
convert(convertFunction) {
|
|
661
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
673
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
662
674
|
}
|
|
663
675
|
castToUniversalPermission() {
|
|
664
676
|
return {
|
|
665
|
-
...AllDefaultValues,
|
|
677
|
+
...validate_utils_1.AllDefaultValues,
|
|
666
678
|
toList: this.toList,
|
|
667
679
|
fromList: this.fromList,
|
|
668
680
|
initiatedByList: this.initiatedByList,
|
|
669
|
-
transferTimes: this.transferTimes.convert(BigIntify),
|
|
670
|
-
badgeIds: this.badgeIds.convert(BigIntify),
|
|
671
|
-
ownershipTimes: this.ownershipTimes.convert(BigIntify),
|
|
681
|
+
transferTimes: this.transferTimes.convert(string_numbers_1.BigIntify),
|
|
682
|
+
badgeIds: this.badgeIds.convert(string_numbers_1.BigIntify),
|
|
683
|
+
ownershipTimes: this.ownershipTimes.convert(string_numbers_1.BigIntify),
|
|
672
684
|
approvalIdList: getReservedTrackerList(this.approvalId),
|
|
673
685
|
usesApprovalIdList: true,
|
|
674
686
|
usesBadgeIds: true,
|
|
@@ -677,24 +689,25 @@ export class CollectionApprovalPermissionWithDetails extends CollectionApprovalP
|
|
|
677
689
|
usesToList: true,
|
|
678
690
|
usesFromList: true,
|
|
679
691
|
usesInitiatedByList: true,
|
|
680
|
-
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(BigIntify),
|
|
681
|
-
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(BigIntify)
|
|
692
|
+
permanentlyPermittedTimes: this.permanentlyPermittedTimes.convert(string_numbers_1.BigIntify),
|
|
693
|
+
permanentlyForbiddenTimes: this.permanentlyForbiddenTimes.convert(string_numbers_1.BigIntify)
|
|
682
694
|
};
|
|
683
695
|
}
|
|
684
696
|
}
|
|
685
|
-
|
|
697
|
+
exports.CollectionApprovalPermissionWithDetails = CollectionApprovalPermissionWithDetails;
|
|
698
|
+
class UserIncomingApprovalPermissionWithDetails extends UserIncomingApprovalPermission {
|
|
686
699
|
fromList;
|
|
687
700
|
initiatedByList;
|
|
688
701
|
constructor(data) {
|
|
689
702
|
super(data);
|
|
690
|
-
this.fromList = new AddressList(data.fromList);
|
|
691
|
-
this.initiatedByList = new AddressList(data.initiatedByList);
|
|
703
|
+
this.fromList = new addressLists_1.AddressList(data.fromList);
|
|
704
|
+
this.initiatedByList = new addressLists_1.AddressList(data.initiatedByList);
|
|
692
705
|
}
|
|
693
706
|
clone() {
|
|
694
707
|
return super.clone();
|
|
695
708
|
}
|
|
696
709
|
convert(convertFunction) {
|
|
697
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
710
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
698
711
|
}
|
|
699
712
|
castToCollectionApprovalPermission(address) {
|
|
700
713
|
return new CollectionApprovalPermissionWithDetails({
|
|
@@ -704,19 +717,20 @@ export class UserIncomingApprovalPermissionWithDetails extends UserIncomingAppro
|
|
|
704
717
|
});
|
|
705
718
|
}
|
|
706
719
|
}
|
|
707
|
-
|
|
720
|
+
exports.UserIncomingApprovalPermissionWithDetails = UserIncomingApprovalPermissionWithDetails;
|
|
721
|
+
class UserOutgoingApprovalPermissionWithDetails extends UserOutgoingApprovalPermission {
|
|
708
722
|
toList;
|
|
709
723
|
initiatedByList;
|
|
710
724
|
constructor(data) {
|
|
711
725
|
super(data);
|
|
712
|
-
this.toList = new AddressList(data.toList);
|
|
713
|
-
this.initiatedByList = new AddressList(data.initiatedByList);
|
|
726
|
+
this.toList = new addressLists_1.AddressList(data.toList);
|
|
727
|
+
this.initiatedByList = new addressLists_1.AddressList(data.initiatedByList);
|
|
714
728
|
}
|
|
715
729
|
clone() {
|
|
716
730
|
return super.clone();
|
|
717
731
|
}
|
|
718
732
|
convert(convertFunction) {
|
|
719
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
733
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
720
734
|
}
|
|
721
735
|
castToCollectionApprovalPermission(address) {
|
|
722
736
|
return new CollectionApprovalPermissionWithDetails({
|
|
@@ -726,14 +740,15 @@ export class UserOutgoingApprovalPermissionWithDetails extends UserOutgoingAppro
|
|
|
726
740
|
});
|
|
727
741
|
}
|
|
728
742
|
}
|
|
729
|
-
|
|
743
|
+
exports.UserOutgoingApprovalPermissionWithDetails = UserOutgoingApprovalPermissionWithDetails;
|
|
744
|
+
class CollectionPermissionsWithDetails extends CollectionPermissions {
|
|
730
745
|
canUpdateCollectionApprovals;
|
|
731
746
|
constructor(data) {
|
|
732
747
|
super(data);
|
|
733
748
|
this.canUpdateCollectionApprovals = data.canUpdateCollectionApprovals.map((canUpdateCollectionApproval) => new CollectionApprovalPermissionWithDetails(canUpdateCollectionApproval));
|
|
734
749
|
}
|
|
735
750
|
convert(convertFunction) {
|
|
736
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
751
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
737
752
|
}
|
|
738
753
|
clone() {
|
|
739
754
|
return super.clone();
|
|
@@ -742,7 +757,8 @@ export class CollectionPermissionsWithDetails extends CollectionPermissions {
|
|
|
742
757
|
return CollectionPermissions.validateUpdate(oldPermissions, newPermissions);
|
|
743
758
|
}
|
|
744
759
|
}
|
|
745
|
-
|
|
760
|
+
exports.CollectionPermissionsWithDetails = CollectionPermissionsWithDetails;
|
|
761
|
+
class UserPermissionsWithDetails extends UserPermissions {
|
|
746
762
|
canUpdateIncomingApprovals;
|
|
747
763
|
canUpdateOutgoingApprovals;
|
|
748
764
|
canUpdateAutoApproveSelfInitiatedOutgoingTransfers;
|
|
@@ -755,9 +771,10 @@ export class UserPermissionsWithDetails extends UserPermissions {
|
|
|
755
771
|
this.canUpdateAutoApproveSelfInitiatedIncomingTransfers = data.canUpdateAutoApproveSelfInitiatedIncomingTransfers.map((actionPermission) => new ActionPermission(actionPermission));
|
|
756
772
|
}
|
|
757
773
|
convert(convertFunction) {
|
|
758
|
-
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction);
|
|
774
|
+
return (0, base_1.convertClassPropertiesAndMaintainNumberTypes)(this, convertFunction);
|
|
759
775
|
}
|
|
760
776
|
}
|
|
777
|
+
exports.UserPermissionsWithDetails = UserPermissionsWithDetails;
|
|
761
778
|
function checkNotForbidden(permission, time) {
|
|
762
779
|
const blockTime = time ?? BigInt(Date.now());
|
|
763
780
|
const [, found] = permission.permanentlyForbiddenTimes.search(blockTime);
|
|
@@ -780,40 +797,40 @@ function checkNotForbiddenForAllOverlaps(permissionDetails, detailsToCheck, time
|
|
|
780
797
|
for (const detailToCheck of detailsToCheck) {
|
|
781
798
|
if (detailToCheck.badgeId.start === -1n) {
|
|
782
799
|
usesBadgeIds = false;
|
|
783
|
-
detailToCheck.badgeId = new UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
800
|
+
detailToCheck.badgeId = new uintRanges_1.UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
784
801
|
}
|
|
785
802
|
if (detailToCheck.timelineTime.start === -1n) {
|
|
786
803
|
usesTimelineTimes = false;
|
|
787
|
-
detailToCheck.timelineTime = new UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
804
|
+
detailToCheck.timelineTime = new uintRanges_1.UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
788
805
|
}
|
|
789
806
|
if (detailToCheck.transferTime.start === -1n) {
|
|
790
807
|
usesTransferTimes = false;
|
|
791
|
-
detailToCheck.transferTime = new UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
808
|
+
detailToCheck.transferTime = new uintRanges_1.UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
792
809
|
}
|
|
793
810
|
if (detailToCheck.ownershipTime.start === -1n) {
|
|
794
811
|
usesOwnershipTimes = false;
|
|
795
|
-
detailToCheck.ownershipTime = new UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
812
|
+
detailToCheck.ownershipTime = new uintRanges_1.UintRange({ start: BigInt(1n), end: BigInt(1n) });
|
|
796
813
|
}
|
|
797
814
|
if (!usesLists) {
|
|
798
815
|
usesToLists = false;
|
|
799
|
-
detailToCheck.toList = AddressList.AllAddresses();
|
|
816
|
+
detailToCheck.toList = addressLists_1.AddressList.AllAddresses();
|
|
800
817
|
}
|
|
801
818
|
if (!usesLists) {
|
|
802
819
|
usesFromLists = false;
|
|
803
|
-
detailToCheck.fromList = AddressList.AllAddresses();
|
|
820
|
+
detailToCheck.fromList = addressLists_1.AddressList.AllAddresses();
|
|
804
821
|
}
|
|
805
822
|
if (!usesLists) {
|
|
806
823
|
usesInitiatedByLists = false;
|
|
807
|
-
detailToCheck.initiatedByList = AddressList.AllAddresses();
|
|
824
|
+
detailToCheck.initiatedByList = addressLists_1.AddressList.AllAddresses();
|
|
808
825
|
}
|
|
809
826
|
if (!usesLists) {
|
|
810
827
|
usesApprovalIdLists = false;
|
|
811
|
-
detailToCheck.approvalIdList = AddressList.AllAddresses();
|
|
828
|
+
detailToCheck.approvalIdList = addressLists_1.AddressList.AllAddresses();
|
|
812
829
|
}
|
|
813
830
|
}
|
|
814
831
|
for (const permissionDetail of permissionDetails) {
|
|
815
832
|
for (const detailToCheck of detailsToCheck) {
|
|
816
|
-
const [, overlap] = universalRemoveOverlaps(permissionDetail, detailToCheck);
|
|
833
|
+
const [, overlap] = (0, overlaps_1.universalRemoveOverlaps)(permissionDetail, detailToCheck);
|
|
817
834
|
if (overlap.length > 0) {
|
|
818
835
|
const err = checkNotForbidden(permissionDetail, time);
|
|
819
836
|
if (err) {
|
|
@@ -850,7 +867,7 @@ function checkNotForbiddenForAllOverlaps(permissionDetails, detailsToCheck, time
|
|
|
850
867
|
return null;
|
|
851
868
|
}
|
|
852
869
|
function validateUniversalPermissionUpdate(oldPermissions, newPermissions) {
|
|
853
|
-
const [allOverlaps, inOldButNotNew] = getOverlapsAndNonOverlaps(oldPermissions, newPermissions);
|
|
870
|
+
const [allOverlaps, inOldButNotNew] = (0, overlaps_1.getOverlapsAndNonOverlaps)(oldPermissions, newPermissions);
|
|
854
871
|
if (inOldButNotNew.length > 0) {
|
|
855
872
|
let errMsg = `Permission ${getPermissionString(inOldButNotNew[0])} found in old permissions but not in new permissions`;
|
|
856
873
|
if (inOldButNotNew.length > 1) {
|