├── .eslintrc.json ├── .gitattributes ├── .github └── workflows │ ├── e2e-tests.yaml │ └── run-tests.yaml ├── .gitignore ├── .gitmodules ├── .prettierrc.json ├── .vscode └── settings.json ├── LICENSE-Apache ├── LICENSE-MIT ├── Makefile ├── README.md ├── __fixtures__ ├── coingecko │ └── api │ │ └── v3 │ │ └── simple │ │ └── price │ │ ├── data.json │ │ └── req.json ├── rpc │ └── osmosis │ │ ├── gamm │ │ └── v1beta1 │ │ │ └── pools │ │ │ ├── data.json │ │ │ └── req.json │ │ ├── incentives │ │ └── v1beta1 │ │ │ ├── active_gauges │ │ │ ├── data.json │ │ │ └── req.json │ │ │ ├── gauge_by_id │ │ │ └── 600 │ │ │ │ ├── data.json │ │ │ │ └── req.json │ │ │ └── gauges │ │ │ ├── data.json │ │ │ └── req.json │ │ ├── lockup │ │ └── v1beta1 │ │ │ └── account_locked_coins │ │ │ └── osmo1 │ │ │ ├── data.json │ │ │ └── req.json │ │ ├── pool-incentives │ │ └── v1beta1 │ │ │ ├── incentivized_pools │ │ │ ├── data.json │ │ │ └── req.json │ │ │ └── lockable_durations │ │ │ ├── data.json │ │ │ └── req.json │ │ └── superfluid │ │ └── v1beta1 │ │ └── all_assets │ │ ├── data.json │ │ └── req.json └── validator │ ├── apr │ └── v1 │ │ ├── 606 │ │ ├── data.json │ │ └── req.json │ │ └── all │ │ ├── data.json │ │ └── req.json │ ├── pairs │ └── v1 │ │ └── summary │ │ ├── data.json │ │ └── req.json │ ├── search │ └── v1 │ │ └── pools │ │ ├── data.json │ │ └── req.json │ └── tokens │ └── v2 │ └── all │ ├── data.json │ └── req.json ├── lerna.json ├── package.json ├── packages ├── math │ ├── CHANGELOG.md │ ├── LICENSE-Apache │ ├── LICENSE-MIT │ ├── README.md │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ ├── apr.test.ts.snap │ │ │ ├── pool-calculator.test.ts.snap │ │ │ ├── pool-utils.test.ts.snap │ │ │ └── swap.test.ts.snap │ │ ├── apr.test.ts │ │ ├── pool-calculator.test.ts │ │ ├── pool-utils.test.ts │ │ └── swap.test.ts │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── apr.ts │ │ ├── index.ts │ │ ├── pool-calculator.ts │ │ ├── pool-utils.ts │ │ ├── swap.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── tsconfig.esm.json │ └── tsconfig.json ├── osmo-query │ ├── .vscode │ │ └── settings.json │ ├── CHANGELOG.md │ ├── LICENSE-Apache │ ├── LICENSE-MIT │ ├── README.md │ ├── package.json │ ├── scripts │ │ └── codegen.ts │ ├── src │ │ ├── amino │ │ │ ├── amino.ts │ │ │ └── bundle.ts │ │ ├── binary.ts │ │ ├── capability │ │ │ ├── bundle.ts │ │ │ └── v1 │ │ │ │ ├── capability.ts │ │ │ │ └── genesis.ts │ │ ├── cosmos │ │ │ ├── app │ │ │ │ ├── runtime │ │ │ │ │ └── v1alpha1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1alpha1 │ │ │ │ │ └── module.ts │ │ │ ├── auth │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── auth.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── authz │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── event.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── bank │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── bank.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── base │ │ │ │ ├── abci │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── abci.ts │ │ │ │ ├── node │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Service.ts │ │ │ │ │ │ └── query.ts │ │ │ │ ├── query │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── pagination.ts │ │ │ │ ├── reflection │ │ │ │ │ └── v2alpha1 │ │ │ │ │ │ └── reflection.ts │ │ │ │ └── v1beta1 │ │ │ │ │ └── coin.ts │ │ │ ├── bundle.ts │ │ │ ├── capability │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── client.ts │ │ │ ├── consensus │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── crisis │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── crypto │ │ │ │ ├── ed25519 │ │ │ │ │ └── keys.ts │ │ │ │ ├── hd │ │ │ │ │ └── v1 │ │ │ │ │ │ └── hd.ts │ │ │ │ ├── keyring │ │ │ │ │ └── v1 │ │ │ │ │ │ └── record.ts │ │ │ │ ├── multisig │ │ │ │ │ ├── keys.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── multisig.ts │ │ │ │ ├── secp256k1 │ │ │ │ │ └── keys.ts │ │ │ │ └── secp256r1 │ │ │ │ │ └── keys.ts │ │ │ ├── distribution │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── distribution.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── evidence │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── feegrant │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── genutil │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── gov │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── group │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── ics23 │ │ │ │ └── v1 │ │ │ │ │ └── proofs.ts │ │ │ ├── lcd.ts │ │ │ ├── mint │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── msg │ │ │ │ └── v1 │ │ │ │ │ └── msg.ts │ │ │ ├── nft │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── orm │ │ │ │ ├── module │ │ │ │ │ └── v1alpha1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── query │ │ │ │ │ └── v1alpha1 │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── params │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── query │ │ │ │ └── v1 │ │ │ │ │ └── query.ts │ │ │ ├── reflection │ │ │ │ └── v1 │ │ │ │ │ └── reflection.ts │ │ │ ├── rpc.query.ts │ │ │ ├── rpc.tx.ts │ │ │ ├── slashing │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── staking │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── staking.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── tx │ │ │ │ ├── config │ │ │ │ │ └── v1 │ │ │ │ │ │ └── config.ts │ │ │ │ ├── signing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── signing.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── service.lcd.ts │ │ │ │ │ ├── service.rpc.Service.ts │ │ │ │ │ ├── service.ts │ │ │ │ │ └── tx.ts │ │ │ ├── upgrade │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ ├── tx.ts │ │ │ │ │ └── upgrade.ts │ │ │ └── vesting │ │ │ │ └── module │ │ │ │ └── v1 │ │ │ │ └── module.ts │ │ ├── cosmos_proto │ │ │ ├── bundle.ts │ │ │ └── cosmos.ts │ │ ├── cosmwasm │ │ │ ├── bundle.ts │ │ │ ├── client.ts │ │ │ ├── lcd.ts │ │ │ ├── rpc.query.ts │ │ │ ├── rpc.tx.ts │ │ │ └── wasm │ │ │ │ └── v1 │ │ │ │ ├── authz.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── ibc.ts │ │ │ │ ├── proposal_legacy.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ ├── tx.ts │ │ │ │ └── types.ts │ │ ├── extern.ts │ │ ├── gogoproto │ │ │ ├── bundle.ts │ │ │ └── gogo.ts │ │ ├── google │ │ │ ├── api │ │ │ │ ├── annotations.ts │ │ │ │ └── http.ts │ │ │ ├── bundle.ts │ │ │ └── protobuf │ │ │ │ ├── any.ts │ │ │ │ ├── descriptor.ts │ │ │ │ ├── duration.ts │ │ │ │ └── timestamp.ts │ │ ├── helpers.ts │ │ ├── hooks.ts │ │ ├── ibc │ │ │ ├── applications │ │ │ │ ├── fee │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── ack.ts │ │ │ │ │ │ ├── fee.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── metadata.ts │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── interchain_accounts │ │ │ │ │ ├── controller │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ ├── controller.ts │ │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ ├── genesis │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ └── genesis.ts │ │ │ │ │ ├── host │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ ├── host.ts │ │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── account.ts │ │ │ │ │ │ ├── metadata.ts │ │ │ │ │ │ └── packet.ts │ │ │ │ └── transfer │ │ │ │ │ ├── v1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── transfer.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ │ │ └── v2 │ │ │ │ │ └── packet.ts │ │ │ ├── bundle.ts │ │ │ ├── client.ts │ │ │ ├── core │ │ │ │ ├── channel │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── channel.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ ├── tx.ts │ │ │ │ │ │ └── upgrade.ts │ │ │ │ ├── client │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── client.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── commitment │ │ │ │ │ └── v1 │ │ │ │ │ │ └── commitment.ts │ │ │ │ └── connection │ │ │ │ │ └── v1 │ │ │ │ │ ├── connection.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── lcd.ts │ │ │ ├── lightclients │ │ │ │ ├── localhost │ │ │ │ │ └── v2 │ │ │ │ │ │ └── localhost.ts │ │ │ │ ├── solomachine │ │ │ │ │ ├── v2 │ │ │ │ │ │ └── solomachine.ts │ │ │ │ │ └── v3 │ │ │ │ │ │ └── solomachine.ts │ │ │ │ ├── tendermint │ │ │ │ │ └── v1 │ │ │ │ │ │ └── tendermint.ts │ │ │ │ └── wasm │ │ │ │ │ └── v1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ ├── tx.ts │ │ │ │ │ └── wasm.ts │ │ │ ├── rpc.query.ts │ │ │ └── rpc.tx.ts │ │ ├── index.ts │ │ ├── osmosis │ │ │ ├── accum │ │ │ │ └── v1beta1 │ │ │ │ │ └── accum.ts │ │ │ ├── bundle.ts │ │ │ ├── client.ts │ │ │ ├── concentratedliquidity │ │ │ │ ├── params.ts │ │ │ │ ├── poolmodel │ │ │ │ │ └── concentrated │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── incentive_record.ts │ │ │ │ │ ├── pool.ts │ │ │ │ │ ├── position.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tick_info.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── cosmwasmpool │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── model │ │ │ │ │ ├── instantiate_msg.ts │ │ │ │ │ ├── module_query_msg.ts │ │ │ │ │ ├── module_sudo_msg.ts │ │ │ │ │ ├── pool.ts │ │ │ │ │ ├── pool_query_msg.ts │ │ │ │ │ ├── transmuter_msgs.ts │ │ │ │ │ └── tx.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── downtimedetector │ │ │ │ └── v1beta1 │ │ │ │ │ ├── downtime_duration.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── epochs │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── gamm │ │ │ │ ├── poolmodels │ │ │ │ │ ├── balancer │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ └── stableswap │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── stableswap_pool.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── v1beta1 │ │ │ │ │ ├── balancerPool.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── shared.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ │ └── v2 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── ibchooks │ │ │ │ ├── genesis.ts │ │ │ │ ├── params.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ │ ├── ibcratelimit │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── incentives │ │ │ │ ├── gauge.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── gov.ts │ │ │ │ ├── group.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ │ ├── lcd.ts │ │ │ ├── lockup │ │ │ │ ├── genesis.ts │ │ │ │ ├── lock.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ │ ├── mint │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── mint.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── poolincentives │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── incentives.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── shared.ts │ │ │ ├── poolmanager │ │ │ │ ├── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── module_route.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── swap_route.ts │ │ │ │ │ ├── tracked_volume.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ │ └── v2 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── protorev │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── protorev.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── rpc.query.ts │ │ │ ├── rpc.tx.ts │ │ │ ├── smartaccount │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── models.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── store │ │ │ │ └── v1beta1 │ │ │ │ │ └── tree.ts │ │ │ ├── superfluid │ │ │ │ ├── genesis.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── superfluid.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ ├── tx.ts │ │ │ │ └── v1beta1 │ │ │ │ │ └── gov.ts │ │ │ ├── tokenfactory │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authorityMetadata.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── twap │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── twap_record.ts │ │ │ ├── txfees │ │ │ │ └── v1beta1 │ │ │ │ │ ├── feetoken.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ └── valsetpref │ │ │ │ └── v1beta1 │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── state.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ ├── react-query.ts │ │ ├── registry.ts │ │ ├── tendermint │ │ │ ├── abci │ │ │ │ └── types.ts │ │ │ ├── bundle.ts │ │ │ ├── crypto │ │ │ │ ├── keys.ts │ │ │ │ └── proof.ts │ │ │ ├── libs │ │ │ │ └── bits │ │ │ │ │ └── types.ts │ │ │ ├── p2p │ │ │ │ └── types.ts │ │ │ ├── types │ │ │ │ ├── block.ts │ │ │ │ ├── evidence.ts │ │ │ │ ├── params.ts │ │ │ │ ├── types.ts │ │ │ │ └── validator.ts │ │ │ └── version │ │ │ │ └── types.ts │ │ ├── types.ts │ │ ├── utf8.ts │ │ └── varint.ts │ ├── tsconfig.esm.json │ └── tsconfig.json ├── osmojs │ ├── CHANGELOG.md │ ├── LICENSE-Apache │ ├── LICENSE-MIT │ ├── README.md │ ├── __tests__ │ │ └── unit │ │ │ ├── __snapshots__ │ │ │ ├── aminos.test.ts.snap │ │ │ ├── encoded.test.ts.snap │ │ │ ├── index.test.ts.snap │ │ │ └── messages.test.ts.snap │ │ │ ├── aminos.test.ts │ │ │ ├── encoded.test.ts │ │ │ ├── index.test.ts │ │ │ └── messages.test.ts │ ├── jest.osmojs.config.js │ ├── jest.starship.config.js │ ├── package.json │ ├── proto │ │ ├── amino │ │ │ └── amino.proto │ │ ├── cosmos │ │ │ ├── app │ │ │ │ ├── runtime │ │ │ │ │ └── v1alpha1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1alpha1 │ │ │ │ │ ├── config.proto │ │ │ │ │ ├── module.proto │ │ │ │ │ └── query.proto │ │ │ ├── auth │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── auth.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── authz │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.proto │ │ │ │ │ ├── event.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── autocli │ │ │ │ └── v1 │ │ │ │ │ ├── options.proto │ │ │ │ │ └── query.proto │ │ │ ├── bank │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.proto │ │ │ │ │ ├── bank.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── base │ │ │ │ ├── abci │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── abci.proto │ │ │ │ ├── kv │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── kv.proto │ │ │ │ ├── node │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.proto │ │ │ │ ├── query │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── pagination.proto │ │ │ │ ├── reflection │ │ │ │ │ ├── v1beta1 │ │ │ │ │ │ └── reflection.proto │ │ │ │ │ └── v2alpha1 │ │ │ │ │ │ └── reflection.proto │ │ │ │ ├── snapshots │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── snapshot.proto │ │ │ │ ├── store │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── commit_info.proto │ │ │ │ │ │ └── listening.proto │ │ │ │ ├── tendermint │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── query.proto │ │ │ │ │ │ └── types.proto │ │ │ │ └── v1beta1 │ │ │ │ │ └── coin.proto │ │ │ ├── capability │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── capability.proto │ │ │ │ │ └── genesis.proto │ │ │ ├── consensus │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1 │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── crisis │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.proto │ │ │ │ │ └── tx.proto │ │ │ ├── crypto │ │ │ │ ├── ed25519 │ │ │ │ │ └── keys.proto │ │ │ │ ├── hd │ │ │ │ │ └── v1 │ │ │ │ │ │ └── hd.proto │ │ │ │ ├── keyring │ │ │ │ │ └── v1 │ │ │ │ │ │ └── record.proto │ │ │ │ ├── multisig │ │ │ │ │ ├── keys.proto │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── multisig.proto │ │ │ │ ├── secp256k1 │ │ │ │ │ └── keys.proto │ │ │ │ └── secp256r1 │ │ │ │ │ └── keys.proto │ │ │ ├── distribution │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── distribution.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── evidence │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── evidence.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── feegrant │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── feegrant.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── genutil │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ └── genesis.proto │ │ │ ├── gov │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ ├── v1 │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── gov.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── gov.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── group │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1 │ │ │ │ │ ├── events.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ ├── tx.proto │ │ │ │ │ └── types.proto │ │ │ ├── mint │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── mint.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── msg │ │ │ │ └── v1 │ │ │ │ │ └── msg.proto │ │ │ ├── nft │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── event.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── nft.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ └── tx.proto │ │ │ ├── orm │ │ │ │ ├── module │ │ │ │ │ └── v1alpha1 │ │ │ │ │ │ └── module.proto │ │ │ │ ├── query │ │ │ │ │ └── v1alpha1 │ │ │ │ │ │ └── query.proto │ │ │ │ ├── v1 │ │ │ │ │ └── orm.proto │ │ │ │ └── v1alpha1 │ │ │ │ │ └── schema.proto │ │ │ ├── params │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── params.proto │ │ │ │ │ └── query.proto │ │ │ ├── query │ │ │ │ └── v1 │ │ │ │ │ └── query.proto │ │ │ ├── reflection │ │ │ │ └── v1 │ │ │ │ │ └── reflection.proto │ │ │ ├── slashing │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ ├── slashing.proto │ │ │ │ │ └── tx.proto │ │ │ ├── staking │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.proto │ │ │ │ │ ├── genesis.proto │ │ │ │ │ ├── query.proto │ │ │ │ │ ├── staking.proto │ │ │ │ │ └── tx.proto │ │ │ ├── tx │ │ │ │ ├── config │ │ │ │ │ └── v1 │ │ │ │ │ │ └── config.proto │ │ │ │ ├── signing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── signing.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── service.proto │ │ │ │ │ └── tx.proto │ │ │ ├── upgrade │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ │ ├── query.proto │ │ │ │ │ ├── tx.proto │ │ │ │ │ └── upgrade.proto │ │ │ └── vesting │ │ │ │ ├── module │ │ │ │ └── v1 │ │ │ │ │ └── module.proto │ │ │ │ └── v1beta1 │ │ │ │ ├── tx.proto │ │ │ │ └── vesting.proto │ │ ├── cosmos_proto │ │ │ └── cosmos.proto │ │ ├── gogoproto │ │ │ └── gogo.proto │ │ ├── google │ │ │ └── api │ │ │ │ ├── annotations.proto │ │ │ │ └── http.proto │ │ └── tendermint │ │ │ ├── abci │ │ │ └── types.proto │ │ │ ├── crypto │ │ │ ├── keys.proto │ │ │ └── proof.proto │ │ │ ├── libs │ │ │ └── bits │ │ │ │ └── types.proto │ │ │ ├── p2p │ │ │ └── types.proto │ │ │ ├── types │ │ │ ├── block.proto │ │ │ ├── evidence.proto │ │ │ ├── params.proto │ │ │ ├── types.proto │ │ │ └── validator.proto │ │ │ └── version │ │ │ └── types.proto │ ├── scripts │ │ └── codegen.ts │ ├── src │ │ ├── amino │ │ │ ├── amino.ts │ │ │ └── bundle.ts │ │ ├── binary.ts │ │ ├── capability │ │ │ ├── bundle.ts │ │ │ └── v1 │ │ │ │ ├── capability.ts │ │ │ │ └── genesis.ts │ │ ├── cosmos │ │ │ ├── app │ │ │ │ ├── runtime │ │ │ │ │ └── v1alpha1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1alpha1 │ │ │ │ │ └── module.ts │ │ │ ├── auth │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── auth.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── authz │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── event.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── bank │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── bank.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── base │ │ │ │ ├── abci │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── abci.ts │ │ │ │ ├── node │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Service.ts │ │ │ │ │ │ └── query.ts │ │ │ │ ├── query │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── pagination.ts │ │ │ │ ├── reflection │ │ │ │ │ └── v2alpha1 │ │ │ │ │ │ └── reflection.ts │ │ │ │ └── v1beta1 │ │ │ │ │ └── coin.ts │ │ │ ├── bundle.ts │ │ │ ├── capability │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── client.ts │ │ │ ├── consensus │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── crisis │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── crypto │ │ │ │ ├── ed25519 │ │ │ │ │ └── keys.ts │ │ │ │ ├── hd │ │ │ │ │ └── v1 │ │ │ │ │ │ └── hd.ts │ │ │ │ ├── keyring │ │ │ │ │ └── v1 │ │ │ │ │ │ └── record.ts │ │ │ │ ├── multisig │ │ │ │ │ ├── keys.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── multisig.ts │ │ │ │ ├── secp256k1 │ │ │ │ │ └── keys.ts │ │ │ │ └── secp256r1 │ │ │ │ │ └── keys.ts │ │ │ ├── distribution │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── distribution.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── evidence │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── feegrant │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── genutil │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── gov │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── group │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── ics23 │ │ │ │ └── v1 │ │ │ │ │ └── proofs.ts │ │ │ ├── lcd.ts │ │ │ ├── mint │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── msg │ │ │ │ └── v1 │ │ │ │ │ └── msg.ts │ │ │ ├── nft │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── orm │ │ │ │ ├── module │ │ │ │ │ └── v1alpha1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── query │ │ │ │ │ └── v1alpha1 │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── params │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── query │ │ │ │ └── v1 │ │ │ │ │ └── query.ts │ │ │ ├── reflection │ │ │ │ └── v1 │ │ │ │ │ └── reflection.ts │ │ │ ├── rpc.query.ts │ │ │ ├── rpc.tx.ts │ │ │ ├── slashing │ │ │ │ └── module │ │ │ │ │ └── v1 │ │ │ │ │ └── module.ts │ │ │ ├── staking │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── staking.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── tx │ │ │ │ ├── config │ │ │ │ │ └── v1 │ │ │ │ │ │ └── config.ts │ │ │ │ ├── signing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── signing.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── service.lcd.ts │ │ │ │ │ ├── service.rpc.Service.ts │ │ │ │ │ ├── service.ts │ │ │ │ │ └── tx.ts │ │ │ ├── upgrade │ │ │ │ ├── module │ │ │ │ │ └── v1 │ │ │ │ │ │ └── module.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ ├── tx.ts │ │ │ │ │ └── upgrade.ts │ │ │ └── vesting │ │ │ │ └── module │ │ │ │ └── v1 │ │ │ │ └── module.ts │ │ ├── cosmos_proto │ │ │ ├── bundle.ts │ │ │ └── cosmos.ts │ │ ├── cosmwasm │ │ │ ├── bundle.ts │ │ │ ├── client.ts │ │ │ ├── lcd.ts │ │ │ ├── rpc.query.ts │ │ │ ├── rpc.tx.ts │ │ │ └── wasm │ │ │ │ └── v1 │ │ │ │ ├── authz.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── ibc.ts │ │ │ │ ├── proposal_legacy.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ ├── tx.ts │ │ │ │ └── types.ts │ │ ├── gogoproto │ │ │ ├── bundle.ts │ │ │ └── gogo.ts │ │ ├── google │ │ │ ├── api │ │ │ │ ├── annotations.ts │ │ │ │ └── http.ts │ │ │ ├── bundle.ts │ │ │ └── protobuf │ │ │ │ ├── any.ts │ │ │ │ ├── descriptor.ts │ │ │ │ ├── duration.ts │ │ │ │ └── timestamp.ts │ │ ├── helpers.ts │ │ ├── ibc │ │ │ ├── applications │ │ │ │ ├── fee │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── ack.ts │ │ │ │ │ │ ├── fee.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── metadata.ts │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── interchain_accounts │ │ │ │ │ ├── controller │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ ├── controller.ts │ │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ ├── genesis │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ └── genesis.ts │ │ │ │ │ ├── host │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ ├── host.ts │ │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── account.ts │ │ │ │ │ │ ├── metadata.ts │ │ │ │ │ │ └── packet.ts │ │ │ │ └── transfer │ │ │ │ │ ├── v1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── transfer.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ │ │ └── v2 │ │ │ │ │ └── packet.ts │ │ │ ├── bundle.ts │ │ │ ├── client.ts │ │ │ ├── core │ │ │ │ ├── channel │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── channel.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ ├── tx.ts │ │ │ │ │ │ └── upgrade.ts │ │ │ │ ├── client │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── client.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── commitment │ │ │ │ │ └── v1 │ │ │ │ │ │ └── commitment.ts │ │ │ │ └── connection │ │ │ │ │ └── v1 │ │ │ │ │ ├── connection.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── lcd.ts │ │ │ ├── lightclients │ │ │ │ ├── localhost │ │ │ │ │ └── v2 │ │ │ │ │ │ └── localhost.ts │ │ │ │ ├── solomachine │ │ │ │ │ ├── v2 │ │ │ │ │ │ └── solomachine.ts │ │ │ │ │ └── v3 │ │ │ │ │ │ └── solomachine.ts │ │ │ │ ├── tendermint │ │ │ │ │ └── v1 │ │ │ │ │ │ └── tendermint.ts │ │ │ │ └── wasm │ │ │ │ │ └── v1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ ├── tx.ts │ │ │ │ │ └── wasm.ts │ │ │ ├── rpc.query.ts │ │ │ └── rpc.tx.ts │ │ ├── index.ts │ │ ├── osmosis │ │ │ ├── accum │ │ │ │ └── v1beta1 │ │ │ │ │ └── accum.ts │ │ │ ├── bundle.ts │ │ │ ├── client.ts │ │ │ ├── concentratedliquidity │ │ │ │ ├── params.ts │ │ │ │ ├── poolmodel │ │ │ │ │ └── concentrated │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── incentive_record.ts │ │ │ │ │ ├── pool.ts │ │ │ │ │ ├── position.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tick_info.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── cosmwasmpool │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── model │ │ │ │ │ ├── instantiate_msg.ts │ │ │ │ │ ├── module_query_msg.ts │ │ │ │ │ ├── module_sudo_msg.ts │ │ │ │ │ ├── pool.ts │ │ │ │ │ ├── pool_query_msg.ts │ │ │ │ │ ├── transmuter_msgs.ts │ │ │ │ │ └── tx.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── downtimedetector │ │ │ │ └── v1beta1 │ │ │ │ │ ├── downtime_duration.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── epochs │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── gamm │ │ │ │ ├── poolmodels │ │ │ │ │ ├── balancer │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ └── stableswap │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── stableswap_pool.ts │ │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── v1beta1 │ │ │ │ │ ├── balancerPool.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── shared.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ │ └── v2 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── ibchooks │ │ │ │ ├── genesis.ts │ │ │ │ ├── params.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ │ ├── ibcratelimit │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── incentives │ │ │ │ ├── gauge.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── gov.ts │ │ │ │ ├── group.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ │ ├── lcd.ts │ │ │ ├── lockup │ │ │ │ ├── genesis.ts │ │ │ │ ├── lock.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ │ ├── mint │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── mint.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── poolincentives │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── incentives.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── shared.ts │ │ │ ├── poolmanager │ │ │ │ ├── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── module_route.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── swap_route.ts │ │ │ │ │ ├── tracked_volume.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ │ └── v2 │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ └── query.ts │ │ │ ├── protorev │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── protorev.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── rpc.query.ts │ │ │ ├── rpc.tx.ts │ │ │ ├── smartaccount │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── models.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── store │ │ │ │ └── v1beta1 │ │ │ │ │ └── tree.ts │ │ │ ├── superfluid │ │ │ │ ├── genesis.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── superfluid.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ ├── tx.ts │ │ │ │ └── v1beta1 │ │ │ │ │ └── gov.ts │ │ │ ├── tokenfactory │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authorityMetadata.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ ├── twap │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── twap_record.ts │ │ │ ├── txfees │ │ │ │ └── v1beta1 │ │ │ │ │ ├── feetoken.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── query.lcd.ts │ │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── tx.amino.ts │ │ │ │ │ ├── tx.registry.ts │ │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ │ └── tx.ts │ │ │ └── valsetpref │ │ │ │ └── v1beta1 │ │ │ │ ├── query.lcd.ts │ │ │ │ ├── query.rpc.Query.ts │ │ │ │ ├── query.ts │ │ │ │ ├── state.ts │ │ │ │ ├── tx.amino.ts │ │ │ │ ├── tx.registry.ts │ │ │ │ ├── tx.rpc.msg.ts │ │ │ │ └── tx.ts │ │ ├── registry.ts │ │ ├── tendermint │ │ │ ├── abci │ │ │ │ └── types.ts │ │ │ ├── bundle.ts │ │ │ ├── crypto │ │ │ │ ├── keys.ts │ │ │ │ └── proof.ts │ │ │ ├── libs │ │ │ │ └── bits │ │ │ │ │ └── types.ts │ │ │ ├── p2p │ │ │ │ └── types.ts │ │ │ ├── types │ │ │ │ ├── block.ts │ │ │ │ ├── evidence.ts │ │ │ │ ├── params.ts │ │ │ │ ├── types.ts │ │ │ │ └── validator.ts │ │ │ └── version │ │ │ │ └── types.ts │ │ ├── types.ts │ │ ├── utf8.ts │ │ └── varint.ts │ ├── starship │ │ ├── __tests__ │ │ │ ├── gov.test.ts │ │ │ ├── pools.test.ts │ │ │ ├── setup.test.ts │ │ │ ├── staking.test.ts │ │ │ └── token.test.ts │ │ ├── configs │ │ │ ├── config.workflow.yaml │ │ │ └── config.yaml │ │ ├── docker │ │ │ ├── Dockerfile │ │ │ ├── Makefile │ │ │ └── README.md │ │ └── src │ │ │ ├── index.ts │ │ │ └── utils.ts │ ├── tsconfig.esm.json │ └── tsconfig.json └── utils │ ├── CHANGELOG.md │ ├── LICENSE-Apache │ ├── LICENSE-MIT │ ├── README.md │ ├── __tests__ │ └── unit │ │ └── fees.test.ts │ ├── jest.config.js │ ├── package.json │ ├── src │ ├── index.ts │ ├── types.ts │ └── utils │ │ ├── gas │ │ ├── estimation.ts │ │ ├── index.ts │ │ └── values.ts │ │ └── index.ts │ ├── tsconfig.esm.json │ └── tsconfig.json ├── tsconfig.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "es2021": true, 5 | "node": true, 6 | "jest": true 7 | }, 8 | "extends": [ 9 | "eslint:recommended", 10 | "plugin:@typescript-eslint/recommended", 11 | "prettier" 12 | ], 13 | "overrides": [], 14 | "parser": "@typescript-eslint/parser", 15 | "parserOptions": { 16 | "ecmaVersion": "latest", 17 | "sourceType": "module" 18 | }, 19 | "plugins": ["@typescript-eslint", "simple-import-sort", "unused-imports"], 20 | "rules": { 21 | "simple-import-sort/imports": 1, 22 | "simple-import-sort/exports": 1, 23 | "unused-imports/no-unused-imports": 1, 24 | "@typescript-eslint/no-unused-vars": [ 25 | 1, 26 | { 27 | "argsIgnorePattern": "React|res|next|^_" 28 | } 29 | ], 30 | "@typescript-eslint/no-explicit-any": 0, 31 | "@typescript-eslint/no-var-requires": 0, 32 | "no-console": 0, 33 | "@typescript-eslint/ban-ts-comment": 0, 34 | "prefer-const": 0, 35 | "no-case-declarations": 0, 36 | "no-implicit-globals": 0, 37 | "@typescript-eslint/no-unsafe-declaration-merging": 0 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.js text eol=lf -------------------------------------------------------------------------------- /.github/workflows/e2e-tests.yaml: -------------------------------------------------------------------------------- 1 | name: Run E2E Tests 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | branches: 9 | - main 10 | workflow_dispatch: 11 | 12 | jobs: 13 | e2e-tests: 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - name: Checkout Repository 📝 18 | uses: actions/checkout@v4 19 | 20 | - name: Setup Node.js 21 | uses: actions/setup-node@v4 22 | with: 23 | node-version: "20.x" 24 | cache: "yarn" 25 | 26 | - name: Install Dependencies 27 | run: yarn install --frozen-lockfile 28 | 29 | - name: Build Project 30 | run: yarn build 31 | 32 | - name: Set Up Starship Infrastructure 33 | id: starship-infra 34 | uses: hyperweb-io/starship-action@0.5.8 35 | with: 36 | config: packages/osmojs/starship/configs/config.workflow.yaml 37 | cli-version: 3.0.0 38 | 39 | - name: Run E2E Tests 40 | run: cd ./packages/osmojs && yarn starship:test 41 | -------------------------------------------------------------------------------- /.github/workflows/run-tests.yaml: -------------------------------------------------------------------------------- 1 | name: Run Tests 2 | 3 | on: 4 | push: 5 | 6 | pull_request: 7 | types: [opened, reopened] 8 | 9 | workflow_dispatch: 10 | 11 | jobs: 12 | osmojs-tests: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - name: checkout 🛎️ 16 | uses: actions/checkout@v2.3.1 17 | - name: node 18 | uses: actions/setup-node@v3 19 | with: 20 | node-version: 18.16.0 21 | - name: deps 22 | run: yarn 23 | - name: build 24 | run: yarn build 25 | - name: osmojs 26 | run: cd ./packages/osmojs && yarn test 27 | - name: math 28 | run: cd ./packages/math && yarn test 29 | - name: utils 30 | run: cd ./packages/utils && yarn test -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/node_modules/ 2 | **/.DS_Store 3 | **/dist 4 | **/yarn-error.log 5 | lerna-debug.log -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "packages/osmojs/cosmos-sdk"] 2 | path = packages/osmojs/cosmos-sdk 3 | url = git@github.com:osmosis-labs/cosmos-sdk.git 4 | [submodule "packages/osmojs/osmosis"] 5 | path = packages/osmojs/osmosis 6 | url = git@github.com:osmosis-labs/osmosis.git 7 | [submodule "packages/osmojs/wasmd"] 8 | path = packages/osmojs/wasmd 9 | url = git@github.com:CosmWasm/wasmd.git 10 | [submodule "packages/osmojs/ibc-go"] 11 | path = packages/osmojs/ibc-go 12 | url = git@github.com:cosmos/ibc-go.git 13 | [submodule "packages/osmojs/ics23"] 14 | path = packages/osmojs/ics23 15 | url = git@github.com:cosmos/ics23.git 16 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "es5", 3 | "tabWidth": 2, 4 | "semi": true, 5 | "singleQuote": false 6 | } 7 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true, 3 | "[javascriptreact]": { 4 | "editor.formatOnSave": false 5 | }, 6 | "[javascript]": { 7 | "editor.formatOnSave": false 8 | }, 9 | "editor.codeActionsOnSave": { 10 | "source.fixAll.eslint": "explicit" 11 | }, 12 | "eslint.validate": [ 13 | "javascript", 14 | "javascriptreact" 15 | ] 16 | } -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Interweb, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | 2 | def: 3 | git submodule update --remote 4 | 5 | 6 | proto: 7 | buf export buf.build/cosmos/cosmos-sdk:v0.47.0 --output packages/osmojs/proto 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /__fixtures__/coingecko/api/v3/simple/price/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "medibloc": { 3 | "usd": 0.0365264 4 | }, 5 | "cosmos": { 6 | "usd": 36.63 7 | }, 8 | "terra-luna": { 9 | "usd": 68.91 10 | }, 11 | "crypto-com-chain": { 12 | "usd": 0.366689 13 | }, 14 | "akash-network": { 15 | "usd": 1.81 16 | }, 17 | "juno-network": { 18 | "usd": 18.14 19 | }, 20 | "terrausd": { 21 | "usd": 1.0 22 | }, 23 | "osmosis": { 24 | "usd": 9.1 25 | }, 26 | "comdex": { 27 | "usd": 4.13 28 | }, 29 | "persistence": { 30 | "usd": 3.89 31 | }, 32 | "secret": { 33 | "usd": 5.3 34 | }, 35 | "bitcanna": { 36 | "usd": 0.131344 37 | }, 38 | "e-money": { 39 | "usd": 1.13 40 | }, 41 | "cheqd-network": { 42 | "usd": 0.108305 43 | }, 44 | "regen": { 45 | "usd": 1.4 46 | }, 47 | "likecoin": { 48 | "usd": 0.02503058 49 | }, 50 | "ion": { 51 | "usd": 12307.17 52 | }, 53 | "sentinel": { 54 | "usd": 0.01176001 55 | }, 56 | "starname": { 57 | "usd": 0.056813 58 | }, 59 | "e-money-eur": { 60 | "usd": 1.1 61 | }, 62 | "vidulum": { 63 | "usd": 0.278524 64 | }, 65 | "stargaze": { 66 | "usd": 0.709038 67 | }, 68 | "chihuahua-token": { 69 | "usd": 0.00425176 70 | }, 71 | "iris-network": { 72 | "usd": 0.069877 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /__fixtures__/coingecko/api/v3/simple/price/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api.coingecko.com/api/v3/simple/price?ids=osmosis,ion,cosmos,terra-luna,crypto-com-chain,terrausd,secret,juno-network,persistence,terra-krw,akash-network,regen,sentinel,iris-network,starname,e-money,e-money-eur,likecoin,bitcanna,medibloc,comdex,cheqd-network,vidulum,stargaze,chihuahua-token&vs_currencies=usd", 3 | "method": "GET" 4 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/gamm/v1beta1/pools/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://lcd-osmosis.keplr.app/osmosis/gamm/v1beta1/pools?pagination.limit=750", 3 | "get": "GET" 4 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/incentives/v1beta1/active_gauges/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://osmosis.stakesystems.io/osmosis/incentives/v1beta1/active_gauges" 3 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/incentives/v1beta1/gauge_by_id/600/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "gauge": { 3 | "id": "600", 4 | "is_perpetual": true, 5 | "distribute_to": { 6 | "lock_query_type": "ByDuration", 7 | "denom": "gamm/pool/197", 8 | "duration": "86400s", 9 | "timestamp": "0001-01-01T00:00:00Z" 10 | }, 11 | "coins": [ 12 | { 13 | "denom": "uosmo", 14 | "amount": "7848046095" 15 | } 16 | ], 17 | "start_time": "2021-08-03T15:12:59.163157666Z", 18 | "num_epochs_paid_over": "1", 19 | "filled_epochs": "160", 20 | "distributed_coins": [ 21 | { 22 | "denom": "uosmo", 23 | "amount": "7832082649" 24 | } 25 | ] 26 | } 27 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/incentives/v1beta1/gauge_by_id/600/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://osmosis.stakesystems.io/osmosis/incentives/v1beta1/gauge_by_id/600" 3 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/incentives/v1beta1/gauges/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://osmosis.stakesystems.io/osmosis/incentives/v1beta1/gauges" 3 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/lockup/v1beta1/account_locked_coins/osmo1/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://lcd-osmosis.keplr.app/osmosis/lockup/v1beta1/account_locked_coins/${osmoAddress}" 3 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/pool-incentives/v1beta1/incentivized_pools/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://osmosis.stakesystems.io/osmosis/pool-incentives/v1beta1/incentivized_pools" 3 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/pool-incentives/v1beta1/lockable_durations/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "lockable_durations": [ 3 | "86400s", 4 | "604800s", 5 | "1209600s" 6 | ] 7 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/pool-incentives/v1beta1/lockable_durations/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://osmosis.stakesystems.io/osmosis/pool-incentives/v1beta1/lockable_durations" 3 | } -------------------------------------------------------------------------------- /__fixtures__/rpc/osmosis/superfluid/v1beta1/all_assets/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://osmosis.stakesystems.io/osmosis/superfluid/v1beta1/all_assets" 3 | } 4 | -------------------------------------------------------------------------------- /__fixtures__/validator/apr/v1/606/data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "pool_id": 606, 4 | "apr_list": [ 5 | { 6 | "start_date": "2021-12-20T21:07:07.202397439Z", 7 | "denom": "uosmo", 8 | "symbol": "OSMO", 9 | "apr_1d": 94.8221050890119, 10 | "apr_7d": 151.7153811973284, 11 | "apr_14d": 189.6442915379829 12 | }, 13 | { 14 | "start_date": "2022-01-15T00:00:00Z", 15 | "denom": "ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228", 16 | "symbol": "HUAHUA", 17 | "apr_1d": 29.474226413948674, 18 | "apr_7d": 103.159792442034, 19 | "apr_14d": 250.48917629773788 20 | } 21 | ] 22 | } 23 | ] -------------------------------------------------------------------------------- /__fixtures__/validator/apr/v1/606/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api-osmosis.imperator.co/apr/v1/606" 3 | } -------------------------------------------------------------------------------- /__fixtures__/validator/apr/v1/all/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api-osmosis.imperator.co/apr/v1/all" 3 | } -------------------------------------------------------------------------------- /__fixtures__/validator/pairs/v1/summary/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api-osmosis.imperator.co/pairs/v1/summary" 3 | } 4 | -------------------------------------------------------------------------------- /__fixtures__/validator/search/v1/pools/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api-osmosis.imperator.co/search/v1/pools", 3 | "method": "GET" 4 | } -------------------------------------------------------------------------------- /__fixtures__/validator/tokens/v2/all/req.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api-osmosis.imperator.co/tokens/v2/all" 3 | } -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "lerna": "6", 3 | "conventionalCommits": true, 4 | "npmClient": "yarn", 5 | "npmClientArgs": [ 6 | "--no-lockfile" 7 | ], 8 | "packages": [ 9 | "packages/*" 10 | ], 11 | "version": "independent", 12 | "registry": "https://registry.npmjs.org", 13 | "command": { 14 | "create": { 15 | "homepage": "https://github.com/osmosis-labs/osmojs", 16 | "license": "SEE LICENSE IN LICENSE", 17 | "access": "restricted" 18 | }, 19 | "publish": { 20 | "allowBranch": "main", 21 | "message": "chore(release): publish" 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /packages/math/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Interweb, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /packages/math/jest.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('ts-jest').JestConfigWithTsJest} */ 2 | module.exports = { 3 | preset: "ts-jest", 4 | testEnvironment: "node", 5 | transform: { 6 | "^.+\\.tsx?$": [ 7 | "ts-jest", 8 | { 9 | babelConfig: false, 10 | tsconfig: "tsconfig.json", 11 | }, 12 | ], 13 | }, 14 | transformIgnorePatterns: [`/node_modules/*`], 15 | testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", 16 | moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], 17 | modulePathIgnorePatterns: ["dist/*"] 18 | }; 19 | -------------------------------------------------------------------------------- /packages/math/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@osmonauts/math", 3 | "version": "1.18.0", 4 | "description": "Math calculations for Osmosis", 5 | "author": "Dan Lynch ", 6 | "homepage": "https://github.com/osmosis-labs/osmojs", 7 | "license": "SEE LICENSE IN LICENSE", 8 | "main": "index.js", 9 | "module": "esm/index.js", 10 | "types": "index.d.ts", 11 | "publishConfig": { 12 | "access": "public", 13 | "directory": "dist" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "https://github.com/osmosis-labs/osmojs" 18 | }, 19 | "bugs": { 20 | "url": "https://github.com/osmosis-labs/osmojs/issues" 21 | }, 22 | "scripts": { 23 | "copy": "copyfiles -f LICENSE-MIT LICENSE-Apache README.md package.json dist", 24 | "clean": "del dist/**", 25 | "prepare": "npm run build", 26 | "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", 27 | "test": "jest", 28 | "test:watch": "jest --watch" 29 | }, 30 | "devDependencies": { 31 | "@chain-registry/assets": "^1.70.38" 32 | }, 33 | "dependencies": { 34 | "@chain-registry/types": "^0.50.15", 35 | "@chain-registry/utils": "^1.51.17", 36 | "bignumber.js": "9.1.2", 37 | "chain-registry": "^1.69.38", 38 | "decimal.js-light": "^2.5.1", 39 | "osmojs": "^16.15.0" 40 | }, 41 | "keywords": [ 42 | "web3", 43 | "osmosis", 44 | "osmojs", 45 | "dex", 46 | "math" 47 | ] 48 | } 49 | -------------------------------------------------------------------------------- /packages/math/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./apr"; 2 | export * from "./pool-utils"; 3 | export * from "./pool-calculator"; 4 | export * from "./swap"; 5 | export * from "./utils"; 6 | -------------------------------------------------------------------------------- /packages/math/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist/esm", 5 | "module": "es2022", 6 | "rootDir": "src/", 7 | "declaration": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/math/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src/" 6 | }, 7 | "include": ["src/**/*.ts"], 8 | "exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/osmo-query/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true, 3 | "[javascriptreact]": { 4 | "editor.formatOnSave": false 5 | }, 6 | "[javascript]": { 7 | "editor.formatOnSave": false 8 | }, 9 | "editor.codeActionsOnSave": { 10 | "source.fixAll.eslint": true 11 | }, 12 | "eslint.validate": [ 13 | "javascript", 14 | "javascriptreact" 15 | ], 16 | "editor.insertSpaces": true, 17 | "editor.tabSize": 2 18 | } -------------------------------------------------------------------------------- /packages/osmo-query/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Interweb, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /packages/osmo-query/src/amino/amino.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmo-query/src/amino/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _222 from "./amino"; 3 | export const amino = { 4 | ..._222 5 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/capability/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _72 from "./v1/capability"; 3 | import * as _73 from "./v1/genesis"; 4 | export namespace capability { 5 | export const v1 = { 6 | ..._72, 7 | ..._73 8 | }; 9 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/auth/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.auth.v1beta1.MsgUpdateParams": { 5 | aminoType: "cosmos-sdk/x/auth/MsgUpdateParams", 6 | toAmino: MsgUpdateParams.toAmino, 7 | fromAmino: MsgUpdateParams.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/auth/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgUpdateParams } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | updateParams(value: MsgUpdateParams) { 13 | return { 14 | typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", 15 | value: MsgUpdateParams.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | updateParams(value: MsgUpdateParams) { 21 | return { 22 | typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | updateParams(value: MsgUpdateParams) { 29 | return { 30 | typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", 31 | value: MsgUpdateParams.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/auth/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx"; 5 | /** Msg defines the x/auth Msg service. */ 6 | export interface Msg { 7 | /** 8 | * UpdateParams defines a (governance) operation for updating the x/auth module 9 | * parameters. The authority defaults to the x/gov module account. 10 | * 11 | * Since: cosmos-sdk 0.47 12 | */ 13 | updateParams(request: MsgUpdateParams): Promise; 14 | } 15 | export class MsgClientImpl implements Msg { 16 | private readonly rpc: Rpc; 17 | constructor(rpc: Rpc) { 18 | this.rpc = rpc; 19 | this.updateParams = this.updateParams.bind(this); 20 | } 21 | updateParams(request: MsgUpdateParams): Promise { 22 | const data = MsgUpdateParams.encode(request).finish(); 23 | const promise = this.rpc.request("cosmos.auth.v1beta1.Msg", "UpdateParams", data); 24 | return promise.then(data => MsgUpdateParamsResponse.decode(new BinaryReader(data))); 25 | } 26 | } 27 | export const createClientImpl = (rpc: Rpc) => { 28 | return new MsgClientImpl(rpc); 29 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/authz/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.authz.v1beta1.MsgGrant": { 5 | aminoType: "cosmos-sdk/MsgGrant", 6 | toAmino: MsgGrant.toAmino, 7 | fromAmino: MsgGrant.fromAmino 8 | }, 9 | "/cosmos.authz.v1beta1.MsgExec": { 10 | aminoType: "cosmos-sdk/MsgExec", 11 | toAmino: MsgExec.toAmino, 12 | fromAmino: MsgExec.fromAmino 13 | }, 14 | "/cosmos.authz.v1beta1.MsgRevoke": { 15 | aminoType: "cosmos-sdk/MsgRevoke", 16 | toAmino: MsgRevoke.toAmino, 17 | fromAmino: MsgRevoke.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/bank/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSend, MsgMultiSend, MsgUpdateParams, MsgSetSendEnabled } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.bank.v1beta1.MsgSend": { 5 | aminoType: "cosmos-sdk/MsgSend", 6 | toAmino: MsgSend.toAmino, 7 | fromAmino: MsgSend.fromAmino 8 | }, 9 | "/cosmos.bank.v1beta1.MsgMultiSend": { 10 | aminoType: "cosmos-sdk/MsgMultiSend", 11 | toAmino: MsgMultiSend.toAmino, 12 | fromAmino: MsgMultiSend.fromAmino 13 | }, 14 | "/cosmos.bank.v1beta1.MsgUpdateParams": { 15 | aminoType: "cosmos-sdk/x/bank/MsgUpdateParams", 16 | toAmino: MsgUpdateParams.toAmino, 17 | fromAmino: MsgUpdateParams.fromAmino 18 | }, 19 | "/cosmos.bank.v1beta1.MsgSetSendEnabled": { 20 | aminoType: "cosmos-sdk/MsgSetSendEnabled", 21 | toAmino: MsgSetSendEnabled.toAmino, 22 | fromAmino: MsgSetSendEnabled.fromAmino 23 | } 24 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/base/node/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { ConfigRequest, ConfigResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.config = this.config.bind(this); 13 | } 14 | /* Config queries for the operator configuration. */ 15 | async config(_params: ConfigRequest = {}): Promise { 16 | const endpoint = `cosmos/base/node/v1beta1/config`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/consensus/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | } 14 | /* Params queries the parameters of x/consensus_param module. */ 15 | async params(_params: QueryParamsRequest = {}): Promise { 16 | const endpoint = `cosmos/consensus/v1/params`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/consensus/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.consensus.v1.MsgUpdateParams": { 5 | aminoType: "cosmos-sdk/MsgUpdateParams", 6 | toAmino: MsgUpdateParams.toAmino, 7 | fromAmino: MsgUpdateParams.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/consensus/v1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgUpdateParams } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | updateParams(value: MsgUpdateParams) { 13 | return { 14 | typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", 15 | value: MsgUpdateParams.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | updateParams(value: MsgUpdateParams) { 21 | return { 22 | typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | updateParams(value: MsgUpdateParams) { 29 | return { 30 | typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", 31 | value: MsgUpdateParams.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/consensus/v1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx"; 5 | /** Msg defines the bank Msg service. */ 6 | export interface Msg { 7 | /** 8 | * UpdateParams defines a governance operation for updating the x/consensus_param module parameters. 9 | * The authority is defined in the keeper. 10 | * 11 | * Since: cosmos-sdk 0.47 12 | */ 13 | updateParams(request: MsgUpdateParams): Promise; 14 | } 15 | export class MsgClientImpl implements Msg { 16 | private readonly rpc: Rpc; 17 | constructor(rpc: Rpc) { 18 | this.rpc = rpc; 19 | this.updateParams = this.updateParams.bind(this); 20 | } 21 | updateParams(request: MsgUpdateParams): Promise { 22 | const data = MsgUpdateParams.encode(request).finish(); 23 | const promise = this.rpc.request("cosmos.consensus.v1.Msg", "UpdateParams", data); 24 | return promise.then(data => MsgUpdateParamsResponse.decode(new BinaryReader(data))); 25 | } 26 | } 27 | export const createClientImpl = (rpc: Rpc) => { 28 | return new MsgClientImpl(rpc); 29 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/gov/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.gov.v1beta1.MsgSubmitProposal": { 5 | aminoType: "cosmos-sdk/MsgSubmitProposal", 6 | toAmino: MsgSubmitProposal.toAmino, 7 | fromAmino: MsgSubmitProposal.fromAmino 8 | }, 9 | "/cosmos.gov.v1beta1.MsgVote": { 10 | aminoType: "cosmos-sdk/MsgVote", 11 | toAmino: MsgVote.toAmino, 12 | fromAmino: MsgVote.fromAmino 13 | }, 14 | "/cosmos.gov.v1beta1.MsgVoteWeighted": { 15 | aminoType: "cosmos-sdk/MsgVoteWeighted", 16 | toAmino: MsgVoteWeighted.toAmino, 17 | fromAmino: MsgVoteWeighted.fromAmino 18 | }, 19 | "/cosmos.gov.v1beta1.MsgDeposit": { 20 | aminoType: "cosmos-sdk/MsgDeposit", 21 | toAmino: MsgDeposit.toAmino, 22 | fromAmino: MsgDeposit.fromAmino 23 | } 24 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/msg/v1/msg.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/query/v1/query.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/rpc.tx.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../helpers"; 3 | export const createRPCMsgClient = async ({ 4 | rpc 5 | }: { 6 | rpc: Rpc; 7 | }) => ({ 8 | cosmos: { 9 | auth: { 10 | v1beta1: new (await import("./auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 11 | }, 12 | authz: { 13 | v1beta1: new (await import("./authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 14 | }, 15 | bank: { 16 | v1beta1: new (await import("./bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 17 | }, 18 | consensus: { 19 | v1: new (await import("./consensus/v1/tx.rpc.msg")).MsgClientImpl(rpc) 20 | }, 21 | distribution: { 22 | v1beta1: new (await import("./distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 23 | }, 24 | gov: { 25 | v1beta1: new (await import("./gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 26 | }, 27 | staking: { 28 | v1beta1: new (await import("./staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 29 | }, 30 | upgrade: { 31 | v1beta1: new (await import("./upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 32 | } 33 | } 34 | }); -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos/upgrade/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { 5 | aminoType: "cosmos-sdk/MsgSoftwareUpgrade", 6 | toAmino: MsgSoftwareUpgrade.toAmino, 7 | fromAmino: MsgSoftwareUpgrade.fromAmino 8 | }, 9 | "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { 10 | aminoType: "cosmos-sdk/MsgCancelUpgrade", 11 | toAmino: MsgCancelUpgrade.toAmino, 12 | fromAmino: MsgCancelUpgrade.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmos_proto/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _223 from "./cosmos"; 3 | export const cosmos_proto = { 4 | ..._223 5 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmwasm/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _118 from "./wasm/v1/authz"; 3 | import * as _119 from "./wasm/v1/genesis"; 4 | import * as _120 from "./wasm/v1/ibc"; 5 | import * as _121 from "./wasm/v1/proposal_legacy"; 6 | import * as _122 from "./wasm/v1/query"; 7 | import * as _123 from "./wasm/v1/tx"; 8 | import * as _124 from "./wasm/v1/types"; 9 | import * as _325 from "./wasm/v1/tx.amino"; 10 | import * as _326 from "./wasm/v1/tx.registry"; 11 | import * as _327 from "./wasm/v1/query.lcd"; 12 | import * as _328 from "./wasm/v1/query.rpc.Query"; 13 | import * as _329 from "./wasm/v1/tx.rpc.msg"; 14 | import * as _421 from "./lcd"; 15 | import * as _422 from "./rpc.query"; 16 | import * as _423 from "./rpc.tx"; 17 | export namespace cosmwasm { 18 | export namespace wasm { 19 | export const v1 = { 20 | ..._118, 21 | ..._119, 22 | ..._120, 23 | ..._121, 24 | ..._122, 25 | ..._123, 26 | ..._124, 27 | ..._325, 28 | ..._326, 29 | ..._327, 30 | ..._328, 31 | ..._329 32 | }; 33 | } 34 | export const ClientFactory = { 35 | ..._421, 36 | ..._422, 37 | ..._423 38 | }; 39 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/cosmwasm/rpc.tx.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../helpers"; 3 | export const createRPCMsgClient = async ({ 4 | rpc 5 | }: { 6 | rpc: Rpc; 7 | }) => ({ 8 | cosmos: { 9 | auth: { 10 | v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 11 | }, 12 | authz: { 13 | v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 14 | }, 15 | bank: { 16 | v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 17 | }, 18 | consensus: { 19 | v1: new (await import("../cosmos/consensus/v1/tx.rpc.msg")).MsgClientImpl(rpc) 20 | }, 21 | distribution: { 22 | v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 23 | }, 24 | gov: { 25 | v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 26 | }, 27 | staking: { 28 | v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 29 | }, 30 | upgrade: { 31 | v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 32 | } 33 | }, 34 | cosmwasm: { 35 | wasm: { 36 | v1: new (await import("./wasm/v1/tx.rpc.msg")).MsgClientImpl(rpc) 37 | } 38 | } 39 | }); -------------------------------------------------------------------------------- /packages/osmo-query/src/gogoproto/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _224 from "./gogo"; 3 | export const gogoproto = { 4 | ..._224 5 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmo-query/src/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmo-query/src/google/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _236 from "./protobuf/any"; 3 | import * as _237 from "./protobuf/duration"; 4 | import * as _238 from "./protobuf/timestamp"; 5 | import * as _239 from "./protobuf/descriptor"; 6 | export namespace google { 7 | export const protobuf = { 8 | ..._236, 9 | ..._237, 10 | ..._238, 11 | ..._239 12 | }; 13 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/applications/fee/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgRegisterPayee, MsgRegisterCounterpartyPayee, MsgPayPacketFee, MsgPayPacketFeeAsync } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.fee.v1.MsgRegisterPayee": { 5 | aminoType: "cosmos-sdk/MsgRegisterPayee", 6 | toAmino: MsgRegisterPayee.toAmino, 7 | fromAmino: MsgRegisterPayee.fromAmino 8 | }, 9 | "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee": { 10 | aminoType: "cosmos-sdk/MsgRegisterCounterpartyPayee", 11 | toAmino: MsgRegisterCounterpartyPayee.toAmino, 12 | fromAmino: MsgRegisterCounterpartyPayee.fromAmino 13 | }, 14 | "/ibc.applications.fee.v1.MsgPayPacketFee": { 15 | aminoType: "cosmos-sdk/MsgPayPacketFee", 16 | toAmino: MsgPayPacketFee.toAmino, 17 | fromAmino: MsgPayPacketFee.fromAmino 18 | }, 19 | "/ibc.applications.fee.v1.MsgPayPacketFeeAsync": { 20 | aminoType: "cosmos-sdk/MsgPayPacketFeeAsync", 21 | toAmino: MsgPayPacketFeeAsync.toAmino, 22 | fromAmino: MsgPayPacketFeeAsync.fromAmino 23 | } 24 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.interchainAccount = this.interchainAccount.bind(this); 13 | this.params = this.params.bind(this); 14 | } 15 | /* InterchainAccount returns the interchain account address for a given owner address on a given connection */ 16 | async interchainAccount(params: QueryInterchainAccountRequest): Promise { 17 | const endpoint = `ibc/apps/interchain_accounts/controller/v1/owners/${params.owner}/connections/${params.connectionId}`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* Params queries all parameters of the ICA controller submodule. */ 21 | async params(_params: QueryParamsRequest = {}): Promise { 22 | const endpoint = `ibc/apps/interchain_accounts/controller/v1/params`; 23 | return await this.req.get(endpoint); 24 | } 25 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgRegisterInterchainAccount, MsgSendTx, MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount": { 5 | aminoType: "cosmos-sdk/MsgRegisterInterchainAccount", 6 | toAmino: MsgRegisterInterchainAccount.toAmino, 7 | fromAmino: MsgRegisterInterchainAccount.fromAmino 8 | }, 9 | "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx": { 10 | aminoType: "cosmos-sdk/MsgSendTx", 11 | toAmino: MsgSendTx.toAmino, 12 | fromAmino: MsgSendTx.fromAmino 13 | }, 14 | "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams": { 15 | aminoType: "cosmos-sdk/MsgUpdateParams", 16 | toAmino: MsgUpdateParams.toAmino, 17 | fromAmino: MsgUpdateParams.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/applications/interchain_accounts/host/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | } 14 | /* Params queries all parameters of the ICA host submodule. */ 15 | async params(_params: QueryParamsRequest = {}): Promise { 16 | const endpoint = `ibc/apps/interchain_accounts/host/v1/params`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/applications/interchain_accounts/host/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgUpdateParams, MsgModuleQuerySafe } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams": { 5 | aminoType: "cosmos-sdk/MsgUpdateParams", 6 | toAmino: MsgUpdateParams.toAmino, 7 | fromAmino: MsgUpdateParams.fromAmino 8 | }, 9 | "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe": { 10 | aminoType: "cosmos-sdk/MsgModuleQuerySafe", 11 | toAmino: MsgModuleQuerySafe.toAmino, 12 | fromAmino: MsgModuleQuerySafe.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/applications/transfer/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgTransfer, MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.transfer.v1.MsgTransfer": { 5 | aminoType: "cosmos-sdk/MsgTransfer", 6 | toAmino: MsgTransfer.toAmino, 7 | fromAmino: MsgTransfer.fromAmino 8 | }, 9 | "/ibc.applications.transfer.v1.MsgUpdateParams": { 10 | aminoType: "cosmos-sdk/MsgUpdateParams", 11 | toAmino: MsgUpdateParams.toAmino, 12 | fromAmino: MsgUpdateParams.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/core/connection/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgConnectionOpenConfirm, MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.core.connection.v1.MsgConnectionOpenInit": { 5 | aminoType: "cosmos-sdk/MsgConnectionOpenInit", 6 | toAmino: MsgConnectionOpenInit.toAmino, 7 | fromAmino: MsgConnectionOpenInit.fromAmino 8 | }, 9 | "/ibc.core.connection.v1.MsgConnectionOpenTry": { 10 | aminoType: "cosmos-sdk/MsgConnectionOpenTry", 11 | toAmino: MsgConnectionOpenTry.toAmino, 12 | fromAmino: MsgConnectionOpenTry.fromAmino 13 | }, 14 | "/ibc.core.connection.v1.MsgConnectionOpenAck": { 15 | aminoType: "cosmos-sdk/MsgConnectionOpenAck", 16 | toAmino: MsgConnectionOpenAck.toAmino, 17 | fromAmino: MsgConnectionOpenAck.fromAmino 18 | }, 19 | "/ibc.core.connection.v1.MsgConnectionOpenConfirm": { 20 | aminoType: "cosmos-sdk/MsgConnectionOpenConfirm", 21 | toAmino: MsgConnectionOpenConfirm.toAmino, 22 | fromAmino: MsgConnectionOpenConfirm.fromAmino 23 | }, 24 | "/ibc.core.connection.v1.MsgUpdateParams": { 25 | aminoType: "cosmos-sdk/MsgUpdateParams", 26 | toAmino: MsgUpdateParams.toAmino, 27 | fromAmino: MsgUpdateParams.fromAmino 28 | } 29 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/lightclients/wasm/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { setPaginationParams } from "../../../../helpers"; 3 | import { LCDClient } from "@cosmology/lcd"; 4 | import { QueryChecksumsRequest, QueryChecksumsResponseSDKType, QueryCodeRequest, QueryCodeResponseSDKType } from "./query"; 5 | export class LCDQueryClient { 6 | req: LCDClient; 7 | constructor({ 8 | requestClient 9 | }: { 10 | requestClient: LCDClient; 11 | }) { 12 | this.req = requestClient; 13 | this.checksums = this.checksums.bind(this); 14 | this.code = this.code.bind(this); 15 | } 16 | /* Get all Wasm checksums */ 17 | async checksums(params: QueryChecksumsRequest = { 18 | pagination: undefined 19 | }): Promise { 20 | const options: any = { 21 | params: {} 22 | }; 23 | if (typeof params?.pagination !== "undefined") { 24 | setPaginationParams(options, params.pagination); 25 | } 26 | const endpoint = `ibc/lightclients/wasm/v1/checksums`; 27 | return await this.req.get(endpoint, options); 28 | } 29 | /* Get Wasm code for given checksum */ 30 | async code(params: QueryCodeRequest): Promise { 31 | const endpoint = `ibc/lightclients/wasm/v1/checksums/${params.checksum}/code`; 32 | return await this.req.get(endpoint); 33 | } 34 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/ibc/lightclients/wasm/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgStoreCode, MsgRemoveChecksum, MsgMigrateContract } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.lightclients.wasm.v1.MsgStoreCode": { 5 | aminoType: "cosmos-sdk/MsgStoreCode", 6 | toAmino: MsgStoreCode.toAmino, 7 | fromAmino: MsgStoreCode.fromAmino 8 | }, 9 | "/ibc.lightclients.wasm.v1.MsgRemoveChecksum": { 10 | aminoType: "cosmos-sdk/MsgRemoveChecksum", 11 | toAmino: MsgRemoveChecksum.toAmino, 12 | fromAmino: MsgRemoveChecksum.fromAmino 13 | }, 14 | "/ibc.lightclients.wasm.v1.MsgMigrateContract": { 15 | aminoType: "cosmos-sdk/MsgMigrateContract", 16 | toAmino: MsgMigrateContract.toAmino, 17 | fromAmino: MsgMigrateContract.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/index.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | /** 3 | * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.4 4 | * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain 5 | * and run the transpile command or yarn proto command to regenerate this bundle. 6 | */ 7 | 8 | export * from "./cosmos/bundle"; 9 | export * from "./cosmos/client"; 10 | export * from "./capability/bundle"; 11 | export * from "./ibc/bundle"; 12 | export * from "./ibc/client"; 13 | export * from "./cosmwasm/bundle"; 14 | export * from "./cosmwasm/client"; 15 | export * from "./osmosis/bundle"; 16 | export * from "./osmosis/client"; 17 | export * from "./amino/bundle"; 18 | export * from "./cosmos_proto/bundle"; 19 | export * from "./gogoproto/bundle"; 20 | export * from "./tendermint/bundle"; 21 | export * from "./google/bundle"; 22 | export * from "./hooks"; 23 | export * from "./extern"; 24 | export * from "./react-query"; 25 | export * from "./varint"; 26 | export * from "./utf8"; 27 | export * from "./binary"; 28 | export * from "./types"; 29 | export * from "./registry"; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateConcentratedPool } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool": { 5 | aminoType: "osmosis/concentratedliquidity/poolmodel/concentrated/create-concentrated-pool", 6 | toAmino: MsgCreateConcentratedPool.toAmino, 7 | fromAmino: MsgCreateConcentratedPool.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgCreateConcentratedPool } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", MsgCreateConcentratedPool]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | createConcentratedPool(value: MsgCreateConcentratedPool) { 13 | return { 14 | typeUrl: "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", 15 | value: MsgCreateConcentratedPool.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | createConcentratedPool(value: MsgCreateConcentratedPool) { 21 | return { 22 | typeUrl: "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | createConcentratedPool(value: MsgCreateConcentratedPool) { 29 | return { 30 | typeUrl: "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", 31 | value: MsgCreateConcentratedPool.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../../../helpers"; 3 | import { BinaryReader } from "../../../../../binary"; 4 | import { MsgCreateConcentratedPool, MsgCreateConcentratedPoolResponse } from "./tx"; 5 | export interface Msg { 6 | createConcentratedPool(request: MsgCreateConcentratedPool): Promise; 7 | } 8 | export class MsgClientImpl implements Msg { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | this.createConcentratedPool = this.createConcentratedPool.bind(this); 13 | } 14 | createConcentratedPool(request: MsgCreateConcentratedPool): Promise { 15 | const data = MsgCreateConcentratedPool.encode(request).finish(); 16 | const promise = this.rpc.request("osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.Msg", "CreateConcentratedPool", data); 17 | return promise.then(data => MsgCreateConcentratedPoolResponse.decode(new BinaryReader(data))); 18 | } 19 | } 20 | export const createClientImpl = (rpc: Rpc) => { 21 | return new MsgClientImpl(rpc); 22 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/cosmwasmpool/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/downtimedetector/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { RecoveredSinceDowntimeOfLengthRequest, RecoveredSinceDowntimeOfLengthResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.recoveredSinceDowntimeOfLength = this.recoveredSinceDowntimeOfLength.bind(this); 13 | } 14 | /* RecoveredSinceDowntimeOfLength */ 15 | async recoveredSinceDowntimeOfLength(params: RecoveredSinceDowntimeOfLengthRequest): Promise { 16 | const options: any = { 17 | params: {} 18 | }; 19 | if (typeof params?.downtime !== "undefined") { 20 | options.params.downtime = params.downtime; 21 | } 22 | if (typeof params?.recovery !== "undefined") { 23 | options.params.recovery = params.recovery; 24 | } 25 | const endpoint = `osmosis/downtime-detector/v1beta1/RecoveredSinceDowntimeOfLength`; 26 | return await this.req.get(endpoint, options); 27 | } 28 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/epochs/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryEpochsInfoRequest, QueryEpochsInfoResponseSDKType, QueryCurrentEpochRequest, QueryCurrentEpochResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.epochInfos = this.epochInfos.bind(this); 13 | this.currentEpoch = this.currentEpoch.bind(this); 14 | } 15 | /* EpochInfos provide running epochInfos */ 16 | async epochInfos(_params: QueryEpochsInfoRequest = {}): Promise { 17 | const endpoint = `osmosis/epochs/v1beta1/epochs`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* CurrentEpoch provide current epoch of specified identifier */ 21 | async currentEpoch(params: QueryCurrentEpochRequest): Promise { 22 | const options: any = { 23 | params: {} 24 | }; 25 | if (typeof params?.identifier !== "undefined") { 26 | options.params.identifier = params.identifier; 27 | } 28 | const endpoint = `osmosis/epochs/v1beta1/current_epoch`; 29 | return await this.req.get(endpoint, options); 30 | } 31 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/gamm/poolmodels/balancer/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateBalancerPool } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool": { 5 | aminoType: "osmosis/gamm/create-balancer-pool", 6 | toAmino: MsgCreateBalancerPool.toAmino, 7 | fromAmino: MsgCreateBalancerPool.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/gamm/poolmodels/balancer/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgCreateBalancerPool } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", MsgCreateBalancerPool]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | createBalancerPool(value: MsgCreateBalancerPool) { 13 | return { 14 | typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", 15 | value: MsgCreateBalancerPool.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | createBalancerPool(value: MsgCreateBalancerPool) { 21 | return { 22 | typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | createBalancerPool(value: MsgCreateBalancerPool) { 29 | return { 30 | typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", 31 | value: MsgCreateBalancerPool.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/gamm/poolmodels/balancer/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../../../helpers"; 3 | import { BinaryReader } from "../../../../../binary"; 4 | import { MsgCreateBalancerPool, MsgCreateBalancerPoolResponse } from "./tx"; 5 | export interface Msg { 6 | createBalancerPool(request: MsgCreateBalancerPool): Promise; 7 | } 8 | export class MsgClientImpl implements Msg { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | this.createBalancerPool = this.createBalancerPool.bind(this); 13 | } 14 | createBalancerPool(request: MsgCreateBalancerPool): Promise { 15 | const data = MsgCreateBalancerPool.encode(request).finish(); 16 | const promise = this.rpc.request("osmosis.gamm.poolmodels.balancer.v1beta1.Msg", "CreateBalancerPool", data); 17 | return promise.then(data => MsgCreateBalancerPoolResponse.decode(new BinaryReader(data))); 18 | } 19 | } 20 | export const createClientImpl = (rpc: Rpc) => { 21 | return new MsgClientImpl(rpc); 22 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/gamm/poolmodels/stableswap/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateStableswapPool, MsgStableSwapAdjustScalingFactors } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPool": { 5 | aminoType: "osmosis/gamm/create-stableswap-pool", 6 | toAmino: MsgCreateStableswapPool.toAmino, 7 | fromAmino: MsgCreateStableswapPool.fromAmino 8 | }, 9 | "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactors": { 10 | aminoType: "osmosis/gamm/stableswap-adjust-scaling-factors", 11 | toAmino: MsgStableSwapAdjustScalingFactors.toAmino, 12 | fromAmino: MsgStableSwapAdjustScalingFactors.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/gamm/v2/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QuerySpotPriceRequest, QuerySpotPriceResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.spotPrice = this.spotPrice.bind(this); 13 | } 14 | /* Deprecated: please use alternate in x/poolmanager */ 15 | async spotPrice(params: QuerySpotPriceRequest): Promise { 16 | const options: any = { 17 | params: {} 18 | }; 19 | if (typeof params?.baseAssetDenom !== "undefined") { 20 | options.params.base_asset_denom = params.baseAssetDenom; 21 | } 22 | if (typeof params?.quoteAssetDenom !== "undefined") { 23 | options.params.quote_asset_denom = params.quoteAssetDenom; 24 | } 25 | const endpoint = `osmosis/gamm/v2/pools/${params.poolId}/prices`; 26 | return await this.req.get(endpoint, options); 27 | } 28 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/ibchooks/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgEmitIBCAck } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.ibchooks.MsgEmitIBCAck": { 5 | aminoType: "osmosis/ibchooks/emit-ibc-ack", 6 | toAmino: MsgEmitIBCAck.toAmino, 7 | fromAmino: MsgEmitIBCAck.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/ibchooks/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgEmitIBCAck } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.ibchooks.MsgEmitIBCAck", MsgEmitIBCAck]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | emitIBCAck(value: MsgEmitIBCAck) { 13 | return { 14 | typeUrl: "/osmosis.ibchooks.MsgEmitIBCAck", 15 | value: MsgEmitIBCAck.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | emitIBCAck(value: MsgEmitIBCAck) { 21 | return { 22 | typeUrl: "/osmosis.ibchooks.MsgEmitIBCAck", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | emitIBCAck(value: MsgEmitIBCAck) { 29 | return { 30 | typeUrl: "/osmosis.ibchooks.MsgEmitIBCAck", 31 | value: MsgEmitIBCAck.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/ibchooks/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../helpers"; 3 | import { BinaryReader } from "../../binary"; 4 | import { MsgEmitIBCAck, MsgEmitIBCAckResponse } from "./tx"; 5 | /** Msg defines the Msg service. */ 6 | export interface Msg { 7 | /** 8 | * EmitIBCAck checks the sender can emit the ack and writes the IBC 9 | * acknowledgement 10 | */ 11 | emitIBCAck(request: MsgEmitIBCAck): Promise; 12 | } 13 | export class MsgClientImpl implements Msg { 14 | private readonly rpc: Rpc; 15 | constructor(rpc: Rpc) { 16 | this.rpc = rpc; 17 | this.emitIBCAck = this.emitIBCAck.bind(this); 18 | } 19 | emitIBCAck(request: MsgEmitIBCAck): Promise { 20 | const data = MsgEmitIBCAck.encode(request).finish(); 21 | const promise = this.rpc.request("osmosis.ibchooks.Msg", "EmitIBCAck", data); 22 | return promise.then(data => MsgEmitIBCAckResponse.decode(new BinaryReader(data))); 23 | } 24 | } 25 | export const createClientImpl = (rpc: Rpc) => { 26 | return new MsgClientImpl(rpc); 27 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/ibcratelimit/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { ParamsRequest, ParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | } 14 | /* Params defines a gRPC query method that returns the ibc-rate-limit module's 15 | parameters. */ 16 | async params(_params: ParamsRequest = {}): Promise { 17 | const endpoint = `osmosis/ibc-rate-limit/v1beta1/params`; 18 | return await this.req.get(endpoint); 19 | } 20 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/incentives/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateGauge, MsgAddToGauge, MsgCreateGroup } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.incentives.MsgCreateGauge": { 5 | aminoType: "osmosis/incentives/create-gauge", 6 | toAmino: MsgCreateGauge.toAmino, 7 | fromAmino: MsgCreateGauge.fromAmino 8 | }, 9 | "/osmosis.incentives.MsgAddToGauge": { 10 | aminoType: "osmosis/incentives/add-to-gauge", 11 | toAmino: MsgAddToGauge.toAmino, 12 | fromAmino: MsgAddToGauge.fromAmino 13 | }, 14 | "/osmosis.incentives.MsgCreateGroup": { 15 | aminoType: "osmosis/incentives/create-group", 16 | toAmino: MsgCreateGroup.toAmino, 17 | fromAmino: MsgCreateGroup.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/lockup/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgLockTokens, MsgBeginUnlockingAll, MsgBeginUnlocking, MsgExtendLockup, MsgForceUnlock, MsgSetRewardReceiverAddress } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.lockup.MsgLockTokens": { 5 | aminoType: "osmosis/lockup/lock-tokens", 6 | toAmino: MsgLockTokens.toAmino, 7 | fromAmino: MsgLockTokens.fromAmino 8 | }, 9 | "/osmosis.lockup.MsgBeginUnlockingAll": { 10 | aminoType: "osmosis/lockup/begin-unlock-tokens", 11 | toAmino: MsgBeginUnlockingAll.toAmino, 12 | fromAmino: MsgBeginUnlockingAll.fromAmino 13 | }, 14 | "/osmosis.lockup.MsgBeginUnlocking": { 15 | aminoType: "osmosis/lockup/begin-unlock-period-lock", 16 | toAmino: MsgBeginUnlocking.toAmino, 17 | fromAmino: MsgBeginUnlocking.fromAmino 18 | }, 19 | "/osmosis.lockup.MsgExtendLockup": { 20 | aminoType: "osmosis/lockup/extend-lockup", 21 | toAmino: MsgExtendLockup.toAmino, 22 | fromAmino: MsgExtendLockup.fromAmino 23 | }, 24 | "/osmosis.lockup.MsgForceUnlock": { 25 | aminoType: "osmosis/lockup/force-unlock-tokens", 26 | toAmino: MsgForceUnlock.toAmino, 27 | fromAmino: MsgForceUnlock.fromAmino 28 | }, 29 | "/osmosis.lockup.MsgSetRewardReceiverAddress": { 30 | aminoType: "osmosis/lockup/set-reward-receiver-address", 31 | toAmino: MsgSetRewardReceiverAddress.toAmino, 32 | fromAmino: MsgSetRewardReceiverAddress.fromAmino 33 | } 34 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/mint/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType, QueryEpochProvisionsRequest, QueryEpochProvisionsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | this.epochProvisions = this.epochProvisions.bind(this); 14 | } 15 | /* Params returns the total set of minting parameters. */ 16 | async params(_params: QueryParamsRequest = {}): Promise { 17 | const endpoint = `osmosis/mint/v1beta1/params`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* EpochProvisions returns the current minting epoch provisions value. */ 21 | async epochProvisions(_params: QueryEpochProvisionsRequest = {}): Promise { 22 | const endpoint = `osmosis/mint/v1beta1/epoch_provisions`; 23 | return await this.req.get(endpoint); 24 | } 25 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/poolmanager/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSwapExactAmountIn, MsgSwapExactAmountOut, MsgSplitRouteSwapExactAmountIn, MsgSplitRouteSwapExactAmountOut, MsgSetDenomPairTakerFee } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountIn": { 5 | aminoType: "osmosis/poolmanager/swap-exact-amount-in", 6 | toAmino: MsgSwapExactAmountIn.toAmino, 7 | fromAmino: MsgSwapExactAmountIn.fromAmino 8 | }, 9 | "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountOut": { 10 | aminoType: "osmosis/poolmanager/swap-exact-amount-out", 11 | toAmino: MsgSwapExactAmountOut.toAmino, 12 | fromAmino: MsgSwapExactAmountOut.fromAmino 13 | }, 14 | "/osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn": { 15 | aminoType: "osmosis/poolmanager/split-amount-in", 16 | toAmino: MsgSplitRouteSwapExactAmountIn.toAmino, 17 | fromAmino: MsgSplitRouteSwapExactAmountIn.fromAmino 18 | }, 19 | "/osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut": { 20 | aminoType: "osmosis/poolmanager/split-amount-out", 21 | toAmino: MsgSplitRouteSwapExactAmountOut.toAmino, 22 | fromAmino: MsgSplitRouteSwapExactAmountOut.fromAmino 23 | }, 24 | "/osmosis.poolmanager.v1beta1.MsgSetDenomPairTakerFee": { 25 | aminoType: "osmosis/poolmanager/set-denom-pair-taker-fee", 26 | toAmino: MsgSetDenomPairTakerFee.toAmino, 27 | fromAmino: MsgSetDenomPairTakerFee.fromAmino 28 | } 29 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/poolmanager/v2/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { SpotPriceRequest, SpotPriceResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.spotPriceV2 = this.spotPriceV2.bind(this); 13 | } 14 | /* SpotPriceV2 defines a gRPC query handler that returns the spot price given 15 | a base denomination and a quote denomination. 16 | The returned spot price has 36 decimal places. However, some of 17 | modules perform sig fig rounding so most of the rightmost decimals can be 18 | zeroes. */ 19 | async spotPriceV2(params: SpotPriceRequest): Promise { 20 | const options: any = { 21 | params: {} 22 | }; 23 | if (typeof params?.baseAssetDenom !== "undefined") { 24 | options.params.base_asset_denom = params.baseAssetDenom; 25 | } 26 | if (typeof params?.quoteAssetDenom !== "undefined") { 27 | options.params.quote_asset_denom = params.quoteAssetDenom; 28 | } 29 | const endpoint = `osmosis/poolmanager/v2/pools/${params.poolId}/prices`; 30 | return await this.req.get(endpoint, options); 31 | } 32 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/smartaccount/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType, GetAuthenticatorsRequest, GetAuthenticatorsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | this.getAuthenticators = this.getAuthenticators.bind(this); 14 | } 15 | /* Parameters queries the parameters of the module. */ 16 | async params(_params: QueryParamsRequest = {}): Promise { 17 | const endpoint = `osmosis/smartaccount/params`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* GetAuthenticators */ 21 | async getAuthenticators(params: GetAuthenticatorsRequest): Promise { 22 | const endpoint = `osmosis/smartaccount/authenticators/${params.account}`; 23 | return await this.req.get(endpoint); 24 | } 25 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/smartaccount/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgAddAuthenticator, MsgRemoveAuthenticator, MsgSetActiveState } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.smartaccount.v1beta1.MsgAddAuthenticator": { 5 | aminoType: "osmosis/smartaccount/add-authenticator", 6 | toAmino: MsgAddAuthenticator.toAmino, 7 | fromAmino: MsgAddAuthenticator.fromAmino 8 | }, 9 | "/osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator": { 10 | aminoType: "osmosis/smartaccount/remove-authenticator", 11 | toAmino: MsgRemoveAuthenticator.toAmino, 12 | fromAmino: MsgRemoveAuthenticator.fromAmino 13 | }, 14 | "/osmosis.smartaccount.v1beta1.MsgSetActiveState": { 15 | aminoType: "osmosis/smartaccount/set-active-state", 16 | toAmino: MsgSetActiveState.toAmino, 17 | fromAmino: MsgSetActiveState.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/txfees/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSetFeeTokens } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.txfees.v1beta1.MsgSetFeeTokens": { 5 | aminoType: "osmosis/set-fee-tokens", 6 | toAmino: MsgSetFeeTokens.toAmino, 7 | fromAmino: MsgSetFeeTokens.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/txfees/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgSetFeeTokens } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.txfees.v1beta1.MsgSetFeeTokens", MsgSetFeeTokens]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | setFeeTokens(value: MsgSetFeeTokens) { 13 | return { 14 | typeUrl: "/osmosis.txfees.v1beta1.MsgSetFeeTokens", 15 | value: MsgSetFeeTokens.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | setFeeTokens(value: MsgSetFeeTokens) { 21 | return { 22 | typeUrl: "/osmosis.txfees.v1beta1.MsgSetFeeTokens", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | setFeeTokens(value: MsgSetFeeTokens) { 29 | return { 30 | typeUrl: "/osmosis.txfees.v1beta1.MsgSetFeeTokens", 31 | value: MsgSetFeeTokens.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/txfees/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { MsgSetFeeTokens, MsgSetFeeTokensResponse } from "./tx"; 5 | export interface Msg { 6 | setFeeTokens(request: MsgSetFeeTokens): Promise; 7 | } 8 | export class MsgClientImpl implements Msg { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | this.setFeeTokens = this.setFeeTokens.bind(this); 13 | } 14 | setFeeTokens(request: MsgSetFeeTokens): Promise { 15 | const data = MsgSetFeeTokens.encode(request).finish(); 16 | const promise = this.rpc.request("osmosis.txfees.v1beta1.Msg", "SetFeeTokens", data); 17 | return promise.then(data => MsgSetFeeTokensResponse.decode(new BinaryReader(data))); 18 | } 19 | } 20 | export const createClientImpl = (rpc: Rpc) => { 21 | return new MsgClientImpl(rpc); 22 | }; -------------------------------------------------------------------------------- /packages/osmo-query/src/osmosis/valsetpref/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { UserValidatorPreferencesRequest, UserValidatorPreferencesResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.userValidatorPreferences = this.userValidatorPreferences.bind(this); 13 | } 14 | /* Returns the list of ValidatorPreferences for the user. */ 15 | async userValidatorPreferences(params: UserValidatorPreferencesRequest): Promise { 16 | const endpoint = `osmosis/valset-pref/v1beta1/${params.address}`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmo-query/src/tendermint/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _225 from "./abci/types"; 3 | import * as _226 from "./crypto/keys"; 4 | import * as _227 from "./crypto/proof"; 5 | import * as _228 from "./libs/bits/types"; 6 | import * as _229 from "./p2p/types"; 7 | import * as _230 from "./types/block"; 8 | import * as _231 from "./types/evidence"; 9 | import * as _232 from "./types/params"; 10 | import * as _233 from "./types/types"; 11 | import * as _234 from "./types/validator"; 12 | import * as _235 from "./version/types"; 13 | export namespace tendermint { 14 | export const abci = { 15 | ..._225 16 | }; 17 | export const crypto = { 18 | ..._226, 19 | ..._227 20 | }; 21 | export namespace libs { 22 | export const bits = { 23 | ..._228 24 | }; 25 | } 26 | export const p2p = { 27 | ..._229 28 | }; 29 | export const types = { 30 | ..._230, 31 | ..._231, 32 | ..._232, 33 | ..._233, 34 | ..._234 35 | }; 36 | export const version = { 37 | ..._235 38 | }; 39 | } -------------------------------------------------------------------------------- /packages/osmo-query/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist/esm", 5 | "module": "es2022", 6 | "rootDir": "src/", 7 | "declaration": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/osmo-query/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src/" 6 | }, 7 | "include": ["src/**/*.ts"], 8 | "exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/osmojs/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Interweb, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /packages/osmojs/__tests__/unit/__snapshots__/encoded.test.ts.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`encoded 1`] = ` 4 | { 5 | "poolId": 606n, 6 | "sender": "osmo1f4vxvvvvvvvvvv3luuddddddddddcccccccccc", 7 | "shareOutAmount": "101010101", 8 | "tokenInMaxs": [ 9 | { 10 | "amount": "10248", 11 | "denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2", 12 | }, 13 | { 14 | "amount": "64837969", 15 | "denom": "ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228", 16 | }, 17 | ], 18 | } 19 | `; 20 | 21 | exports[`encoded.scoped 1`] = ` 22 | { 23 | "poolId": 606n, 24 | "sender": "osmo1f4vxvvvvvvvvvv3luuddddddddddcccccccccc", 25 | "shareOutAmount": "101010101", 26 | "tokenInMaxs": [ 27 | { 28 | "amount": "10248", 29 | "denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2", 30 | }, 31 | { 32 | "amount": "64837969", 33 | "denom": "ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228", 34 | }, 35 | ], 36 | } 37 | `; 38 | -------------------------------------------------------------------------------- /packages/osmojs/__tests__/unit/__snapshots__/messages.test.ts.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`messages 1`] = ` 4 | { 5 | "typeUrl": "/osmosis.gamm.v1beta1.MsgJoinPool", 6 | "value": { 7 | "poolId": 606n, 8 | "sender": "osmo1f4vxvvvvvvvvvv3luuddddddddddcccccccccc", 9 | "shareOutAmount": "101010101", 10 | "tokenInMaxs": [ 11 | { 12 | "amount": "10248", 13 | "denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2", 14 | }, 15 | { 16 | "amount": "64837969", 17 | "denom": "ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228", 18 | }, 19 | ], 20 | }, 21 | } 22 | `; 23 | 24 | exports[`messages.scoped 1`] = ` 25 | { 26 | "typeUrl": "/osmosis.gamm.v1beta1.MsgJoinPool", 27 | "value": { 28 | "poolId": 606n, 29 | "sender": "osmo1f4vxvvvvvvvvvv3luuddddddddddcccccccccc", 30 | "shareOutAmount": "101010101", 31 | "tokenInMaxs": [ 32 | { 33 | "amount": "10248", 34 | "denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2", 35 | }, 36 | { 37 | "amount": "64837969", 38 | "denom": "ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228", 39 | }, 40 | ], 41 | }, 42 | } 43 | `; 44 | -------------------------------------------------------------------------------- /packages/osmojs/__tests__/unit/messages.test.ts: -------------------------------------------------------------------------------- 1 | import { coin } from '@cosmjs/amino'; 2 | 3 | import { osmosis } from '../../src'; 4 | import { MessageComposer } from '../../src/osmosis/gamm/v1beta1/tx.registry'; 5 | 6 | it('messages', async () => { 7 | expect( 8 | MessageComposer.withTypeUrl.joinPool({ 9 | poolId: BigInt('606'), 10 | sender: 'osmo1f4vxvvvvvvvvvv3luuddddddddddcccccccccc', 11 | shareOutAmount: '101010101', 12 | tokenInMaxs: [ 13 | coin( 14 | 10248, 15 | 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2' 16 | ), 17 | coin( 18 | 64837969, 19 | 'ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228' 20 | ) 21 | ] 22 | }) 23 | ).toMatchSnapshot(); 24 | }); 25 | 26 | it('messages.scoped', async () => { 27 | expect( 28 | osmosis.gamm.v1beta1.MessageComposer.withTypeUrl.joinPool({ 29 | poolId: BigInt('606'), 30 | sender: 'osmo1f4vxvvvvvvvvvv3luuddddddddddcccccccccc', 31 | shareOutAmount: '101010101', 32 | tokenInMaxs: [ 33 | coin( 34 | 10248, 35 | 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2' 36 | ), 37 | coin( 38 | 64837969, 39 | 'ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228' 40 | ) 41 | ] 42 | }) 43 | ).toMatchSnapshot(); 44 | }); 45 | -------------------------------------------------------------------------------- /packages/osmojs/jest.osmojs.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('ts-jest').JestConfigWithTsJest} */ 2 | module.exports = { 3 | preset: "ts-jest", 4 | testEnvironment: "node", 5 | transform: { 6 | "^.+\\.tsx?$": [ 7 | "ts-jest", 8 | { 9 | babelConfig: false, 10 | tsconfig: "tsconfig.json", 11 | }, 12 | ], 13 | }, 14 | transformIgnorePatterns: [`/node_modules/*`], 15 | testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", 16 | moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], 17 | modulePathIgnorePatterns: [ 18 | "dist/*", 19 | "starship", 20 | "cosmos-sdk", 21 | "ics23", 22 | "ibc-go" 23 | ] 24 | }; 25 | -------------------------------------------------------------------------------- /packages/osmojs/jest.starship.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('ts-jest').JestConfigWithTsJest} */ 2 | module.exports = { 3 | preset: "ts-jest", 4 | testEnvironment: "node", 5 | transform: { 6 | "^.+\\.tsx?$": [ 7 | "ts-jest", 8 | { 9 | babelConfig: false, 10 | tsconfig: "tsconfig.json", 11 | }, 12 | ], 13 | }, 14 | transformIgnorePatterns: [`/node_modules/*`], 15 | testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", 16 | moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], 17 | testTimeout: 15000, 18 | modulePathIgnorePatterns: [ 19 | "dist/*", 20 | "unit/", 21 | "cosmos-sdk/", 22 | "ics23/", 23 | "ibc-go/" 24 | ] 25 | }; 26 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/app/v1alpha1/query.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.app.v1alpha1; 4 | 5 | import "cosmos/app/v1alpha1/config.proto"; 6 | 7 | // Query is the app module query service. 8 | service Query { 9 | 10 | // Config returns the current app config. 11 | rpc Config(QueryConfigRequest) returns (QueryConfigResponse) {} 12 | } 13 | 14 | // QueryConfigRequest is the Query/Config request type. 15 | message QueryConfigRequest {} 16 | 17 | // QueryConfigRequest is the Query/Config response type. 18 | message QueryConfigResponse { 19 | 20 | // config is the current app config. 21 | Config config = 1; 22 | } 23 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/auth/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.auth.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object for the auth module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/auth" 11 | }; 12 | 13 | // bech32_prefix is the bech32 account prefix for the app. 14 | string bech32_prefix = 1; 15 | 16 | // module_account_permissions are module account permissions. 17 | repeated ModuleAccountPermission module_account_permissions = 2; 18 | 19 | // authority defines the custom module authority. If not set, defaults to the governance module. 20 | string authority = 3; 21 | } 22 | 23 | // ModuleAccountPermission represents permissions for a module account. 24 | message ModuleAccountPermission { 25 | // account is the name of the module. 26 | string account = 1; 27 | 28 | // permissions are the permissions this module has. Currently recognized 29 | // values are minter, burner and staking. 30 | repeated string permissions = 2; 31 | } 32 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/auth/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.auth.v1beta1; 3 | 4 | import "google/protobuf/any.proto"; 5 | import "gogoproto/gogo.proto"; 6 | import "cosmos/auth/v1beta1/auth.proto"; 7 | import "amino/amino.proto"; 8 | 9 | option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; 10 | 11 | // GenesisState defines the auth module's genesis state. 12 | message GenesisState { 13 | // params defines all the parameters of the module. 14 | Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 15 | 16 | // accounts are the accounts present at genesis. 17 | repeated google.protobuf.Any accounts = 2; 18 | } 19 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/authz/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.authz.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the authz module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/authz" 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/authz/v1beta1/event.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.43 2 | syntax = "proto3"; 3 | package cosmos.authz.v1beta1; 4 | 5 | import "cosmos_proto/cosmos.proto"; 6 | 7 | option go_package = "github.com/cosmos/cosmos-sdk/x/authz"; 8 | 9 | // EventGrant is emitted on Msg/Grant 10 | message EventGrant { 11 | // Msg type URL for which an autorization is granted 12 | string msg_type_url = 2; 13 | // Granter account address 14 | string granter = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 15 | // Grantee account address 16 | string grantee = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 17 | } 18 | 19 | // EventRevoke is emitted on Msg/Revoke 20 | message EventRevoke { 21 | // Msg type URL for which an autorization is revoked 22 | string msg_type_url = 2; 23 | // Granter account address 24 | string granter = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 25 | // Grantee account address 26 | string grantee = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 27 | } 28 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/authz/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.43 2 | syntax = "proto3"; 3 | package cosmos.authz.v1beta1; 4 | 5 | import "gogoproto/gogo.proto"; 6 | import "cosmos/authz/v1beta1/authz.proto"; 7 | import "amino/amino.proto"; 8 | 9 | option go_package = "github.com/cosmos/cosmos-sdk/x/authz"; 10 | 11 | // GenesisState defines the authz module's genesis state. 12 | message GenesisState { 13 | repeated GrantAuthorization authorization = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 14 | } 15 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/autocli/v1/query.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.autocli.v1; 4 | 5 | import "cosmos/autocli/v1/options.proto"; 6 | import "cosmos/query/v1/query.proto"; 7 | 8 | option go_package = "cosmossdk.io/api/cosmos/base/cli/v1;cliv1"; 9 | 10 | // RemoteInfoService provides clients with the information they need 11 | // to build dynamically CLI clients for remote chains. 12 | service Query { 13 | // AppOptions returns the autocli options for all of the modules in an app. 14 | rpc AppOptions(AppOptionsRequest) returns (AppOptionsResponse) { 15 | // NOTE: autocli options SHOULD NOT be part of consensus and module_query_safe 16 | // should be kept as false. 17 | option (cosmos.query.v1.module_query_safe) = false; 18 | } 19 | } 20 | 21 | // AppOptionsRequest is the RemoteInfoService/AppOptions request type. 22 | message AppOptionsRequest {} 23 | 24 | // AppOptionsResponse is the RemoteInfoService/AppOptions response type. 25 | message AppOptionsResponse { 26 | // module_options is a map of module name to autocli module options. 27 | map module_options = 1; 28 | } 29 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/bank/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.bank.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the bank module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/bank" 11 | }; 12 | 13 | // blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds. 14 | // If left empty it defaults to the list of account names supplied in the auth module configuration as 15 | // module_account_permissions 16 | repeated string blocked_module_accounts_override = 1; 17 | 18 | // authority defines the custom module authority. If not set, defaults to the governance module. 19 | string authority = 2; 20 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/bank/v1beta1/authz.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.bank.v1beta1; 3 | 4 | import "amino/amino.proto"; 5 | import "gogoproto/gogo.proto"; 6 | import "cosmos_proto/cosmos.proto"; 7 | import "cosmos/base/v1beta1/coin.proto"; 8 | 9 | option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; 10 | 11 | // SendAuthorization allows the grantee to spend up to spend_limit coins from 12 | // the granter's account. 13 | // 14 | // Since: cosmos-sdk 0.43 15 | message SendAuthorization { 16 | option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization"; 17 | option (amino.name) = "cosmos-sdk/SendAuthorization"; 18 | 19 | repeated cosmos.base.v1beta1.Coin spend_limit = 1 [ 20 | (gogoproto.nullable) = false, 21 | (amino.dont_omitempty) = true, 22 | (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" 23 | ]; 24 | 25 | // allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the 26 | // granter. If omitted, any recipient is allowed. 27 | // 28 | // Since: cosmos-sdk 0.47 29 | repeated string allow_list = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 30 | } 31 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/base/kv/v1beta1/kv.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.base.kv.v1beta1; 3 | 4 | import "gogoproto/gogo.proto"; 5 | 6 | option go_package = "github.com/cosmos/cosmos-sdk/types/kv"; 7 | 8 | // Pairs defines a repeated slice of Pair objects. 9 | message Pairs { 10 | repeated Pair pairs = 1 [(gogoproto.nullable) = false]; 11 | } 12 | 13 | // Pair defines a key/value bytes tuple. 14 | message Pair { 15 | bytes key = 1; 16 | bytes value = 2; 17 | } 18 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/base/node/v1beta1/query.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.base.node.v1beta1; 3 | 4 | import "google/api/annotations.proto"; 5 | 6 | option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/node"; 7 | 8 | // Service defines the gRPC querier service for node related queries. 9 | service Service { 10 | // Config queries for the operator configuration. 11 | rpc Config(ConfigRequest) returns (ConfigResponse) { 12 | option (google.api.http).get = "/cosmos/base/node/v1beta1/config"; 13 | } 14 | } 15 | 16 | // ConfigRequest defines the request structure for the Config gRPC query. 17 | message ConfigRequest {} 18 | 19 | // ConfigResponse defines the response structure for the Config gRPC query. 20 | message ConfigResponse { 21 | string minimum_gas_price = 1; 22 | } 23 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/base/store/v1beta1/commit_info.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.base.store.v1beta1; 3 | 4 | import "gogoproto/gogo.proto"; 5 | 6 | option go_package = "github.com/cosmos/cosmos-sdk/store/types"; 7 | 8 | // CommitInfo defines commit information used by the multi-store when committing 9 | // a version/height. 10 | message CommitInfo { 11 | int64 version = 1; 12 | repeated StoreInfo store_infos = 2 [(gogoproto.nullable) = false]; 13 | } 14 | 15 | // StoreInfo defines store-specific commit information. It contains a reference 16 | // between a store name and the commit ID. 17 | message StoreInfo { 18 | string name = 1; 19 | CommitID commit_id = 2 [(gogoproto.nullable) = false]; 20 | } 21 | 22 | // CommitID defines the commitment information when a specific store is 23 | // committed. 24 | message CommitID { 25 | option (gogoproto.goproto_stringer) = false; 26 | 27 | int64 version = 1; 28 | bytes hash = 2; 29 | } 30 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/base/store/v1beta1/listening.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.base.store.v1beta1; 3 | 4 | import "tendermint/abci/types.proto"; 5 | 6 | option go_package = "github.com/cosmos/cosmos-sdk/store/types"; 7 | 8 | // StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) 9 | // It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and 10 | // Deletes 11 | // 12 | // Since: cosmos-sdk 0.43 13 | message StoreKVPair { 14 | string store_key = 1; // the store key for the KVStore this pair originates from 15 | bool delete = 2; // true indicates a delete operation, false indicates a set operation 16 | bytes key = 3; 17 | bytes value = 4; 18 | } 19 | 20 | // BlockMetadata contains all the abci event data of a block 21 | // the file streamer dump them into files together with the state changes. 22 | message BlockMetadata { 23 | // DeliverTx encapulate deliver tx request and response. 24 | message DeliverTx { 25 | tendermint.abci.RequestDeliverTx request = 1; 26 | tendermint.abci.ResponseDeliverTx response = 2; 27 | } 28 | tendermint.abci.RequestBeginBlock request_begin_block = 1; 29 | tendermint.abci.ResponseBeginBlock response_begin_block = 2; 30 | repeated DeliverTx deliver_txs = 3; 31 | tendermint.abci.RequestEndBlock request_end_block = 4; 32 | tendermint.abci.ResponseEndBlock response_end_block = 5; 33 | tendermint.abci.ResponseCommit response_commit = 6; 34 | } 35 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/capability/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.capability.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the capability module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/capability" 11 | }; 12 | 13 | // seal_keeper defines if keeper.Seal() will run on BeginBlock() to prevent further modules from creating a scoped 14 | // keeper. For more details check x/capability/keeper.go. 15 | bool seal_keeper = 1; 16 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/capability/v1beta1/capability.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.capability.v1beta1; 3 | 4 | option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | import "amino/amino.proto"; 8 | 9 | // Capability defines an implementation of an object capability. The index 10 | // provided to a Capability must be globally unique. 11 | message Capability { 12 | option (gogoproto.goproto_stringer) = false; 13 | 14 | uint64 index = 1; 15 | } 16 | 17 | // Owner defines a single capability owner. An owner is defined by the name of 18 | // capability and the module name. 19 | message Owner { 20 | option (gogoproto.goproto_stringer) = false; 21 | option (gogoproto.goproto_getters) = false; 22 | 23 | string module = 1; 24 | string name = 2; 25 | } 26 | 27 | // CapabilityOwners defines a set of owners of a single Capability. The set of 28 | // owners must be unique. 29 | message CapabilityOwners { 30 | repeated Owner owners = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 31 | } 32 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/capability/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.capability.v1beta1; 3 | 4 | import "gogoproto/gogo.proto"; 5 | import "cosmos/capability/v1beta1/capability.proto"; 6 | import "amino/amino.proto"; 7 | 8 | option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types"; 9 | 10 | // GenesisOwners defines the capability owners with their corresponding index. 11 | message GenesisOwners { 12 | // index is the index of the capability owner. 13 | uint64 index = 1; 14 | 15 | // index_owners are the owners at the given index. 16 | CapabilityOwners index_owners = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 17 | } 18 | 19 | // GenesisState defines the capability module's genesis state. 20 | message GenesisState { 21 | // index is the capability global index. 22 | uint64 index = 1; 23 | 24 | // owners represents a map from index to owners of the capability index 25 | // index key is string to allow amino marshalling. 26 | repeated GenesisOwners owners = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 27 | } 28 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/consensus/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.consensus.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the consensus module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/consensus" 11 | }; 12 | 13 | // authority defines the custom module authority. If not set, defaults to the governance module. 14 | string authority = 1; 15 | } 16 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/consensus/v1/query.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.47 2 | syntax = "proto3"; 3 | package cosmos.consensus.v1; 4 | 5 | import "google/api/annotations.proto"; 6 | import "tendermint/types/params.proto"; 7 | 8 | option go_package = "github.com/cosmos/cosmos-sdk/x/consensus/types"; 9 | 10 | // Query defines the gRPC querier service. 11 | service Query { 12 | // Params queries the parameters of x/consensus_param module. 13 | rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { 14 | option (google.api.http).get = "/cosmos/consensus/v1/params"; 15 | } 16 | } 17 | 18 | // QueryParamsRequest defines the request type for querying x/consensus parameters. 19 | message QueryParamsRequest {} 20 | 21 | // QueryParamsResponse defines the response type for querying x/consensus parameters. 22 | message QueryParamsResponse { 23 | // params are the tendermint consensus params stored in the consensus module. 24 | // Please note that `params.version` is not populated in this response, it is 25 | // tracked separately in the x/upgrade module. 26 | tendermint.types.ConsensusParams params = 1; 27 | } 28 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crisis/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.crisis.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the crisis module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/crisis" 11 | }; 12 | 13 | // fee_collector_name is the name of the FeeCollector ModuleAccount. 14 | string fee_collector_name = 1; 15 | 16 | // authority defines the custom module authority. If not set, defaults to the governance module. 17 | string authority = 2; 18 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crisis/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.crisis.v1beta1; 3 | 4 | option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | import "cosmos/base/v1beta1/coin.proto"; 8 | import "amino/amino.proto"; 9 | 10 | // GenesisState defines the crisis module's genesis state. 11 | message GenesisState { 12 | // constant_fee is the fee used to verify the invariant in the crisis 13 | // module. 14 | cosmos.base.v1beta1.Coin constant_fee = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 15 | } 16 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crypto/hd/v1/hd.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.46 2 | syntax = "proto3"; 3 | package cosmos.crypto.hd.v1; 4 | 5 | import "amino/amino.proto"; 6 | import "gogoproto/gogo.proto"; 7 | 8 | option go_package = "github.com/cosmos/cosmos-sdk/crypto/hd"; 9 | option (gogoproto.goproto_getters_all) = false; 10 | 11 | // BIP44Params is used as path field in ledger item in Record. 12 | message BIP44Params { 13 | option (amino.name) = "crypto/keys/hd/BIP44Params"; 14 | 15 | option (gogoproto.goproto_stringer) = false; 16 | // purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation 17 | uint32 purpose = 1; 18 | // coin_type is a constant that improves privacy 19 | uint32 coin_type = 2; 20 | // account splits the key space into independent user identities 21 | uint32 account = 3; 22 | // change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal 23 | // chain. 24 | bool change = 4; 25 | // address_index is used as child index in BIP32 derivation 26 | uint32 address_index = 5; 27 | } 28 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crypto/keyring/v1/record.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.46 2 | syntax = "proto3"; 3 | package cosmos.crypto.keyring.v1; 4 | 5 | import "gogoproto/gogo.proto"; 6 | import "google/protobuf/any.proto"; 7 | import "cosmos/crypto/hd/v1/hd.proto"; 8 | 9 | option go_package = "github.com/cosmos/cosmos-sdk/crypto/keyring"; 10 | option (gogoproto.goproto_getters_all) = false; 11 | option (gogoproto.gogoproto_import) = false; 12 | 13 | // Record is used for representing a key in the keyring. 14 | message Record { 15 | // name represents a name of Record 16 | string name = 1; 17 | // pub_key represents a public key in any format 18 | google.protobuf.Any pub_key = 2; 19 | 20 | // Record contains one of the following items 21 | oneof item { 22 | // local stores the private key locally. 23 | Local local = 3; 24 | // ledger stores the information about a Ledger key. 25 | Ledger ledger = 4; 26 | // Multi does not store any other information. 27 | Multi multi = 5; 28 | // Offline does not store any other information. 29 | Offline offline = 6; 30 | } 31 | 32 | // Item is a keyring item stored in a keyring backend. 33 | // Local item 34 | message Local { 35 | google.protobuf.Any priv_key = 1; 36 | } 37 | 38 | // Ledger item 39 | message Ledger { 40 | hd.v1.BIP44Params path = 1; 41 | } 42 | 43 | // Multi item 44 | message Multi {} 45 | 46 | // Offline item 47 | message Offline {} 48 | } 49 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crypto/multisig/keys.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.crypto.multisig; 3 | 4 | import "gogoproto/gogo.proto"; 5 | import "google/protobuf/any.proto"; 6 | import "amino/amino.proto"; 7 | 8 | option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/multisig"; 9 | 10 | // LegacyAminoPubKey specifies a public key type 11 | // which nests multiple public keys and a threshold, 12 | // it uses legacy amino address rules. 13 | message LegacyAminoPubKey { 14 | option (amino.name) = "tendermint/PubKeyMultisigThreshold"; 15 | // The Amino encoding of a LegacyAminoPubkey is the legacy amino 16 | // encoding of the `PubKeyMultisigThreshold` struct defined below: 17 | // https://github.com/tendermint/tendermint/blob/v0.33.9/crypto/multisig/threshold_pubkey.go 18 | // 19 | // There are 2 differences with what a "normal" Amino encoding 20 | // would output: 21 | // 1. The `threshold` field is always a string (whereas Amino would 22 | // by default marshal uint32 as a number). 23 | // 2. The `public_keys` field is renamed to `pubkeys`, which is also 24 | // reflected in the `amino.field_name` annotation. 25 | option (amino.message_encoding) = "threshold_string"; 26 | option (gogoproto.goproto_getters) = false; 27 | 28 | uint32 threshold = 1; 29 | repeated google.protobuf.Any public_keys = 2 [(gogoproto.customname) = "PubKeys", (amino.field_name) = "pubkeys"]; 30 | } 31 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crypto/multisig/v1beta1/multisig.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.crypto.multisig.v1beta1; 3 | 4 | import "gogoproto/gogo.proto"; 5 | 6 | option go_package = "github.com/cosmos/cosmos-sdk/crypto/types"; 7 | 8 | // MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. 9 | // See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers 10 | // signed and with which modes. 11 | message MultiSignature { 12 | option (gogoproto.goproto_unrecognized) = true; 13 | repeated bytes signatures = 1; 14 | } 15 | 16 | // CompactBitArray is an implementation of a space efficient bit array. 17 | // This is used to ensure that the encoded data takes up a minimal amount of 18 | // space after proto encoding. 19 | // This is not thread safe, and is not intended for concurrent usage. 20 | message CompactBitArray { 21 | option (gogoproto.goproto_stringer) = false; 22 | 23 | uint32 extra_bits_stored = 1; 24 | bytes elems = 2; 25 | } 26 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crypto/secp256k1/keys.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.crypto.secp256k1; 3 | 4 | import "amino/amino.proto"; 5 | import "gogoproto/gogo.proto"; 6 | 7 | option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"; 8 | 9 | // PubKey defines a secp256k1 public key 10 | // Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte 11 | // if the y-coordinate is the lexicographically largest of the two associated with 12 | // the x-coordinate. Otherwise the first byte is a 0x03. 13 | // This prefix is followed with the x-coordinate. 14 | message PubKey { 15 | option (amino.name) = "tendermint/PubKeySecp256k1"; 16 | // The Amino encoding is simply the inner bytes field, and not the Amino 17 | // encoding of the whole PubKey struct. 18 | // 19 | // Example (JSON): 20 | // s := PubKey{Key: []byte{0x01}} 21 | // out := AminoJSONEncoder(s) 22 | // 23 | // Then we have: 24 | // out == `"MQ=="` 25 | // out != `{"key":"MQ=="}` 26 | option (amino.message_encoding) = "key_field"; 27 | option (gogoproto.goproto_stringer) = false; 28 | 29 | bytes key = 1; 30 | } 31 | 32 | // PrivKey defines a secp256k1 private key. 33 | message PrivKey { 34 | option (amino.name) = "tendermint/PrivKeySecp256k1"; 35 | option (amino.message_encoding) = "key_field"; 36 | 37 | bytes key = 1; 38 | } 39 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/crypto/secp256r1/keys.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.43 2 | syntax = "proto3"; 3 | package cosmos.crypto.secp256r1; 4 | 5 | import "gogoproto/gogo.proto"; 6 | 7 | option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1"; 8 | option (gogoproto.messagename_all) = true; 9 | option (gogoproto.goproto_stringer_all) = false; 10 | option (gogoproto.goproto_getters_all) = false; 11 | 12 | // PubKey defines a secp256r1 ECDSA public key. 13 | message PubKey { 14 | // Point on secp256r1 curve in a compressed representation as specified in section 15 | // 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 16 | bytes key = 1 [(gogoproto.customtype) = "ecdsaPK"]; 17 | } 18 | 19 | // PrivKey defines a secp256r1 ECDSA private key. 20 | message PrivKey { 21 | // secret number serialized using big-endian encoding 22 | bytes secret = 1 [(gogoproto.customtype) = "ecdsaSK"]; 23 | } 24 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/distribution/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.distribution.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the distribution module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/distribution" 11 | }; 12 | 13 | string fee_collector_name = 1; 14 | 15 | // authority defines the custom module authority. If not set, defaults to the governance module. 16 | string authority = 2; 17 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/evidence/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.evidence.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the evidence module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/evidence" 11 | }; 12 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/evidence/v1beta1/evidence.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.evidence.v1beta1; 3 | 4 | option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; 5 | option (gogoproto.equal_all) = true; 6 | 7 | import "amino/amino.proto"; 8 | import "gogoproto/gogo.proto"; 9 | import "google/protobuf/timestamp.proto"; 10 | import "cosmos_proto/cosmos.proto"; 11 | 12 | // Equivocation implements the Evidence interface and defines evidence of double 13 | // signing misbehavior. 14 | message Equivocation { 15 | option (amino.name) = "cosmos-sdk/Equivocation"; 16 | option (gogoproto.goproto_stringer) = false; 17 | option (gogoproto.goproto_getters) = false; 18 | option (gogoproto.equal) = false; 19 | 20 | // height is the equivocation height. 21 | int64 height = 1; 22 | 23 | // time is the equivocation time. 24 | google.protobuf.Timestamp time = 2 25 | [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true]; 26 | 27 | // power is the equivocation validator power. 28 | int64 power = 3; 29 | 30 | // consensus_address is the equivocation validator consensus address. 31 | string consensus_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 32 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/evidence/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.evidence.v1beta1; 3 | 4 | option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; 5 | 6 | import "google/protobuf/any.proto"; 7 | 8 | // GenesisState defines the evidence module's genesis state. 9 | message GenesisState { 10 | // evidence defines all the evidence at genesis. 11 | repeated google.protobuf.Any evidence = 1; 12 | } 13 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/feegrant/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.feegrant.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the feegrant module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/feegrant" 11 | }; 12 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/feegrant/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.43 2 | syntax = "proto3"; 3 | package cosmos.feegrant.v1beta1; 4 | 5 | import "gogoproto/gogo.proto"; 6 | import "cosmos/feegrant/v1beta1/feegrant.proto"; 7 | import "amino/amino.proto"; 8 | 9 | option go_package = "github.com/cosmos/cosmos-sdk/x/feegrant"; 10 | 11 | // GenesisState contains a set of fee allowances, persisted from the store 12 | message GenesisState { 13 | repeated Grant allowances = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 14 | } 15 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/genutil/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.genutil.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object for the genutil module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/genutil" 11 | }; 12 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/genutil/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.genutil.v1beta1; 3 | 4 | import "gogoproto/gogo.proto"; 5 | import "amino/amino.proto"; 6 | 7 | option go_package = "github.com/cosmos/cosmos-sdk/x/genutil/types"; 8 | 9 | // GenesisState defines the raw genesis transaction in JSON. 10 | message GenesisState { 11 | // gen_txs defines the genesis transactions. 12 | repeated bytes gen_txs = 1 [ 13 | (gogoproto.casttype) = "encoding/json.RawMessage", 14 | (gogoproto.jsontag) = "gentxs", 15 | (amino.field_name) = "gentxs", 16 | (amino.dont_omitempty) = true 17 | ]; 18 | } 19 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/gov/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.gov.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the gov module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/gov" 11 | }; 12 | 13 | // max_metadata_len defines the maximum proposal metadata length. 14 | // Defaults to 255 if not explicitly set. 15 | uint64 max_metadata_len = 1; 16 | 17 | // authority defines the custom module authority. If not set, defaults to the governance module. 18 | string authority = 2; 19 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/gov/v1/genesis.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.46 2 | syntax = "proto3"; 3 | 4 | package cosmos.gov.v1; 5 | 6 | import "cosmos/gov/v1/gov.proto"; 7 | 8 | option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1"; 9 | 10 | // GenesisState defines the gov module's genesis state. 11 | message GenesisState { 12 | // starting_proposal_id is the ID of the starting proposal. 13 | uint64 starting_proposal_id = 1; 14 | // deposits defines all the deposits present at genesis. 15 | repeated Deposit deposits = 2; 16 | // votes defines all the votes present at genesis. 17 | repeated Vote votes = 3; 18 | // proposals defines all the proposals present at genesis. 19 | repeated Proposal proposals = 4; 20 | // Deprecated: Prefer to use `params` instead. 21 | // deposit_params defines all the paramaters of related to deposit. 22 | DepositParams deposit_params = 5 [deprecated = true]; 23 | // Deprecated: Prefer to use `params` instead. 24 | // voting_params defines all the paramaters of related to voting. 25 | VotingParams voting_params = 6 [deprecated = true]; 26 | // Deprecated: Prefer to use `params` instead. 27 | // tally_params defines all the paramaters of related to tally. 28 | TallyParams tally_params = 7 [deprecated = true]; 29 | // params defines all the paramaters of x/gov module. 30 | // 31 | // Since: cosmos-sdk 0.47 32 | Params params = 8; 33 | } 34 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/group/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.group.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | import "gogoproto/gogo.proto"; 7 | import "google/protobuf/duration.proto"; 8 | import "amino/amino.proto"; 9 | 10 | // Module is the config object of the group module. 11 | message Module { 12 | option (cosmos.app.v1alpha1.module) = { 13 | go_import: "github.com/cosmos/cosmos-sdk/x/group" 14 | }; 15 | 16 | // max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec 17 | // to execute the proposal. 18 | google.protobuf.Duration max_execution_period = 1 19 | [(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 20 | 21 | // max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. 22 | // Defaults to 255 if not explicitly set. 23 | uint64 max_metadata_len = 2; 24 | } 25 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/group/v1/genesis.proto: -------------------------------------------------------------------------------- 1 | // Since: cosmos-sdk 0.46 2 | syntax = "proto3"; 3 | 4 | package cosmos.group.v1; 5 | 6 | option go_package = "github.com/cosmos/cosmos-sdk/x/group"; 7 | 8 | import "cosmos/group/v1/types.proto"; 9 | 10 | // GenesisState defines the group module's genesis state. 11 | message GenesisState { 12 | 13 | // group_seq is the group table orm.Sequence, 14 | // it is used to get the next group ID. 15 | uint64 group_seq = 1; 16 | 17 | // groups is the list of groups info. 18 | repeated GroupInfo groups = 2; 19 | 20 | // group_members is the list of groups members. 21 | repeated GroupMember group_members = 3; 22 | 23 | // group_policy_seq is the group policy table orm.Sequence, 24 | // it is used to generate the next group policy account address. 25 | uint64 group_policy_seq = 4; 26 | 27 | // group_policies is the list of group policies info. 28 | repeated GroupPolicyInfo group_policies = 5; 29 | 30 | // proposal_seq is the proposal table orm.Sequence, 31 | // it is used to get the next proposal ID. 32 | uint64 proposal_seq = 6; 33 | 34 | // proposals is the list of proposals. 35 | repeated Proposal proposals = 7; 36 | 37 | // votes is the list of votes. 38 | repeated Vote votes = 8; 39 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/mint/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.mint.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the mint module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/mint" 11 | }; 12 | 13 | string fee_collector_name = 1; 14 | 15 | // authority defines the custom module authority. If not set, defaults to the governance module. 16 | string authority = 2; 17 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/mint/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.mint.v1beta1; 3 | 4 | import "gogoproto/gogo.proto"; 5 | import "cosmos/mint/v1beta1/mint.proto"; 6 | import "amino/amino.proto"; 7 | 8 | option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; 9 | 10 | // GenesisState defines the mint module's genesis state. 11 | message GenesisState { 12 | // minter is a space for holding current inflation information. 13 | Minter minter = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 14 | 15 | // params defines all the parameters of the module. 16 | Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 17 | } 18 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/msg/v1/msg.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.msg.v1; 4 | 5 | import "google/protobuf/descriptor.proto"; 6 | 7 | // TODO(fdymylja): once we fully migrate to protov2 the go_package needs to be updated. 8 | // We need this right now because gogoproto codegen needs to import the extension. 9 | option go_package = "github.com/cosmos/cosmos-sdk/types/msgservice"; 10 | 11 | extend google.protobuf.ServiceOptions { 12 | // service indicates that the service is a Msg service and that requests 13 | // must be transported via blockchain transactions rather than gRPC. 14 | // Tooling can use this annotation to distinguish between Msg services and 15 | // other types of services via reflection. 16 | bool service = 11110000; 17 | } 18 | 19 | extend google.protobuf.MessageOptions { 20 | // signer must be used in cosmos messages in order 21 | // to signal to external clients which fields in a 22 | // given cosmos message must be filled with signer 23 | // information (address). 24 | // The field must be the protobuf name of the message 25 | // field extended with this MessageOption. 26 | // The field must either be of string kind, or of message 27 | // kind in case the signer information is contained within 28 | // a message inside the cosmos message. 29 | repeated string signer = 11110000; 30 | } 31 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/nft/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.nft.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the nft module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/nft" 11 | }; 12 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/nft/v1beta1/event.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.nft.v1beta1; 3 | 4 | option go_package = "github.com/cosmos/cosmos-sdk/x/nft"; 5 | 6 | // EventSend is emitted on Msg/Send 7 | message EventSend { 8 | // class_id associated with the nft 9 | string class_id = 1; 10 | 11 | // id is a unique identifier of the nft 12 | string id = 2; 13 | 14 | // sender is the address of the owner of nft 15 | string sender = 3; 16 | 17 | // receiver is the receiver address of nft 18 | string receiver = 4; 19 | } 20 | 21 | // EventMint is emitted on Mint 22 | message EventMint { 23 | // class_id associated with the nft 24 | string class_id = 1; 25 | 26 | // id is a unique identifier of the nft 27 | string id = 2; 28 | 29 | // owner is the owner address of the nft 30 | string owner = 3; 31 | } 32 | 33 | // EventBurn is emitted on Burn 34 | message EventBurn { 35 | // class_id associated with the nft 36 | string class_id = 1; 37 | 38 | // id is a unique identifier of the nft 39 | string id = 2; 40 | 41 | // owner is the owner address of the nft 42 | string owner = 3; 43 | } 44 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/nft/v1beta1/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.nft.v1beta1; 3 | 4 | import "cosmos/nft/v1beta1/nft.proto"; 5 | 6 | option go_package = "github.com/cosmos/cosmos-sdk/x/nft"; 7 | 8 | // GenesisState defines the nft module's genesis state. 9 | message GenesisState { 10 | // class defines the class of the nft type. 11 | repeated cosmos.nft.v1beta1.Class classes = 1; 12 | 13 | // entry defines all nft owned by a person. 14 | repeated Entry entries = 2; 15 | } 16 | 17 | // Entry Defines all nft owned by a person 18 | message Entry { 19 | // owner is the owner address of the following nft 20 | string owner = 1; 21 | 22 | // nfts is a group of nfts of the same owner 23 | repeated cosmos.nft.v1beta1.NFT nfts = 2; 24 | } 25 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/nft/v1beta1/tx.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.nft.v1beta1; 3 | 4 | option go_package = "github.com/cosmos/cosmos-sdk/x/nft"; 5 | 6 | import "cosmos_proto/cosmos.proto"; 7 | import "cosmos/msg/v1/msg.proto"; 8 | 9 | // Msg defines the nft Msg service. 10 | service Msg { 11 | option (cosmos.msg.v1.service) = true; 12 | 13 | // Send defines a method to send a nft from one account to another account. 14 | rpc Send(MsgSend) returns (MsgSendResponse); 15 | } 16 | 17 | // MsgSend represents a message to send a nft from one account to another account. 18 | message MsgSend { 19 | option (cosmos.msg.v1.signer) = "sender"; 20 | 21 | // class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 22 | string class_id = 1; 23 | 24 | // id defines the unique identification of nft 25 | string id = 2; 26 | 27 | // sender is the address of the owner of nft 28 | string sender = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 29 | 30 | // receiver is the receiver address of nft 31 | string receiver = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; 32 | } 33 | // MsgSendResponse defines the Msg/Send response type. 34 | message MsgSendResponse {} -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/orm/module/v1alpha1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.orm.module.v1alpha1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module defines the ORM module which adds providers to the app container for 8 | // module-scoped DB's. In the future it may provide gRPC services for interacting 9 | // with ORM data. 10 | message Module { 11 | option (cosmos.app.v1alpha1.module) = { 12 | go_import: "github.com/cosmos/cosmos-sdk/orm" 13 | }; 14 | } 15 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/params/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.params.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the params module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/params" 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/params/v1beta1/params.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package cosmos.params.v1beta1; 3 | 4 | option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal"; 5 | option (gogoproto.equal_all) = true; 6 | 7 | import "gogoproto/gogo.proto"; 8 | import "cosmos_proto/cosmos.proto"; 9 | import "amino/amino.proto"; 10 | 11 | // ParameterChangeProposal defines a proposal to change one or more parameters. 12 | message ParameterChangeProposal { 13 | option (gogoproto.goproto_getters) = false; 14 | option (gogoproto.goproto_stringer) = false; 15 | option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content"; 16 | option (amino.name) = "cosmos-sdk/ParameterChangeProposal"; 17 | 18 | string title = 1; 19 | string description = 2; 20 | repeated ParamChange changes = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; 21 | } 22 | 23 | // ParamChange defines an individual parameter change, for use in 24 | // ParameterChangeProposal. 25 | message ParamChange { 26 | option (gogoproto.goproto_stringer) = false; 27 | 28 | string subspace = 1; 29 | string key = 2; 30 | string value = 3; 31 | } 32 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/reflection/v1/reflection.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.reflection.v1; 4 | 5 | import "google/protobuf/descriptor.proto"; 6 | import "cosmos/query/v1/query.proto"; 7 | 8 | // Package cosmos.reflection.v1 provides support for inspecting protobuf 9 | // file descriptors. 10 | service ReflectionService { 11 | // FileDescriptors queries all the file descriptors in the app in order 12 | // to enable easier generation of dynamic clients. 13 | rpc FileDescriptors(FileDescriptorsRequest) returns (FileDescriptorsResponse) { 14 | // NOTE: file descriptors SHOULD NOT be part of consensus because they 15 | // include changes to doc commands and module_query_safe should be kept as false. 16 | option (cosmos.query.v1.module_query_safe) = false; 17 | } 18 | } 19 | 20 | // FileDescriptorsRequest is the Query/FileDescriptors request type. 21 | message FileDescriptorsRequest {} 22 | 23 | // FileDescriptorsResponse is the Query/FileDescriptors response type. 24 | message FileDescriptorsResponse { 25 | // files is the file descriptors. 26 | repeated google.protobuf.FileDescriptorProto files = 1; 27 | } 28 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/slashing/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.slashing.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the slashing module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/slashing" 11 | }; 12 | 13 | // authority defines the custom module authority. If not set, defaults to the governance module. 14 | string authority = 1; 15 | } 16 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/staking/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.staking.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the staking module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/staking" 11 | }; 12 | 13 | // hooks_order specifies the order of staking hooks and should be a list 14 | // of module names which provide a staking hooks instance. If no order is 15 | // provided, then hooks will be applied in alphabetical order of module names. 16 | repeated string hooks_order = 1; 17 | 18 | // authority defines the custom module authority. If not set, defaults to the governance module. 19 | string authority = 2; 20 | } 21 | -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/tx/config/v1/config.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.tx.config.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Config is the config object of the x/auth/tx package. 8 | message Config { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/auth/tx" 11 | }; 12 | 13 | // skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override 14 | // this functionality. 15 | bool skip_ante_handler = 1; 16 | 17 | // skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override 18 | // this functionality. 19 | bool skip_post_handler = 2; 20 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/upgrade/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.upgrade.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the upgrade module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/upgrade" 11 | }; 12 | 13 | // authority defines the custom module authority. If not set, defaults to the governance module. 14 | string authority = 1; 15 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/cosmos/vesting/module/v1/module.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package cosmos.vesting.module.v1; 4 | 5 | import "cosmos/app/v1alpha1/module.proto"; 6 | 7 | // Module is the config object of the vesting module. 8 | message Module { 9 | option (cosmos.app.v1alpha1.module) = { 10 | go_import: "github.com/cosmos/cosmos-sdk/x/auth/vesting" 11 | }; 12 | } -------------------------------------------------------------------------------- /packages/osmojs/proto/google/api/annotations.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.api; 18 | 19 | import "google/api/http.proto"; 20 | import "google/protobuf/descriptor.proto"; 21 | 22 | option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; 23 | option java_multiple_files = true; 24 | option java_outer_classname = "AnnotationsProto"; 25 | option java_package = "com.google.api"; 26 | option objc_class_prefix = "GAPI"; 27 | 28 | extend google.protobuf.MethodOptions { 29 | // See `HttpRule`. 30 | HttpRule http = 72295728; 31 | } 32 | -------------------------------------------------------------------------------- /packages/osmojs/proto/tendermint/crypto/keys.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tendermint.crypto; 3 | 4 | option go_package = "github.com/cometbft/cometbft/proto/tendermint/crypto"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | 8 | // PublicKey defines the keys available for use with Validators 9 | message PublicKey { 10 | option (gogoproto.compare) = true; 11 | option (gogoproto.equal) = true; 12 | 13 | oneof sum { 14 | bytes ed25519 = 1; 15 | bytes secp256k1 = 2; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/osmojs/proto/tendermint/crypto/proof.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tendermint.crypto; 3 | 4 | option go_package = "github.com/cometbft/cometbft/proto/tendermint/crypto"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | 8 | message Proof { 9 | int64 total = 1; 10 | int64 index = 2; 11 | bytes leaf_hash = 3; 12 | repeated bytes aunts = 4; 13 | } 14 | 15 | message ValueOp { 16 | // Encoded in ProofOp.Key. 17 | bytes key = 1; 18 | 19 | // To encode in ProofOp.Data 20 | Proof proof = 2; 21 | } 22 | 23 | message DominoOp { 24 | string key = 1; 25 | string input = 2; 26 | string output = 3; 27 | } 28 | 29 | // ProofOp defines an operation used for calculating Merkle root 30 | // The data could be arbitrary format, providing nessecary data 31 | // for example neighbouring node hash 32 | message ProofOp { 33 | string type = 1; 34 | bytes key = 2; 35 | bytes data = 3; 36 | } 37 | 38 | // ProofOps is Merkle proof defined by the list of ProofOps 39 | message ProofOps { 40 | repeated ProofOp ops = 1 [(gogoproto.nullable) = false]; 41 | } 42 | -------------------------------------------------------------------------------- /packages/osmojs/proto/tendermint/libs/bits/types.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tendermint.libs.bits; 3 | 4 | option go_package = "github.com/cometbft/cometbft/proto/tendermint/libs/bits"; 5 | 6 | message BitArray { 7 | int64 bits = 1; 8 | repeated uint64 elems = 2; 9 | } 10 | -------------------------------------------------------------------------------- /packages/osmojs/proto/tendermint/p2p/types.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tendermint.p2p; 3 | 4 | option go_package = "github.com/cometbft/cometbft/proto/tendermint/p2p"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | 8 | message NetAddress { 9 | string id = 1 [(gogoproto.customname) = "ID"]; 10 | string ip = 2 [(gogoproto.customname) = "IP"]; 11 | uint32 port = 3; 12 | } 13 | 14 | message ProtocolVersion { 15 | uint64 p2p = 1 [(gogoproto.customname) = "P2P"]; 16 | uint64 block = 2; 17 | uint64 app = 3; 18 | } 19 | 20 | message DefaultNodeInfo { 21 | ProtocolVersion protocol_version = 1 [(gogoproto.nullable) = false]; 22 | string default_node_id = 2 [(gogoproto.customname) = "DefaultNodeID"]; 23 | string listen_addr = 3; 24 | string network = 4; 25 | string version = 5; 26 | bytes channels = 6; 27 | string moniker = 7; 28 | DefaultNodeInfoOther other = 8 [(gogoproto.nullable) = false]; 29 | } 30 | 31 | message DefaultNodeInfoOther { 32 | string tx_index = 1; 33 | string rpc_address = 2 [(gogoproto.customname) = "RPCAddress"]; 34 | } 35 | -------------------------------------------------------------------------------- /packages/osmojs/proto/tendermint/types/block.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tendermint.types; 3 | 4 | option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | import "tendermint/types/types.proto"; 8 | import "tendermint/types/evidence.proto"; 9 | 10 | message Block { 11 | Header header = 1 [(gogoproto.nullable) = false]; 12 | Data data = 2 [(gogoproto.nullable) = false]; 13 | tendermint.types.EvidenceList evidence = 3 [(gogoproto.nullable) = false]; 14 | Commit last_commit = 4; 15 | } 16 | -------------------------------------------------------------------------------- /packages/osmojs/proto/tendermint/types/validator.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tendermint.types; 3 | 4 | option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | import "tendermint/crypto/keys.proto"; 8 | 9 | message ValidatorSet { 10 | repeated Validator validators = 1; 11 | Validator proposer = 2; 12 | int64 total_voting_power = 3; 13 | } 14 | 15 | message Validator { 16 | bytes address = 1; 17 | tendermint.crypto.PublicKey pub_key = 2 [(gogoproto.nullable) = false]; 18 | int64 voting_power = 3; 19 | int64 proposer_priority = 4; 20 | } 21 | 22 | message SimpleValidator { 23 | tendermint.crypto.PublicKey pub_key = 1; 24 | int64 voting_power = 2; 25 | } 26 | -------------------------------------------------------------------------------- /packages/osmojs/proto/tendermint/version/types.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tendermint.version; 3 | 4 | option go_package = "github.com/cometbft/cometbft/proto/tendermint/version"; 5 | 6 | import "gogoproto/gogo.proto"; 7 | 8 | // App includes the protocol and software version for the application. 9 | // This information is included in ResponseInfo. The App.Protocol can be 10 | // updated in ResponseEndBlock. 11 | message App { 12 | uint64 protocol = 1; 13 | string software = 2; 14 | } 15 | 16 | // Consensus captures the consensus rules for processing a block in the blockchain, 17 | // including all blockchain data structures and the rules of the application's 18 | // state transition machine. 19 | message Consensus { 20 | option (gogoproto.equal) = true; 21 | 22 | uint64 block = 1; 23 | uint64 app = 2; 24 | } 25 | -------------------------------------------------------------------------------- /packages/osmojs/src/amino/amino.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmojs/src/amino/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _222 from "./amino"; 3 | export const amino = { 4 | ..._222 5 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/capability/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _72 from "./v1/capability"; 3 | import * as _73 from "./v1/genesis"; 4 | export namespace capability { 5 | export const v1 = { 6 | ..._72, 7 | ..._73 8 | }; 9 | } -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/auth/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.auth.v1beta1.MsgUpdateParams": { 5 | aminoType: "cosmos-sdk/x/auth/MsgUpdateParams", 6 | toAmino: MsgUpdateParams.toAmino, 7 | fromAmino: MsgUpdateParams.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/auth/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgUpdateParams } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | updateParams(value: MsgUpdateParams) { 13 | return { 14 | typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", 15 | value: MsgUpdateParams.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | updateParams(value: MsgUpdateParams) { 21 | return { 22 | typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | updateParams(value: MsgUpdateParams) { 29 | return { 30 | typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", 31 | value: MsgUpdateParams.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/auth/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx"; 5 | /** Msg defines the x/auth Msg service. */ 6 | export interface Msg { 7 | /** 8 | * UpdateParams defines a (governance) operation for updating the x/auth module 9 | * parameters. The authority defaults to the x/gov module account. 10 | * 11 | * Since: cosmos-sdk 0.47 12 | */ 13 | updateParams(request: MsgUpdateParams): Promise; 14 | } 15 | export class MsgClientImpl implements Msg { 16 | private readonly rpc: Rpc; 17 | constructor(rpc: Rpc) { 18 | this.rpc = rpc; 19 | this.updateParams = this.updateParams.bind(this); 20 | } 21 | updateParams(request: MsgUpdateParams): Promise { 22 | const data = MsgUpdateParams.encode(request).finish(); 23 | const promise = this.rpc.request("cosmos.auth.v1beta1.Msg", "UpdateParams", data); 24 | return promise.then(data => MsgUpdateParamsResponse.decode(new BinaryReader(data))); 25 | } 26 | } 27 | export const createClientImpl = (rpc: Rpc) => { 28 | return new MsgClientImpl(rpc); 29 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/authz/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.authz.v1beta1.MsgGrant": { 5 | aminoType: "cosmos-sdk/MsgGrant", 6 | toAmino: MsgGrant.toAmino, 7 | fromAmino: MsgGrant.fromAmino 8 | }, 9 | "/cosmos.authz.v1beta1.MsgExec": { 10 | aminoType: "cosmos-sdk/MsgExec", 11 | toAmino: MsgExec.toAmino, 12 | fromAmino: MsgExec.fromAmino 13 | }, 14 | "/cosmos.authz.v1beta1.MsgRevoke": { 15 | aminoType: "cosmos-sdk/MsgRevoke", 16 | toAmino: MsgRevoke.toAmino, 17 | fromAmino: MsgRevoke.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/bank/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSend, MsgMultiSend, MsgUpdateParams, MsgSetSendEnabled } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.bank.v1beta1.MsgSend": { 5 | aminoType: "cosmos-sdk/MsgSend", 6 | toAmino: MsgSend.toAmino, 7 | fromAmino: MsgSend.fromAmino 8 | }, 9 | "/cosmos.bank.v1beta1.MsgMultiSend": { 10 | aminoType: "cosmos-sdk/MsgMultiSend", 11 | toAmino: MsgMultiSend.toAmino, 12 | fromAmino: MsgMultiSend.fromAmino 13 | }, 14 | "/cosmos.bank.v1beta1.MsgUpdateParams": { 15 | aminoType: "cosmos-sdk/x/bank/MsgUpdateParams", 16 | toAmino: MsgUpdateParams.toAmino, 17 | fromAmino: MsgUpdateParams.fromAmino 18 | }, 19 | "/cosmos.bank.v1beta1.MsgSetSendEnabled": { 20 | aminoType: "cosmos-sdk/MsgSetSendEnabled", 21 | toAmino: MsgSetSendEnabled.toAmino, 22 | fromAmino: MsgSetSendEnabled.fromAmino 23 | } 24 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/base/node/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { ConfigRequest, ConfigResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.config = this.config.bind(this); 13 | } 14 | /* Config queries for the operator configuration. */ 15 | async config(_params: ConfigRequest = {}): Promise { 16 | const endpoint = `cosmos/base/node/v1beta1/config`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/base/node/v1beta1/query.rpc.Service.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../../helpers"; 3 | import { BinaryReader } from "../../../../binary"; 4 | import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; 5 | import { ConfigRequest, ConfigResponse } from "./query"; 6 | /** Service defines the gRPC querier service for node related queries. */ 7 | export interface Service { 8 | /** Config queries for the operator configuration. */ 9 | config(request?: ConfigRequest): Promise; 10 | } 11 | export class ServiceClientImpl implements Service { 12 | private readonly rpc: Rpc; 13 | constructor(rpc: Rpc) { 14 | this.rpc = rpc; 15 | this.config = this.config.bind(this); 16 | } 17 | config(request: ConfigRequest = {}): Promise { 18 | const data = ConfigRequest.encode(request).finish(); 19 | const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data); 20 | return promise.then(data => ConfigResponse.decode(new BinaryReader(data))); 21 | } 22 | } 23 | export const createRpcQueryExtension = (base: QueryClient) => { 24 | const rpc = createProtobufRpcClient(base); 25 | const queryService = new ServiceClientImpl(rpc); 26 | return { 27 | config(request?: ConfigRequest): Promise { 28 | return queryService.config(request); 29 | } 30 | }; 31 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/consensus/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | } 14 | /* Params queries the parameters of x/consensus_param module. */ 15 | async params(_params: QueryParamsRequest = {}): Promise { 16 | const endpoint = `cosmos/consensus/v1/params`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/consensus/v1/query.rpc.Query.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; 5 | import { QueryParamsRequest, QueryParamsResponse } from "./query"; 6 | /** Query defines the gRPC querier service. */ 7 | export interface Query { 8 | /** Params queries the parameters of x/consensus_param module. */ 9 | params(request?: QueryParamsRequest): Promise; 10 | } 11 | export class QueryClientImpl implements Query { 12 | private readonly rpc: Rpc; 13 | constructor(rpc: Rpc) { 14 | this.rpc = rpc; 15 | this.params = this.params.bind(this); 16 | } 17 | params(request: QueryParamsRequest = {}): Promise { 18 | const data = QueryParamsRequest.encode(request).finish(); 19 | const promise = this.rpc.request("cosmos.consensus.v1.Query", "Params", data); 20 | return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); 21 | } 22 | } 23 | export const createRpcQueryExtension = (base: QueryClient) => { 24 | const rpc = createProtobufRpcClient(base); 25 | const queryService = new QueryClientImpl(rpc); 26 | return { 27 | params(request?: QueryParamsRequest): Promise { 28 | return queryService.params(request); 29 | } 30 | }; 31 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/consensus/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.consensus.v1.MsgUpdateParams": { 5 | aminoType: "cosmos-sdk/MsgUpdateParams", 6 | toAmino: MsgUpdateParams.toAmino, 7 | fromAmino: MsgUpdateParams.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/consensus/v1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgUpdateParams } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | updateParams(value: MsgUpdateParams) { 13 | return { 14 | typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", 15 | value: MsgUpdateParams.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | updateParams(value: MsgUpdateParams) { 21 | return { 22 | typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | updateParams(value: MsgUpdateParams) { 29 | return { 30 | typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", 31 | value: MsgUpdateParams.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/consensus/v1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx"; 5 | /** Msg defines the bank Msg service. */ 6 | export interface Msg { 7 | /** 8 | * UpdateParams defines a governance operation for updating the x/consensus_param module parameters. 9 | * The authority is defined in the keeper. 10 | * 11 | * Since: cosmos-sdk 0.47 12 | */ 13 | updateParams(request: MsgUpdateParams): Promise; 14 | } 15 | export class MsgClientImpl implements Msg { 16 | private readonly rpc: Rpc; 17 | constructor(rpc: Rpc) { 18 | this.rpc = rpc; 19 | this.updateParams = this.updateParams.bind(this); 20 | } 21 | updateParams(request: MsgUpdateParams): Promise { 22 | const data = MsgUpdateParams.encode(request).finish(); 23 | const promise = this.rpc.request("cosmos.consensus.v1.Msg", "UpdateParams", data); 24 | return promise.then(data => MsgUpdateParamsResponse.decode(new BinaryReader(data))); 25 | } 26 | } 27 | export const createClientImpl = (rpc: Rpc) => { 28 | return new MsgClientImpl(rpc); 29 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/gov/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.gov.v1beta1.MsgSubmitProposal": { 5 | aminoType: "cosmos-sdk/MsgSubmitProposal", 6 | toAmino: MsgSubmitProposal.toAmino, 7 | fromAmino: MsgSubmitProposal.fromAmino 8 | }, 9 | "/cosmos.gov.v1beta1.MsgVote": { 10 | aminoType: "cosmos-sdk/MsgVote", 11 | toAmino: MsgVote.toAmino, 12 | fromAmino: MsgVote.fromAmino 13 | }, 14 | "/cosmos.gov.v1beta1.MsgVoteWeighted": { 15 | aminoType: "cosmos-sdk/MsgVoteWeighted", 16 | toAmino: MsgVoteWeighted.toAmino, 17 | fromAmino: MsgVoteWeighted.fromAmino 18 | }, 19 | "/cosmos.gov.v1beta1.MsgDeposit": { 20 | aminoType: "cosmos-sdk/MsgDeposit", 21 | toAmino: MsgDeposit.toAmino, 22 | fromAmino: MsgDeposit.fromAmino 23 | } 24 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/msg/v1/msg.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/query/v1/query.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/rpc.tx.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../helpers"; 3 | export const createRPCMsgClient = async ({ 4 | rpc 5 | }: { 6 | rpc: Rpc; 7 | }) => ({ 8 | cosmos: { 9 | auth: { 10 | v1beta1: new (await import("./auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 11 | }, 12 | authz: { 13 | v1beta1: new (await import("./authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 14 | }, 15 | bank: { 16 | v1beta1: new (await import("./bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 17 | }, 18 | consensus: { 19 | v1: new (await import("./consensus/v1/tx.rpc.msg")).MsgClientImpl(rpc) 20 | }, 21 | distribution: { 22 | v1beta1: new (await import("./distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 23 | }, 24 | gov: { 25 | v1beta1: new (await import("./gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 26 | }, 27 | staking: { 28 | v1beta1: new (await import("./staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 29 | }, 30 | upgrade: { 31 | v1beta1: new (await import("./upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 32 | } 33 | } 34 | }); -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos/upgrade/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; 3 | export const AminoConverter = { 4 | "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { 5 | aminoType: "cosmos-sdk/MsgSoftwareUpgrade", 6 | toAmino: MsgSoftwareUpgrade.toAmino, 7 | fromAmino: MsgSoftwareUpgrade.fromAmino 8 | }, 9 | "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { 10 | aminoType: "cosmos-sdk/MsgCancelUpgrade", 11 | toAmino: MsgCancelUpgrade.toAmino, 12 | fromAmino: MsgCancelUpgrade.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmos_proto/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _223 from "./cosmos"; 3 | export const cosmos_proto = { 4 | ..._223 5 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/cosmwasm/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _118 from "./wasm/v1/authz"; 3 | import * as _119 from "./wasm/v1/genesis"; 4 | import * as _120 from "./wasm/v1/ibc"; 5 | import * as _121 from "./wasm/v1/proposal_legacy"; 6 | import * as _122 from "./wasm/v1/query"; 7 | import * as _123 from "./wasm/v1/tx"; 8 | import * as _124 from "./wasm/v1/types"; 9 | import * as _325 from "./wasm/v1/tx.amino"; 10 | import * as _326 from "./wasm/v1/tx.registry"; 11 | import * as _327 from "./wasm/v1/query.lcd"; 12 | import * as _328 from "./wasm/v1/query.rpc.Query"; 13 | import * as _329 from "./wasm/v1/tx.rpc.msg"; 14 | import * as _421 from "./lcd"; 15 | import * as _422 from "./rpc.query"; 16 | import * as _423 from "./rpc.tx"; 17 | export namespace cosmwasm { 18 | export namespace wasm { 19 | export const v1 = { 20 | ..._118, 21 | ..._119, 22 | ..._120, 23 | ..._121, 24 | ..._122, 25 | ..._123, 26 | ..._124, 27 | ..._325, 28 | ..._326, 29 | ..._327, 30 | ..._328, 31 | ..._329 32 | }; 33 | } 34 | export const ClientFactory = { 35 | ..._421, 36 | ..._422, 37 | ..._423 38 | }; 39 | } -------------------------------------------------------------------------------- /packages/osmojs/src/cosmwasm/rpc.tx.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../helpers"; 3 | export const createRPCMsgClient = async ({ 4 | rpc 5 | }: { 6 | rpc: Rpc; 7 | }) => ({ 8 | cosmos: { 9 | auth: { 10 | v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 11 | }, 12 | authz: { 13 | v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 14 | }, 15 | bank: { 16 | v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 17 | }, 18 | consensus: { 19 | v1: new (await import("../cosmos/consensus/v1/tx.rpc.msg")).MsgClientImpl(rpc) 20 | }, 21 | distribution: { 22 | v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 23 | }, 24 | gov: { 25 | v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 26 | }, 27 | staking: { 28 | v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 29 | }, 30 | upgrade: { 31 | v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) 32 | } 33 | }, 34 | cosmwasm: { 35 | wasm: { 36 | v1: new (await import("./wasm/v1/tx.rpc.msg")).MsgClientImpl(rpc) 37 | } 38 | } 39 | }); -------------------------------------------------------------------------------- /packages/osmojs/src/gogoproto/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _224 from "./gogo"; 3 | export const gogoproto = { 4 | ..._224 5 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmojs/src/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmojs/src/google/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _236 from "./protobuf/any"; 3 | import * as _237 from "./protobuf/duration"; 4 | import * as _238 from "./protobuf/timestamp"; 5 | import * as _239 from "./protobuf/descriptor"; 6 | export namespace google { 7 | export const protobuf = { 8 | ..._236, 9 | ..._237, 10 | ..._238, 11 | ..._239 12 | }; 13 | } -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/applications/fee/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgRegisterPayee, MsgRegisterCounterpartyPayee, MsgPayPacketFee, MsgPayPacketFeeAsync } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.fee.v1.MsgRegisterPayee": { 5 | aminoType: "cosmos-sdk/MsgRegisterPayee", 6 | toAmino: MsgRegisterPayee.toAmino, 7 | fromAmino: MsgRegisterPayee.fromAmino 8 | }, 9 | "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee": { 10 | aminoType: "cosmos-sdk/MsgRegisterCounterpartyPayee", 11 | toAmino: MsgRegisterCounterpartyPayee.toAmino, 12 | fromAmino: MsgRegisterCounterpartyPayee.fromAmino 13 | }, 14 | "/ibc.applications.fee.v1.MsgPayPacketFee": { 15 | aminoType: "cosmos-sdk/MsgPayPacketFee", 16 | toAmino: MsgPayPacketFee.toAmino, 17 | fromAmino: MsgPayPacketFee.fromAmino 18 | }, 19 | "/ibc.applications.fee.v1.MsgPayPacketFeeAsync": { 20 | aminoType: "cosmos-sdk/MsgPayPacketFeeAsync", 21 | toAmino: MsgPayPacketFeeAsync.toAmino, 22 | fromAmino: MsgPayPacketFeeAsync.fromAmino 23 | } 24 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.interchainAccount = this.interchainAccount.bind(this); 13 | this.params = this.params.bind(this); 14 | } 15 | /* InterchainAccount returns the interchain account address for a given owner address on a given connection */ 16 | async interchainAccount(params: QueryInterchainAccountRequest): Promise { 17 | const endpoint = `ibc/apps/interchain_accounts/controller/v1/owners/${params.owner}/connections/${params.connectionId}`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* Params queries all parameters of the ICA controller submodule. */ 21 | async params(_params: QueryParamsRequest = {}): Promise { 22 | const endpoint = `ibc/apps/interchain_accounts/controller/v1/params`; 23 | return await this.req.get(endpoint); 24 | } 25 | } -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgRegisterInterchainAccount, MsgSendTx, MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount": { 5 | aminoType: "cosmos-sdk/MsgRegisterInterchainAccount", 6 | toAmino: MsgRegisterInterchainAccount.toAmino, 7 | fromAmino: MsgRegisterInterchainAccount.fromAmino 8 | }, 9 | "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx": { 10 | aminoType: "cosmos-sdk/MsgSendTx", 11 | toAmino: MsgSendTx.toAmino, 12 | fromAmino: MsgSendTx.fromAmino 13 | }, 14 | "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams": { 15 | aminoType: "cosmos-sdk/MsgUpdateParams", 16 | toAmino: MsgUpdateParams.toAmino, 17 | fromAmino: MsgUpdateParams.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/applications/interchain_accounts/host/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | } 14 | /* Params queries all parameters of the ICA host submodule. */ 15 | async params(_params: QueryParamsRequest = {}): Promise { 16 | const endpoint = `ibc/apps/interchain_accounts/host/v1/params`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../../../helpers"; 3 | import { BinaryReader } from "../../../../../binary"; 4 | import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; 5 | import { QueryParamsRequest, QueryParamsResponse } from "./query"; 6 | /** Query provides defines the gRPC querier service. */ 7 | export interface Query { 8 | /** Params queries all parameters of the ICA host submodule. */ 9 | params(request?: QueryParamsRequest): Promise; 10 | } 11 | export class QueryClientImpl implements Query { 12 | private readonly rpc: Rpc; 13 | constructor(rpc: Rpc) { 14 | this.rpc = rpc; 15 | this.params = this.params.bind(this); 16 | } 17 | params(request: QueryParamsRequest = {}): Promise { 18 | const data = QueryParamsRequest.encode(request).finish(); 19 | const promise = this.rpc.request("ibc.applications.interchain_accounts.host.v1.Query", "Params", data); 20 | return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); 21 | } 22 | } 23 | export const createRpcQueryExtension = (base: QueryClient) => { 24 | const rpc = createProtobufRpcClient(base); 25 | const queryService = new QueryClientImpl(rpc); 26 | return { 27 | params(request?: QueryParamsRequest): Promise { 28 | return queryService.params(request); 29 | } 30 | }; 31 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/applications/interchain_accounts/host/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgUpdateParams, MsgModuleQuerySafe } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams": { 5 | aminoType: "cosmos-sdk/MsgUpdateParams", 6 | toAmino: MsgUpdateParams.toAmino, 7 | fromAmino: MsgUpdateParams.fromAmino 8 | }, 9 | "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe": { 10 | aminoType: "cosmos-sdk/MsgModuleQuerySafe", 11 | toAmino: MsgModuleQuerySafe.toAmino, 12 | fromAmino: MsgModuleQuerySafe.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/applications/transfer/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgTransfer, MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.applications.transfer.v1.MsgTransfer": { 5 | aminoType: "cosmos-sdk/MsgTransfer", 6 | toAmino: MsgTransfer.toAmino, 7 | fromAmino: MsgTransfer.fromAmino 8 | }, 9 | "/ibc.applications.transfer.v1.MsgUpdateParams": { 10 | aminoType: "cosmos-sdk/MsgUpdateParams", 11 | toAmino: MsgUpdateParams.toAmino, 12 | fromAmino: MsgUpdateParams.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/core/connection/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgConnectionOpenConfirm, MsgUpdateParams } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.core.connection.v1.MsgConnectionOpenInit": { 5 | aminoType: "cosmos-sdk/MsgConnectionOpenInit", 6 | toAmino: MsgConnectionOpenInit.toAmino, 7 | fromAmino: MsgConnectionOpenInit.fromAmino 8 | }, 9 | "/ibc.core.connection.v1.MsgConnectionOpenTry": { 10 | aminoType: "cosmos-sdk/MsgConnectionOpenTry", 11 | toAmino: MsgConnectionOpenTry.toAmino, 12 | fromAmino: MsgConnectionOpenTry.fromAmino 13 | }, 14 | "/ibc.core.connection.v1.MsgConnectionOpenAck": { 15 | aminoType: "cosmos-sdk/MsgConnectionOpenAck", 16 | toAmino: MsgConnectionOpenAck.toAmino, 17 | fromAmino: MsgConnectionOpenAck.fromAmino 18 | }, 19 | "/ibc.core.connection.v1.MsgConnectionOpenConfirm": { 20 | aminoType: "cosmos-sdk/MsgConnectionOpenConfirm", 21 | toAmino: MsgConnectionOpenConfirm.toAmino, 22 | fromAmino: MsgConnectionOpenConfirm.fromAmino 23 | }, 24 | "/ibc.core.connection.v1.MsgUpdateParams": { 25 | aminoType: "cosmos-sdk/MsgUpdateParams", 26 | toAmino: MsgUpdateParams.toAmino, 27 | fromAmino: MsgUpdateParams.fromAmino 28 | } 29 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/lightclients/wasm/v1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { setPaginationParams } from "../../../../helpers"; 3 | import { LCDClient } from "@cosmology/lcd"; 4 | import { QueryChecksumsRequest, QueryChecksumsResponseSDKType, QueryCodeRequest, QueryCodeResponseSDKType } from "./query"; 5 | export class LCDQueryClient { 6 | req: LCDClient; 7 | constructor({ 8 | requestClient 9 | }: { 10 | requestClient: LCDClient; 11 | }) { 12 | this.req = requestClient; 13 | this.checksums = this.checksums.bind(this); 14 | this.code = this.code.bind(this); 15 | } 16 | /* Get all Wasm checksums */ 17 | async checksums(params: QueryChecksumsRequest = { 18 | pagination: undefined 19 | }): Promise { 20 | const options: any = { 21 | params: {} 22 | }; 23 | if (typeof params?.pagination !== "undefined") { 24 | setPaginationParams(options, params.pagination); 25 | } 26 | const endpoint = `ibc/lightclients/wasm/v1/checksums`; 27 | return await this.req.get(endpoint, options); 28 | } 29 | /* Get Wasm code for given checksum */ 30 | async code(params: QueryCodeRequest): Promise { 31 | const endpoint = `ibc/lightclients/wasm/v1/checksums/${params.checksum}/code`; 32 | return await this.req.get(endpoint); 33 | } 34 | } -------------------------------------------------------------------------------- /packages/osmojs/src/ibc/lightclients/wasm/v1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgStoreCode, MsgRemoveChecksum, MsgMigrateContract } from "./tx"; 3 | export const AminoConverter = { 4 | "/ibc.lightclients.wasm.v1.MsgStoreCode": { 5 | aminoType: "cosmos-sdk/MsgStoreCode", 6 | toAmino: MsgStoreCode.toAmino, 7 | fromAmino: MsgStoreCode.fromAmino 8 | }, 9 | "/ibc.lightclients.wasm.v1.MsgRemoveChecksum": { 10 | aminoType: "cosmos-sdk/MsgRemoveChecksum", 11 | toAmino: MsgRemoveChecksum.toAmino, 12 | fromAmino: MsgRemoveChecksum.fromAmino 13 | }, 14 | "/ibc.lightclients.wasm.v1.MsgMigrateContract": { 15 | aminoType: "cosmos-sdk/MsgMigrateContract", 16 | toAmino: MsgMigrateContract.toAmino, 17 | fromAmino: MsgMigrateContract.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/index.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | /** 3 | * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.4 4 | * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain 5 | * and run the transpile command or yarn proto command to regenerate this bundle. 6 | */ 7 | 8 | export * from "./cosmos/bundle"; 9 | export * from "./cosmos/client"; 10 | export * from "./capability/bundle"; 11 | export * from "./ibc/bundle"; 12 | export * from "./ibc/client"; 13 | export * from "./cosmwasm/bundle"; 14 | export * from "./cosmwasm/client"; 15 | export * from "./osmosis/bundle"; 16 | export * from "./osmosis/client"; 17 | export * from "./amino/bundle"; 18 | export * from "./cosmos_proto/bundle"; 19 | export * from "./gogoproto/bundle"; 20 | export * from "./tendermint/bundle"; 21 | export * from "./google/bundle"; 22 | export * from "./varint"; 23 | export * from "./utf8"; 24 | export * from "./binary"; 25 | export * from "./types"; 26 | export * from "./registry"; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateConcentratedPool } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool": { 5 | aminoType: "osmosis/concentratedliquidity/poolmodel/concentrated/create-concentrated-pool", 6 | toAmino: MsgCreateConcentratedPool.toAmino, 7 | fromAmino: MsgCreateConcentratedPool.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgCreateConcentratedPool } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", MsgCreateConcentratedPool]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | createConcentratedPool(value: MsgCreateConcentratedPool) { 13 | return { 14 | typeUrl: "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", 15 | value: MsgCreateConcentratedPool.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | createConcentratedPool(value: MsgCreateConcentratedPool) { 21 | return { 22 | typeUrl: "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | createConcentratedPool(value: MsgCreateConcentratedPool) { 29 | return { 30 | typeUrl: "/osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool", 31 | value: MsgCreateConcentratedPool.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../../../helpers"; 3 | import { BinaryReader } from "../../../../../binary"; 4 | import { MsgCreateConcentratedPool, MsgCreateConcentratedPoolResponse } from "./tx"; 5 | export interface Msg { 6 | createConcentratedPool(request: MsgCreateConcentratedPool): Promise; 7 | } 8 | export class MsgClientImpl implements Msg { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | this.createConcentratedPool = this.createConcentratedPool.bind(this); 13 | } 14 | createConcentratedPool(request: MsgCreateConcentratedPool): Promise { 15 | const data = MsgCreateConcentratedPool.encode(request).finish(); 16 | const promise = this.rpc.request("osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.Msg", "CreateConcentratedPool", data); 17 | return promise.then(data => MsgCreateConcentratedPoolResponse.decode(new BinaryReader(data))); 18 | } 19 | } 20 | export const createClientImpl = (rpc: Rpc) => { 21 | return new MsgClientImpl(rpc); 22 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/cosmwasmpool/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | export {} -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/downtimedetector/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { RecoveredSinceDowntimeOfLengthRequest, RecoveredSinceDowntimeOfLengthResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.recoveredSinceDowntimeOfLength = this.recoveredSinceDowntimeOfLength.bind(this); 13 | } 14 | /* RecoveredSinceDowntimeOfLength */ 15 | async recoveredSinceDowntimeOfLength(params: RecoveredSinceDowntimeOfLengthRequest): Promise { 16 | const options: any = { 17 | params: {} 18 | }; 19 | if (typeof params?.downtime !== "undefined") { 20 | options.params.downtime = params.downtime; 21 | } 22 | if (typeof params?.recovery !== "undefined") { 23 | options.params.recovery = params.recovery; 24 | } 25 | const endpoint = `osmosis/downtime-detector/v1beta1/RecoveredSinceDowntimeOfLength`; 26 | return await this.req.get(endpoint, options); 27 | } 28 | } -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/epochs/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryEpochsInfoRequest, QueryEpochsInfoResponseSDKType, QueryCurrentEpochRequest, QueryCurrentEpochResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.epochInfos = this.epochInfos.bind(this); 13 | this.currentEpoch = this.currentEpoch.bind(this); 14 | } 15 | /* EpochInfos provide running epochInfos */ 16 | async epochInfos(_params: QueryEpochsInfoRequest = {}): Promise { 17 | const endpoint = `osmosis/epochs/v1beta1/epochs`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* CurrentEpoch provide current epoch of specified identifier */ 21 | async currentEpoch(params: QueryCurrentEpochRequest): Promise { 22 | const options: any = { 23 | params: {} 24 | }; 25 | if (typeof params?.identifier !== "undefined") { 26 | options.params.identifier = params.identifier; 27 | } 28 | const endpoint = `osmosis/epochs/v1beta1/current_epoch`; 29 | return await this.req.get(endpoint, options); 30 | } 31 | } -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/gamm/poolmodels/balancer/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateBalancerPool } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool": { 5 | aminoType: "osmosis/gamm/create-balancer-pool", 6 | toAmino: MsgCreateBalancerPool.toAmino, 7 | fromAmino: MsgCreateBalancerPool.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/gamm/poolmodels/balancer/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgCreateBalancerPool } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", MsgCreateBalancerPool]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | createBalancerPool(value: MsgCreateBalancerPool) { 13 | return { 14 | typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", 15 | value: MsgCreateBalancerPool.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | createBalancerPool(value: MsgCreateBalancerPool) { 21 | return { 22 | typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | createBalancerPool(value: MsgCreateBalancerPool) { 29 | return { 30 | typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool", 31 | value: MsgCreateBalancerPool.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/gamm/poolmodels/balancer/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../../../helpers"; 3 | import { BinaryReader } from "../../../../../binary"; 4 | import { MsgCreateBalancerPool, MsgCreateBalancerPoolResponse } from "./tx"; 5 | export interface Msg { 6 | createBalancerPool(request: MsgCreateBalancerPool): Promise; 7 | } 8 | export class MsgClientImpl implements Msg { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | this.createBalancerPool = this.createBalancerPool.bind(this); 13 | } 14 | createBalancerPool(request: MsgCreateBalancerPool): Promise { 15 | const data = MsgCreateBalancerPool.encode(request).finish(); 16 | const promise = this.rpc.request("osmosis.gamm.poolmodels.balancer.v1beta1.Msg", "CreateBalancerPool", data); 17 | return promise.then(data => MsgCreateBalancerPoolResponse.decode(new BinaryReader(data))); 18 | } 19 | } 20 | export const createClientImpl = (rpc: Rpc) => { 21 | return new MsgClientImpl(rpc); 22 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/gamm/poolmodels/stableswap/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateStableswapPool, MsgStableSwapAdjustScalingFactors } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPool": { 5 | aminoType: "osmosis/gamm/create-stableswap-pool", 6 | toAmino: MsgCreateStableswapPool.toAmino, 7 | fromAmino: MsgCreateStableswapPool.fromAmino 8 | }, 9 | "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactors": { 10 | aminoType: "osmosis/gamm/stableswap-adjust-scaling-factors", 11 | toAmino: MsgStableSwapAdjustScalingFactors.toAmino, 12 | fromAmino: MsgStableSwapAdjustScalingFactors.fromAmino 13 | } 14 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/gamm/v2/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QuerySpotPriceRequest, QuerySpotPriceResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.spotPrice = this.spotPrice.bind(this); 13 | } 14 | /* Deprecated: please use alternate in x/poolmanager */ 15 | async spotPrice(params: QuerySpotPriceRequest): Promise { 16 | const options: any = { 17 | params: {} 18 | }; 19 | if (typeof params?.baseAssetDenom !== "undefined") { 20 | options.params.base_asset_denom = params.baseAssetDenom; 21 | } 22 | if (typeof params?.quoteAssetDenom !== "undefined") { 23 | options.params.quote_asset_denom = params.quoteAssetDenom; 24 | } 25 | const endpoint = `osmosis/gamm/v2/pools/${params.poolId}/prices`; 26 | return await this.req.get(endpoint, options); 27 | } 28 | } -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/gamm/v2/query.rpc.Query.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; 5 | import { QuerySpotPriceRequest, QuerySpotPriceResponse } from "./query"; 6 | export interface Query { 7 | /** Deprecated: please use alternate in x/poolmanager */ 8 | spotPrice(request: QuerySpotPriceRequest): Promise; 9 | } 10 | export class QueryClientImpl implements Query { 11 | private readonly rpc: Rpc; 12 | constructor(rpc: Rpc) { 13 | this.rpc = rpc; 14 | this.spotPrice = this.spotPrice.bind(this); 15 | } 16 | spotPrice(request: QuerySpotPriceRequest): Promise { 17 | const data = QuerySpotPriceRequest.encode(request).finish(); 18 | const promise = this.rpc.request("osmosis.gamm.v2.Query", "SpotPrice", data); 19 | return promise.then(data => QuerySpotPriceResponse.decode(new BinaryReader(data))); 20 | } 21 | } 22 | export const createRpcQueryExtension = (base: QueryClient) => { 23 | const rpc = createProtobufRpcClient(base); 24 | const queryService = new QueryClientImpl(rpc); 25 | return { 26 | spotPrice(request: QuerySpotPriceRequest): Promise { 27 | return queryService.spotPrice(request); 28 | } 29 | }; 30 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/ibchooks/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgEmitIBCAck } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.ibchooks.MsgEmitIBCAck": { 5 | aminoType: "osmosis/ibchooks/emit-ibc-ack", 6 | toAmino: MsgEmitIBCAck.toAmino, 7 | fromAmino: MsgEmitIBCAck.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/ibchooks/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgEmitIBCAck } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.ibchooks.MsgEmitIBCAck", MsgEmitIBCAck]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | emitIBCAck(value: MsgEmitIBCAck) { 13 | return { 14 | typeUrl: "/osmosis.ibchooks.MsgEmitIBCAck", 15 | value: MsgEmitIBCAck.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | emitIBCAck(value: MsgEmitIBCAck) { 21 | return { 22 | typeUrl: "/osmosis.ibchooks.MsgEmitIBCAck", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | emitIBCAck(value: MsgEmitIBCAck) { 29 | return { 30 | typeUrl: "/osmosis.ibchooks.MsgEmitIBCAck", 31 | value: MsgEmitIBCAck.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/ibchooks/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../helpers"; 3 | import { BinaryReader } from "../../binary"; 4 | import { MsgEmitIBCAck, MsgEmitIBCAckResponse } from "./tx"; 5 | /** Msg defines the Msg service. */ 6 | export interface Msg { 7 | /** 8 | * EmitIBCAck checks the sender can emit the ack and writes the IBC 9 | * acknowledgement 10 | */ 11 | emitIBCAck(request: MsgEmitIBCAck): Promise; 12 | } 13 | export class MsgClientImpl implements Msg { 14 | private readonly rpc: Rpc; 15 | constructor(rpc: Rpc) { 16 | this.rpc = rpc; 17 | this.emitIBCAck = this.emitIBCAck.bind(this); 18 | } 19 | emitIBCAck(request: MsgEmitIBCAck): Promise { 20 | const data = MsgEmitIBCAck.encode(request).finish(); 21 | const promise = this.rpc.request("osmosis.ibchooks.Msg", "EmitIBCAck", data); 22 | return promise.then(data => MsgEmitIBCAckResponse.decode(new BinaryReader(data))); 23 | } 24 | } 25 | export const createClientImpl = (rpc: Rpc) => { 26 | return new MsgClientImpl(rpc); 27 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/ibcratelimit/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { ParamsRequest, ParamsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | } 14 | /* Params defines a gRPC query method that returns the ibc-rate-limit module's 15 | parameters. */ 16 | async params(_params: ParamsRequest = {}): Promise { 17 | const endpoint = `osmosis/ibc-rate-limit/v1beta1/params`; 18 | return await this.req.get(endpoint); 19 | } 20 | } -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/ibcratelimit/v1beta1/query.rpc.Query.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; 5 | import { ParamsRequest, ParamsResponse } from "./query"; 6 | /** Query defines the gRPC querier service. */ 7 | export interface Query { 8 | /** 9 | * Params defines a gRPC query method that returns the ibc-rate-limit module's 10 | * parameters. 11 | */ 12 | params(request?: ParamsRequest): Promise; 13 | } 14 | export class QueryClientImpl implements Query { 15 | private readonly rpc: Rpc; 16 | constructor(rpc: Rpc) { 17 | this.rpc = rpc; 18 | this.params = this.params.bind(this); 19 | } 20 | params(request: ParamsRequest = {}): Promise { 21 | const data = ParamsRequest.encode(request).finish(); 22 | const promise = this.rpc.request("osmosis.ibcratelimit.v1beta1.Query", "Params", data); 23 | return promise.then(data => ParamsResponse.decode(new BinaryReader(data))); 24 | } 25 | } 26 | export const createRpcQueryExtension = (base: QueryClient) => { 27 | const rpc = createProtobufRpcClient(base); 28 | const queryService = new QueryClientImpl(rpc); 29 | return { 30 | params(request?: ParamsRequest): Promise { 31 | return queryService.params(request); 32 | } 33 | }; 34 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/incentives/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgCreateGauge, MsgAddToGauge, MsgCreateGroup } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.incentives.MsgCreateGauge": { 5 | aminoType: "osmosis/incentives/create-gauge", 6 | toAmino: MsgCreateGauge.toAmino, 7 | fromAmino: MsgCreateGauge.fromAmino 8 | }, 9 | "/osmosis.incentives.MsgAddToGauge": { 10 | aminoType: "osmosis/incentives/add-to-gauge", 11 | toAmino: MsgAddToGauge.toAmino, 12 | fromAmino: MsgAddToGauge.fromAmino 13 | }, 14 | "/osmosis.incentives.MsgCreateGroup": { 15 | aminoType: "osmosis/incentives/create-group", 16 | toAmino: MsgCreateGroup.toAmino, 17 | fromAmino: MsgCreateGroup.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/lockup/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgLockTokens, MsgBeginUnlockingAll, MsgBeginUnlocking, MsgExtendLockup, MsgForceUnlock, MsgSetRewardReceiverAddress } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.lockup.MsgLockTokens": { 5 | aminoType: "osmosis/lockup/lock-tokens", 6 | toAmino: MsgLockTokens.toAmino, 7 | fromAmino: MsgLockTokens.fromAmino 8 | }, 9 | "/osmosis.lockup.MsgBeginUnlockingAll": { 10 | aminoType: "osmosis/lockup/begin-unlock-tokens", 11 | toAmino: MsgBeginUnlockingAll.toAmino, 12 | fromAmino: MsgBeginUnlockingAll.fromAmino 13 | }, 14 | "/osmosis.lockup.MsgBeginUnlocking": { 15 | aminoType: "osmosis/lockup/begin-unlock-period-lock", 16 | toAmino: MsgBeginUnlocking.toAmino, 17 | fromAmino: MsgBeginUnlocking.fromAmino 18 | }, 19 | "/osmosis.lockup.MsgExtendLockup": { 20 | aminoType: "osmosis/lockup/extend-lockup", 21 | toAmino: MsgExtendLockup.toAmino, 22 | fromAmino: MsgExtendLockup.fromAmino 23 | }, 24 | "/osmosis.lockup.MsgForceUnlock": { 25 | aminoType: "osmosis/lockup/force-unlock-tokens", 26 | toAmino: MsgForceUnlock.toAmino, 27 | fromAmino: MsgForceUnlock.fromAmino 28 | }, 29 | "/osmosis.lockup.MsgSetRewardReceiverAddress": { 30 | aminoType: "osmosis/lockup/set-reward-receiver-address", 31 | toAmino: MsgSetRewardReceiverAddress.toAmino, 32 | fromAmino: MsgSetRewardReceiverAddress.fromAmino 33 | } 34 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/mint/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType, QueryEpochProvisionsRequest, QueryEpochProvisionsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | this.epochProvisions = this.epochProvisions.bind(this); 14 | } 15 | /* Params returns the total set of minting parameters. */ 16 | async params(_params: QueryParamsRequest = {}): Promise { 17 | const endpoint = `osmosis/mint/v1beta1/params`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* EpochProvisions returns the current minting epoch provisions value. */ 21 | async epochProvisions(_params: QueryEpochProvisionsRequest = {}): Promise { 22 | const endpoint = `osmosis/mint/v1beta1/epoch_provisions`; 23 | return await this.req.get(endpoint); 24 | } 25 | } -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/poolmanager/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSwapExactAmountIn, MsgSwapExactAmountOut, MsgSplitRouteSwapExactAmountIn, MsgSplitRouteSwapExactAmountOut, MsgSetDenomPairTakerFee } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountIn": { 5 | aminoType: "osmosis/poolmanager/swap-exact-amount-in", 6 | toAmino: MsgSwapExactAmountIn.toAmino, 7 | fromAmino: MsgSwapExactAmountIn.fromAmino 8 | }, 9 | "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountOut": { 10 | aminoType: "osmosis/poolmanager/swap-exact-amount-out", 11 | toAmino: MsgSwapExactAmountOut.toAmino, 12 | fromAmino: MsgSwapExactAmountOut.fromAmino 13 | }, 14 | "/osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn": { 15 | aminoType: "osmosis/poolmanager/split-amount-in", 16 | toAmino: MsgSplitRouteSwapExactAmountIn.toAmino, 17 | fromAmino: MsgSplitRouteSwapExactAmountIn.fromAmino 18 | }, 19 | "/osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut": { 20 | aminoType: "osmosis/poolmanager/split-amount-out", 21 | toAmino: MsgSplitRouteSwapExactAmountOut.toAmino, 22 | fromAmino: MsgSplitRouteSwapExactAmountOut.fromAmino 23 | }, 24 | "/osmosis.poolmanager.v1beta1.MsgSetDenomPairTakerFee": { 25 | aminoType: "osmosis/poolmanager/set-denom-pair-taker-fee", 26 | toAmino: MsgSetDenomPairTakerFee.toAmino, 27 | fromAmino: MsgSetDenomPairTakerFee.fromAmino 28 | } 29 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/poolmanager/v2/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { SpotPriceRequest, SpotPriceResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.spotPriceV2 = this.spotPriceV2.bind(this); 13 | } 14 | /* SpotPriceV2 defines a gRPC query handler that returns the spot price given 15 | a base denomination and a quote denomination. 16 | The returned spot price has 36 decimal places. However, some of 17 | modules perform sig fig rounding so most of the rightmost decimals can be 18 | zeroes. */ 19 | async spotPriceV2(params: SpotPriceRequest): Promise { 20 | const options: any = { 21 | params: {} 22 | }; 23 | if (typeof params?.baseAssetDenom !== "undefined") { 24 | options.params.base_asset_denom = params.baseAssetDenom; 25 | } 26 | if (typeof params?.quoteAssetDenom !== "undefined") { 27 | options.params.quote_asset_denom = params.quoteAssetDenom; 28 | } 29 | const endpoint = `osmosis/poolmanager/v2/pools/${params.poolId}/prices`; 30 | return await this.req.get(endpoint, options); 31 | } 32 | } -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/smartaccount/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { QueryParamsRequest, QueryParamsResponseSDKType, GetAuthenticatorsRequest, GetAuthenticatorsResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.params = this.params.bind(this); 13 | this.getAuthenticators = this.getAuthenticators.bind(this); 14 | } 15 | /* Parameters queries the parameters of the module. */ 16 | async params(_params: QueryParamsRequest = {}): Promise { 17 | const endpoint = `osmosis/smartaccount/params`; 18 | return await this.req.get(endpoint); 19 | } 20 | /* GetAuthenticators */ 21 | async getAuthenticators(params: GetAuthenticatorsRequest): Promise { 22 | const endpoint = `osmosis/smartaccount/authenticators/${params.account}`; 23 | return await this.req.get(endpoint); 24 | } 25 | } -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/smartaccount/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgAddAuthenticator, MsgRemoveAuthenticator, MsgSetActiveState } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.smartaccount.v1beta1.MsgAddAuthenticator": { 5 | aminoType: "osmosis/smartaccount/add-authenticator", 6 | toAmino: MsgAddAuthenticator.toAmino, 7 | fromAmino: MsgAddAuthenticator.fromAmino 8 | }, 9 | "/osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator": { 10 | aminoType: "osmosis/smartaccount/remove-authenticator", 11 | toAmino: MsgRemoveAuthenticator.toAmino, 12 | fromAmino: MsgRemoveAuthenticator.fromAmino 13 | }, 14 | "/osmosis.smartaccount.v1beta1.MsgSetActiveState": { 15 | aminoType: "osmosis/smartaccount/set-active-state", 16 | toAmino: MsgSetActiveState.toAmino, 17 | fromAmino: MsgSetActiveState.fromAmino 18 | } 19 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/txfees/v1beta1/tx.amino.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { MsgSetFeeTokens } from "./tx"; 3 | export const AminoConverter = { 4 | "/osmosis.txfees.v1beta1.MsgSetFeeTokens": { 5 | aminoType: "osmosis/set-fee-tokens", 6 | toAmino: MsgSetFeeTokens.toAmino, 7 | fromAmino: MsgSetFeeTokens.fromAmino 8 | } 9 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/txfees/v1beta1/tx.registry.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { GeneratedType, Registry } from "@cosmjs/proto-signing"; 3 | import { MsgSetFeeTokens } from "./tx"; 4 | export const registry: ReadonlyArray<[string, GeneratedType]> = [["/osmosis.txfees.v1beta1.MsgSetFeeTokens", MsgSetFeeTokens]]; 5 | export const load = (protoRegistry: Registry) => { 6 | registry.forEach(([typeUrl, mod]) => { 7 | protoRegistry.register(typeUrl, mod); 8 | }); 9 | }; 10 | export const MessageComposer = { 11 | encoded: { 12 | setFeeTokens(value: MsgSetFeeTokens) { 13 | return { 14 | typeUrl: "/osmosis.txfees.v1beta1.MsgSetFeeTokens", 15 | value: MsgSetFeeTokens.encode(value).finish() 16 | }; 17 | } 18 | }, 19 | withTypeUrl: { 20 | setFeeTokens(value: MsgSetFeeTokens) { 21 | return { 22 | typeUrl: "/osmosis.txfees.v1beta1.MsgSetFeeTokens", 23 | value 24 | }; 25 | } 26 | }, 27 | fromPartial: { 28 | setFeeTokens(value: MsgSetFeeTokens) { 29 | return { 30 | typeUrl: "/osmosis.txfees.v1beta1.MsgSetFeeTokens", 31 | value: MsgSetFeeTokens.fromPartial(value) 32 | }; 33 | } 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/txfees/v1beta1/tx.rpc.msg.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { Rpc } from "../../../helpers"; 3 | import { BinaryReader } from "../../../binary"; 4 | import { MsgSetFeeTokens, MsgSetFeeTokensResponse } from "./tx"; 5 | export interface Msg { 6 | setFeeTokens(request: MsgSetFeeTokens): Promise; 7 | } 8 | export class MsgClientImpl implements Msg { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | this.setFeeTokens = this.setFeeTokens.bind(this); 13 | } 14 | setFeeTokens(request: MsgSetFeeTokens): Promise { 15 | const data = MsgSetFeeTokens.encode(request).finish(); 16 | const promise = this.rpc.request("osmosis.txfees.v1beta1.Msg", "SetFeeTokens", data); 17 | return promise.then(data => MsgSetFeeTokensResponse.decode(new BinaryReader(data))); 18 | } 19 | } 20 | export const createClientImpl = (rpc: Rpc) => { 21 | return new MsgClientImpl(rpc); 22 | }; -------------------------------------------------------------------------------- /packages/osmojs/src/osmosis/valsetpref/v1beta1/query.lcd.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import { LCDClient } from "@cosmology/lcd"; 3 | import { UserValidatorPreferencesRequest, UserValidatorPreferencesResponseSDKType } from "./query"; 4 | export class LCDQueryClient { 5 | req: LCDClient; 6 | constructor({ 7 | requestClient 8 | }: { 9 | requestClient: LCDClient; 10 | }) { 11 | this.req = requestClient; 12 | this.userValidatorPreferences = this.userValidatorPreferences.bind(this); 13 | } 14 | /* Returns the list of ValidatorPreferences for the user. */ 15 | async userValidatorPreferences(params: UserValidatorPreferencesRequest): Promise { 16 | const endpoint = `osmosis/valset-pref/v1beta1/${params.address}`; 17 | return await this.req.get(endpoint); 18 | } 19 | } -------------------------------------------------------------------------------- /packages/osmojs/src/tendermint/bundle.ts: -------------------------------------------------------------------------------- 1 | //@ts-nocheck 2 | import * as _225 from "./abci/types"; 3 | import * as _226 from "./crypto/keys"; 4 | import * as _227 from "./crypto/proof"; 5 | import * as _228 from "./libs/bits/types"; 6 | import * as _229 from "./p2p/types"; 7 | import * as _230 from "./types/block"; 8 | import * as _231 from "./types/evidence"; 9 | import * as _232 from "./types/params"; 10 | import * as _233 from "./types/types"; 11 | import * as _234 from "./types/validator"; 12 | import * as _235 from "./version/types"; 13 | export namespace tendermint { 14 | export const abci = { 15 | ..._225 16 | }; 17 | export const crypto = { 18 | ..._226, 19 | ..._227 20 | }; 21 | export namespace libs { 22 | export const bits = { 23 | ..._228 24 | }; 25 | } 26 | export const p2p = { 27 | ..._229 28 | }; 29 | export const types = { 30 | ..._230, 31 | ..._231, 32 | ..._232, 33 | ..._233, 34 | ..._234 35 | }; 36 | export const version = { 37 | ..._235 38 | }; 39 | } -------------------------------------------------------------------------------- /packages/osmojs/starship/__tests__/setup.test.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | import { StargateClient } from '@cosmjs/stargate'; 3 | import path from 'path'; 4 | import { ConfigContext, useChain, useRegistry } from 'starshipjs'; 5 | 6 | beforeAll(async () => { 7 | const configFile = path.join(__dirname, '..', 'configs', 'config.yaml'); 8 | ConfigContext.setConfigFile(configFile); 9 | ConfigContext.setRegistry(await useRegistry(configFile)) 10 | }); 11 | 12 | describe('Test clients', () => { 13 | let client; 14 | 15 | beforeAll(async () => { 16 | const { getRpcEndpoint } = useChain('osmosis'); 17 | client = await StargateClient.connect(await getRpcEndpoint()); 18 | }); 19 | 20 | it('check chain height', async () => { 21 | const height = await client.getHeight(); 22 | 23 | expect(height).toBeGreaterThan(0); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /packages/osmojs/starship/configs/config.workflow.yaml: -------------------------------------------------------------------------------- 1 | name: osmojs 2 | version: v1.1.0 3 | 4 | chains: 5 | - id: osmosis-1 6 | name: osmosis 7 | image: pyramation/osmosis:v16.1.0 8 | numValidators: 1 9 | ports: 10 | rest: 1317 11 | rpc: 26657 12 | faucet: 8007 13 | resources: 14 | cpu: "0.2" 15 | memory: "200M" 16 | - id: cosmos-2 17 | name: cosmoshub 18 | numValidators: 1 19 | ports: 20 | rest: 1313 21 | rpc: 26653 22 | faucet: 8003 23 | resources: 24 | cpu: "0.2" 25 | memory: "200M" 26 | 27 | relayers: 28 | - name: osmos-cosmos 29 | type: hermes 30 | replicas: 1 31 | chains: 32 | - osmosis-1 33 | - cosmos-2 34 | resources: 35 | cpu: "0.1" 36 | memory: "100M" 37 | 38 | registry: 39 | enabled: true 40 | ports: 41 | rest: 8081 42 | grpc: 9091 43 | resources: 44 | cpu: "0.1" 45 | memory: "100M" 46 | 47 | exposer: 48 | resources: 49 | cpu: "0.1" 50 | memory: "100M" 51 | 52 | faucet: 53 | resources: 54 | cpu: "0.1" 55 | memory: "100M" 56 | -------------------------------------------------------------------------------- /packages/osmojs/starship/configs/config.yaml: -------------------------------------------------------------------------------- 1 | name: osmojs 2 | version: v1.1.0 3 | 4 | chains: 5 | - id: osmosis-1 6 | name: osmosis 7 | image: pyramation/osmosis:v16.1.0 8 | numValidators: 1 9 | ports: 10 | rest: 1317 11 | rpc: 26657 12 | faucet: 8007 13 | 14 | - id: cosmos-2 15 | name: cosmoshub 16 | numValidators: 1 17 | ports: 18 | rest: 1313 19 | rpc: 26653 20 | faucet: 8003 21 | 22 | relayers: 23 | - name: osmos-cosmos 24 | type: hermes 25 | replicas: 1 26 | chains: 27 | - osmosis-1 28 | - cosmos-2 29 | 30 | explorer: 31 | enabled: true 32 | ports: 33 | rest: 8080 34 | 35 | registry: 36 | enabled: true 37 | ports: 38 | rest: 8081 39 | grpc: 9091 40 | -------------------------------------------------------------------------------- /packages/osmojs/starship/docker/Dockerfile: -------------------------------------------------------------------------------- 1 | # ARG BASE_IMAGE 2 | # ARG VERSION 3 | # FROM ${BASE_IMAGE}:${VERSION} AS source 4 | 5 | FROM ghcr.io/strangelove-ventures/heighliner/osmosis:v16.1.0 as source 6 | 7 | FROM alpine:3.16 8 | 9 | LABEL org.opencontainers.image.source="https://github.com/hyperweb-io/starship" 10 | 11 | COPY --from=source /bin /usr/bin 12 | COPY --from=source /lib /usr/lib 13 | 14 | # Set up dependencies 15 | ENV PACKAGES curl make bash jq sed 16 | 17 | # Install minimum necessary dependencies 18 | RUN apk add --no-cache $PACKAGES 19 | 20 | WORKDIR /opt -------------------------------------------------------------------------------- /packages/osmojs/starship/docker/Makefile: -------------------------------------------------------------------------------- 1 | 2 | 3 | .PHONY: setup 4 | setup: 5 | docker buildx create --use 6 | 7 | .PHONY: build 8 | build: 9 | docker buildx build --platform linux/amd64,linux/arm64 -t pyramation/osmosis:v16.1.0 . --push 10 | -------------------------------------------------------------------------------- /packages/osmojs/starship/docker/README.md: -------------------------------------------------------------------------------- 1 | ## build custom docker images 2 | 3 | First install the `buildx` command: 4 | 5 | ```sh 6 | make setup 7 | ``` 8 | 9 | Now build the image: 10 | 11 | ```sh 12 | make build 13 | ``` -------------------------------------------------------------------------------- /packages/osmojs/starship/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './utils'; 2 | -------------------------------------------------------------------------------- /packages/osmojs/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist/esm", 5 | "module": "es2022", 6 | "rootDir": "src/", 7 | "declaration": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/osmojs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src/" 6 | }, 7 | "include": [ 8 | "src/**/*.ts" 9 | ], 10 | "exclude": [ 11 | "dist", 12 | "cosmos-sdk", 13 | "ibc-go", 14 | "osmosis", 15 | "ics23", 16 | "wasmd", 17 | "node_modules", 18 | "**/*.spec.*", 19 | "**/*.test.*" 20 | ] 21 | } -------------------------------------------------------------------------------- /packages/utils/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 5 | 6 | # [1.18.0](https://github.com/osmosis-labs/osmojs/compare/@osmonauts/utils@1.17.0...@osmonauts/utils@1.18.0) (2024-11-21) 7 | 8 | **Note:** Version bump only for package @osmonauts/utils 9 | 10 | 11 | 12 | 13 | 14 | # [1.17.0](https://github.com/osmosis-labs/osmojs/compare/@osmonauts/utils@1.16.0...@osmonauts/utils@1.17.0) (2024-05-08) 15 | 16 | **Note:** Version bump only for package @osmonauts/utils 17 | 18 | 19 | 20 | 21 | 22 | # 1.16.0 (2024-04-26) 23 | 24 | **Note:** Version bump only for package @osmonauts/utils 25 | -------------------------------------------------------------------------------- /packages/utils/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Interweb, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /packages/utils/__tests__/unit/fees.test.ts: -------------------------------------------------------------------------------- 1 | import { FEES } from '../../src'; 2 | 3 | it('FEES', async () => { 4 | console.log(FEES); 5 | }); 6 | -------------------------------------------------------------------------------- /packages/utils/jest.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('ts-jest').JestConfigWithTsJest} */ 2 | module.exports = { 3 | preset: "ts-jest", 4 | testEnvironment: "node", 5 | transform: { 6 | "^.+\\.tsx?$": [ 7 | "ts-jest", 8 | { 9 | babelConfig: false, 10 | tsconfig: "tsconfig.json", 11 | }, 12 | ], 13 | }, 14 | transformIgnorePatterns: [`/node_modules/*`], 15 | testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", 16 | moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], 17 | modulePathIgnorePatterns: ["dist/*"] 18 | }; 19 | -------------------------------------------------------------------------------- /packages/utils/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@osmonauts/utils", 3 | "version": "1.18.0", 4 | "description": "Utils for Osmosis", 5 | "author": "Dan Lynch ", 6 | "homepage": "https://github.com/osmosis-labs/osmojs", 7 | "license": "SEE LICENSE IN LICENSE", 8 | "main": "index.js", 9 | "module": "esm/index.js", 10 | "types": "index.d.ts", 11 | "publishConfig": { 12 | "access": "public", 13 | "directory": "dist" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "https://github.com/osmosis-labs/osmojs" 18 | }, 19 | "bugs": { 20 | "url": "https://github.com/osmosis-labs/osmojs/issues" 21 | }, 22 | "scripts": { 23 | "copy": "copyfiles -f LICENSE-MIT LICENSE-Apache README.md package.json dist", 24 | "clean": "del dist/**", 25 | "prepare": "npm run build", 26 | "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", 27 | "test": "jest", 28 | "test:watch": "jest --watch" 29 | }, 30 | "devDependencies": { 31 | "osmojs": "^16.15.0" 32 | }, 33 | "dependencies": { 34 | "@cosmjs/amino": "0.32.3", 35 | "@cosmjs/stargate": "0.32.3" 36 | }, 37 | "keywords": [ 38 | "web3", 39 | "osmosis", 40 | "osmojs", 41 | "dex", 42 | "math" 43 | ] 44 | } 45 | -------------------------------------------------------------------------------- /packages/utils/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './utils'; 2 | export * from './types'; -------------------------------------------------------------------------------- /packages/utils/src/types.ts: -------------------------------------------------------------------------------- 1 | export interface BroadcastTxResponse { 2 | height: number; 3 | code: number; 4 | transactionHash: string; 5 | rawLog?: any; 6 | } -------------------------------------------------------------------------------- /packages/utils/src/utils/gas/estimation.ts: -------------------------------------------------------------------------------- 1 | import { 2 | SigningStargateClient, 3 | calculateFee, 4 | GasPrice 5 | } from '@cosmjs/stargate'; 6 | 7 | export const estimateOsmoFee = async (client: SigningStargateClient, address: string, msgs: any[], memo: string) => { 8 | const gasPrice = GasPrice.fromString('0.025uosmo'); 9 | const gasEstimation = await client.simulate(address, msgs, memo); 10 | const fee = calculateFee(Math.round(gasEstimation * 1.3), gasPrice); 11 | return fee; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/utils/src/utils/gas/index.ts: -------------------------------------------------------------------------------- 1 | export * from './estimation'; 2 | export * from './values'; -------------------------------------------------------------------------------- /packages/utils/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './gas'; 2 | -------------------------------------------------------------------------------- /packages/utils/tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist/esm", 5 | "module": "es2022", 6 | "rootDir": "src/", 7 | "declaration": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src/" 6 | }, 7 | "include": ["src/**/*.ts"], 8 | "exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"] 9 | } 10 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es2022", 4 | "module": "commonjs", 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "strict": true, 8 | "strictNullChecks": false, 9 | "skipLibCheck": true, 10 | "sourceMap": false, 11 | "declaration": true, 12 | "resolveJsonModule": true, 13 | "moduleResolution": "node" 14 | }, 15 | "exclude": [ 16 | "dist", 17 | "node_modules" 18 | ] 19 | } --------------------------------------------------------------------------------