├── .changeset ├── README.md ├── config.json └── shaky-icons-speak.md ├── .github ├── ISSUE_TEMPLATE │ └── bug_report.md └── workflows │ ├── checks.yml │ ├── coverage.yml │ ├── deploydocs.yml │ ├── notify.yml │ └── release.yml ├── .gitignore ├── .gitmodules ├── .nvmrc ├── .vscode └── extensions.json ├── .yarn └── install-state.gz ├── .yarnrc.yml ├── CHANGELOG.md ├── README.md ├── TYPEDOC-README.md ├── biome.json ├── codecov.yml ├── package.json ├── packages ├── confidential-transfers │ ├── .gitignore │ ├── CHANGELOG.md │ ├── README.md │ ├── confidentialWasm │ │ ├── buf.gen.gogo.yaml │ │ ├── buf.work.yaml │ │ ├── ct.wasm │ │ ├── ct.wasm.b64 │ │ ├── cttypes │ │ │ ├── applyPendingBalance.go │ │ │ ├── closeAccount.go │ │ │ ├── confidentialtransfers │ │ │ │ ├── confidential.pb.go │ │ │ │ ├── cryptography.pb.go │ │ │ │ ├── tx.pb.go │ │ │ │ ├── zk.go │ │ │ │ └── zk.pb.go │ │ │ ├── initialize.go │ │ │ ├── transfer.go │ │ │ ├── withdraw.go │ │ │ └── zk.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── main.go │ │ ├── methods │ │ │ ├── applyPendingBalance.go │ │ │ ├── closeAccount.go │ │ │ ├── decrypt.go │ │ │ ├── initialize.go │ │ │ ├── transfer.go │ │ │ └── withdraw.go │ │ └── proto │ │ │ ├── buf.lock │ │ │ ├── buf.yaml │ │ │ └── confidentialtransfers │ │ │ ├── confidential.proto │ │ │ ├── cryptography.proto │ │ │ ├── tx.proto │ │ │ └── zk.proto │ ├── hardhat.config.js │ ├── jest.config.js │ ├── package.json │ ├── scripts │ │ └── build-wasm.sh │ ├── src │ │ ├── index.ts │ │ ├── interface │ │ │ ├── ethers.ts │ │ │ ├── types.ts │ │ │ └── viem.ts │ │ ├── payload │ │ │ ├── confidentialApi.ts │ │ │ ├── confidentialTransfers.ts │ │ │ ├── embeddedWasm.ts │ │ │ └── wasm_exec.cjs │ │ ├── test │ │ │ ├── confidentialTransfersWrapper.test.ts │ │ │ ├── ethers.test.ts │ │ │ ├── test.ts │ │ │ ├── testData.json │ │ │ ├── testUtils.ts │ │ │ └── viem.test.ts │ │ └── utils │ │ │ └── utils.ts │ ├── tsconfig.declaration.json │ └── tsconfig.json ├── cosmjs │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── clients │ │ │ ├── __tests__ │ │ │ │ ├── cosmWasmClient.spec.ts │ │ │ │ └── stargateClient.spec.ts │ │ │ ├── cosmWasmClient.ts │ │ │ ├── index.ts │ │ │ └── stargateClient.ts │ │ ├── index.ts │ │ ├── utils │ │ │ ├── __tests__ │ │ │ │ ├── address.spec.ts │ │ │ │ ├── bech32.spec.ts │ │ │ │ └── hash.spec.ts │ │ │ ├── address.ts │ │ │ ├── bech32.ts │ │ │ ├── hash.ts │ │ │ ├── index.ts │ │ │ └── signing.ts │ │ └── wallet │ │ │ ├── __tests__ │ │ │ ├── utils.spec.ts │ │ │ └── wallet.spec.ts │ │ │ ├── index.ts │ │ │ ├── types.ts │ │ │ ├── utils.ts │ │ │ └── wallet.ts │ ├── tsconfig.declaration.json │ └── tsconfig.json ├── cosmos │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── __tests__ │ │ ├── encoding.spec.ts │ │ └── types.spec.ts │ ├── bin │ │ └── protoc-gen-grpc-gateway-ts │ ├── biome.json │ ├── buf.gen.yaml │ ├── jest.config.js │ ├── library │ │ ├── encoding │ │ │ ├── amino.ts │ │ │ ├── common.ts │ │ │ ├── confidentialtransfers │ │ │ │ ├── confidential.ts │ │ │ │ ├── cryptography.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── index.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.ts │ │ │ │ ├── tx.ts │ │ │ │ └── zk.ts │ │ │ ├── confio │ │ │ │ ├── index.ts │ │ │ │ └── proofs.ts │ │ │ ├── cosmos │ │ │ │ ├── accesscontrol │ │ │ │ │ ├── accesscontrol.ts │ │ │ │ │ ├── constants.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── legacy.ts │ │ │ │ ├── accesscontrol_x │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ │ ├── auth │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── auth.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── query.ts │ │ │ │ ├── authz │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── authz.ts │ │ │ │ │ │ ├── event.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── bank │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── authz.ts │ │ │ │ │ │ ├── bank.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── base │ │ │ │ │ ├── abci │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── abci.ts │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── kv │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── kv.ts │ │ │ │ │ ├── query │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ ├── reflection │ │ │ │ │ │ ├── v1beta1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── reflection.ts │ │ │ │ │ │ └── v2alpha1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── reflection.ts │ │ │ │ │ ├── snapshots │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── snapshot.ts │ │ │ │ │ ├── store │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── commit_info.ts │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── listening.ts │ │ │ │ │ ├── tendermint │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── query.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── coin.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── capability │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── capability.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── crisis │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── crypto │ │ │ │ │ ├── ed25519 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── keys.ts │ │ │ │ │ ├── multisig │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── keys.ts │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── multisig.ts │ │ │ │ │ ├── secp256k1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── keys.ts │ │ │ │ │ ├── secp256r1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── keys.ts │ │ │ │ │ └── sr25519 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── keys.ts │ │ │ │ ├── distribution │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── distribution.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── evidence │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── evidence.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── feegrant │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── feegrant.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── genutil │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── gov │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── gov.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── mint │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── mint.ts │ │ │ │ │ │ └── query.ts │ │ │ │ ├── params │ │ │ │ │ ├── types │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── types.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── params.ts │ │ │ │ │ │ └── query.ts │ │ │ │ ├── slashing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── slashing.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── staking │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── authz.ts │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ ├── staking.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── tx │ │ │ │ │ ├── signing │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── signing.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── service.ts │ │ │ │ │ │ └── tx.ts │ │ │ │ ├── upgrade │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ └── upgrade.ts │ │ │ │ └── vesting │ │ │ │ │ └── v1beta1 │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── tx.ts │ │ │ │ │ └── vesting.ts │ │ │ ├── epoch │ │ │ │ ├── epoch.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── index.ts │ │ │ │ ├── params.ts │ │ │ │ └── query.ts │ │ │ ├── eth │ │ │ │ ├── index.ts │ │ │ │ └── tx.ts │ │ │ ├── evm │ │ │ │ ├── config.ts │ │ │ │ ├── enums.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── gov.ts │ │ │ │ ├── index.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.ts │ │ │ │ ├── receipt.ts │ │ │ │ ├── tx.ts │ │ │ │ └── types.ts │ │ │ ├── google │ │ │ │ ├── api │ │ │ │ │ ├── http.ts │ │ │ │ │ ├── httpbody.ts │ │ │ │ │ └── index.ts │ │ │ │ └── protobuf │ │ │ │ │ ├── any.ts │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ ├── duration.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── timestamp.ts │ │ │ ├── index.ts │ │ │ ├── mint │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── mint.ts │ │ │ │ │ └── query.ts │ │ │ ├── oracle │ │ │ │ ├── genesis.ts │ │ │ │ ├── index.ts │ │ │ │ ├── oracle.ts │ │ │ │ ├── query.ts │ │ │ │ └── tx.ts │ │ │ ├── registry.ts │ │ │ ├── tendermint │ │ │ │ ├── abci │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types.ts │ │ │ │ ├── crypto │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── keys.ts │ │ │ │ │ └── proof.ts │ │ │ │ ├── libs │ │ │ │ │ └── bits │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── types.ts │ │ │ │ ├── p2p │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types.ts │ │ │ │ ├── types │ │ │ │ │ ├── block.ts │ │ │ │ │ ├── evidence.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ ├── types.ts │ │ │ │ │ └── validator.ts │ │ │ │ └── version │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types.ts │ │ │ └── tokenfactory │ │ │ │ ├── authorityMetadata.ts │ │ │ │ ├── genesis.ts │ │ │ │ ├── index.ts │ │ │ │ ├── params.ts │ │ │ │ ├── query.ts │ │ │ │ └── tx.ts │ │ ├── rest │ │ │ ├── confidentialtransfers │ │ │ │ └── query.ts │ │ │ ├── cosmos │ │ │ │ ├── accesscontrol_x │ │ │ │ │ └── query.ts │ │ │ │ ├── auth │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── authz │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── bank │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── distribution │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── evidence │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── feegrant │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── gov │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── mint │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── params │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── slashing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ ├── staking │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ └── upgrade │ │ │ │ │ └── v1beta1 │ │ │ │ │ └── query.ts │ │ │ ├── epoch │ │ │ │ └── query.ts │ │ │ ├── evm │ │ │ │ └── query.ts │ │ │ ├── fetch.ts │ │ │ ├── index.ts │ │ │ ├── mint │ │ │ │ └── v1beta1 │ │ │ │ │ └── query.ts │ │ │ ├── oracle │ │ │ │ └── query.ts │ │ │ └── tokenfactory │ │ │ │ └── query.ts │ │ └── types │ │ │ ├── confidentialtransfers │ │ │ ├── confidential.ts │ │ │ ├── cryptography.ts │ │ │ ├── genesis.ts │ │ │ ├── index.ts │ │ │ ├── params.ts │ │ │ ├── query.ts │ │ │ ├── tx.ts │ │ │ └── zk.ts │ │ │ ├── confio │ │ │ ├── index.ts │ │ │ └── proofs.ts │ │ │ ├── cosmos │ │ │ ├── accesscontrol │ │ │ │ ├── accesscontrol.ts │ │ │ │ ├── constants.ts │ │ │ │ ├── index.ts │ │ │ │ └── legacy.ts │ │ │ ├── accesscontrol_x │ │ │ │ ├── genesis.ts │ │ │ │ ├── gov.ts │ │ │ │ ├── index.ts │ │ │ │ ├── query.ts │ │ │ │ └── tx.ts │ │ │ ├── auth │ │ │ │ └── v1beta1 │ │ │ │ │ ├── auth.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── query.ts │ │ │ ├── authz │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── event.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── bank │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── bank.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── base │ │ │ │ ├── abci │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── abci.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── kv │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── kv.ts │ │ │ │ ├── query │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── pagination.ts │ │ │ │ ├── reflection │ │ │ │ │ ├── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── reflection.ts │ │ │ │ │ └── v2alpha1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── reflection.ts │ │ │ │ ├── snapshots │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── snapshot.ts │ │ │ │ ├── store │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── commit_info.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── listening.ts │ │ │ │ ├── tendermint │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── query.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── coin.ts │ │ │ │ │ └── index.ts │ │ │ ├── capability │ │ │ │ └── v1beta1 │ │ │ │ │ ├── capability.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ └── index.ts │ │ │ ├── crisis │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── tx.ts │ │ │ ├── crypto │ │ │ │ ├── ed25519 │ │ │ │ │ ├── index.ts │ │ │ │ │ └── keys.ts │ │ │ │ ├── multisig │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── keys.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── multisig.ts │ │ │ │ ├── secp256k1 │ │ │ │ │ ├── index.ts │ │ │ │ │ └── keys.ts │ │ │ │ ├── secp256r1 │ │ │ │ │ ├── index.ts │ │ │ │ │ └── keys.ts │ │ │ │ └── sr25519 │ │ │ │ │ ├── index.ts │ │ │ │ │ └── keys.ts │ │ │ ├── distribution │ │ │ │ └── v1beta1 │ │ │ │ │ ├── distribution.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── evidence │ │ │ │ └── v1beta1 │ │ │ │ │ ├── evidence.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── feegrant │ │ │ │ └── v1beta1 │ │ │ │ │ ├── feegrant.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── genutil │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ └── index.ts │ │ │ ├── gov │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── mint │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── mint.ts │ │ │ │ │ └── query.ts │ │ │ ├── params │ │ │ │ ├── types │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── params.ts │ │ │ │ │ └── query.ts │ │ │ ├── slashing │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── slashing.ts │ │ │ │ │ └── tx.ts │ │ │ ├── staking │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── staking.ts │ │ │ │ │ └── tx.ts │ │ │ ├── tx │ │ │ │ ├── signing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── signing.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── service.ts │ │ │ │ │ └── tx.ts │ │ │ ├── upgrade │ │ │ │ └── v1beta1 │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── upgrade.ts │ │ │ └── vesting │ │ │ │ └── v1beta1 │ │ │ │ ├── index.ts │ │ │ │ ├── tx.ts │ │ │ │ └── vesting.ts │ │ │ ├── epoch │ │ │ ├── epoch.ts │ │ │ ├── genesis.ts │ │ │ ├── index.ts │ │ │ ├── params.ts │ │ │ └── query.ts │ │ │ ├── eth │ │ │ ├── index.ts │ │ │ └── tx.ts │ │ │ ├── evm │ │ │ ├── config.ts │ │ │ ├── enums.ts │ │ │ ├── genesis.ts │ │ │ ├── gov.ts │ │ │ ├── index.ts │ │ │ ├── params.ts │ │ │ ├── query.ts │ │ │ ├── receipt.ts │ │ │ ├── tx.ts │ │ │ └── types.ts │ │ │ ├── google │ │ │ ├── api │ │ │ │ ├── http.ts │ │ │ │ ├── httpbody.ts │ │ │ │ └── index.ts │ │ │ └── protobuf │ │ │ │ ├── any.ts │ │ │ │ ├── descriptor.ts │ │ │ │ ├── duration.ts │ │ │ │ ├── index.ts │ │ │ │ └── timestamp.ts │ │ │ ├── mint │ │ │ └── v1beta1 │ │ │ │ ├── genesis.ts │ │ │ │ ├── gov.ts │ │ │ │ ├── index.ts │ │ │ │ ├── mint.ts │ │ │ │ └── query.ts │ │ │ ├── oracle │ │ │ ├── genesis.ts │ │ │ ├── index.ts │ │ │ ├── oracle.ts │ │ │ ├── query.ts │ │ │ └── tx.ts │ │ │ ├── tendermint │ │ │ ├── abci │ │ │ │ ├── index.ts │ │ │ │ └── types.ts │ │ │ ├── crypto │ │ │ │ ├── index.ts │ │ │ │ ├── keys.ts │ │ │ │ └── proof.ts │ │ │ ├── libs │ │ │ │ └── bits │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types.ts │ │ │ ├── p2p │ │ │ │ ├── index.ts │ │ │ │ └── types.ts │ │ │ ├── types │ │ │ │ ├── block.ts │ │ │ │ ├── evidence.ts │ │ │ │ ├── index.ts │ │ │ │ ├── params.ts │ │ │ │ ├── types.ts │ │ │ │ └── validator.ts │ │ │ └── version │ │ │ │ ├── index.ts │ │ │ │ └── types.ts │ │ │ └── tokenfactory │ │ │ ├── authorityMetadata.ts │ │ │ ├── genesis.ts │ │ │ ├── index.ts │ │ │ ├── params.ts │ │ │ ├── query.ts │ │ │ └── tx.ts │ ├── package.json │ ├── protoc │ │ ├── grpc-gateway │ │ │ ├── confio │ │ │ │ └── proofs.pb.ts │ │ │ ├── cosmos │ │ │ │ ├── accesscontrol │ │ │ │ │ ├── accesscontrol.pb.ts │ │ │ │ │ ├── constants.pb.ts │ │ │ │ │ └── legacy.pb.ts │ │ │ │ ├── accesscontrol_x │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ ├── gov.pb.ts │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── auth │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── auth.pb.ts │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ └── query.pb.ts │ │ │ │ ├── authz │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── authz.pb.ts │ │ │ │ │ │ ├── event.pb.ts │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── bank │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── authz.pb.ts │ │ │ │ │ │ ├── bank.pb.ts │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── base │ │ │ │ │ ├── abci │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ └── abci.pb.ts │ │ │ │ │ ├── kv │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ └── kv.pb.ts │ │ │ │ │ ├── query │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ └── pagination.pb.ts │ │ │ │ │ ├── reflection │ │ │ │ │ │ ├── v1beta1 │ │ │ │ │ │ │ └── reflection.pb.ts │ │ │ │ │ │ └── v2alpha1 │ │ │ │ │ │ │ └── reflection.pb.ts │ │ │ │ │ ├── snapshots │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ └── snapshot.pb.ts │ │ │ │ │ ├── store │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── commit_info.pb.ts │ │ │ │ │ │ │ └── listening.pb.ts │ │ │ │ │ ├── tendermint │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ └── query.pb.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── coin.pb.ts │ │ │ │ ├── capability │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── capability.pb.ts │ │ │ │ │ │ └── genesis.pb.ts │ │ │ │ ├── crisis │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── crypto │ │ │ │ │ ├── ed25519 │ │ │ │ │ │ └── keys.pb.ts │ │ │ │ │ ├── multisig │ │ │ │ │ │ ├── keys.pb.ts │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ └── multisig.pb.ts │ │ │ │ │ ├── secp256k1 │ │ │ │ │ │ └── keys.pb.ts │ │ │ │ │ ├── secp256r1 │ │ │ │ │ │ └── keys.pb.ts │ │ │ │ │ └── sr25519 │ │ │ │ │ │ └── keys.pb.ts │ │ │ │ ├── distribution │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── distribution.pb.ts │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── evidence │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── evidence.pb.ts │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── feegrant │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── feegrant.pb.ts │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── genutil │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── genesis.pb.ts │ │ │ │ ├── gov │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── gov.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── mint │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── mint.pb.ts │ │ │ │ │ │ └── query.pb.ts │ │ │ │ ├── params │ │ │ │ │ ├── types │ │ │ │ │ │ └── types.pb.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── params.pb.ts │ │ │ │ │ │ └── query.pb.ts │ │ │ │ ├── slashing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ ├── slashing.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── staking │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── authz.pb.ts │ │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ ├── staking.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── tx │ │ │ │ │ ├── signing │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ └── signing.pb.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── service.pb.ts │ │ │ │ │ │ └── tx.pb.ts │ │ │ │ ├── upgrade │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── query.pb.ts │ │ │ │ │ │ └── upgrade.pb.ts │ │ │ │ └── vesting │ │ │ │ │ └── v1beta1 │ │ │ │ │ ├── tx.pb.ts │ │ │ │ │ └── vesting.pb.ts │ │ │ ├── cosmos_proto │ │ │ │ └── cosmos.pb.ts │ │ │ ├── epoch │ │ │ │ ├── epoch.pb.ts │ │ │ │ ├── genesis.pb.ts │ │ │ │ ├── params.pb.ts │ │ │ │ ├── query.pb.ts │ │ │ │ └── tx.pb.ts │ │ │ ├── eth │ │ │ │ └── tx.pb.ts │ │ │ ├── evm │ │ │ │ ├── config.pb.ts │ │ │ │ ├── enums.pb.ts │ │ │ │ ├── genesis.pb.ts │ │ │ │ ├── gov.pb.ts │ │ │ │ ├── params.pb.ts │ │ │ │ ├── query.pb.ts │ │ │ │ ├── receipt.pb.ts │ │ │ │ ├── tx.pb.ts │ │ │ │ └── types.pb.ts │ │ │ ├── fetch.pb.ts │ │ │ ├── gogoproto │ │ │ │ └── gogo.pb.ts │ │ │ ├── google │ │ │ │ ├── api │ │ │ │ │ ├── annotations.pb.ts │ │ │ │ │ ├── http.pb.ts │ │ │ │ │ └── httpbody.pb.ts │ │ │ │ └── protobuf │ │ │ │ │ └── any.pb.ts │ │ │ ├── mint │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.pb.ts │ │ │ │ │ ├── gov.pb.ts │ │ │ │ │ ├── mint.pb.ts │ │ │ │ │ └── query.pb.ts │ │ │ ├── oracle │ │ │ │ ├── genesis.pb.ts │ │ │ │ ├── oracle.pb.ts │ │ │ │ ├── query.pb.ts │ │ │ │ └── tx.pb.ts │ │ │ ├── tendermint │ │ │ │ ├── abci │ │ │ │ │ └── types.pb.ts │ │ │ │ ├── crypto │ │ │ │ │ ├── keys.pb.ts │ │ │ │ │ └── proof.pb.ts │ │ │ │ ├── libs │ │ │ │ │ └── bits │ │ │ │ │ │ └── types.pb.ts │ │ │ │ ├── p2p │ │ │ │ │ └── types.pb.ts │ │ │ │ ├── types │ │ │ │ │ ├── block.pb.ts │ │ │ │ │ ├── evidence.pb.ts │ │ │ │ │ ├── params.pb.ts │ │ │ │ │ ├── types.pb.ts │ │ │ │ │ └── validator.pb.ts │ │ │ │ └── version │ │ │ │ │ └── types.pb.ts │ │ │ └── tokenfactory │ │ │ │ ├── authorityMetadata.pb.ts │ │ │ │ ├── genesis.pb.ts │ │ │ │ ├── params.pb.ts │ │ │ │ ├── query.pb.ts │ │ │ │ └── tx.pb.ts │ │ └── ts-proto │ │ │ ├── confio │ │ │ └── proofs.ts │ │ │ ├── cosmos │ │ │ ├── accesscontrol │ │ │ │ ├── accesscontrol.ts │ │ │ │ ├── constants.ts │ │ │ │ └── legacy.ts │ │ │ ├── accesscontrol_x │ │ │ │ ├── genesis.ts │ │ │ │ ├── gov.ts │ │ │ │ ├── query.ts │ │ │ │ └── tx.ts │ │ │ ├── auth │ │ │ │ └── v1beta1 │ │ │ │ │ ├── auth.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ └── query.ts │ │ │ ├── authz │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── event.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── bank │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── bank.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── base │ │ │ │ ├── abci │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── abci.ts │ │ │ │ ├── kv │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── kv.ts │ │ │ │ ├── query │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── pagination.ts │ │ │ │ ├── reflection │ │ │ │ │ ├── v1beta1 │ │ │ │ │ │ └── reflection.ts │ │ │ │ │ └── v2alpha1 │ │ │ │ │ │ └── reflection.ts │ │ │ │ ├── snapshots │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── snapshot.ts │ │ │ │ ├── store │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ ├── commit_info.ts │ │ │ │ │ │ └── listening.ts │ │ │ │ ├── tendermint │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── query.ts │ │ │ │ └── v1beta1 │ │ │ │ │ └── coin.ts │ │ │ ├── capability │ │ │ │ └── v1beta1 │ │ │ │ │ ├── capability.ts │ │ │ │ │ └── genesis.ts │ │ │ ├── crisis │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ └── tx.ts │ │ │ ├── crypto │ │ │ │ ├── ed25519 │ │ │ │ │ └── keys.ts │ │ │ │ ├── multisig │ │ │ │ │ ├── keys.ts │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── multisig.ts │ │ │ │ ├── secp256k1 │ │ │ │ │ └── keys.ts │ │ │ │ ├── secp256r1 │ │ │ │ │ └── keys.ts │ │ │ │ └── sr25519 │ │ │ │ │ └── keys.ts │ │ │ ├── distribution │ │ │ │ └── v1beta1 │ │ │ │ │ ├── distribution.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── evidence │ │ │ │ └── v1beta1 │ │ │ │ │ ├── evidence.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── feegrant │ │ │ │ └── v1beta1 │ │ │ │ │ ├── feegrant.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── genutil │ │ │ │ └── v1beta1 │ │ │ │ │ └── genesis.ts │ │ │ ├── gov │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── gov.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ └── tx.ts │ │ │ ├── mint │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── mint.ts │ │ │ │ │ └── query.ts │ │ │ ├── params │ │ │ │ ├── types │ │ │ │ │ └── types.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── params.ts │ │ │ │ │ └── query.ts │ │ │ ├── slashing │ │ │ │ └── v1beta1 │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── slashing.ts │ │ │ │ │ └── tx.ts │ │ │ ├── staking │ │ │ │ └── v1beta1 │ │ │ │ │ ├── authz.ts │ │ │ │ │ ├── genesis.ts │ │ │ │ │ ├── query.ts │ │ │ │ │ ├── staking.ts │ │ │ │ │ └── tx.ts │ │ │ ├── tx │ │ │ │ ├── signing │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ └── signing.ts │ │ │ │ └── v1beta1 │ │ │ │ │ ├── service.ts │ │ │ │ │ └── tx.ts │ │ │ ├── upgrade │ │ │ │ └── v1beta1 │ │ │ │ │ ├── query.ts │ │ │ │ │ └── upgrade.ts │ │ │ └── vesting │ │ │ │ └── v1beta1 │ │ │ │ ├── tx.ts │ │ │ │ └── vesting.ts │ │ │ ├── cosmos_proto │ │ │ └── cosmos.ts │ │ │ ├── epoch │ │ │ ├── epoch.ts │ │ │ ├── genesis.ts │ │ │ ├── params.ts │ │ │ ├── query.ts │ │ │ └── tx.ts │ │ │ ├── eth │ │ │ └── tx.ts │ │ │ ├── evm │ │ │ ├── config.ts │ │ │ ├── enums.ts │ │ │ ├── genesis.ts │ │ │ ├── gov.ts │ │ │ ├── params.ts │ │ │ ├── query.ts │ │ │ ├── receipt.ts │ │ │ ├── tx.ts │ │ │ └── types.ts │ │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ │ ├── google │ │ │ ├── api │ │ │ │ ├── annotations.ts │ │ │ │ ├── http.ts │ │ │ │ └── httpbody.ts │ │ │ └── protobuf │ │ │ │ ├── any.ts │ │ │ │ ├── descriptor.ts │ │ │ │ ├── duration.ts │ │ │ │ └── timestamp.ts │ │ │ ├── mint │ │ │ └── v1beta1 │ │ │ │ ├── genesis.ts │ │ │ │ ├── gov.ts │ │ │ │ ├── mint.ts │ │ │ │ └── query.ts │ │ │ ├── oracle │ │ │ ├── genesis.ts │ │ │ ├── oracle.ts │ │ │ ├── query.ts │ │ │ └── tx.ts │ │ │ ├── tendermint │ │ │ ├── abci │ │ │ │ └── types.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 │ │ │ └── tokenfactory │ │ │ ├── authorityMetadata.ts │ │ │ ├── genesis.ts │ │ │ ├── params.ts │ │ │ ├── query.ts │ │ │ └── tx.ts │ ├── public │ │ ├── encoding │ │ │ └── common.ts │ │ └── rest │ │ │ └── fetch.ts │ ├── scripts │ │ ├── common │ │ │ ├── create-indexes.ts │ │ │ └── utils.ts │ │ ├── encoding │ │ │ ├── create-encoder.ts │ │ │ ├── extract-encoding.ts │ │ │ └── stargate.ts │ │ ├── index.ts │ │ ├── rest │ │ │ ├── create-querier.ts │ │ │ └── extract-rest.ts │ │ └── types │ │ │ └── extract-types.ts │ ├── tsconfig.declaration.json │ └── tsconfig.json ├── create-sei │ ├── .gitignore │ ├── .yarn │ │ └── install-state.gz │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ │ └── main.ts │ ├── templates │ │ ├── next-cosmos-template │ │ │ ├── .eslintrc.json │ │ │ ├── README.md │ │ │ ├── next-env.d.ts │ │ │ ├── next.config.mjs │ │ │ ├── package.json │ │ │ ├── public │ │ │ │ ├── next.svg │ │ │ │ ├── sei-logotype.svg │ │ │ │ └── vercel.svg │ │ │ ├── src │ │ │ │ └── app │ │ │ │ │ ├── components │ │ │ │ │ ├── Homepage │ │ │ │ │ │ ├── Examples.tsx │ │ │ │ │ │ ├── Homepage.css │ │ │ │ │ │ └── Homepage.tsx │ │ │ │ │ ├── WalletConnectButton │ │ │ │ │ │ └── WalletConnectButton.tsx │ │ │ │ │ ├── Web3Provider.tsx │ │ │ │ │ └── index.ts │ │ │ │ │ ├── constants │ │ │ │ │ ├── chain.ts │ │ │ │ │ └── index.ts │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── index.css │ │ │ │ │ ├── layout.tsx │ │ │ │ │ └── page.tsx │ │ │ ├── tsconfig.json │ │ │ └── yarn.lock │ │ ├── next-wagmi-template │ │ │ ├── .eslintrc.json │ │ │ ├── README.md │ │ │ ├── next-env.d.ts │ │ │ ├── next.config.mjs │ │ │ ├── package.json │ │ │ ├── public │ │ │ │ └── sei-logotype.svg │ │ │ ├── src │ │ │ │ └── app │ │ │ │ │ ├── components │ │ │ │ │ ├── Homepage │ │ │ │ │ │ ├── Examples.tsx │ │ │ │ │ │ ├── Homepage.css │ │ │ │ │ │ └── Homepage.tsx │ │ │ │ │ ├── Web3Provider.tsx │ │ │ │ │ └── index.ts │ │ │ │ │ ├── constants │ │ │ │ │ ├── chain.ts │ │ │ │ │ └── index.ts │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── index.css │ │ │ │ │ ├── layout.tsx │ │ │ │ │ └── page.tsx │ │ │ ├── tsconfig.json │ │ │ └── yarn.lock │ │ ├── vite-cosmos-template │ │ │ ├── .eslintrc.cjs │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ ├── package.json │ │ │ ├── public │ │ │ │ └── sei-logotype.svg │ │ │ ├── src │ │ │ │ ├── App.tsx │ │ │ │ ├── assets │ │ │ │ │ └── react.svg │ │ │ │ ├── components │ │ │ │ │ ├── Homepage │ │ │ │ │ │ ├── Examples.tsx │ │ │ │ │ │ ├── Homepage.css │ │ │ │ │ │ └── Homepage.tsx │ │ │ │ │ ├── WalletConnectButton │ │ │ │ │ │ └── WalletConnectButton.tsx │ │ │ │ │ ├── Web3Provider.tsx │ │ │ │ │ └── index.ts │ │ │ │ ├── constants │ │ │ │ │ ├── chain.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── index.css │ │ │ │ ├── main.tsx │ │ │ │ └── vite-env.d.ts │ │ │ ├── tsconfig.app.json │ │ │ ├── tsconfig.json │ │ │ ├── tsconfig.node.json │ │ │ ├── vite.config.ts │ │ │ └── yarn.lock │ │ └── vite-wagmi-template │ │ │ ├── .eslintrc.cjs │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ ├── package.json │ │ │ ├── public │ │ │ └── sei-logotype.svg │ │ │ ├── src │ │ │ ├── App.tsx │ │ │ ├── assets │ │ │ │ └── react.svg │ │ │ ├── components │ │ │ │ ├── Homepage │ │ │ │ │ ├── Examples.tsx │ │ │ │ │ ├── Homepage.css │ │ │ │ │ └── Homepage.tsx │ │ │ │ └── Web3Provider.tsx │ │ │ ├── constants │ │ │ │ ├── chain.ts │ │ │ │ └── index.ts │ │ │ ├── index.css │ │ │ ├── main.tsx │ │ │ └── vite-env.d.ts │ │ │ ├── tsconfig.app.json │ │ │ ├── tsconfig.json │ │ │ ├── tsconfig.node.json │ │ │ ├── vite.config.ts │ │ │ └── yarn.lock │ ├── tsconfig.json │ └── yarn.lock ├── evm │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── ethers │ │ │ ├── __tests__ │ │ │ │ └── ethersPrecompiles.spec.ts │ │ │ ├── addressPrecompile.ts │ │ │ ├── bankPrecompile.ts │ │ │ ├── confidentialTransfersPrecompile.ts │ │ │ ├── distributionPrecompile.ts │ │ │ ├── governancePrecompile.ts │ │ │ ├── ibcPrecompile.ts │ │ │ ├── index.ts │ │ │ ├── jsonPrecompile.ts │ │ │ ├── oraclePrecompile.ts │ │ │ ├── pointerPrecompile.ts │ │ │ ├── pointerviewPrecompile.ts │ │ │ ├── stakingPrecompile.ts │ │ │ └── wasmPrecompile.ts │ │ ├── index.ts │ │ ├── precompiles │ │ │ ├── address.ts │ │ │ ├── bank.ts │ │ │ ├── confidential_transfers.ts │ │ │ ├── distribution.ts │ │ │ ├── governance.ts │ │ │ ├── ibc.ts │ │ │ ├── index.ts │ │ │ ├── json.ts │ │ │ ├── oracle.ts │ │ │ ├── pointer.ts │ │ │ ├── pointerview.ts │ │ │ ├── staking.ts │ │ │ └── wasm.ts │ │ └── viem │ │ │ ├── __tests__ │ │ │ ├── chain.spec.ts │ │ │ └── viemPrecompiles.spec.ts │ │ │ ├── addressPrecompile.ts │ │ │ ├── bankPrecompile.ts │ │ │ ├── chain.ts │ │ │ ├── confidentialTransfersPrecompile.ts │ │ │ ├── distributionPrecompile.ts │ │ │ ├── governancePrecompile.ts │ │ │ ├── ibcPrecompile.ts │ │ │ ├── index.ts │ │ │ ├── jsonPrecompile.ts │ │ │ ├── oraclePrecompile.ts │ │ │ ├── pointerPrecompile.ts │ │ │ ├── pointerviewPrecompile.ts │ │ │ ├── stakingPrecompile.ts │ │ │ └── wasmPrecompile.ts │ ├── tsconfig.declaration.json │ └── tsconfig.json ├── ledger │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── cosmos │ │ │ ├── __tests__ │ │ │ │ ├── seiLedgerOfflineAminoSigner.spec.ts │ │ │ │ └── utils.spec.ts │ │ │ ├── index.ts │ │ │ ├── seiLedgerOfflineAminoSigner.ts │ │ │ └── utils.ts │ │ └── index.ts │ ├── tsconfig.declaration.json │ └── tsconfig.json ├── mcp-server │ ├── .env.example │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── cli.js │ ├── coverage.json │ ├── img │ │ ├── ClaudeSearchAndTools.png │ │ ├── ClaudeSeiPrompts.png │ │ └── ClaudeSeiTools.png │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── core │ │ │ ├── chains.ts │ │ │ ├── config.ts │ │ │ ├── prompts.ts │ │ │ ├── resources.ts │ │ │ ├── services │ │ │ │ ├── balance.ts │ │ │ │ ├── blocks.ts │ │ │ │ ├── clients.ts │ │ │ │ ├── contracts.ts │ │ │ │ ├── index.ts │ │ │ │ ├── tokens.ts │ │ │ │ ├── transactions.ts │ │ │ │ ├── transfer.ts │ │ │ │ └── utils.ts │ │ │ └── tools.ts │ │ ├── index.ts │ │ ├── server │ │ │ ├── http-server.ts │ │ │ └── server.ts │ │ └── tests │ │ │ └── core │ │ │ ├── chains.test.ts │ │ │ ├── config.test.ts │ │ │ ├── helpers │ │ │ └── tool-test-helpers.ts │ │ │ ├── services │ │ │ ├── balance.test.ts │ │ │ ├── blocks.test.ts │ │ │ ├── clients.test.ts │ │ │ ├── contracts.test.ts │ │ │ ├── tokens.test.ts │ │ │ ├── transactions.test.ts │ │ │ ├── transfer.test.ts │ │ │ └── utils.test.ts │ │ │ └── tools.test.ts │ ├── tsconfig.declaration.json │ ├── tsconfig.json │ └── tsconfig.test.json ├── registry │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── RUNBOOK.md │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── chain-info │ │ │ ├── __tests__ │ │ │ │ └── index.spec.ts │ │ │ └── index.ts │ │ ├── gas │ │ │ ├── __tests__ │ │ │ │ └── index.spec.ts │ │ │ └── index.ts │ │ ├── ibc │ │ │ ├── __tests__ │ │ │ │ └── index.spec.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── networks │ │ │ ├── __tests__ │ │ │ │ └── index.spec.ts │ │ │ └── index.ts │ │ ├── tokens │ │ │ ├── __tests__ │ │ │ │ └── index.spec.ts │ │ │ └── index.ts │ │ └── wallets │ │ │ ├── __tests__ │ │ │ └── index.spec.ts │ │ │ └── index.ts │ ├── tsconfig.declaration.json │ └── tsconfig.json └── sei-global-wallet │ ├── CHANGELOG.md │ ├── README.md │ ├── jest.config.mjs │ ├── package.json │ ├── src │ ├── eip6963.ts │ ├── index.ts │ ├── lib │ │ ├── EIP6963Emitter.ts │ │ ├── __tests__ │ │ │ ├── EIP6963Emitter.spec.ts │ │ │ └── registerSolanaStandard.ts │ │ ├── config.ts │ │ ├── registerSolanaStandard.ts │ │ └── wallet.ts │ └── solana-standard.ts │ ├── tsconfig.declaration.json │ └── tsconfig.json ├── tsconfig.base.json ├── typedoc.base.json ├── typedoc.config.js ├── typedoc.theme.css └── yarn.lock /.changeset/README.md: -------------------------------------------------------------------------------- 1 | # Changesets 2 | 3 | Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 | with multi-package repos, or single-package repos to help you version and publish your code. You can 5 | find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 | 7 | We have a quick list of common questions to get you started engaging with this project in 8 | [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) 9 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "fixed": [], 6 | "linked": [], 7 | "access": "public", 8 | "baseBranch": "main", 9 | "updateInternalDependencies": "patch", 10 | "ignore": [] 11 | } 12 | -------------------------------------------------------------------------------- /.changeset/shaky-icons-speak.md: -------------------------------------------------------------------------------- 1 | --- 2 | "@sei-js/mcp-server": minor 3 | --- 4 | 5 | Add deployContract tool 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: "[BUG] Issue Title" 5 | labels: bug, linear 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Seid version** 11 | Show us output of `seid version --long | head` 12 | 13 | **SeiJS package & version** 14 | Check your `package.json` for version number and package (core/react/proto) 15 | 16 | **Chain ID** 17 | Which chain are you running into issues with? 18 | 19 | **Describe the bug** 20 | A clear and concise description of what the bug is. 21 | 22 | **To Reproduce** 23 | Steps to reproduce the behavior: 24 | 1. Go to '...' 25 | 2. Click on '....' 26 | 3. Scroll down to '....' 27 | 4. See error 28 | 29 | **Expected behavior** 30 | A clear and concise description of what you expected to happen. 31 | 32 | **Screenshots** 33 | If applicable, add screenshots to help explain your problem. 34 | 35 | **Additional context** 36 | Add any other context about the problem here. 37 | -------------------------------------------------------------------------------- /.github/workflows/checks.yml: -------------------------------------------------------------------------------- 1 | name: Checks 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - uses: actions/checkout@v3 11 | with: 12 | fetch-depth: 0 # Fetch the full history instead of a shallow clone 13 | 14 | - uses: actions/setup-node@v3 15 | with: 16 | node-version: 20 17 | 18 | - name: Enable Corepack 19 | run: corepack enable 20 | 21 | - name: Yarn Install 22 | run: yarn 23 | 24 | - name: Build All Packages 25 | run: yarn build:all 26 | 27 | - name: Test 28 | run: yarn test:all 29 | -------------------------------------------------------------------------------- /.github/workflows/notify.yml: -------------------------------------------------------------------------------- 1 | # runs if /packages/registry/** is updated and the release workflow completes successfully 2 | name: Update Registry Submodules 3 | 4 | on: 5 | workflow_run: 6 | workflows: ["Release"] 7 | types: 8 | - completed 9 | push: 10 | paths: 11 | - 'packages/registry/**' 12 | 13 | jobs: 14 | release: 15 | runs-on: ubuntu-latest 16 | if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' 17 | 18 | steps: 19 | - name: Check out code 20 | uses: actions/checkout@v2 21 | with: 22 | fetch-depth: 0 # Fetch the full history instead of a shallow clone 23 | 24 | - name: Delay for 90 seconds to allow NPM package to propagate 25 | run: sleep 90 26 | 27 | - name: Update registry API 28 | uses: peter-evans/repository-dispatch@v1 29 | with: 30 | token: ${{ secrets.GITHUB_TOKEN }} 31 | event-type: workflow_completed 32 | client-payload: '{"workflow_run_id": "${{ github.event.workflow_run.id }}"}' 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # testing 4 | packages/*/coverage 5 | 6 | 7 | # compiled output 8 | dist 9 | tmp 10 | /out-tsc 11 | main 12 | module 13 | docs 14 | 15 | # dependencies 16 | node_modules 17 | 18 | # IDEs and editors 19 | /.idea 20 | .project 21 | .classpath 22 | .c9/ 23 | *.launch 24 | .settings/ 25 | *.sublime-workspace 26 | 27 | # IDE - VSCode 28 | .vscode/* 29 | !.vscode/settings.json 30 | !.vscode/tasks.json 31 | !.vscode/launch.json 32 | !.vscode/extensions.json 33 | 34 | # misc 35 | /.sass-cache 36 | /connect.lock 37 | /coverage 38 | /libpeerconnection.log 39 | npm-debug.log 40 | yarn-error.log 41 | testem.log 42 | /typings 43 | .next 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | 49 | packages/registry/chain-registry 50 | packages/registry/community-assetlist 51 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "packages/registry/community-assetlist"] 2 | path = packages/registry/community-assetlist 3 | url = https://github.com/Sei-Public-Goods/sei-assetlist.git 4 | [submodule "packages/registry/chain-registry"] 5 | path = packages/registry/chain-registry 6 | url = https://github.com/sei-protocol/chain-registry.git 7 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v20 2 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "firsttris.vscode-jest-runner"] 3 | } 4 | -------------------------------------------------------------------------------- /.yarn/install-state.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/.yarn/install-state.gz -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: node-modules 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", 3 | "vcs": { 4 | "enabled": false, 5 | "clientKind": "git", 6 | "useIgnoreFile": false 7 | }, 8 | "files": { 9 | "ignoreUnknown": false, 10 | "ignore": ["*/coverage/*"] 11 | }, 12 | "formatter": { 13 | "enabled": true, 14 | "indentStyle": "tab", 15 | "lineWidth": 160 16 | }, 17 | "organizeImports": { 18 | "enabled": true 19 | }, 20 | "linter": { 21 | "enabled": true, 22 | "rules": { 23 | "recommended": true, 24 | "correctness": { 25 | "useExhaustiveDependencies": "off" 26 | }, 27 | "style": { 28 | "noUselessElse": "off" 29 | } 30 | } 31 | }, 32 | "javascript": { 33 | "formatter": { 34 | "quoteStyle": "single", 35 | "jsxQuoteStyle": "double", 36 | "trailingCommas": "none" 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /packages/confidential-transfers/.gitignore: -------------------------------------------------------------------------------- 1 | # compiled output 2 | dist 3 | 4 | # dependencies 5 | node_modules 6 | 7 | .idea 8 | .DS_Store -------------------------------------------------------------------------------- /packages/confidential-transfers/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # @sei-js/confidential-transfers 2 | -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/buf.gen.gogo.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | plugins: 3 | - name: gogo 4 | out: ./cttypes 5 | opt: paths=source_relative 6 | -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/buf.work.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | directories: 3 | - proto -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/ct.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/confidential-transfers/confidentialWasm/ct.wasm -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/cttypes/applyPendingBalance.go: -------------------------------------------------------------------------------- 1 | package cttypes 2 | 3 | import ( 4 | prototypes "confidentialWasm/cttypes/confidentialtransfers" 5 | 6 | "github.com/sei-protocol/sei-cryptography/pkg/ct_module/types" 7 | ) 8 | 9 | func NewMsgApplyPendingBalanceProto(applyPendingBalance *types.ApplyPendingBalance) *prototypes.MsgApplyPendingBalance { 10 | currentAvailableBalance := NewCiphertextProto(applyPendingBalance.CurrentAvailableBalance) 11 | 12 | return &prototypes.MsgApplyPendingBalance{ 13 | Address: applyPendingBalance.Address, 14 | Denom: applyPendingBalance.Denom, 15 | NewDecryptableAvailableBalance: applyPendingBalance.NewDecryptableAvailableBalance, 16 | CurrentPendingBalanceCounter: applyPendingBalance.CurrentPendingBalanceCounter, 17 | CurrentAvailableBalance: currentAvailableBalance, 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/cttypes/closeAccount.go: -------------------------------------------------------------------------------- 1 | package cttypes 2 | 3 | import ( 4 | prototypes "confidentialWasm/cttypes/confidentialtransfers" 5 | 6 | "github.com/sei-protocol/sei-cryptography/pkg/ct_module/types" 7 | ) 8 | 9 | func NewMsgCloseAccountProto(closeAccount *types.CloseAccount) *prototypes.MsgCloseAccount { 10 | proofs := NewCloseAccountMsgProofs(closeAccount.Proofs) 11 | return &prototypes.MsgCloseAccount{ 12 | Address: closeAccount.Address, 13 | Denom: closeAccount.Denom, 14 | Proofs: proofs, 15 | } 16 | } 17 | 18 | func NewCloseAccountMsgProofs(proofs *types.CloseAccountProofs) *prototypes.CloseAccountMsgProofs { 19 | return &prototypes.CloseAccountMsgProofs{ 20 | ZeroAvailableBalanceProof: NewZeroBalanceProofProto(proofs.ZeroAvailableBalanceProof), 21 | ZeroPendingBalanceLoProof: NewZeroBalanceProofProto(proofs.ZeroPendingBalanceLoProof), 22 | ZeroPendingBalanceHiProof: NewZeroBalanceProofProto(proofs.ZeroPendingBalanceHiProof), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/cttypes/confidentialtransfers/zk.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "github.com/coinbase/kryptology/pkg/core/curves" 5 | "github.com/sei-protocol/sei-cryptography/pkg/encryption/elgamal" 6 | ) 7 | 8 | func (c *Ciphertext) FromProto() (*elgamal.Ciphertext, error) { 9 | ed25519Curve := curves.ED25519() 10 | 11 | pointC, err := ed25519Curve.Point.FromAffineCompressed(c.C) 12 | if err != nil { 13 | return nil, err 14 | } 15 | 16 | pointD, err := ed25519Curve.Point.FromAffineCompressed(c.D) 17 | if err != nil { 18 | return nil, err 19 | } 20 | 21 | return &elgamal.Ciphertext{ 22 | C: pointC, 23 | D: pointD, 24 | }, nil 25 | } 26 | -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "confidentialWasm/methods" 5 | "syscall/js" 6 | ) 7 | 8 | func main() { 9 | done := make(chan struct{}) 10 | 11 | js.Global().Set("createWithdrawStruct", js.FuncOf(methods.NewWithdrawWASM)) 12 | js.Global().Set("createInitializeStruct", js.FuncOf(methods.NewInitializeWASM)) 13 | js.Global().Set("createApplyPendingBalanceStruct", js.FuncOf(methods.NewApplyPendingBalanceWASM)) 14 | js.Global().Set("createTransferStruct", js.FuncOf(methods.NewTransferWASM)) 15 | js.Global().Set("createCloseAccountStruct", js.FuncOf(methods.NewCloseAccountWASM)) 16 | js.Global().Set("decryptCiphertext", js.FuncOf(methods.DecryptCiphertext)) 17 | js.Global().Set("decryptAesCiphertext", js.FuncOf(methods.DecryptAES)) 18 | // Expose a "done" function that closes the channel 19 | js.Global().Set("done", js.FuncOf(func(this js.Value, args []js.Value) interface{} { 20 | close(done) // Unblock <-done 21 | return nil 22 | })) 23 | // Create a done channel 24 | <-done 25 | } 26 | -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/proto/buf.lock: -------------------------------------------------------------------------------- 1 | # Generated by buf. DO NOT EDIT. 2 | version: v1 3 | deps: 4 | - remote: buf.build 5 | owner: sei-protocol 6 | repository: third-party 7 | commit: ec63a6f27ea04039953185599c21efc2 8 | digest: shake256:a4e513745f8b44d28ab1fe93e633424b8dc7f6275bcab228376fbf27b8dafc08360bcae8255c1d65339db5d4f38665273fa844302b6e048f992929dbdc919a5e 9 | -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/proto/buf.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | name: buf.build/sei-protocol/confidentialtransfers 3 | deps: 4 | - buf.build/sei-protocol/third-party -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/proto/confidentialtransfers/confidential.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package seiprotocol.seichain.confidentialtransfers; 3 | 4 | import "gogoproto/gogo.proto"; 5 | import "confidentialtransfers/cryptography.proto"; 6 | 7 | option go_package = "github.com/sei-protocol/sei-chain/x/confidentialtransfers/types"; 8 | 9 | 10 | // CtAccount represents an confidential transfers account state 11 | message CtAccount { 12 | bytes public_key = 1; // serialized public key 13 | Ciphertext pending_balance_lo = 2; // lo bits of the pending balance 14 | Ciphertext pending_balance_hi = 3; // hi bits of the pending balance 15 | uint32 pending_balance_credit_counter = 4; 16 | Ciphertext available_balance = 5; // elgamal encoded balance 17 | string decryptable_available_balance = 6; // aes encoded balance 18 | } 19 | 20 | message CtAccountWithDenom { 21 | string denom = 1; 22 | CtAccount account = 2 [(gogoproto.nullable) = false]; 23 | } -------------------------------------------------------------------------------- /packages/confidential-transfers/confidentialWasm/proto/confidentialtransfers/cryptography.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package seiprotocol.seichain.confidentialtransfers; 3 | 4 | option go_package = "github.com/sei-protocol/sei-chain/x/confidentialtransfers/types"; 5 | 6 | 7 | // Ciphertext represents the ciphertext of a message. 8 | message Ciphertext { 9 | // Pedersen commitment bytes. 10 | bytes c = 1; 11 | 12 | // Decryption handle bytes. 13 | bytes d = 2; 14 | } 15 | -------------------------------------------------------------------------------- /packages/confidential-transfers/hardhat.config.js: -------------------------------------------------------------------------------- 1 | require("@nomiclabs/hardhat-waffle"); 2 | 3 | module.exports = { 4 | solidity: "0.8.4", 5 | networks: { 6 | hardhat: { 7 | accounts: { 8 | count: 10, // Number of accounts 9 | accountsBalance: "100000000000000000000000" // 10000 ETH 10 | } 11 | } 12 | } 13 | }; -------------------------------------------------------------------------------- /packages/confidential-transfers/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['**/src/test/*.test.ts'], 5 | }; 6 | -------------------------------------------------------------------------------- /packages/confidential-transfers/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./interface/ethers" 2 | export * from "./interface/viem" 3 | export * from "./interface/types" 4 | export { ConfidentialTransfersWrapper } from "./payload/confidentialApi" -------------------------------------------------------------------------------- /packages/confidential-transfers/src/interface/types.ts: -------------------------------------------------------------------------------- 1 | export interface DecryptedAccount { 2 | publicKey: `0x${string}` | string, // serialized public key 3 | pendingBalanceLo: bigint, // lo bits of the pending balance 4 | pendingBalanceHi: bigint, // hi bits of the pending balance 5 | totalPendingBalance: bigint, 6 | pendingBalanceCreditCounter: number, 7 | availableBalance: string // elgamal encoded balance 8 | decryptableAvailableBalance: bigint // aes encoded balance 9 | } 10 | 11 | export interface DecryptedPendingBalances { 12 | pendingBalanceLo: bigint 13 | pendingBalanceHi: bigint 14 | totalPendingBalance: bigint 15 | } -------------------------------------------------------------------------------- /packages/confidential-transfers/src/test/testUtils.ts: -------------------------------------------------------------------------------- 1 | import { exec } from "child_process"; 2 | 3 | export async function fundAddress(addr: string, amount="1000000000000000000000000") { 4 | const result = await evmSend(addr, "admin", amount) 5 | return result 6 | } 7 | 8 | export async function evmSend(addr: string, fromKey: string, amount="10000000000000000000000000") { 9 | const output = await execCommand(`seid tx evm send ${addr} ${amount} --from ${fromKey} -b block -y`); 10 | return output.replace(/.*0x/, "0x").trim() 11 | } 12 | 13 | async function execCommand(command: string): Promise { 14 | return new Promise((resolve, reject) => { 15 | exec(command, (error, stdout, stderr) => { 16 | if (error) { 17 | reject(error); 18 | return; 19 | } 20 | if (stderr) { 21 | reject(new Error(stderr)); 22 | return; 23 | } 24 | resolve(stdout); 25 | }); 26 | }) 27 | } -------------------------------------------------------------------------------- /packages/confidential-transfers/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false, 8 | "preserveConstEnums": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/confidential-transfers/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["src"], 4 | "compilerOptions": { 5 | "outDir": "./dist/types", 6 | "lib": ["dom"] 7 | }, 8 | "typedocOptions": { 9 | "readme": "./README.md", 10 | "name": "evm", 11 | "entryPoints": ["src/index.ts"], 12 | "exclude": ["node_modules"] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/cosmjs/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | node_modules 3 | docs 4 | coverage 5 | 6 | tsconfig.json 7 | 8 | yarn-error.log 9 | -------------------------------------------------------------------------------- /packages/cosmjs/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node' 4 | }; 5 | -------------------------------------------------------------------------------- /packages/cosmjs/src/clients/index.ts: -------------------------------------------------------------------------------- 1 | export * from './cosmWasmClient'; 2 | export * from './stargateClient'; 3 | -------------------------------------------------------------------------------- /packages/cosmjs/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './clients'; 2 | export * from './utils'; 3 | export * from './wallet'; 4 | -------------------------------------------------------------------------------- /packages/cosmjs/src/utils/__tests__/hash.spec.ts: -------------------------------------------------------------------------------- 1 | import { sha256 } from '../hash'; 2 | 3 | describe('sha256', () => { 4 | it('should return a Uint8Array hash of the given data', () => { 5 | const data = new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); 6 | 7 | const evalHash = sha256(data); 8 | const expectedHash = new Uint8Array([ 9 | 31, 130, 90, 162, 240, 2, 14, 247, 207, 145, 223, 163, 13, 164, 102, 141, 121, 28, 93, 72, 36, 252, 142, 65, 53, 75, 137, 236, 5, 121, 90, 179 10 | ]); 11 | 12 | expect(evalHash).toBeInstanceOf(Uint8Array); 13 | expect(evalHash).toEqual(expectedHash); 14 | }); 15 | 16 | it('should return different hashes for different data', () => { 17 | const data1 = new Uint8Array([0, 1, 2, 3, 4, 5]); 18 | const data2 = new Uint8Array([5, 4, 3, 2, 1, 0]); 19 | 20 | // When 21 | const hash1 = sha256(data1); 22 | const hash2 = sha256(data2); 23 | 24 | expect(hash1).not.toEqual(hash2); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /packages/cosmjs/src/utils/bech32.ts: -------------------------------------------------------------------------------- 1 | import { bech32 } from 'bech32'; 2 | 3 | /** 4 | * Converts a given address to Bech32 format. 5 | * @param address The address to convert. 6 | * @returns The bech32 formatted address. 7 | * @category Utils 8 | */ 9 | export const toBech32 = (address: Uint8Array): string => { 10 | if (!address.length) { 11 | throw new Error('Invalid address length'); 12 | } 13 | const words = bech32.toWords(address); 14 | return bech32.encode('sei', words); 15 | }; 16 | -------------------------------------------------------------------------------- /packages/cosmjs/src/utils/hash.ts: -------------------------------------------------------------------------------- 1 | import { sha256 as Sha256Hash } from 'sha.js'; 2 | 3 | /** 4 | * Returns the sha256 encoded hash of the given data. 5 | * @param data The data to encode. 6 | * @returns The sha256 encoded hash of the given data. 7 | * @category Utils 8 | */ 9 | export const sha256 = (data: Uint8Array): Uint8Array => { 10 | return new Uint8Array(new Sha256Hash().update(data).digest()); 11 | }; 12 | -------------------------------------------------------------------------------- /packages/cosmjs/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './address'; 2 | export * from './bech32'; 3 | export * from './hash'; 4 | export * from './signing'; 5 | -------------------------------------------------------------------------------- /packages/cosmjs/src/wallet/index.ts: -------------------------------------------------------------------------------- 1 | export * from './types'; 2 | export * from './utils'; 3 | export * from './wallet'; 4 | -------------------------------------------------------------------------------- /packages/cosmjs/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false, 8 | "preserveConstEnums": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/cosmjs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["src"], 4 | "compilerOptions": { 5 | "outDir": "./dist/types" 6 | }, 7 | "typedocOptions": { 8 | "readme": "./README.md", 9 | "name": "cosmjs", 10 | "entryPoints": ["src/index.ts"] 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /packages/cosmos/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | scripts/ 3 | library/ 4 | protoc/ 5 | public/ 6 | bin/ 7 | 8 | .gitkeep 9 | jest.config.ts 10 | tsconfig.json 11 | tsconfig.*.json 12 | 13 | yarn-error.log 14 | 15 | buf.*.yaml 16 | -------------------------------------------------------------------------------- /packages/cosmos/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | scripts/ 3 | library/ 4 | protoc/ 5 | public/ 6 | bin/ 7 | 8 | .gitkeep 9 | jest.config.ts 10 | tsconfig.json 11 | tsconfig.*.json 12 | 13 | yarn-error.log 14 | 15 | buf.*.yaml 16 | -------------------------------------------------------------------------------- /packages/cosmos/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # @sei-js/cosmos 2 | 3 | ## 1.0.5 4 | 5 | ### Patch Changes 6 | 7 | - f259f6c: Add all encode-able objects to Stargate registry and Amino exports 8 | 9 | ## 1.0.4 10 | 11 | ### Patch Changes 12 | 13 | - cd65a51: Fix broken NPM publish for all packages 14 | 15 | ## 1.0.3 16 | 17 | ### Patch Changes 18 | 19 | - d6e74ed: Update package structure and building of all @sei-js packages 20 | 21 | ## 1.0.2 22 | 23 | ### Patch Changes 24 | 25 | - a7b8530: updated export for stargate to now be imported directly from @sei-js/cosmos/encoding rather than @sei-js/cosmos/encoding/stargate 26 | 27 | ## 1.0.1 28 | 29 | ### Patch Changes 30 | 31 | - 4bb7c92: Export registry and amino types 32 | 33 | ## 1.0.0 34 | 35 | ### Major Changes 36 | 37 | - 590bbcf: Adds libraries for all Sei Typescript Types, for querying cosmos REST endpoints, and for proto encoding/decoding. 38 | -------------------------------------------------------------------------------- /packages/cosmos/bin/protoc-gen-grpc-gateway-ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/cosmos/bin/protoc-gen-grpc-gateway-ts -------------------------------------------------------------------------------- /packages/cosmos/biome.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", 3 | "vcs": { 4 | "enabled": false, 5 | "clientKind": "git", 6 | "useIgnoreFile": false 7 | }, 8 | "files": { 9 | "ignoreUnknown": false, 10 | "ignore": ["*/coverage/*"] 11 | }, 12 | "formatter": { 13 | "enabled": true, 14 | "indentStyle": "tab", 15 | "lineWidth": 160 16 | }, 17 | "organizeImports": { 18 | "enabled": true 19 | }, 20 | "linter": { 21 | "enabled": true, 22 | "rules": { 23 | "recommended": true, 24 | "correctness": { 25 | "useExhaustiveDependencies": "off", 26 | "noUnusedImports": "error" 27 | }, 28 | "style": { 29 | "noUselessElse": "off" 30 | }, 31 | "complexity": { 32 | "noStaticOnlyClass": "off", 33 | "useLiteralKeys": "off", 34 | "noBannedTypes": "off" 35 | } 36 | } 37 | }, 38 | "javascript": { 39 | "formatter": { 40 | "quoteStyle": "double", 41 | "jsxQuoteStyle": "double", 42 | "trailingCommas": "none" 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /packages/cosmos/buf.gen.yaml: -------------------------------------------------------------------------------- 1 | version: v2 2 | managed: 3 | enabled: true 4 | plugins: 5 | - local: ./bin/protoc-gen-grpc-gateway-ts 6 | out: ./protoc/grpc-gateway 7 | opt: 8 | - use_proto_names=true 9 | - remote: buf.build/community/stephenh-ts-proto:v2.2.0 10 | out: ./protoc/ts-proto 11 | opt: 12 | - esModuleInterop=true 13 | - useOptionals=messages 14 | - outputServices=false 15 | - useSnakeTypeName=false 16 | - snakeToCamel=false 17 | - outputTypeAnnotations=static-only 18 | -------------------------------------------------------------------------------- /packages/cosmos/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: "ts-jest", 3 | testEnvironment: "node" 4 | }; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/confidentialtransfers/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./confidential"; 4 | export * from "./cryptography"; 5 | export * from "./genesis"; 6 | export * from "./params"; 7 | export * from "./query"; 8 | export * from "./tx"; 9 | export * from "./zk"; 10 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/confio/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./proofs"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/accesscontrol/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./accesscontrol"; 4 | export * from "./constants"; 5 | export * from "./legacy"; 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/accesscontrol_x/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./gov"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/auth/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./auth"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/authz/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authz"; 4 | export * from "./event"; 5 | export * from "./genesis"; 6 | export * from "./query"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/bank/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authz"; 4 | export * from "./bank"; 5 | export * from "./genesis"; 6 | export * from "./query"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/abci/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./abci"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/kv/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./kv"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/query/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./pagination"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/reflection/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./reflection"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/reflection/v2alpha1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./reflection"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/snapshots/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./snapshot"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/store/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./commit_info"; 4 | export * from "./listening"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/tendermint/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./query"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/base/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./coin"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/capability/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./capability"; 4 | export * from "./genesis"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/crisis/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./tx"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/crypto/ed25519/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/crypto/multisig/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/crypto/multisig/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./multisig"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/crypto/secp256k1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/crypto/secp256r1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/crypto/sr25519/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/distribution/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./distribution"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/evidence/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./evidence"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/feegrant/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./feegrant"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/genutil/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/gov/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./gov"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/mint/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./mint"; 5 | export * from "./query"; 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/params/types/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/params/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./params"; 4 | export * from "./query"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/slashing/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./query"; 5 | export * from "./slashing"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/staking/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authz"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./staking"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/tx/signing/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./signing"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/tx/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./service"; 4 | export * from "./tx"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/upgrade/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./query"; 4 | export * from "./upgrade"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/cosmos/vesting/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./tx"; 4 | export * from "./vesting"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/epoch/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./epoch"; 4 | export * from "./genesis"; 5 | export * from "./params"; 6 | export * from "./query"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/eth/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./tx"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/evm/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./config"; 4 | export * from "./enums"; 5 | export * from "./genesis"; 6 | export * from "./gov"; 7 | export * from "./params"; 8 | export * from "./query"; 9 | export * from "./receipt"; 10 | export * from "./tx"; 11 | export * from "./types"; 12 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/google/api/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./http"; 4 | export * from "./httpbody"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/google/protobuf/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./any"; 4 | export * from "./descriptor"; 5 | export * from "./duration"; 6 | export * from "./timestamp"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/mint/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./gov"; 5 | export * from "./mint"; 6 | export * from "./query"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/oracle/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./oracle"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/tendermint/abci/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/tendermint/crypto/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | export * from "./proof"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/tendermint/libs/bits/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/tendermint/p2p/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/tendermint/types/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./block"; 4 | export * from "./evidence"; 5 | export * from "./params"; 6 | export * from "./types"; 7 | export * from "./validator"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/tendermint/version/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/encoding/tokenfactory/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authorityMetadata"; 4 | export * from "./genesis"; 5 | export * from "./params"; 6 | export * from "./query"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/rest/confidentialtransfers/query.ts: -------------------------------------------------------------------------------- 1 | import * as fm from "../fetch"; 2 | 3 | import type { GetAllCtAccountsRequest, GetAllCtAccountsResponse, GetCtAccountRequest, GetCtAccountResponse } from "../../types/confidentialtransfers/query.ts"; 4 | 5 | export class Query { 6 | static GetCtAccount(req: GetCtAccountRequest, initReq?: fm.InitReq): Promise { 7 | return fm.fetchReq( 8 | `/seichain/confidentialtransfers/account/${req["address"]}/denom/${req["denom"]}?${fm.renderURLSearchParams(req, ["address", "denom"])}`, 9 | { ...initReq, method: "GET" } 10 | ); 11 | } 12 | static GetAllCtAccounts(req: GetAllCtAccountsRequest, initReq?: fm.InitReq): Promise { 13 | return fm.fetchReq( 14 | `/seichain/confidentialtransfers/accounts/${req["address"]}?${fm.renderURLSearchParams(req, ["address"])}`, 15 | { ...initReq, method: "GET" } 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/cosmos/library/rest/cosmos/evidence/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import * as fm from "../../../fetch"; 2 | 3 | import type { 4 | QueryAllEvidenceRequest, 5 | QueryAllEvidenceResponse, 6 | QueryEvidenceRequest, 7 | QueryEvidenceResponse 8 | } from "../../../../types/cosmos/evidence/v1beta1/query.ts"; 9 | 10 | export class Query { 11 | static Evidence(req: QueryEvidenceRequest, initReq?: fm.InitReq): Promise { 12 | return fm.fetchReq( 13 | `/cosmos/evidence/v1beta1/evidence/${req["evidence_hash"]}?${fm.renderURLSearchParams(req, ["evidence_hash"])}`, 14 | { ...initReq, method: "GET" } 15 | ); 16 | } 17 | static AllEvidence(req: QueryAllEvidenceRequest, initReq?: fm.InitReq): Promise { 18 | return fm.fetchReq(`/cosmos/evidence/v1beta1/evidence?${fm.renderURLSearchParams(req, [])}`, { 19 | ...initReq, 20 | method: "GET" 21 | }); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/cosmos/library/rest/cosmos/params/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import * as fm from "../../../fetch"; 2 | 3 | import type { QueryParamsRequest, QueryParamsResponse } from "../../../../types/cosmos/params/v1beta1/query.ts"; 4 | 5 | export class Query { 6 | static Params(req: QueryParamsRequest, initReq?: fm.InitReq): Promise { 7 | return fm.fetchReq(`/cosmos/params/v1beta1/params?${fm.renderURLSearchParams(req, [])}`, { 8 | ...initReq, 9 | method: "GET" 10 | }); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /packages/cosmos/library/rest/epoch/query.ts: -------------------------------------------------------------------------------- 1 | import * as fm from "../fetch"; 2 | 3 | import type { QueryEpochRequest, QueryEpochResponse, QueryParamsRequest, QueryParamsResponse } from "../../types/epoch/query.ts"; 4 | 5 | export class Query { 6 | static Epoch(req: QueryEpochRequest, initReq?: fm.InitReq): Promise { 7 | return fm.fetchReq(`/sei-protocol/seichain/epoch/epoch?${fm.renderURLSearchParams(req, [])}`, { 8 | ...initReq, 9 | method: "GET" 10 | }); 11 | } 12 | static Params(req: QueryParamsRequest, initReq?: fm.InitReq): Promise { 13 | return fm.fetchReq(`/sei-protocol/seichain/epoch/params?${fm.renderURLSearchParams(req, [])}`, { 14 | ...initReq, 15 | method: "GET" 16 | }); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/cosmos/library/rest/mint/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import * as fm from "../../fetch"; 2 | 3 | import type { QueryMinterRequest, QueryMinterResponse, QueryParamsRequest, QueryParamsResponse } from "../../../types/mint/v1beta1/query.ts"; 4 | 5 | export class Query { 6 | static Params(req: QueryParamsRequest, initReq?: fm.InitReq): Promise { 7 | return fm.fetchReq(`/seichain/mint/v1beta1/params?${fm.renderURLSearchParams(req, [])}`, { 8 | ...initReq, 9 | method: "GET" 10 | }); 11 | } 12 | static Minter(req: QueryMinterRequest, initReq?: fm.InitReq): Promise { 13 | return fm.fetchReq(`/seichain/mint/v1beta1/minter?${fm.renderURLSearchParams(req, [])}`, { 14 | ...initReq, 15 | method: "GET" 16 | }); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/confidentialtransfers/confidential.ts: -------------------------------------------------------------------------------- 1 | import type { Ciphertext } from "./cryptography"; 2 | 3 | export interface CtAccount { 4 | /** serialized public key */ 5 | public_key: Uint8Array; 6 | /** lo bits of the pending balance */ 7 | pending_balance_lo?: Ciphertext; 8 | /** hi bits of the pending balance */ 9 | pending_balance_hi?: Ciphertext; 10 | pending_balance_credit_counter: number; 11 | /** elgamal encoded balance */ 12 | available_balance?: Ciphertext; 13 | /** aes encoded balance */ 14 | decryptable_available_balance: string; 15 | } 16 | 17 | export interface CtAccountWithDenom { 18 | denom: string; 19 | account?: CtAccount; 20 | } 21 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/confidentialtransfers/cryptography.ts: -------------------------------------------------------------------------------- 1 | export interface Ciphertext { 2 | /** Pedersen commitment bytes. */ 3 | c: Uint8Array; 4 | /** Decryption handle bytes. */ 5 | d: Uint8Array; 6 | } 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/confidentialtransfers/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { CtAccount } from "./confidential"; 2 | 3 | import type { Params } from "./params"; 4 | 5 | export interface GenesisState { 6 | /** params defines the parameters of the module. */ 7 | params?: Params; 8 | /** accounts is an array of confidential transfer accounts */ 9 | accounts: GenesisCtAccount[]; 10 | } 11 | 12 | export interface GenesisCtAccount { 13 | /** account key */ 14 | key: Uint8Array; 15 | /** confidential transfer account */ 16 | account?: CtAccount; 17 | } 18 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/confidentialtransfers/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./confidential"; 4 | export * from "./cryptography"; 5 | export * from "./genesis"; 6 | export * from "./params"; 7 | export * from "./query"; 8 | export * from "./tx"; 9 | export * from "./zk"; 10 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/confidentialtransfers/params.ts: -------------------------------------------------------------------------------- 1 | export interface Params { 2 | enable_ct_module: boolean; 3 | range_proof_gas_cost: number; 4 | enabled_denoms: string[]; 5 | ciphertext_gas_cost: number; 6 | proof_verification_gas_cost: number; 7 | } 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/confio/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./proofs"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/accesscontrol/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./accesscontrol"; 4 | export * from "./constants"; 5 | export * from "./legacy"; 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/accesscontrol/legacy.ts: -------------------------------------------------------------------------------- 1 | import type { AccessOperation } from "./accesscontrol"; 2 | 3 | import type { AccessOperationSelectorType } from "./constants"; 4 | 5 | export interface LegacyAccessOperationWithSelector { 6 | operation?: AccessOperation; 7 | selector_type: AccessOperationSelectorType; 8 | selector: string; 9 | } 10 | 11 | export interface LegacyWasmDependencyMapping { 12 | enabled: boolean; 13 | access_ops: LegacyAccessOperationWithSelector[]; 14 | reset_reason: string; 15 | contract_address: string; 16 | } 17 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/accesscontrol_x/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { MessageDependencyMapping, WasmDependencyMapping } from "../accesscontrol/accesscontrol"; 2 | 3 | export interface GenesisState { 4 | params?: Params; 5 | /** mapping between every message type and its predetermined resource read/write sequence */ 6 | message_dependency_mapping: MessageDependencyMapping[]; 7 | wasm_dependency_mappings: WasmDependencyMapping[]; 8 | } 9 | 10 | export type Params = {}; 11 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/accesscontrol_x/gov.ts: -------------------------------------------------------------------------------- 1 | import type { MessageDependencyMapping, WasmDependencyMapping } from "../accesscontrol/accesscontrol"; 2 | 3 | export interface MsgUpdateResourceDependencyMappingProposal { 4 | title: string; 5 | description: string; 6 | message_dependency_mapping: MessageDependencyMapping[]; 7 | } 8 | 9 | export interface MsgUpdateResourceDependencyMappingProposalJsonFile { 10 | title: string; 11 | description: string; 12 | deposit: string; 13 | message_dependency_mapping: MessageDependencyMapping[]; 14 | } 15 | 16 | export type MsgUpdateResourceDependencyMappingProposalResponse = {}; 17 | 18 | export interface MsgUpdateWasmDependencyMappingProposal { 19 | title: string; 20 | description: string; 21 | contract_address: string; 22 | wasm_dependency_mapping?: WasmDependencyMapping; 23 | } 24 | 25 | export interface MsgUpdateWasmDependencyMappingProposalJsonFile { 26 | title: string; 27 | description: string; 28 | deposit: string; 29 | contract_address: string; 30 | wasm_dependency_mapping?: WasmDependencyMapping; 31 | } 32 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/accesscontrol_x/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./gov"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/accesscontrol_x/tx.ts: -------------------------------------------------------------------------------- 1 | import type { WasmDependencyMapping } from "../accesscontrol/accesscontrol"; 2 | 3 | export interface RegisterWasmDependencyJSONFile { 4 | wasm_dependency_mapping?: WasmDependencyMapping; 5 | } 6 | 7 | export interface MsgRegisterWasmDependency { 8 | from_address: string; 9 | wasm_dependency_mapping?: WasmDependencyMapping; 10 | } 11 | 12 | export type MsgRegisterWasmDependencyResponse = {}; 13 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/auth/v1beta1/auth.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | export interface BaseAccount { 4 | address: string; 5 | pub_key?: Any; 6 | account_number: number; 7 | sequence: number; 8 | } 9 | 10 | export interface ModuleAccount { 11 | base_account?: BaseAccount; 12 | name: string; 13 | permissions: string[]; 14 | } 15 | 16 | export interface Params { 17 | max_memo_characters: number; 18 | tx_sig_limit: number; 19 | tx_size_cost_per_byte: number; 20 | sig_verify_cost_ed25519: number; 21 | sig_verify_cost_secp256k1: number; 22 | disable_seqno_check: boolean; 23 | } 24 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/auth/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | import type { Params } from "./auth"; 4 | 5 | export interface GenesisState { 6 | /** params defines all the paramaters of the module. */ 7 | params?: Params; 8 | /** accounts are the accounts present at genesis. */ 9 | accounts: Any[]; 10 | } 11 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/auth/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./auth"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/authz/v1beta1/authz.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | export interface GenericAuthorization { 4 | /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ 5 | msg: string; 6 | } 7 | 8 | export interface Grant { 9 | authorization?: Any; 10 | expiration?: Date; 11 | } 12 | 13 | export interface GrantAuthorization { 14 | granter: string; 15 | grantee: string; 16 | authorization?: Any; 17 | expiration?: Date; 18 | } 19 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/authz/v1beta1/event.ts: -------------------------------------------------------------------------------- 1 | export interface EventGrant { 2 | /** Msg type URL for which an autorization is granted */ 3 | msg_type_url: string; 4 | /** Granter account address */ 5 | granter: string; 6 | /** Grantee account address */ 7 | grantee: string; 8 | } 9 | 10 | export interface EventRevoke { 11 | /** Msg type URL for which an autorization is revoked */ 12 | msg_type_url: string; 13 | /** Granter account address */ 14 | granter: string; 15 | /** Grantee account address */ 16 | grantee: string; 17 | } 18 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/authz/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { GrantAuthorization } from "./authz"; 2 | 3 | export interface GenesisState { 4 | authorization: GrantAuthorization[]; 5 | } 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/authz/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authz"; 4 | export * from "./event"; 5 | export * from "./genesis"; 6 | export * from "./query"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/authz/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | import type { Grant } from "./authz"; 4 | 5 | export interface MsgGrant { 6 | granter: string; 7 | grantee: string; 8 | grant?: Grant; 9 | } 10 | 11 | export interface MsgExecResponse { 12 | results: Uint8Array[]; 13 | } 14 | 15 | export interface MsgExec { 16 | grantee: string; 17 | /** 18 | * Authorization Msg requests to execute. Each msg must implement Authorization interface 19 | * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) 20 | * triple and validate it. 21 | */ 22 | msgs: Any[]; 23 | } 24 | 25 | export type MsgGrantResponse = {}; 26 | 27 | export interface MsgRevoke { 28 | granter: string; 29 | grantee: string; 30 | msg_type_url: string; 31 | } 32 | 33 | export type MsgRevokeResponse = {}; 34 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/bank/v1beta1/authz.ts: -------------------------------------------------------------------------------- 1 | import type { Coin } from "../../base/v1beta1/coin"; 2 | 3 | export interface SendAuthorization { 4 | spend_limit: Coin[]; 5 | } 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/bank/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authz"; 4 | export * from "./bank"; 5 | export * from "./genesis"; 6 | export * from "./query"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/bank/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | import type { Coin } from "../../base/v1beta1/coin"; 2 | 3 | import type { Input, Output } from "./bank"; 4 | 5 | export interface MsgSend { 6 | from_address: string; 7 | to_address: string; 8 | amount: Coin[]; 9 | } 10 | 11 | export type MsgSendResponse = {}; 12 | 13 | export interface MsgMultiSend { 14 | inputs: Input[]; 15 | outputs: Output[]; 16 | } 17 | 18 | export type MsgMultiSendResponse = {}; 19 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/abci/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./abci"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/kv/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./kv"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/kv/v1beta1/kv.ts: -------------------------------------------------------------------------------- 1 | export interface Pairs { 2 | pairs: Pair[]; 3 | } 4 | 5 | export interface Pair { 6 | key: Uint8Array; 7 | value: Uint8Array; 8 | } 9 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/query/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./pagination"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/reflection/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./reflection"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/reflection/v1beta1/reflection.ts: -------------------------------------------------------------------------------- 1 | export type ListAllInterfacesRequest = {}; 2 | 3 | export interface ListAllInterfacesResponse { 4 | /** interface_names is an array of all the registered interfaces. */ 5 | interface_names: string[]; 6 | } 7 | 8 | export interface ListImplementationsRequest { 9 | /** interface_name defines the interface to query the implementations for. */ 10 | interface_name: string; 11 | } 12 | 13 | export interface ListImplementationsResponse { 14 | implementation_message_names: string[]; 15 | } 16 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/reflection/v2alpha1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./reflection"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/snapshots/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./snapshot"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/snapshots/v1beta1/snapshot.ts: -------------------------------------------------------------------------------- 1 | export interface Snapshot { 2 | height: number; 3 | format: number; 4 | chunks: number; 5 | hash: Uint8Array; 6 | metadata?: Metadata; 7 | } 8 | 9 | export interface Metadata { 10 | /** SHA-256 chunk hashes */ 11 | chunk_hashes: Uint8Array[]; 12 | } 13 | 14 | export interface SnapshotItem { 15 | store?: SnapshotStoreItem; 16 | iavl?: SnapshotIAVLItem; 17 | extension?: SnapshotExtensionMeta; 18 | extension_payload?: SnapshotExtensionPayload; 19 | } 20 | 21 | export interface SnapshotStoreItem { 22 | name: string; 23 | } 24 | 25 | export interface SnapshotIAVLItem { 26 | key: Uint8Array; 27 | value: Uint8Array; 28 | /** version is block height */ 29 | version: number; 30 | /** height is depth of the tree. */ 31 | height: number; 32 | } 33 | 34 | export interface SnapshotExtensionMeta { 35 | name: string; 36 | format: number; 37 | } 38 | 39 | export interface SnapshotExtensionPayload { 40 | payload: Uint8Array; 41 | } 42 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/store/v1beta1/commit_info.ts: -------------------------------------------------------------------------------- 1 | export interface CommitInfo { 2 | version: number; 3 | store_infos: StoreInfo[]; 4 | } 5 | 6 | export interface StoreInfo { 7 | name: string; 8 | commit_id?: CommitID; 9 | } 10 | 11 | export interface CommitID { 12 | version: number; 13 | hash: Uint8Array; 14 | } 15 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/store/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./commit_info"; 4 | export * from "./listening"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/store/v1beta1/listening.ts: -------------------------------------------------------------------------------- 1 | export interface StoreKVPair { 2 | /** the store key for the KVStore this pair originates from */ 3 | store_key: string; 4 | /** true indicates a delete operation, false indicates a set operation */ 5 | delete: boolean; 6 | key: Uint8Array; 7 | value: Uint8Array; 8 | } 9 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/tendermint/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./query"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/v1beta1/coin.ts: -------------------------------------------------------------------------------- 1 | export interface Coin { 2 | denom: string; 3 | amount: string; 4 | } 5 | 6 | export interface DecCoin { 7 | denom: string; 8 | amount: string; 9 | } 10 | 11 | export interface IntProto { 12 | int: string; 13 | } 14 | 15 | export interface DecProto { 16 | dec: string; 17 | } 18 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/base/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./coin"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/capability/v1beta1/capability.ts: -------------------------------------------------------------------------------- 1 | export interface Capability { 2 | index: number; 3 | } 4 | 5 | export interface Owner { 6 | module: string; 7 | name: string; 8 | } 9 | 10 | export interface CapabilityOwners { 11 | owners: Owner[]; 12 | } 13 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/capability/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { CapabilityOwners } from "./capability"; 2 | 3 | export interface GenesisOwners { 4 | /** index is the index of the capability owner. */ 5 | index: number; 6 | /** index_owners are the owners at the given index. */ 7 | index_owners?: CapabilityOwners; 8 | } 9 | 10 | export interface GenesisState { 11 | /** index is the capability global index. */ 12 | index: number; 13 | /** 14 | * owners represents a map from index to owners of the capability index 15 | * index key is string to allow amino marshalling. 16 | */ 17 | owners: GenesisOwners[]; 18 | } 19 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/capability/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./capability"; 4 | export * from "./genesis"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crisis/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Coin } from "../../base/v1beta1/coin"; 2 | 3 | export interface GenesisState { 4 | /** 5 | * constant_fee is the fee used to verify the invariant in the crisis 6 | * module. 7 | */ 8 | constant_fee?: Coin; 9 | } 10 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crisis/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./tx"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crisis/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | export interface MsgVerifyInvariant { 2 | sender: string; 3 | invariant_module_name: string; 4 | invariant_route: string; 5 | } 6 | 7 | export type MsgVerifyInvariantResponse = {}; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/ed25519/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/ed25519/keys.ts: -------------------------------------------------------------------------------- 1 | export interface PubKey { 2 | key: Uint8Array; 3 | } 4 | 5 | export interface PrivKey { 6 | key: Uint8Array; 7 | } 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/multisig/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/multisig/keys.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | export interface LegacyAminoPubKey { 4 | threshold: number; 5 | public_keys: Any[]; 6 | } 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/multisig/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./multisig"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/multisig/v1beta1/multisig.ts: -------------------------------------------------------------------------------- 1 | export interface MultiSignature { 2 | signatures: Uint8Array[]; 3 | } 4 | 5 | export interface CompactBitArray { 6 | extra_bits_stored: number; 7 | elems: Uint8Array; 8 | } 9 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/secp256k1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/secp256k1/keys.ts: -------------------------------------------------------------------------------- 1 | export interface PubKey { 2 | key: Uint8Array; 3 | } 4 | 5 | export interface PrivKey { 6 | key: Uint8Array; 7 | } 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/secp256r1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/secp256r1/keys.ts: -------------------------------------------------------------------------------- 1 | export interface PubKey { 2 | /** 3 | * Point on secp256r1 curve in a compressed representation as specified in section 4 | * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 5 | */ 6 | key: Uint8Array; 7 | } 8 | 9 | export interface PrivKey { 10 | /** secret number serialized using big-endian encoding */ 11 | secret: Uint8Array; 12 | } 13 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/sr25519/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/crypto/sr25519/keys.ts: -------------------------------------------------------------------------------- 1 | export interface PubKey { 2 | key: Uint8Array; 3 | } 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/distribution/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./distribution"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/distribution/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | import type { Coin } from "../../base/v1beta1/coin"; 2 | 3 | export interface MsgSetWithdrawAddress { 4 | delegator_address: string; 5 | withdraw_address: string; 6 | } 7 | 8 | export type MsgSetWithdrawAddressResponse = {}; 9 | 10 | export interface MsgWithdrawDelegatorReward { 11 | delegator_address: string; 12 | validator_address: string; 13 | } 14 | 15 | export type MsgWithdrawDelegatorRewardResponse = {}; 16 | 17 | export interface MsgWithdrawValidatorCommission { 18 | validator_address: string; 19 | } 20 | 21 | export type MsgWithdrawValidatorCommissionResponse = {}; 22 | 23 | export interface MsgFundCommunityPool { 24 | amount: Coin[]; 25 | depositor: string; 26 | } 27 | 28 | export type MsgFundCommunityPoolResponse = {}; 29 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/evidence/v1beta1/evidence.ts: -------------------------------------------------------------------------------- 1 | export interface Equivocation { 2 | height: number; 3 | time?: Date; 4 | power: number; 5 | consensus_address: string; 6 | } 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/evidence/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | export interface GenesisState { 4 | /** evidence defines all the evidence at genesis. */ 5 | evidence: Any[]; 6 | } 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/evidence/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./evidence"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/evidence/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | import type { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; 4 | 5 | export interface QueryEvidenceRequest { 6 | /** evidence_hash defines the hash of the requested evidence. */ 7 | evidence_hash: Uint8Array; 8 | } 9 | 10 | export interface QueryEvidenceResponse { 11 | /** evidence returns the requested evidence. */ 12 | evidence?: Any; 13 | } 14 | 15 | export interface QueryAllEvidenceRequest { 16 | /** pagination defines an optional pagination for the request. */ 17 | pagination?: PageRequest; 18 | } 19 | 20 | export interface QueryAllEvidenceResponse { 21 | /** evidence returns all evidences. */ 22 | evidence: Any[]; 23 | /** pagination defines the pagination in the response. */ 24 | pagination?: PageResponse; 25 | } 26 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/evidence/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | export interface MsgSubmitEvidence { 4 | submitter: string; 5 | evidence?: Any; 6 | } 7 | 8 | export interface MsgSubmitEvidenceResponse { 9 | /** hash defines the hash of the evidence. */ 10 | hash: Uint8Array; 11 | } 12 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/feegrant/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Grant } from "./feegrant"; 2 | 3 | export interface GenesisState { 4 | allowances: Grant[]; 5 | } 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/feegrant/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./feegrant"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/feegrant/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | export interface MsgGrantAllowance { 4 | /** granter is the address of the user granting an allowance of their funds. */ 5 | granter: string; 6 | /** grantee is the address of the user being granted an allowance of another user's funds. */ 7 | grantee: string; 8 | /** allowance can be any of basic and filtered fee allowance. */ 9 | allowance?: Any; 10 | } 11 | 12 | export type MsgGrantAllowanceResponse = {}; 13 | 14 | export interface MsgRevokeAllowance { 15 | /** granter is the address of the user granting an allowance of their funds. */ 16 | granter: string; 17 | /** grantee is the address of the user being granted an allowance of another user's funds. */ 18 | grantee: string; 19 | } 20 | 21 | export type MsgRevokeAllowanceResponse = {}; 22 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/genutil/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | export interface GenesisState { 2 | /** gen_txs defines the genesis transactions. */ 3 | gen_txs: Uint8Array[]; 4 | } 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/genutil/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/gov/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Deposit, DepositParams, Proposal, TallyParams, Vote, VotingParams } from "./gov"; 2 | 3 | export interface GenesisState { 4 | /** starting_proposal_id is the ID of the starting proposal. */ 5 | starting_proposal_id: number; 6 | /** deposits defines all the deposits present at genesis. */ 7 | deposits: Deposit[]; 8 | /** votes defines all the votes present at genesis. */ 9 | votes: Vote[]; 10 | /** proposals defines all the proposals present at genesis. */ 11 | proposals: Proposal[]; 12 | /** params defines all the paramaters of related to deposit. */ 13 | deposit_params?: DepositParams; 14 | /** params defines all the paramaters of related to voting. */ 15 | voting_params?: VotingParams; 16 | /** params defines all the paramaters of related to tally. */ 17 | tally_params?: TallyParams; 18 | } 19 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/gov/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./gov"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/gov/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../../../google/protobuf/any"; 2 | 3 | import type { Coin } from "../../base/v1beta1/coin"; 4 | 5 | import type { VoteOption, WeightedVoteOption } from "./gov"; 6 | 7 | export interface MsgSubmitProposal { 8 | content?: Any; 9 | initial_deposit: Coin[]; 10 | proposer: string; 11 | is_expedited: boolean; 12 | } 13 | 14 | export interface MsgSubmitProposalResponse { 15 | proposal_id: number; 16 | } 17 | 18 | export interface MsgVote { 19 | proposal_id: number; 20 | voter: string; 21 | option: VoteOption; 22 | } 23 | 24 | export type MsgVoteResponse = {}; 25 | 26 | export interface MsgVoteWeighted { 27 | proposal_id: number; 28 | voter: string; 29 | options: WeightedVoteOption[]; 30 | } 31 | 32 | export type MsgVoteWeightedResponse = {}; 33 | 34 | export interface MsgDeposit { 35 | proposal_id: number; 36 | depositor: string; 37 | amount: Coin[]; 38 | } 39 | 40 | export type MsgDepositResponse = {}; 41 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/mint/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Minter, Params } from "./mint"; 2 | 3 | export interface GenesisState { 4 | /** minter is a space for holding current inflation information. */ 5 | minter?: Minter; 6 | /** params defines all the paramaters of the module. */ 7 | params?: Params; 8 | } 9 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/mint/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./mint"; 5 | export * from "./query"; 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/mint/v1beta1/mint.ts: -------------------------------------------------------------------------------- 1 | export interface Minter { 2 | /** current annual inflation rate */ 3 | inflation: string; 4 | /** current annual expected provisions */ 5 | annual_provisions: string; 6 | } 7 | 8 | export interface Params { 9 | /** type of coin to mint */ 10 | mint_denom: string; 11 | /** maximum annual change in inflation rate */ 12 | inflation_rate_change: string; 13 | /** maximum inflation rate */ 14 | inflation_max: string; 15 | /** minimum inflation rate */ 16 | inflation_min: string; 17 | /** goal of percent bonded atoms */ 18 | goal_bonded: string; 19 | /** expected blocks per year */ 20 | blocks_per_year: number; 21 | } 22 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/mint/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import type { Params } from "./mint"; 2 | 3 | export type QueryParamsRequest = {}; 4 | 5 | export interface QueryParamsResponse { 6 | /** params defines the parameters of the module. */ 7 | params?: Params; 8 | } 9 | 10 | export type QueryInflationRequest = {}; 11 | 12 | export interface QueryInflationResponse { 13 | /** inflation is the current minting inflation value. */ 14 | inflation: Uint8Array; 15 | } 16 | 17 | export type QueryAnnualProvisionsRequest = {}; 18 | 19 | export interface QueryAnnualProvisionsResponse { 20 | /** annual_provisions is the current minting annual provisions value. */ 21 | annual_provisions: Uint8Array; 22 | } 23 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/params/types/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/params/types/types.ts: -------------------------------------------------------------------------------- 1 | import type { DecCoin } from "../../base/v1beta1/coin"; 2 | 3 | export interface FeesParams { 4 | global_minimum_gas_prices: DecCoin[]; 5 | allowed_fee_denoms: string[]; 6 | } 7 | 8 | export interface CosmosGasParams { 9 | cosmos_gas_multiplier_numerator: number; 10 | cosmos_gas_multiplier_denominator: number; 11 | } 12 | 13 | export interface GenesisState { 14 | fees_params?: FeesParams; 15 | cosmos_gas_params?: CosmosGasParams; 16 | } 17 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/params/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./params"; 4 | export * from "./query"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/params/v1beta1/params.ts: -------------------------------------------------------------------------------- 1 | export interface ParameterChangeProposal { 2 | title: string; 3 | description: string; 4 | changes: ParamChange[]; 5 | is_expedited: boolean; 6 | } 7 | 8 | export interface ParamChange { 9 | subspace: string; 10 | key: string; 11 | value: string; 12 | } 13 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/params/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import type { ParamChange } from "./params"; 2 | 3 | export interface QueryParamsRequest { 4 | /** subspace defines the module to query the parameter for. */ 5 | subspace: string; 6 | /** key defines the key of the parameter in the subspace. */ 7 | key: string; 8 | } 9 | 10 | export interface QueryParamsResponse { 11 | /** param defines the queried parameter. */ 12 | param?: ParamChange; 13 | } 14 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/slashing/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./query"; 5 | export * from "./slashing"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/slashing/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import type { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; 2 | 3 | import type { Params, ValidatorSigningInfo } from "./slashing"; 4 | 5 | export type QueryParamsRequest = {}; 6 | 7 | export interface QueryParamsResponse { 8 | params?: Params; 9 | } 10 | 11 | export interface QuerySigningInfoRequest { 12 | /** cons_address is the address to query signing info of */ 13 | cons_address: string; 14 | } 15 | 16 | export interface QuerySigningInfoResponse { 17 | /** val_signing_info is the signing info of requested val cons address */ 18 | val_signing_info?: ValidatorSigningInfo; 19 | } 20 | 21 | export interface QuerySigningInfosRequest { 22 | pagination?: PageRequest; 23 | } 24 | 25 | export interface QuerySigningInfosResponse { 26 | /** info is the signing info of all validators */ 27 | info: ValidatorSigningInfo[]; 28 | pagination?: PageResponse; 29 | } 30 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/slashing/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | export interface MsgUnjail { 2 | validator_addr: string; 3 | } 4 | 5 | export type MsgUnjailResponse = {}; 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/staking/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authz"; 4 | export * from "./genesis"; 5 | export * from "./query"; 6 | export * from "./staking"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/tx/signing/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./signing"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/tx/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./service"; 4 | export * from "./tx"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/upgrade/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./query"; 4 | export * from "./upgrade"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/vesting/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./tx"; 4 | export * from "./vesting"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/cosmos/vesting/v1beta1/tx.ts: -------------------------------------------------------------------------------- 1 | import type { Coin } from "../../base/v1beta1/coin"; 2 | 3 | export interface MsgCreateVestingAccount { 4 | from_address: string; 5 | to_address: string; 6 | amount: Coin[]; 7 | end_time: number; 8 | delayed: boolean; 9 | admin: string; 10 | } 11 | 12 | export type MsgCreateVestingAccountResponse = {}; 13 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/epoch/epoch.ts: -------------------------------------------------------------------------------- 1 | import type { Duration } from "../google/protobuf/duration"; 2 | 3 | export interface Epoch { 4 | genesis_time?: Date; 5 | epoch_duration?: Duration; 6 | current_epoch: number; 7 | current_epoch_start_time?: Date; 8 | current_epoch_height: number; 9 | } 10 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/epoch/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Epoch } from "./epoch"; 2 | 3 | import type { Params } from "./params"; 4 | 5 | export interface GenesisState { 6 | params?: Params; 7 | /** this line is used by starport scaffolding # genesis/proto/state */ 8 | epoch?: Epoch; 9 | } 10 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/epoch/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./epoch"; 4 | export * from "./genesis"; 5 | export * from "./params"; 6 | export * from "./query"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/epoch/params.ts: -------------------------------------------------------------------------------- 1 | export type Params = {}; 2 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/epoch/query.ts: -------------------------------------------------------------------------------- 1 | import type { Epoch } from "./epoch"; 2 | 3 | import type { Params } from "./params"; 4 | 5 | export type QueryParamsRequest = {}; 6 | 7 | export interface QueryParamsResponse { 8 | /** params holds all the parameters of this module. */ 9 | params?: Params; 10 | } 11 | 12 | export type QueryEpochRequest = {}; 13 | 14 | export interface QueryEpochResponse { 15 | epoch?: Epoch; 16 | } 17 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/eth/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./tx"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/evm/config.ts: -------------------------------------------------------------------------------- 1 | export interface ChainConfig { 2 | cancun_time: number; 3 | prague_time: number; 4 | verkle_time: number; 5 | } 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/evm/enums.ts: -------------------------------------------------------------------------------- 1 | export enum PointerType { 2 | ERC20 = 0, 3 | ERC721 = 1, 4 | NATIVE = 2, 5 | CW20 = 3, 6 | CW721 = 4, 7 | ERC1155 = 5, 8 | CW1155 = 6, 9 | UNRECOGNIZED = -1 10 | } 11 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/evm/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Params } from "./params"; 2 | 3 | export interface AddressAssociation { 4 | /** Sei address */ 5 | sei_address: string; 6 | /** Ethereum address */ 7 | eth_address: string; 8 | } 9 | 10 | export interface Code { 11 | address: string; 12 | code: Uint8Array; 13 | } 14 | 15 | export interface ContractState { 16 | address: string; 17 | key: Uint8Array; 18 | value: Uint8Array; 19 | } 20 | 21 | export interface Nonce { 22 | address: string; 23 | nonce: number; 24 | } 25 | 26 | export interface Serialized { 27 | prefix: Uint8Array; 28 | key: Uint8Array; 29 | value: Uint8Array; 30 | } 31 | 32 | export interface GenesisState { 33 | params?: Params; 34 | /** List of address associations */ 35 | address_associations: AddressAssociation[]; 36 | /** List of stored code */ 37 | codes: Code[]; 38 | /** List of contract state */ 39 | states: ContractState[]; 40 | nonces: Nonce[]; 41 | serialized: Serialized[]; 42 | } 43 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/evm/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./config"; 4 | export * from "./enums"; 5 | export * from "./genesis"; 6 | export * from "./gov"; 7 | export * from "./params"; 8 | export * from "./query"; 9 | export * from "./receipt"; 10 | export * from "./tx"; 11 | export * from "./types"; 12 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/evm/receipt.ts: -------------------------------------------------------------------------------- 1 | export interface Log { 2 | address: string; 3 | topics: string[]; 4 | data: Uint8Array; 5 | index: number; 6 | synthetic: boolean; 7 | } 8 | 9 | export interface Receipt { 10 | tx_type: number; 11 | cumulative_gas_used: number; 12 | contract_address: string; 13 | tx_hash_hex: string; 14 | gas_used: number; 15 | effective_gas_price: number; 16 | block_number: number; 17 | transaction_index: number; 18 | status: number; 19 | from: string; 20 | to: string; 21 | vm_error: string; 22 | logs: Log[]; 23 | logsBloom: Uint8Array; 24 | } 25 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/evm/types.ts: -------------------------------------------------------------------------------- 1 | export interface Whitelist { 2 | hashes: string[]; 3 | } 4 | 5 | export interface DeferredInfo { 6 | tx_index: number; 7 | tx_hash: Uint8Array; 8 | tx_bloom: Uint8Array; 9 | surplus: string; 10 | error: string; 11 | } 12 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/google/api/httpbody.ts: -------------------------------------------------------------------------------- 1 | import type { Any } from "../protobuf/any"; 2 | 3 | export interface HttpBody { 4 | /** The HTTP Content-Type header value specifying the content type of the body. */ 5 | content_type: string; 6 | /** The HTTP request/response body as raw binary. */ 7 | data: Uint8Array; 8 | /** 9 | * Application specific response metadata. Must be set in the first response 10 | * for streaming APIs. 11 | */ 12 | extensions: Any[]; 13 | } 14 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/google/api/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./http"; 4 | export * from "./httpbody"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/google/protobuf/duration.ts: -------------------------------------------------------------------------------- 1 | export interface Duration { 2 | /** 3 | * Signed seconds of the span of time. Must be from -315,576,000,000 4 | * to +315,576,000,000 inclusive. Note: these bounds are computed from: 5 | * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 6 | */ 7 | seconds: number; 8 | /** 9 | * Signed fractions of a second at nanosecond resolution of the span 10 | * of time. Durations less than one second are represented with a 0 11 | * `seconds` field and a positive or negative `nanos` field. For durations 12 | * of one second or more, a non-zero value for the `nanos` field must be 13 | * of the same sign as the `seconds` field. Must be from -999,999,999 14 | * to +999,999,999 inclusive. 15 | */ 16 | nanos: number; 17 | } 18 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/google/protobuf/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./any"; 4 | export * from "./descriptor"; 5 | export * from "./duration"; 6 | export * from "./timestamp"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/google/protobuf/timestamp.ts: -------------------------------------------------------------------------------- 1 | export interface Timestamp { 2 | /** 3 | * Represents seconds of UTC time since Unix epoch 4 | * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 5 | * 9999-12-31T23:59:59Z inclusive. 6 | */ 7 | seconds: number; 8 | /** 9 | * Non-negative fractions of a second at nanosecond resolution. Negative 10 | * second values with fractions must still have non-negative nanos values 11 | * that count forward in time. Must be from 0 to 999,999,999 12 | * inclusive. 13 | */ 14 | nanos: number; 15 | } 16 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/mint/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { Minter, Params } from "./mint"; 2 | 3 | export interface GenesisState { 4 | /** minter is a space for holding current inflation information. */ 5 | minter?: Minter; 6 | /** params defines all the paramaters of the module. */ 7 | params?: Params; 8 | } 9 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/mint/v1beta1/gov.ts: -------------------------------------------------------------------------------- 1 | import type { Minter } from "./mint"; 2 | 3 | export interface UpdateMinterProposal { 4 | title: string; 5 | description: string; 6 | minter?: Minter; 7 | } 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/mint/v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./gov"; 5 | export * from "./mint"; 6 | export * from "./query"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/mint/v1beta1/query.ts: -------------------------------------------------------------------------------- 1 | import type { Params } from "./mint"; 2 | 3 | export type QueryParamsRequest = {}; 4 | 5 | export interface QueryParamsResponse { 6 | /** params defines the parameters of the module. */ 7 | params?: Params; 8 | } 9 | 10 | export type QueryMinterRequest = {}; 11 | 12 | export interface QueryMinterResponse { 13 | start_date: string; 14 | end_date: string; 15 | denom: string; 16 | total_mint_amount: number; 17 | remaining_mint_amount: number; 18 | last_mint_amount: number; 19 | last_mint_date: string; 20 | last_mint_height: number; 21 | } 22 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/oracle/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { AggregateExchangeRateVote, ExchangeRateTuple, Params, PriceSnapshot, VotePenaltyCounter } from "./oracle"; 2 | 3 | export interface GenesisState { 4 | params?: Params; 5 | feeder_delegations: FeederDelegation[]; 6 | exchange_rates: ExchangeRateTuple[]; 7 | penalty_counters: PenaltyCounter[]; 8 | aggregate_exchange_rate_votes: AggregateExchangeRateVote[]; 9 | price_snapshots: PriceSnapshot[]; 10 | } 11 | 12 | export interface FeederDelegation { 13 | feeder_address: string; 14 | validator_address: string; 15 | } 16 | 17 | export interface PenaltyCounter { 18 | validator_address: string; 19 | vote_penalty_counter?: VotePenaltyCounter; 20 | } 21 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/oracle/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./genesis"; 4 | export * from "./oracle"; 5 | export * from "./query"; 6 | export * from "./tx"; 7 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/oracle/tx.ts: -------------------------------------------------------------------------------- 1 | export interface MsgAggregateExchangeRateVote { 2 | /** 1 reserved from old field `salt` */ 3 | exchange_rates: string; 4 | feeder: string; 5 | validator: string; 6 | } 7 | 8 | export type MsgAggregateExchangeRateVoteResponse = {}; 9 | 10 | export interface MsgDelegateFeedConsent { 11 | operator: string; 12 | delegate: string; 13 | } 14 | 15 | export type MsgDelegateFeedConsentResponse = {}; 16 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/abci/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/crypto/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./keys"; 4 | export * from "./proof"; 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/crypto/keys.ts: -------------------------------------------------------------------------------- 1 | export interface PublicKey { 2 | ed25519?: Uint8Array; 3 | secp256k1?: Uint8Array; 4 | sr25519?: Uint8Array; 5 | } 6 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/crypto/proof.ts: -------------------------------------------------------------------------------- 1 | export interface Proof { 2 | total: number; 3 | index: number; 4 | leaf_hash: Uint8Array; 5 | aunts: Uint8Array[]; 6 | } 7 | 8 | export interface ValueOp { 9 | /** Encoded in ProofOp.Key. */ 10 | key: Uint8Array; 11 | /** To encode in ProofOp.Data */ 12 | proof?: Proof; 13 | } 14 | 15 | export interface DominoOp { 16 | key: string; 17 | input: string; 18 | output: string; 19 | } 20 | 21 | export interface ProofOp { 22 | type: string; 23 | key: Uint8Array; 24 | data: Uint8Array; 25 | } 26 | 27 | export interface ProofOps { 28 | ops: ProofOp[]; 29 | } 30 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/libs/bits/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/libs/bits/types.ts: -------------------------------------------------------------------------------- 1 | export interface BitArray { 2 | bits: number; 3 | elems: number[]; 4 | } 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/p2p/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/p2p/types.ts: -------------------------------------------------------------------------------- 1 | export interface ProtocolVersion { 2 | p2p: number; 3 | block: number; 4 | app: number; 5 | } 6 | 7 | export interface NodeInfo { 8 | protocol_version?: ProtocolVersion; 9 | node_id: string; 10 | listen_addr: string; 11 | network: string; 12 | version: string; 13 | channels: Uint8Array; 14 | moniker: string; 15 | other?: NodeInfoOther; 16 | } 17 | 18 | export interface NodeInfoOther { 19 | tx_index: string; 20 | rpc_address: string; 21 | } 22 | 23 | export interface PeerInfo { 24 | id: string; 25 | address_info: PeerAddressInfo[]; 26 | last_connected?: Date; 27 | } 28 | 29 | export interface PeerAddressInfo { 30 | address: string; 31 | last_dial_success?: Date; 32 | last_dial_failure?: Date; 33 | dial_failures: number; 34 | } 35 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/types/block.ts: -------------------------------------------------------------------------------- 1 | import type { EvidenceList } from "./evidence"; 2 | 3 | import type { Commit, Data, Header } from "./types"; 4 | 5 | export interface Block { 6 | header?: Header; 7 | data?: Data; 8 | evidence?: EvidenceList; 9 | last_commit?: Commit; 10 | } 11 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/types/evidence.ts: -------------------------------------------------------------------------------- 1 | import type { LightBlock, Vote } from "./types"; 2 | 3 | import type { Validator } from "./validator"; 4 | 5 | export interface Evidence { 6 | duplicate_vote_evidence?: DuplicateVoteEvidence; 7 | light_client_attack_evidence?: LightClientAttackEvidence; 8 | } 9 | 10 | export interface DuplicateVoteEvidence { 11 | vote_a?: Vote; 12 | vote_b?: Vote; 13 | total_voting_power: number; 14 | validator_power: number; 15 | timestamp?: Date; 16 | } 17 | 18 | export interface LightClientAttackEvidence { 19 | conflicting_block?: LightBlock; 20 | common_height: number; 21 | byzantine_validators: Validator[]; 22 | total_voting_power: number; 23 | timestamp?: Date; 24 | } 25 | 26 | export interface EvidenceList { 27 | evidence: Evidence[]; 28 | } 29 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/types/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./block"; 4 | export * from "./evidence"; 5 | export * from "./params"; 6 | export * from "./types"; 7 | export * from "./validator"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/types/validator.ts: -------------------------------------------------------------------------------- 1 | import type { PublicKey } from "../crypto/keys"; 2 | 3 | export interface ValidatorSet { 4 | validators: Validator[]; 5 | proposer?: Validator; 6 | total_voting_power: number; 7 | } 8 | 9 | export interface Validator { 10 | address: Uint8Array; 11 | pub_key?: PublicKey; 12 | voting_power: number; 13 | proposer_priority: number; 14 | } 15 | 16 | export interface SimpleValidator { 17 | pub_key?: PublicKey; 18 | voting_power: number; 19 | } 20 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/version/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tendermint/version/types.ts: -------------------------------------------------------------------------------- 1 | export interface App { 2 | protocol: number; 3 | software: string; 4 | } 5 | 6 | export interface Consensus { 7 | block: number; 8 | app: number; 9 | } 10 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tokenfactory/authorityMetadata.ts: -------------------------------------------------------------------------------- 1 | export interface DenomAuthorityMetadata { 2 | /** Can be empty for no admin, or a valid sei address */ 3 | admin: string; 4 | } 5 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tokenfactory/genesis.ts: -------------------------------------------------------------------------------- 1 | import type { DenomAuthorityMetadata } from "./authorityMetadata"; 2 | 3 | import type { Params } from "./params"; 4 | 5 | export interface GenesisState { 6 | /** params defines the paramaters of the module. */ 7 | params?: Params; 8 | factory_denoms: GenesisDenom[]; 9 | } 10 | 11 | export interface GenesisDenom { 12 | denom: string; 13 | authority_metadata?: DenomAuthorityMetadata; 14 | } 15 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tokenfactory/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | export * from "./authorityMetadata"; 4 | export * from "./genesis"; 5 | export * from "./params"; 6 | export * from "./query"; 7 | export * from "./tx"; 8 | -------------------------------------------------------------------------------- /packages/cosmos/library/types/tokenfactory/params.ts: -------------------------------------------------------------------------------- 1 | export interface Params { 2 | denom_allowlist_max_size: number; 3 | } 4 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/accesscontrol/legacy.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosAccesscontrolV1beta1Accesscontrol from "./accesscontrol.pb"; 8 | import * as CosmosAccesscontrolV1beta1Constants from "./constants.pb"; 9 | export type LegacyAccessOperationWithSelector = { 10 | operation?: CosmosAccesscontrolV1beta1Accesscontrol.AccessOperation; 11 | selector_type?: CosmosAccesscontrolV1beta1Constants.AccessOperationSelectorType; 12 | selector?: string; 13 | }; 14 | 15 | export type LegacyWasmDependencyMapping = { 16 | enabled?: boolean; 17 | access_ops?: LegacyAccessOperationWithSelector[]; 18 | reset_reason?: string; 19 | contract_address?: string; 20 | }; 21 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/accesscontrol_x/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosAccesscontrolV1beta1Accesscontrol from "../accesscontrol/accesscontrol.pb"; 8 | export type GenesisState = { 9 | params?: Params; 10 | message_dependency_mapping?: CosmosAccesscontrolV1beta1Accesscontrol.MessageDependencyMapping[]; 11 | wasm_dependency_mappings?: CosmosAccesscontrolV1beta1Accesscontrol.WasmDependencyMapping[]; 12 | }; 13 | 14 | export type Params = {}; 15 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/auth/v1beta1/auth.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"; 8 | export type BaseAccount = { 9 | address?: string; 10 | pub_key?: GoogleProtobufAny.Any; 11 | account_number?: string; 12 | sequence?: string; 13 | }; 14 | 15 | export type ModuleAccount = { 16 | base_account?: BaseAccount; 17 | name?: string; 18 | permissions?: string[]; 19 | }; 20 | 21 | export type Params = { 22 | max_memo_characters?: string; 23 | tx_sig_limit?: string; 24 | tx_size_cost_per_byte?: string; 25 | sig_verify_cost_ed25519?: string; 26 | sig_verify_cost_secp256k1?: string; 27 | disable_seqno_check?: boolean; 28 | }; 29 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/auth/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"; 8 | import * as CosmosAuthV1beta1Auth from "./auth.pb"; 9 | export type GenesisState = { 10 | params?: CosmosAuthV1beta1Auth.Params; 11 | accounts?: GoogleProtobufAny.Any[]; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/authz/v1beta1/authz.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"; 8 | import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"; 9 | export type GenericAuthorization = { 10 | msg?: string; 11 | }; 12 | 13 | export type Grant = { 14 | authorization?: GoogleProtobufAny.Any; 15 | expiration?: GoogleProtobufTimestamp.Timestamp; 16 | }; 17 | 18 | export type GrantAuthorization = { 19 | granter?: string; 20 | grantee?: string; 21 | authorization?: GoogleProtobufAny.Any; 22 | expiration?: GoogleProtobufTimestamp.Timestamp; 23 | }; 24 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/authz/v1beta1/event.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type EventGrant = { 7 | msg_type_url?: string; 8 | granter?: string; 9 | grantee?: string; 10 | }; 11 | 12 | export type EventRevoke = { 13 | msg_type_url?: string; 14 | granter?: string; 15 | grantee?: string; 16 | }; 17 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/authz/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosAuthzV1beta1Authz from "./authz.pb"; 8 | export type GenesisState = { 9 | authorization?: CosmosAuthzV1beta1Authz.GrantAuthorization[]; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/bank/v1beta1/authz.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosBaseV1beta1Coin from "../../base/v1beta1/coin.pb"; 8 | export type SendAuthorization = { 9 | spend_limit?: CosmosBaseV1beta1Coin.Coin[]; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/bank/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosBaseV1beta1Coin from "../../base/v1beta1/coin.pb"; 8 | import * as CosmosBankV1beta1Bank from "./bank.pb"; 9 | export type GenesisState = { 10 | params?: CosmosBankV1beta1Bank.Params; 11 | balances?: Balance[]; 12 | supply?: CosmosBaseV1beta1Coin.Coin[]; 13 | denom_metadata?: CosmosBankV1beta1Bank.Metadata[]; 14 | wei_balances?: WeiBalance[]; 15 | }; 16 | 17 | export type Balance = { 18 | address?: string; 19 | coins?: CosmosBaseV1beta1Coin.Coin[]; 20 | }; 21 | 22 | export type WeiBalance = { 23 | address?: string; 24 | amount?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/base/kv/v1beta1/kv.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Pairs = { 7 | pairs?: Pair[]; 8 | }; 9 | 10 | export type Pair = { 11 | key?: Uint8Array; 12 | value?: Uint8Array; 13 | }; 14 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/base/query/v1beta1/pagination.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type PageRequest = { 7 | key?: Uint8Array; 8 | offset?: string; 9 | limit?: string; 10 | count_total?: boolean; 11 | reverse?: boolean; 12 | }; 13 | 14 | export type PageResponse = { 15 | next_key?: Uint8Array; 16 | total?: string; 17 | }; 18 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/base/store/v1beta1/commit_info.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type CommitInfo = { 7 | version?: string; 8 | store_infos?: StoreInfo[]; 9 | }; 10 | 11 | export type StoreInfo = { 12 | name?: string; 13 | commit_id?: CommitID; 14 | }; 15 | 16 | export type CommitID = { 17 | version?: string; 18 | hash?: Uint8Array; 19 | }; 20 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/base/store/v1beta1/listening.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type StoreKVPair = { 7 | store_key?: string; 8 | delete?: boolean; 9 | key?: Uint8Array; 10 | value?: Uint8Array; 11 | }; 12 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/base/v1beta1/coin.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Coin = { 7 | denom?: string; 8 | amount?: string; 9 | }; 10 | 11 | export type DecCoin = { 12 | denom?: string; 13 | amount?: string; 14 | }; 15 | 16 | export type IntProto = { 17 | int?: string; 18 | }; 19 | 20 | export type DecProto = { 21 | dec?: string; 22 | }; 23 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/capability/v1beta1/capability.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Capability = { 7 | index?: string; 8 | }; 9 | 10 | export type Owner = { 11 | module?: string; 12 | name?: string; 13 | }; 14 | 15 | export type CapabilityOwners = { 16 | owners?: Owner[]; 17 | }; 18 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/capability/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosCapabilityV1beta1Capability from "./capability.pb"; 8 | export type GenesisOwners = { 9 | index?: string; 10 | index_owners?: CosmosCapabilityV1beta1Capability.CapabilityOwners; 11 | }; 12 | 13 | export type GenesisState = { 14 | index?: string; 15 | owners?: GenesisOwners[]; 16 | }; 17 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crisis/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosBaseV1beta1Coin from "../../base/v1beta1/coin.pb"; 8 | export type GenesisState = { 9 | constant_fee?: CosmosBaseV1beta1Coin.Coin; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crisis/v1beta1/tx.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as fm from "../../../fetch.pb"; 8 | export type MsgVerifyInvariant = { 9 | sender?: string; 10 | invariant_module_name?: string; 11 | invariant_route?: string; 12 | }; 13 | 14 | export type MsgVerifyInvariantResponse = {}; 15 | 16 | export class Msg { 17 | static VerifyInvariant(req: MsgVerifyInvariant, initReq?: fm.InitReq): Promise { 18 | return fm.fetchReq(`/cosmos.crisis.v1beta1.Msg/VerifyInvariant`, { 19 | ...initReq, 20 | method: "POST", 21 | body: JSON.stringify(req, fm.replacer) 22 | }); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crypto/ed25519/keys.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type PubKey = { 7 | key?: Uint8Array; 8 | }; 9 | 10 | export type PrivKey = { 11 | key?: Uint8Array; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crypto/multisig/keys.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"; 8 | export type LegacyAminoPubKey = { 9 | threshold?: number; 10 | public_keys?: GoogleProtobufAny.Any[]; 11 | }; 12 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crypto/multisig/v1beta1/multisig.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type MultiSignature = { 7 | signatures?: Uint8Array[]; 8 | }; 9 | 10 | export type CompactBitArray = { 11 | extra_bits_stored?: number; 12 | elems?: Uint8Array; 13 | }; 14 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crypto/secp256k1/keys.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type PubKey = { 7 | key?: Uint8Array; 8 | }; 9 | 10 | export type PrivKey = { 11 | key?: Uint8Array; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crypto/secp256r1/keys.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type PubKey = { 7 | key?: Uint8Array; 8 | }; 9 | 10 | export type PrivKey = { 11 | secret?: Uint8Array; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/crypto/sr25519/keys.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type PubKey = { 7 | key?: Uint8Array; 8 | }; 9 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/evidence/v1beta1/evidence.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"; 8 | export type Equivocation = { 9 | height?: string; 10 | time?: GoogleProtobufTimestamp.Timestamp; 11 | power?: string; 12 | consensus_address?: string; 13 | }; 14 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/evidence/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"; 8 | export type GenesisState = { 9 | evidence?: GoogleProtobufAny.Any[]; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/evidence/v1beta1/tx.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as fm from "../../../fetch.pb"; 8 | import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"; 9 | export type MsgSubmitEvidence = { 10 | submitter?: string; 11 | evidence?: GoogleProtobufAny.Any; 12 | }; 13 | 14 | export type MsgSubmitEvidenceResponse = { 15 | hash?: Uint8Array; 16 | }; 17 | 18 | export class Msg { 19 | static SubmitEvidence(req: MsgSubmitEvidence, initReq?: fm.InitReq): Promise { 20 | return fm.fetchReq(`/cosmos.evidence.v1beta1.Msg/SubmitEvidence`, { 21 | ...initReq, 22 | method: "POST", 23 | body: JSON.stringify(req, fm.replacer) 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/feegrant/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosFeegrantV1beta1Feegrant from "./feegrant.pb"; 8 | export type GenesisState = { 9 | allowances?: CosmosFeegrantV1beta1Feegrant.Grant[]; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/genutil/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type GenesisState = { 7 | gen_txs?: Uint8Array[]; 8 | }; 9 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/gov/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosGovV1beta1Gov from "./gov.pb"; 8 | export type GenesisState = { 9 | starting_proposal_id?: string; 10 | deposits?: CosmosGovV1beta1Gov.Deposit[]; 11 | votes?: CosmosGovV1beta1Gov.Vote[]; 12 | proposals?: CosmosGovV1beta1Gov.Proposal[]; 13 | deposit_params?: CosmosGovV1beta1Gov.DepositParams; 14 | voting_params?: CosmosGovV1beta1Gov.VotingParams; 15 | tally_params?: CosmosGovV1beta1Gov.TallyParams; 16 | }; 17 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/mint/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosMintV1beta1Mint from "./mint.pb"; 8 | export type GenesisState = { 9 | minter?: CosmosMintV1beta1Mint.Minter; 10 | params?: CosmosMintV1beta1Mint.Params; 11 | }; 12 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/mint/v1beta1/mint.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Minter = { 7 | inflation?: string; 8 | annual_provisions?: string; 9 | }; 10 | 11 | export type Params = { 12 | mint_denom?: string; 13 | inflation_rate_change?: string; 14 | inflation_max?: string; 15 | inflation_min?: string; 16 | goal_bonded?: string; 17 | blocks_per_year?: string; 18 | }; 19 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/params/types/types.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosBaseV1beta1Coin from "../../base/v1beta1/coin.pb"; 8 | export type FeesParams = { 9 | global_minimum_gas_prices?: CosmosBaseV1beta1Coin.DecCoin[]; 10 | allowed_fee_denoms?: string[]; 11 | }; 12 | 13 | export type CosmosGasParams = { 14 | cosmos_gas_multiplier_numerator?: string; 15 | cosmos_gas_multiplier_denominator?: string; 16 | }; 17 | 18 | export type GenesisState = { 19 | fees_params?: FeesParams; 20 | cosmos_gas_params?: CosmosGasParams; 21 | }; 22 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/params/v1beta1/params.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type ParameterChangeProposal = { 7 | title?: string; 8 | description?: string; 9 | changes?: ParamChange[]; 10 | is_expedited?: boolean; 11 | }; 12 | 13 | export type ParamChange = { 14 | subspace?: string; 15 | key?: string; 16 | value?: string; 17 | }; 18 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/params/v1beta1/query.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as fm from "../../../fetch.pb"; 8 | import * as CosmosParamsV1beta1Params from "./params.pb"; 9 | export type QueryParamsRequest = { 10 | subspace?: string; 11 | key?: string; 12 | }; 13 | 14 | export type QueryParamsResponse = { 15 | param?: CosmosParamsV1beta1Params.ParamChange; 16 | }; 17 | 18 | export class Query { 19 | static Params(req: QueryParamsRequest, initReq?: fm.InitReq): Promise { 20 | return fm.fetchReq(`/cosmos/params/v1beta1/params?${fm.renderURLSearchParams(req, [])}`, { 21 | ...initReq, 22 | method: "GET" 23 | }); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/slashing/v1beta1/tx.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as fm from "../../../fetch.pb"; 8 | export type MsgUnjail = { 9 | validator_addr?: string; 10 | }; 11 | 12 | export type MsgUnjailResponse = {}; 13 | 14 | export class Msg { 15 | static Unjail(req: MsgUnjail, initReq?: fm.InitReq): Promise { 16 | return fm.fetchReq(`/cosmos.slashing.v1beta1.Msg/Unjail`, { 17 | ...initReq, 18 | method: "POST", 19 | body: JSON.stringify(req, fm.replacer) 20 | }); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/staking/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as CosmosStakingV1beta1Staking from "./staking.pb"; 8 | export type GenesisState = { 9 | params?: CosmosStakingV1beta1Staking.Params; 10 | last_total_power?: Uint8Array; 11 | last_validator_powers?: LastValidatorPower[]; 12 | validators?: CosmosStakingV1beta1Staking.Validator[]; 13 | delegations?: CosmosStakingV1beta1Staking.Delegation[]; 14 | unbonding_delegations?: CosmosStakingV1beta1Staking.UnbondingDelegation[]; 15 | redelegations?: CosmosStakingV1beta1Staking.Redelegation[]; 16 | exported?: boolean; 17 | }; 18 | 19 | export type LastValidatorPower = { 20 | address?: string; 21 | power?: string; 22 | }; 23 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/upgrade/v1beta1/upgrade.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"; 8 | import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"; 9 | export type Plan = { 10 | name?: string; 11 | time?: GoogleProtobufTimestamp.Timestamp; 12 | height?: string; 13 | info?: string; 14 | upgraded_client_state?: GoogleProtobufAny.Any; 15 | }; 16 | 17 | export type SoftwareUpgradeProposal = { 18 | title?: string; 19 | description?: string; 20 | plan?: Plan; 21 | }; 22 | 23 | export type CancelSoftwareUpgradeProposal = { 24 | title?: string; 25 | description?: string; 26 | }; 27 | 28 | export type ModuleVersion = { 29 | name?: string; 30 | version?: string; 31 | }; 32 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos/vesting/v1beta1/tx.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as fm from "../../../fetch.pb"; 8 | import * as CosmosBaseV1beta1Coin from "../../base/v1beta1/coin.pb"; 9 | export type MsgCreateVestingAccount = { 10 | from_address?: string; 11 | to_address?: string; 12 | amount?: CosmosBaseV1beta1Coin.Coin[]; 13 | end_time?: string; 14 | delayed?: boolean; 15 | admin?: string; 16 | }; 17 | 18 | export type MsgCreateVestingAccountResponse = {}; 19 | 20 | export class Msg { 21 | static CreateVestingAccount(req: MsgCreateVestingAccount, initReq?: fm.InitReq): Promise { 22 | return fm.fetchReq(`/cosmos.vesting.v1beta1.Msg/CreateVestingAccount`, { 23 | ...initReq, 24 | method: "POST", 25 | body: JSON.stringify(req, fm.replacer) 26 | }); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/cosmos_proto/cosmos.pb.ts: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/epoch/epoch.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufDuration from "../google/protobuf/duration.pb"; 8 | import * as GoogleProtobufTimestamp from "../google/protobuf/timestamp.pb"; 9 | export type Epoch = { 10 | genesis_time?: GoogleProtobufTimestamp.Timestamp; 11 | epoch_duration?: GoogleProtobufDuration.Duration; 12 | current_epoch?: string; 13 | current_epoch_start_time?: GoogleProtobufTimestamp.Timestamp; 14 | current_epoch_height?: string; 15 | }; 16 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/epoch/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as SeiprotocolSeichainEpochEpoch from "./epoch.pb"; 8 | import * as SeiprotocolSeichainEpochParams from "./params.pb"; 9 | export type GenesisState = { 10 | params?: SeiprotocolSeichainEpochParams.Params; 11 | epoch?: SeiprotocolSeichainEpochEpoch.Epoch; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/epoch/params.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Params = {}; 7 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/epoch/tx.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export class Msg {} 7 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/evm/config.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type ChainConfig = { 7 | cancun_time?: string; 8 | prague_time?: string; 9 | verkle_time?: string; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/evm/enums.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | export enum PointerType { 8 | ERC20 = "ERC20", 9 | ERC721 = "ERC721", 10 | NATIVE = "NATIVE", 11 | CW20 = "CW20", 12 | CW721 = "CW721", 13 | ERC1155 = "ERC1155", 14 | CW1155 = "CW1155" 15 | } 16 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/evm/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as SeiprotocolSeichainEvmParams from "./params.pb"; 8 | export type AddressAssociation = { 9 | sei_address?: string; 10 | eth_address?: string; 11 | }; 12 | 13 | export type Code = { 14 | address?: string; 15 | code?: Uint8Array; 16 | }; 17 | 18 | export type ContractState = { 19 | address?: string; 20 | key?: Uint8Array; 21 | value?: Uint8Array; 22 | }; 23 | 24 | export type Nonce = { 25 | address?: string; 26 | nonce?: string; 27 | }; 28 | 29 | export type Serialized = { 30 | prefix?: Uint8Array; 31 | key?: Uint8Array; 32 | value?: Uint8Array; 33 | }; 34 | 35 | export type GenesisState = { 36 | params?: SeiprotocolSeichainEvmParams.Params; 37 | address_associations?: AddressAssociation[]; 38 | codes?: Code[]; 39 | states?: ContractState[]; 40 | nonces?: Nonce[]; 41 | serialized?: Serialized[]; 42 | }; 43 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/evm/params.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Params = { 7 | priority_normalizer?: string; 8 | base_fee_per_gas?: string; 9 | minimum_fee_per_gas?: string; 10 | whitelisted_cw_code_hashes_for_delegate_call?: Uint8Array[]; 11 | deliver_tx_hook_wasm_gas_limit?: string; 12 | max_dynamic_base_fee_upward_adjustment?: string; 13 | max_dynamic_base_fee_downward_adjustment?: string; 14 | target_gas_used_per_block?: string; 15 | maximum_fee_per_gas?: string; 16 | }; 17 | 18 | export type ParamsPreV580 = { 19 | priority_normalizer?: string; 20 | base_fee_per_gas?: string; 21 | minimum_fee_per_gas?: string; 22 | whitelisted_cw_code_hashes_for_delegate_call?: Uint8Array[]; 23 | }; 24 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/evm/receipt.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Log = { 7 | address?: string; 8 | topics?: string[]; 9 | data?: Uint8Array; 10 | index?: number; 11 | synthetic?: boolean; 12 | }; 13 | 14 | export type Receipt = { 15 | tx_type?: number; 16 | cumulative_gas_used?: string; 17 | contract_address?: string; 18 | tx_hash_hex?: string; 19 | gas_used?: string; 20 | effective_gas_price?: string; 21 | block_number?: string; 22 | transaction_index?: number; 23 | status?: number; 24 | from?: string; 25 | to?: string; 26 | vm_error?: string; 27 | logs?: Log[]; 28 | logsBloom?: Uint8Array; 29 | }; 30 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/evm/types.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Whitelist = { 7 | hashes?: string[]; 8 | }; 9 | 10 | export type DeferredInfo = { 11 | tx_index?: number; 12 | tx_hash?: Uint8Array; 13 | tx_bloom?: Uint8Array; 14 | surplus?: string; 15 | error?: string; 16 | }; 17 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/gogoproto/gogo.pb.ts: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/google/api/annotations.pb.ts: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/google/api/http.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | type Absent = { [k in Exclude]?: undefined }; 8 | type OneOf = { [k in keyof T]?: undefined } | (keyof T extends infer K ? (K extends string & keyof T ? { [k in K]: T[K] } & Absent : never) : never); 9 | export type Http = { 10 | rules?: HttpRule[]; 11 | fully_decode_reserved_expansion?: boolean; 12 | }; 13 | 14 | type BaseHttpRule = { 15 | selector?: string; 16 | body?: string; 17 | response_body?: string; 18 | additional_bindings?: HttpRule[]; 19 | }; 20 | 21 | export type HttpRule = BaseHttpRule & OneOf<{ get: string; put: string; post: string; delete: string; patch: string; custom: CustomHttpPattern }>; 22 | 23 | export type CustomHttpPattern = { 24 | kind?: string; 25 | path?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/google/api/httpbody.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as GoogleProtobufAny from "../protobuf/any.pb"; 8 | export type HttpBody = { 9 | content_type?: string; 10 | data?: Uint8Array; 11 | extensions?: GoogleProtobufAny.Any[]; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/google/protobuf/any.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Any = { 7 | type_url?: string; 8 | value?: Uint8Array; 9 | }; 10 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/mint/v1beta1/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as SeiprotocolSeichainMintMint from "./mint.pb"; 8 | export type GenesisState = { 9 | minter?: SeiprotocolSeichainMintMint.Minter; 10 | params?: SeiprotocolSeichainMintMint.Params; 11 | }; 12 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/mint/v1beta1/gov.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as SeiprotocolSeichainMintMint from "./mint.pb"; 8 | export type UpdateMinterProposal = { 9 | title?: string; 10 | description?: string; 11 | minter?: SeiprotocolSeichainMintMint.Minter; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/oracle/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as SeiprotocolSeichainOracleOracle from "./oracle.pb"; 8 | export type GenesisState = { 9 | params?: SeiprotocolSeichainOracleOracle.Params; 10 | feeder_delegations?: FeederDelegation[]; 11 | exchange_rates?: SeiprotocolSeichainOracleOracle.ExchangeRateTuple[]; 12 | penalty_counters?: PenaltyCounter[]; 13 | aggregate_exchange_rate_votes?: SeiprotocolSeichainOracleOracle.AggregateExchangeRateVote[]; 14 | price_snapshots?: SeiprotocolSeichainOracleOracle.PriceSnapshot[]; 15 | }; 16 | 17 | export type FeederDelegation = { 18 | feeder_address?: string; 19 | validator_address?: string; 20 | }; 21 | 22 | export type PenaltyCounter = { 23 | validator_address?: string; 24 | vote_penalty_counter?: SeiprotocolSeichainOracleOracle.VotePenaltyCounter; 25 | }; 26 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tendermint/crypto/keys.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | type Absent = { [k in Exclude]?: undefined }; 8 | type OneOf = { [k in keyof T]?: undefined } | (keyof T extends infer K ? (K extends string & keyof T ? { [k in K]: T[K] } & Absent : never) : never); 9 | 10 | type BasePublicKey = {}; 11 | 12 | export type PublicKey = BasePublicKey & OneOf<{ ed25519: Uint8Array; secp256k1: Uint8Array; sr25519: Uint8Array }>; 13 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tendermint/crypto/proof.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Proof = { 7 | total?: string; 8 | index?: string; 9 | leaf_hash?: Uint8Array; 10 | aunts?: Uint8Array[]; 11 | }; 12 | 13 | export type ValueOp = { 14 | key?: Uint8Array; 15 | proof?: Proof; 16 | }; 17 | 18 | export type DominoOp = { 19 | key?: string; 20 | input?: string; 21 | output?: string; 22 | }; 23 | 24 | export type ProofOp = { 25 | type?: string; 26 | key?: Uint8Array; 27 | data?: Uint8Array; 28 | }; 29 | 30 | export type ProofOps = { 31 | ops?: ProofOp[]; 32 | }; 33 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tendermint/libs/bits/types.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type BitArray = { 7 | bits?: string; 8 | elems?: string[]; 9 | }; 10 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tendermint/types/block.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as TendermintTypesEvidence from "./evidence.pb"; 8 | import * as TendermintTypesTypes from "./types.pb"; 9 | export type Block = { 10 | header?: TendermintTypesTypes.Header; 11 | data?: TendermintTypesTypes.Data; 12 | evidence?: TendermintTypesEvidence.EvidenceList; 13 | last_commit?: TendermintTypesTypes.Commit; 14 | }; 15 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tendermint/types/validator.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as TendermintCryptoKeys from "../crypto/keys.pb"; 8 | export type ValidatorSet = { 9 | validators?: Validator[]; 10 | proposer?: Validator; 11 | total_voting_power?: string; 12 | }; 13 | 14 | export type Validator = { 15 | address?: Uint8Array; 16 | pub_key?: TendermintCryptoKeys.PublicKey; 17 | voting_power?: string; 18 | proposer_priority?: string; 19 | }; 20 | 21 | export type SimpleValidator = { 22 | pub_key?: TendermintCryptoKeys.PublicKey; 23 | voting_power?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tendermint/version/types.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type App = { 7 | protocol?: string; 8 | software?: string; 9 | }; 10 | 11 | export type Consensus = { 12 | block?: string; 13 | app?: string; 14 | }; 15 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tokenfactory/authorityMetadata.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type DenomAuthorityMetadata = { 7 | admin?: string; 8 | }; 9 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tokenfactory/genesis.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | 7 | import * as SeiprotocolSeichainTokenfactoryAuthorityMetadata from "./authorityMetadata.pb"; 8 | import * as SeiprotocolSeichainTokenfactoryParams from "./params.pb"; 9 | export type GenesisState = { 10 | params?: SeiprotocolSeichainTokenfactoryParams.Params; 11 | factory_denoms?: GenesisDenom[]; 12 | }; 13 | 14 | export type GenesisDenom = { 15 | denom?: string; 16 | authority_metadata?: SeiprotocolSeichainTokenfactoryAuthorityMetadata.DenomAuthorityMetadata; 17 | }; 18 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/grpc-gateway/tokenfactory/params.pb.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // @ts-nocheck 3 | /* 4 | * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY 5 | */ 6 | export type Params = { 7 | denom_allowlist_max_size?: number; 8 | }; 9 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/ts-proto/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-ts_proto. DO NOT EDIT. 2 | // versions: 3 | // protoc-gen-ts_proto v2.2.0 4 | // protoc unknown 5 | // source: cosmos_proto/cosmos.proto 6 | 7 | /* eslint-disable */ 8 | 9 | export const protobufPackage = "cosmos_proto"; 10 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/ts-proto/epoch/tx.ts: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-ts_proto. DO NOT EDIT. 2 | // versions: 3 | // protoc-gen-ts_proto v2.2.0 4 | // protoc unknown 5 | // source: epoch/tx.proto 6 | 7 | /* eslint-disable */ 8 | 9 | export const protobufPackage = "seiprotocol.seichain.epoch"; 10 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/ts-proto/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-ts_proto. DO NOT EDIT. 2 | // versions: 3 | // protoc-gen-ts_proto v2.2.0 4 | // protoc unknown 5 | // source: gogoproto/gogo.proto 6 | 7 | /* eslint-disable */ 8 | 9 | export const protobufPackage = "gogoproto"; 10 | -------------------------------------------------------------------------------- /packages/cosmos/protoc/ts-proto/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-ts_proto. DO NOT EDIT. 2 | // versions: 3 | // protoc-gen-ts_proto v2.2.0 4 | // protoc unknown 5 | // source: google/api/annotations.proto 6 | 7 | /* eslint-disable */ 8 | 9 | export const protobufPackage = "google.api"; 10 | -------------------------------------------------------------------------------- /packages/cosmos/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/cosmos/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["./library"], 4 | "compilerOptions": { 5 | "outDir": "./dist" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/create-sei/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | 4 | test 5 | ``` 6 | -------------------------------------------------------------------------------- /packages/create-sei/.yarn/install-state.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/create-sei/.yarn/install-state.gz -------------------------------------------------------------------------------- /packages/create-sei/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@sei-js/create-sei", 3 | "version": "0.0.2", 4 | "module": "dist/main.js", 5 | "type": "module", 6 | "bin": "./dist/main.js", 7 | "scripts": { 8 | "build": "tsc && cp -r ./templates ./dist/templates", 9 | "dev": "node --loader ts-node/esm src/main.ts" 10 | }, 11 | "dependencies": { 12 | "boxen": "^7.1.1", 13 | "commander": "^12.1.0", 14 | "inquirer": "^9.2.15" 15 | }, 16 | "devDependencies": { 17 | "@types/boxen": "^3.0.1", 18 | "@types/inquirer": "^9.0.7" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/basic-features/typescript for more information. 6 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | images: { 4 | remotePatterns: [ 5 | { 6 | protocol: 'https', 7 | hostname: 'cdn.sei.io', 8 | port: '' 9 | } 10 | ] 11 | } 12 | }; 13 | 14 | export default nextConfig; 15 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "template-next-cosmos-sei-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "@cosmos-kit/react": "^2.17.0", 13 | "@interchain-ui/react": "1.23.21", 14 | "@interchain-ui/react-no-ssr": "^0.1.4", 15 | "@sei-js/cosmjs": "^1.0.7", 16 | "@tanstack/react-query": "^5.45.1", 17 | "chain-registry": "^1.63.5", 18 | "cosmos-kit": "^2.18.0", 19 | "next": "14.2.4", 20 | "pino-pretty": "^11.2.1", 21 | "react": "^18", 22 | "react-dom": "^18" 23 | }, 24 | "devDependencies": { 25 | "@types/node": "^20", 26 | "@types/react": "^18", 27 | "@types/react-dom": "^18", 28 | "eslint-config-next": "14.2.4", 29 | "typescript": "^5" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx: -------------------------------------------------------------------------------- 1 | import { useChain } from '@cosmos-kit/react'; 2 | 3 | import '@interchain-ui/react/styles'; 4 | 5 | import { truncateSeiAddress } from '@sei-js/cosmjs'; 6 | import { selectedChain } from '../../constants'; 7 | 8 | export function WalletConnectButton() { 9 | const { isWalletConnected, address, connect, openView } = useChain(selectedChain.chain_name); 10 | 11 | const truncatedSeiAddr = address ? truncateSeiAddress(address) : ''; 12 | 13 | return ( 14 | 17 | ); 18 | } 19 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/src/app/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Homepage/Homepage'; 2 | export * from './WalletConnectButton/WalletConnectButton'; 3 | export * from './Web3Provider'; 4 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/src/app/constants/chain.ts: -------------------------------------------------------------------------------- 1 | import { ARCTIC_1_SEI_COSMOS_KIT_CHAIN, ATLANTIC_2_SEI_COSMOS_KIT_CHAIN, PACIFIC_1_SEI_COSMOS_KIT_CHAIN } from '@sei-js/cosmjs'; 2 | 3 | export type Urls = { 4 | rpc: string; 5 | rest: string; 6 | }; 7 | 8 | export const defaultUrls: { [chainName: string]: Urls } = { 9 | [PACIFIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc.sei-apis.com', rest: 'https://rest-arctic-1.sei-apis.com' }, 10 | [ATLANTIC_2_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc-testnet.sei-apis.com', rest: 'https://rest-testnet.sei-apis.com' }, 11 | [ARCTIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc-arctic-1.sei-apis.com', rest: 'https://rest-arctic-1.sei-apis.com' } 12 | }; 13 | 14 | // Set your selected chain here 15 | // To point to mainnet, use PACIFIC_1_SEI_COSMOS_KIT_CHAIN 16 | export const selectedChain = ARCTIC_1_SEI_COSMOS_KIT_CHAIN; 17 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/src/app/constants/index.ts: -------------------------------------------------------------------------------- 1 | export * from './chain'; 2 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/create-sei/templates/next-cosmos-template/src/app/favicon.ico -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/src/app/layout.tsx: -------------------------------------------------------------------------------- 1 | import type { Metadata } from 'next'; 2 | import { Inter } from 'next/font/google'; 3 | 4 | const inter = Inter({ subsets: ['latin'] }); 5 | 6 | export const metadata: Metadata = { 7 | title: 'Sei Next App (Cosmos)', 8 | description: 'Generated by create sei app' 9 | }; 10 | 11 | export default function RootLayout({ 12 | children 13 | }: Readonly<{ 14 | children: React.ReactNode; 15 | }>) { 16 | return ( 17 | 18 | {children} 19 | 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/src/app/page.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import './index.css'; 4 | import Homepage from './components/Homepage/Homepage'; 5 | import Web3Provider from './components/Web3Provider'; 6 | import { WalletConnectButton } from './components/WalletConnectButton/WalletConnectButton'; 7 | 8 | export default function Home() { 9 | return ( 10 | 11 |
12 | 13 |
14 | 15 |
16 | ); 17 | } 18 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-cosmos-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "skipLibCheck": true, 6 | "strict": true, 7 | "noEmit": true, 8 | "esModuleInterop": true, 9 | "module": "esnext", 10 | "moduleResolution": "bundler", 11 | "resolveJsonModule": true, 12 | "isolatedModules": true, 13 | "jsx": "preserve", 14 | "incremental": true, 15 | "plugins": [ 16 | { 17 | "name": "next" 18 | } 19 | ], 20 | "paths": { 21 | "@/*": ["./src/*"] 22 | } 23 | }, 24 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 25 | "exclude": ["node_modules"] 26 | } 27 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/basic-features/typescript for more information. 6 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {}; 3 | 4 | export default nextConfig; 5 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "template-next-wagmi-sei-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "@rainbow-me/rainbowkit": "^2.1.2", 13 | "@sei-js/evm": "^1.2.0", 14 | "@tanstack/react-query": "^5.45.1", 15 | "encoding": "^0.1.13", 16 | "next": "14.2.4", 17 | "pino-pretty": "^11.2.1", 18 | "react": "^18", 19 | "react-dom": "^18", 20 | "viem": "^2.15.1", 21 | "wagmi": "^2.10.2" 22 | }, 23 | "devDependencies": { 24 | "@types/node": "^20", 25 | "@types/react": "^18", 26 | "@types/react-dom": "^18", 27 | "eslint-config-next": "14.2.4", 28 | "typescript": "^5" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/src/app/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Homepage/Homepage'; 2 | export * from './Web3Provider'; 3 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/src/app/constants/chain.ts: -------------------------------------------------------------------------------- 1 | // Set your selected chain here 2 | import { seiDevnet } from 'viem/chains'; 3 | 4 | // Set your selected chain here 5 | // To point to mainnet, use sei. 6 | // To point to testnet, use seiTestnet. 7 | export const selectedChain = seiDevnet; 8 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/src/app/constants/index.ts: -------------------------------------------------------------------------------- 1 | export * from './chain'; 2 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/create-sei/templates/next-wagmi-template/src/app/favicon.ico -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/src/app/layout.tsx: -------------------------------------------------------------------------------- 1 | import type { Metadata } from 'next'; 2 | import { Inter } from 'next/font/google'; 3 | 4 | const inter = Inter({ subsets: ['latin'] }); 5 | 6 | export const metadata: Metadata = { 7 | title: 'Sei Next App (Wagmi)', 8 | description: 'Generated by create sei app' 9 | }; 10 | 11 | export default function RootLayout({ 12 | children 13 | }: Readonly<{ 14 | children: React.ReactNode; 15 | }>) { 16 | return ( 17 | 18 | {children} 19 | 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/src/app/page.tsx: -------------------------------------------------------------------------------- 1 | import { ConnectButton } from '@rainbow-me/rainbowkit'; 2 | import Web3Provider from './components/Web3Provider'; 3 | import Homepage from './components/Homepage/Homepage'; 4 | 5 | import './index.css'; 6 | 7 | export default function Home() { 8 | return ( 9 | 10 |
11 | 17 |
18 | 19 |
20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /packages/create-sei/templates/next-wagmi-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "skipLibCheck": true, 6 | "strict": true, 7 | "noEmit": true, 8 | "esModuleInterop": true, 9 | "module": "esnext", 10 | "moduleResolution": "bundler", 11 | "resolveJsonModule": true, 12 | "isolatedModules": true, 13 | "jsx": "preserve", 14 | "incremental": true, 15 | "plugins": [ 16 | { 17 | "name": "next" 18 | } 19 | ], 20 | "paths": { 21 | "@/*": ["./src/*"] 22 | } 23 | }, 24 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 25 | "exclude": ["node_modules"] 26 | } 27 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended'], 5 | ignorePatterns: ['dist', '.eslintrc.cjs'], 6 | parser: '@typescript-eslint/parser', 7 | plugins: ['react-refresh'], 8 | rules: { 9 | 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }] 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/create-sei/templates/vite-cosmos-template/favicon.ico -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | Sei Vite App (Cosmos) 11 | 12 | 13 |
14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/src/App.tsx: -------------------------------------------------------------------------------- 1 | import './index.css'; 2 | import { WalletConnectButton, Homepage } from './components'; 3 | 4 | function App() { 5 | return ( 6 | <> 7 |
8 | 9 |
10 | 11 | 12 | ); 13 | } 14 | 15 | export default App; 16 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx: -------------------------------------------------------------------------------- 1 | import { useChain } from '@cosmos-kit/react'; 2 | 3 | import '@interchain-ui/react/styles'; 4 | 5 | import { truncateSeiAddress } from '@sei-js/cosmjs'; 6 | import { selectedChain } from '../../constants'; 7 | 8 | export function WalletConnectButton() { 9 | const { isWalletConnected, address, connect, openView } = useChain(selectedChain.chain_name); 10 | 11 | const truncatedSeiAddr = address ? truncateSeiAddress(address) : ''; 12 | 13 | return ( 14 | 17 | ); 18 | } 19 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/src/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Homepage/Homepage'; 2 | export * from './WalletConnectButton/WalletConnectButton'; 3 | export * from './Web3Provider'; 4 | export * from './Homepage/Examples'; 5 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/src/constants/chain.ts: -------------------------------------------------------------------------------- 1 | import { ARCTIC_1_SEI_COSMOS_KIT_CHAIN, ATLANTIC_2_SEI_COSMOS_KIT_CHAIN, PACIFIC_1_SEI_COSMOS_KIT_CHAIN } from '@sei-js/cosmjs'; 2 | 3 | export type Urls = { 4 | rpc: string; 5 | rest: string; 6 | }; 7 | 8 | export const defaultUrls: { [chainName: string]: Urls } = { 9 | [PACIFIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc.sei-apis.com', rest: 'https://rest-arctic-1.sei-apis.com' }, 10 | [ATLANTIC_2_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc-testnet.sei-apis.com', rest: 'https://rest-testnet.sei-apis.com' }, 11 | [ARCTIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc-arctic-1.sei-apis.com', rest: 'https://rest-arctic-1.sei-apis.com' } 12 | }; 13 | 14 | // Set your selected chain here 15 | // To point to mainnet, use PACIFIC_1_SEI_COSMOS_KIT_CHAIN 16 | export const selectedChain = ARCTIC_1_SEI_COSMOS_KIT_CHAIN; 17 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/src/constants/index.ts: -------------------------------------------------------------------------------- 1 | export * from './chain'; 2 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/src/main.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import App from './App.tsx'; 4 | import Web3Provider from './components/Web3Provider.tsx'; 5 | 6 | ReactDOM.createRoot(document.getElementById('root')!).render( 7 | 8 | 9 | 10 | 11 | 12 | ); 13 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", 5 | "target": "ES2020", 6 | "useDefineForClassFields": true, 7 | "lib": ["ES2020", "DOM", "DOM.Iterable"], 8 | "module": "ESNext", 9 | "skipLibCheck": true, 10 | 11 | "moduleResolution": "bundler", 12 | "allowImportingTsExtensions": true, 13 | "resolveJsonModule": true, 14 | "isolatedModules": true, 15 | "moduleDetection": "force", 16 | "noEmit": true, 17 | "jsx": "react-jsx", 18 | 19 | "strict": true, 20 | "noUnusedLocals": true, 21 | "noUnusedParameters": true, 22 | "noFallthroughCasesInSwitch": true 23 | }, 24 | "include": ["src"] 25 | } 26 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "files": [], 3 | "references": [ 4 | { 5 | "path": "./tsconfig.app.json" 6 | }, 7 | { 8 | "path": "./tsconfig.node.json" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", 5 | "skipLibCheck": true, 6 | "module": "ESNext", 7 | "moduleResolution": "bundler", 8 | "allowSyntheticDefaultImports": true, 9 | "allowImportingTsExtensions": true, 10 | "strict": true, 11 | "noEmit": true 12 | }, 13 | "include": ["vite.config.ts"] 14 | } 15 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-cosmos-template/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import react from '@vitejs/plugin-react'; 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()] 7 | }); 8 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended'], 5 | ignorePatterns: ['dist', '.eslintrc.cjs'], 6 | parser: '@typescript-eslint/parser', 7 | plugins: ['react-refresh'], 8 | rules: { 9 | 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }] 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/create-sei/templates/vite-wagmi-template/favicon.ico -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sei Vite App (Wagmi) 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "template-vite-wagmi-sei-app", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "tsc -b && vite build", 9 | "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "@rainbow-me/rainbowkit": "^2.1.2", 14 | "@sei-js/evm": "^1.2.0", 15 | "@tanstack/react-query": "^5.45.1", 16 | "react": "^18.3.1", 17 | "react-dom": "^18.3.1", 18 | "viem": "^2.15.1", 19 | "wagmi": "^2.10.2" 20 | }, 21 | "devDependencies": { 22 | "@types/react": "^18.3.3", 23 | "@types/react-dom": "^18.3.0", 24 | "@typescript-eslint/eslint-plugin": "^7.13.1", 25 | "@typescript-eslint/parser": "^7.13.1", 26 | "@vitejs/plugin-react": "^4.3.1", 27 | "eslint": "^8.57.0", 28 | "eslint-plugin-react-hooks": "^4.6.2", 29 | "eslint-plugin-react-refresh": "^0.4.7", 30 | "typescript": "^5.2.2", 31 | "vite": "^5.3.1" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/src/App.tsx: -------------------------------------------------------------------------------- 1 | import './index.css'; 2 | import { ConnectButton } from '@rainbow-me/rainbowkit'; 3 | import Homepage from './components/Homepage/Homepage'; 4 | 5 | function App() { 6 | return ( 7 | <> 8 |
9 | 15 |
16 | 17 | 18 | ); 19 | } 20 | 21 | export default App; 22 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/src/constants/chain.ts: -------------------------------------------------------------------------------- 1 | import { seiDevnet } from 'viem/chains'; 2 | 3 | // Set your selected chain here 4 | // To point to mainnet, use sei. 5 | // To point to testnet, use seiTestnet. 6 | export const selectedChain = seiDevnet; 7 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/src/constants/index.ts: -------------------------------------------------------------------------------- 1 | export * from './chain'; 2 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/src/main.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import App from './App.tsx'; 4 | import Web3Provider from './components/Web3Provider.tsx'; 5 | 6 | ReactDOM.createRoot(document.getElementById('root')!).render( 7 | 8 | 9 | 10 | 11 | 12 | ); 13 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", 5 | "target": "ES2020", 6 | "useDefineForClassFields": true, 7 | "lib": ["ES2020", "DOM", "DOM.Iterable"], 8 | "module": "ESNext", 9 | "skipLibCheck": true, 10 | 11 | "moduleResolution": "bundler", 12 | "allowImportingTsExtensions": true, 13 | "resolveJsonModule": true, 14 | "isolatedModules": true, 15 | "moduleDetection": "force", 16 | "noEmit": true, 17 | "jsx": "react-jsx", 18 | 19 | "strict": true, 20 | "noUnusedLocals": true, 21 | "noUnusedParameters": true, 22 | "noFallthroughCasesInSwitch": true 23 | }, 24 | "include": ["src"] 25 | } 26 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "files": [], 3 | "references": [ 4 | { 5 | "path": "./tsconfig.app.json" 6 | }, 7 | { 8 | "path": "./tsconfig.node.json" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", 5 | "skipLibCheck": true, 6 | "module": "ESNext", 7 | "moduleResolution": "bundler", 8 | "allowSyntheticDefaultImports": true, 9 | "allowImportingTsExtensions": true, 10 | "strict": true, 11 | "noEmit": true 12 | }, 13 | "include": ["vite.config.ts"] 14 | } 15 | -------------------------------------------------------------------------------- /packages/create-sei/templates/vite-wagmi-template/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import react from '@vitejs/plugin-react'; 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | optimizeDeps: { 8 | exclude: ['js-big-decimal'] 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /packages/create-sei/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "exclude": ["node_modules", "dist", "test"], 4 | "compilerOptions": { 5 | "outDir": "./dist", 6 | "target": "ES2020", 7 | "useDefineForClassFields": true, 8 | "lib": ["ES2020", "DOM", "DOM.Iterable"], 9 | "module": "ESNext", 10 | "skipLibCheck": true, 11 | "isolatedModules": true, 12 | "jsx": "react-jsx", 13 | "strict": true, 14 | "noUnusedLocals": true, 15 | "noUnusedParameters": true, 16 | "noFallthroughCasesInSwitch": true 17 | }, 18 | "include": ["src"] 19 | } 20 | -------------------------------------------------------------------------------- /packages/evm/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | node_modules 3 | docs 4 | coverage/ 5 | 6 | jest.config.ts 7 | tsconfig.json 8 | 9 | yarn-error.log 10 | -------------------------------------------------------------------------------- /packages/evm/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node' 4 | }; 5 | -------------------------------------------------------------------------------- /packages/evm/src/ethers/index.ts: -------------------------------------------------------------------------------- 1 | export * from './addressPrecompile'; 2 | export * from './bankPrecompile'; 3 | export * from './confidentialTransfersPrecompile'; 4 | export * from './distributionPrecompile'; 5 | export * from './governancePrecompile'; 6 | export * from './ibcPrecompile'; 7 | export * from './jsonPrecompile'; 8 | export * from './oraclePrecompile'; 9 | export * from './pointerPrecompile'; 10 | export * from './pointerviewPrecompile'; 11 | export * from './stakingPrecompile'; 12 | export * from './wasmPrecompile'; 13 | -------------------------------------------------------------------------------- /packages/evm/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './ethers'; 2 | export * from './precompiles'; 3 | export * from './viem'; 4 | -------------------------------------------------------------------------------- /packages/evm/src/precompiles/governance.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The address of the Governance precompile contract. 3 | * @category Cosmos Interoperability 4 | */ 5 | export const GOVERNANCE_PRECOMPILE_ADDRESS: `0x${string}` = '0x0000000000000000000000000000000000001006'; 6 | 7 | /** 8 | * The ABI for the Governance precompile contract. 9 | * @category Cosmos Interoperability 10 | */ 11 | export const GOVERNANCE_PRECOMPILE_ABI = [ 12 | { 13 | inputs: [{ internalType: 'uint64', name: 'proposalID', type: 'uint64' }], 14 | name: 'deposit', 15 | outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }], 16 | stateMutability: 'payable', 17 | type: 'function' 18 | }, 19 | { 20 | inputs: [ 21 | { internalType: 'uint64', name: 'proposalID', type: 'uint64' }, 22 | { internalType: 'int32', name: 'option', type: 'int32' } 23 | ], 24 | name: 'vote', 25 | outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }], 26 | stateMutability: 'nonpayable', 27 | type: 'function' 28 | } 29 | ] as const; 30 | -------------------------------------------------------------------------------- /packages/evm/src/precompiles/index.ts: -------------------------------------------------------------------------------- 1 | export * from './address'; 2 | export * from './bank'; 3 | export * from './confidential_transfers'; 4 | export * from './distribution'; 5 | export * from './governance'; 6 | export * from './ibc'; 7 | export * from './json'; 8 | export * from './oracle'; 9 | export * from './pointer'; 10 | export * from './pointerview'; 11 | export * from './staking'; 12 | export * from './wasm'; 13 | -------------------------------------------------------------------------------- /packages/evm/src/viem/__tests__/chain.spec.ts: -------------------------------------------------------------------------------- 1 | import { seiLocal } from '../chain'; 2 | 3 | describe('seiLocal chain', () => { 4 | it('should be a valid chain definition', () => { 5 | expect(seiLocal).toMatchObject({ 6 | id: 713715, 7 | name: 'Sei Local', 8 | nativeCurrency: { 9 | name: 'Sei', 10 | symbol: 'SEI', 11 | decimals: 18 12 | }, 13 | rpcUrls: { 14 | default: { 15 | http: ['http://localhost:8545'] 16 | } 17 | } 18 | }); 19 | }); 20 | }); 21 | -------------------------------------------------------------------------------- /packages/evm/src/viem/addressPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { ADDRESS_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Address precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_ADDRESS_PRECOMPILE_ABI = ADDRESS_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/bankPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { BANK_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Bank precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_BANK_PRECOMPILE_ABI = BANK_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/chain.ts: -------------------------------------------------------------------------------- 1 | import { defineChain } from 'viem'; 2 | 3 | export const seiLocal = defineChain({ 4 | id: 713715, 5 | name: 'Sei Local', 6 | nativeCurrency: { name: 'Sei', symbol: 'SEI', decimals: 18 }, 7 | rpcUrls: { 8 | default: { 9 | http: ['http://localhost:8545'] 10 | } 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /packages/evm/src/viem/confidentialTransfersPrecompile.ts: -------------------------------------------------------------------------------- 1 | import type { Abi } from 'viem'; 2 | import { CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Address precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI = CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/distributionPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { DISTRIBUTION_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Distribution precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_DISTRIBUTION_PRECOMPILE_ABI = DISTRIBUTION_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/governancePrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { GOVERNANCE_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Governance precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_GOVERNANCE_PRECOMPILE_ABI = GOVERNANCE_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/ibcPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { IBC_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the IBC precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_IBC_PRECOMPILE_ABI = IBC_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/index.ts: -------------------------------------------------------------------------------- 1 | export * from './addressPrecompile'; 2 | export * from './bankPrecompile'; 3 | export * from './confidentialTransfersPrecompile'; 4 | export * from './distributionPrecompile'; 5 | export * from './governancePrecompile'; 6 | export * from './ibcPrecompile'; 7 | export * from './jsonPrecompile'; 8 | export * from './oraclePrecompile'; 9 | export * from './pointerPrecompile'; 10 | export * from './pointerviewPrecompile'; 11 | export * from './stakingPrecompile'; 12 | export * from './wasmPrecompile'; 13 | 14 | export * from './chain'; 15 | -------------------------------------------------------------------------------- /packages/evm/src/viem/jsonPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { JSON_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the JSON precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_JSON_PRECOMPILE_ABI = JSON_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/oraclePrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { ORACLE_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Oracle precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_ORACLE_PRECOMPILE_ABI = ORACLE_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/pointerPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { POINTER_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Pointer precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_POINTER_PRECOMPILE_ABI = POINTER_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/pointerviewPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { POINTERVIEW_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Ponterview precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_POINTERVIEW_PRECOMPILE_ABI = POINTERVIEW_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/stakingPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { STAKING_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Staking precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_STAKING_PRECOMPILE_ABI = STAKING_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/src/viem/wasmPrecompile.ts: -------------------------------------------------------------------------------- 1 | import { Abi } from 'viem'; 2 | import { WASM_PRECOMPILE_ABI } from '../precompiles'; 3 | 4 | /** 5 | * The Viem ABI for the Wasm precompile contract. 6 | * @category Cosmos Interoperability 7 | */ 8 | export const VIEM_WASM_PRECOMPILE_ABI = WASM_PRECOMPILE_ABI as Abi; 9 | -------------------------------------------------------------------------------- /packages/evm/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false, 8 | "preserveConstEnums": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/evm/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["src"], 4 | "compilerOptions": { 5 | "outDir": "./dist/types" 6 | }, 7 | "typedocOptions": { 8 | "readme": "./README.md", 9 | "name": "evm", 10 | "entryPoints": ["src/index.ts"], 11 | "exclude": ["node_modules"] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/ledger/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | node_modules 3 | docs 4 | coverage/ 5 | 6 | tsconfig.json 7 | 8 | yarn-error.log 9 | -------------------------------------------------------------------------------- /packages/ledger/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # @sei-js/ledger 2 | 3 | ## 1.1.4 4 | 5 | ### Patch Changes 6 | 7 | - cd65a51: Fix broken NPM publish for all packages 8 | 9 | ## 1.1.3 10 | 11 | ### Patch Changes 12 | 13 | - d6e74ed: Update package structure and building of all @sei-js packages 14 | 15 | ## 1.1.2 16 | 17 | ### Patch Changes 18 | 19 | - 93b233c: Updated README.md to show all the available exported functions and their params, descriptions, usage and return values. 20 | 21 | ## 1.1.1 22 | 23 | ### Patch Changes 24 | 25 | - 590bbcf: Update library versions 26 | 27 | ## 1.1.0 28 | 29 | ### Minor Changes 30 | 31 | - c0cd7a0: Packge init + helper functions to work with Ledger in Cosmos Stargate client 32 | -------------------------------------------------------------------------------- /packages/ledger/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node' 4 | }; 5 | -------------------------------------------------------------------------------- /packages/ledger/src/cosmos/index.ts: -------------------------------------------------------------------------------- 1 | export * from './seiLedgerOfflineAminoSigner'; 2 | export * from './utils'; 3 | -------------------------------------------------------------------------------- /packages/ledger/src/cosmos/utils.ts: -------------------------------------------------------------------------------- 1 | import Transport from '@ledgerhq/hw-transport-node-hid'; 2 | import { SeiApp } from '@zondax/ledger-sei'; 3 | 4 | /** 5 | * Creates a transport and app instance 6 | * 7 | * @returns {Promise<{transport: Transport, app: SeiApp}>} transport and app instances 8 | */ 9 | export const createTransportAndApp = async () => { 10 | const transport = await Transport.create(); 11 | const app = new SeiApp(transport); 12 | return { transport, app }; 13 | }; 14 | 15 | /** 16 | * Get the EVM and Cosmos addresses from the Ledger device 17 | * @param app Ledger Sei app instance 18 | * @param path hd derivation path (e.g. "m/44'/60'/0'/0/0") 19 | * 20 | * @returns {Promise<{evmAddress: string, nativeAddress: string}>} EVM and Cosmos address objects containing 21 | * address and public key 22 | */ 23 | export const getAddresses = async (app: SeiApp, path: string) => { 24 | const evmAddress = await app.getEVMAddress(path); 25 | const nativeAddress = await app.getCosmosAddress(path); 26 | return { evmAddress, nativeAddress }; 27 | }; 28 | -------------------------------------------------------------------------------- /packages/ledger/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './cosmos'; 2 | -------------------------------------------------------------------------------- /packages/ledger/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false, 8 | "preserveConstEnums": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/ledger/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["./src/**/*"], 4 | "compilerOptions": { 5 | "outDir": "./dist/types", 6 | "rootDir": "./" 7 | }, 8 | "typedocOptions": { 9 | "readme": "./README.md", 10 | "name": "registry", 11 | "entryPoints": ["src/index.ts"] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/mcp-server/.env.example: -------------------------------------------------------------------------------- 1 | # Sei MCP Server Environment Variables 2 | 3 | # Private key for blockchain transactions (without 0x prefix) 4 | # This is used when no private key is provided in the request 5 | # SECURITY: Never commit your actual private key to version control 6 | PRIVATE_KEY=your_private_key_here 7 | -------------------------------------------------------------------------------- /packages/mcp-server/.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies (bun install) 2 | node_modules 3 | 4 | # output 5 | out 6 | dist 7 | *.tgz 8 | 9 | # code coverage 10 | coverage 11 | *.lcov 12 | 13 | # logs 14 | logs 15 | _.log 16 | report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json 17 | 18 | # caches 19 | .eslintcache 20 | .cache 21 | *.tsbuildinfo 22 | 23 | # IntelliJ based IDEs 24 | .idea 25 | 26 | # Context 27 | mcp-context/ 28 | dist/ 29 | 30 | # Environment variables 31 | .env 32 | 33 | # Finder (MacOS) folder config 34 | .DS_Store 35 | -------------------------------------------------------------------------------- /packages/mcp-server/.npmignore: -------------------------------------------------------------------------------- 1 | # Source code (since we're publishing built files) 2 | src/ 3 | 4 | # Development files 5 | .git/ 6 | .github/ 7 | .vscode/ 8 | .idea/ 9 | .cursor/ 10 | mcp-context/ 11 | *.tsbuildinfo 12 | 13 | # Temp files 14 | tmp/ 15 | temp/ 16 | 17 | # Test files 18 | test/ 19 | tests/ 20 | __tests__/ 21 | *.spec.ts 22 | *.test.ts 23 | 24 | # Docs (except README.md which is included in "files") 25 | docs/ 26 | 27 | # Build artifacts 28 | node_modules/ 29 | coverage/ 30 | bun.lock 31 | yarn.lock 32 | package-lock.json -------------------------------------------------------------------------------- /packages/mcp-server/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.1.2 4 | 5 | ### Patch Changes 6 | 7 | - 15a7bed: Move to Record type for writeContract params arg 8 | 9 | ## 0.1.1 10 | 11 | ### Patch Changes 12 | 13 | - 4e2719c: Initial release of @sei-js/mcp-server 14 | -------------------------------------------------------------------------------- /packages/mcp-server/img/ClaudeSearchAndTools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/mcp-server/img/ClaudeSearchAndTools.png -------------------------------------------------------------------------------- /packages/mcp-server/img/ClaudeSeiPrompts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/mcp-server/img/ClaudeSeiPrompts.png -------------------------------------------------------------------------------- /packages/mcp-server/img/ClaudeSeiTools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-js/e1eb84a34d0e1565424fc6eb2aef51231b42423f/packages/mcp-server/img/ClaudeSeiTools.png -------------------------------------------------------------------------------- /packages/mcp-server/jest.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | extensionsToTreatAsEsm: ['.ts'], 5 | transform: { 6 | '^.+\\.ts$': ['ts-jest', { 7 | useESM: true, 8 | tsconfig: 'tsconfig.test.json' 9 | }] 10 | }, 11 | moduleNameMapper: { 12 | '^(\\.{1,2}/.*)\\.js$': '$1' 13 | }, 14 | testMatch: ['**/*.test.ts'], 15 | clearMocks: true, 16 | resetMocks: true 17 | }; 18 | -------------------------------------------------------------------------------- /packages/mcp-server/src/core/services/index.ts: -------------------------------------------------------------------------------- 1 | // Export all services 2 | export * from './clients.js'; 3 | export * from './balance.js'; 4 | export * from './transfer.js'; 5 | export * from './blocks.js'; 6 | export * from './transactions.js'; 7 | export * from './contracts.js'; 8 | export * from './tokens.js'; 9 | export { utils as helpers } from './utils.js'; 10 | 11 | // Re-export common types for convenience 12 | export type { 13 | Address, 14 | Hash, 15 | Hex, 16 | Block, 17 | TransactionReceipt, 18 | Log 19 | } from 'viem'; 20 | -------------------------------------------------------------------------------- /packages/mcp-server/src/core/services/utils.ts: -------------------------------------------------------------------------------- 1 | import { type Address, parseEther } from 'viem'; 2 | 3 | /** 4 | * Utility functions for formatting and parsing values 5 | */ 6 | export const utils = { 7 | // Convert ether to wei 8 | parseEther, 9 | 10 | // Format an object to JSON with bigint handling 11 | formatJson: (obj: unknown): string => JSON.stringify(obj, (_, value) => (typeof value === 'bigint' ? value.toString() : value), 2), 12 | 13 | validateAddress: (address: string): Address => { 14 | // If it's already a valid Sei 0x address (0x followed by 40 hex chars), return it 15 | if (/^0x[a-fA-F0-9]{40}$/.test(address)) { 16 | return address as Address; 17 | } 18 | 19 | throw new Error(`Invalid address: ${address}`); 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /packages/mcp-server/src/index.ts: -------------------------------------------------------------------------------- 1 | import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; 2 | import startServer from './server/server.js'; 3 | 4 | // Start the server 5 | async function main() { 6 | try { 7 | const server = await startServer(); 8 | const transport = new StdioServerTransport(); 9 | await server.connect(transport); 10 | } catch (error) { 11 | console.error('Error starting MCP server:', error); 12 | process.exit(1); 13 | } 14 | } 15 | 16 | main().catch((error) => { 17 | console.error('Fatal error in main():', error); 18 | process.exit(1); 19 | }); 20 | -------------------------------------------------------------------------------- /packages/mcp-server/src/server/server.ts: -------------------------------------------------------------------------------- 1 | import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; 2 | import { getSupportedNetworks } from '../core/chains.js'; 3 | import { registerEVMPrompts } from '../core/prompts.js'; 4 | import { registerEVMResources } from '../core/resources.js'; 5 | import { registerEVMTools } from '../core/tools.js'; 6 | 7 | // Create and start the MCP server 8 | async function startServer() { 9 | try { 10 | // Create a new MCP server instance 11 | const server = new McpServer({ 12 | name: 'EVM-Server', 13 | version: '1.0.0' 14 | }); 15 | 16 | // Register all resources, tools, and prompts 17 | registerEVMResources(server); 18 | registerEVMTools(server); 19 | registerEVMPrompts(server); 20 | 21 | // Log server information 22 | console.error(`EVM MCP Server initialized for networks: ${getSupportedNetworks().join(', ')}`); 23 | 24 | return server; 25 | } catch (error) { 26 | console.error('Failed to initialize server:', error); 27 | process.exit(1); 28 | } 29 | } 30 | 31 | // Export the server creation function 32 | export default startServer; 33 | -------------------------------------------------------------------------------- /packages/mcp-server/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false, 8 | "preserveConstEnums": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/mcp-server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["src"], 4 | "compilerOptions": { 5 | "outDir": "./dist/types", 6 | "moduleResolution": "bundler" 7 | }, 8 | "typedocOptions": { 9 | "readme": "./README.md", 10 | "name": "mcp-server", 11 | "entryPoints": ["src/index.ts"], 12 | "exclude": ["node_modules"] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/mcp-server/tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["jest", "node"], 5 | "isolatedModules": true, 6 | "resolveJsonModule": true 7 | }, 8 | "include": ["src/tests/**/*.test.ts"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/registry/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | node_modules 3 | docs 4 | coverage/ 5 | 6 | tsconfig.json 7 | 8 | yarn-error.log 9 | 10 | -------------------------------------------------------------------------------- /packages/registry/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # @sei-js/registry 2 | 3 | ## 1.0.3 4 | 5 | ### Patch Changes 6 | 7 | - cd65a51: Fix broken NPM publish for all packages 8 | 9 | ## 1.0.2 10 | 11 | ### Patch Changes 12 | 13 | - d6e74ed: Update package structure and building of all @sei-js packages 14 | 15 | ## 1.0.1 16 | 17 | ### Patch Changes 18 | 19 | - e6f88a4: Fix: Include registry files in NPM export 20 | 21 | ## 1.0.0 22 | 23 | ### Major Changes 24 | 25 | - 53cc721: Intitial release of @sei-js/registry which contains exports from the official Sei chain registry as well as the community token list 26 | -------------------------------------------------------------------------------- /packages/registry/README.md: -------------------------------------------------------------------------------- 1 | # @sei-js/registry 2 | This package contains TypeScript typed exports for the Sei registry repository as well as the community asset-list repository. 3 | 4 | ## Installation 5 | ```bash 6 | yarn add @sei-js/registry 7 | ``` 8 | 9 | ## Usage 10 | ```typescript 11 | import { TOKEN_LIST, NETWORKS, IBC_INFO, GAS_INFO } from '@sei-js/registry' 12 | 13 | const uAtom = TOKEN_LIST.find(asset => asset.denom === 'uatom') 14 | ``` 15 | -------------------------------------------------------------------------------- /packages/registry/RUNBOOK.md: -------------------------------------------------------------------------------- 1 | ### Init submodules 2 | `git submodule update --init --recursive` 3 | -------------------------------------------------------------------------------- /packages/registry/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node' 4 | }; 5 | -------------------------------------------------------------------------------- /packages/registry/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@sei-js/registry", 3 | "version": "1.0.3", 4 | "description": "TypeScript library for Sei chain constants and assets", 5 | "main": "./dist/cjs/src/index.js", 6 | "module": "./dist/esm/src/index.js", 7 | "types": "./dist/types/src/index.d.ts", 8 | "sideEffects": false, 9 | "files": [ 10 | "dist" 11 | ], 12 | "scripts": { 13 | "build": "rimraf dist && yarn build:cjs && yarn build:esm && yarn build:types", 14 | "build:cjs": "tsc --outDir dist/cjs --module commonjs", 15 | "build:esm": "tsc --outDir dist/esm --module esnext", 16 | "build:types": "tsc --project ./tsconfig.declaration.json", 17 | "docs": "typedoc --out docs", 18 | "test": "jest" 19 | }, 20 | "homepage": "https://github.com/sei-protocol/sei-js#readme", 21 | "keywords": [ 22 | "sei", 23 | "javascript", 24 | "typescript", 25 | "registry" 26 | ], 27 | "repository": "git@github.com:sei-protocol/sei-js.git", 28 | "license": "MIT", 29 | "publishConfig": { 30 | "access": "public" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /packages/registry/src/chain-info/__tests__/index.spec.ts: -------------------------------------------------------------------------------- 1 | import { CHAIN_INFO } from '../index'; 2 | 3 | describe('ChainInfo Tests', () => { 4 | it('has the required properties with correct types', () => { 5 | expect(typeof CHAIN_INFO.chain_name).toBe('string'); 6 | expect(['mainnet', 'testnet', 'devnet']).toContain(CHAIN_INFO.network_type); 7 | expect(typeof CHAIN_INFO.chain_id).toBe('string'); 8 | expect(typeof CHAIN_INFO.daemon_name).toBe('string'); 9 | expect(typeof CHAIN_INFO.bech32_prefix).toBe('string'); 10 | expect(Array.isArray(CHAIN_INFO.key_algos)).toBeTruthy(); 11 | expect(typeof CHAIN_INFO.slip44).toBe('number'); 12 | expect(typeof CHAIN_INFO.fee_token).toBe('string'); 13 | expect(Array.isArray(CHAIN_INFO.supported_wallets)).toBeTruthy(); 14 | }); 15 | 16 | it("includes 'secp256k1' in key_algos", () => { 17 | expect(CHAIN_INFO.key_algos).toContain('secp256k1'); 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /packages/registry/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './tokens'; 2 | export * from './chain-info'; 3 | export * from './gas'; 4 | export * from './networks'; 5 | export * from './ibc'; 6 | 7 | /** 8 | * A TypeScript type representing the official Sei network chain identifiers. 9 | */ 10 | export type Network = 'pacific-1' | 'atlantic-2' | 'arctic-1'; 11 | 12 | /** 13 | * An object for referencing the official Sei network chain identifiers. 14 | */ 15 | export const CHAIN_IDS = { 16 | mainnet: 'pacific-1', 17 | testnet: 'atlantic-2', 18 | devnet: 'arctic-1' 19 | }; 20 | -------------------------------------------------------------------------------- /packages/registry/src/networks/__tests__/index.spec.ts: -------------------------------------------------------------------------------- 1 | import { NETWORKS } from '../index'; 2 | 3 | describe('Networks configuration', () => { 4 | it('should contain configurations for all expected Sei networks', () => { 5 | const expectedNetworkIds = ['pacific-1', 'atlantic-2', 'arctic-1']; 6 | 7 | expectedNetworkIds.forEach((id) => { 8 | expect(NETWORKS).toHaveProperty(id); 9 | const networkConfig = NETWORKS[id]; 10 | expect(networkConfig).toBeDefined(); 11 | expect(networkConfig.chainId).toBe(id); 12 | }); 13 | }); 14 | 15 | it('should contain valid RPC endpoints for each network', () => { 16 | Object.values(NETWORKS).forEach((networkConfig) => { 17 | expect(networkConfig.rpc).toBeDefined(); 18 | expect(Array.isArray(networkConfig.rpc)).toBeTruthy(); 19 | networkConfig.rpc.forEach((endpoint) => { 20 | expect(endpoint).toHaveProperty('provider'); 21 | expect(typeof endpoint.provider).toBe('string'); 22 | expect(endpoint).toHaveProperty('url'); 23 | expect(typeof endpoint.url).toBe('string'); 24 | }); 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /packages/registry/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false, 8 | "preserveConstEnums": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/registry/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["./src/**/*", "./chain-registry/**/*", "./community-assetlist/**/*"], 4 | "compilerOptions": { 5 | "outDir": "./dist/types", 6 | "rootDir": "./" 7 | }, 8 | "typedocOptions": { 9 | "readme": "./README.md", 10 | "name": "registry", 11 | "entryPoints": ["src/index.ts"] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # @sei-js/global-wallet 2 | 3 | ## 1.3.3 4 | 5 | ### Patch Changes 6 | 7 | - 1ebf1b8: Bump dynamic version 8 | 9 | ## 1.3.2 10 | 11 | ### Patch Changes 12 | 13 | - cd65a51: Fix broken NPM publish for all packages 14 | 15 | ## 1.3.1 16 | 17 | ### Patch Changes 18 | 19 | - d6e74ed: Update package structure and building of all @sei-js packages 20 | 21 | ## 1.3.0 22 | 23 | ### Minor Changes 24 | 25 | - a129406: Switch to a separate global wallets app 26 | 27 | ## 1.2.1 28 | 29 | ### Patch Changes 30 | 31 | - da9b5b8: Update Dynamic to version 4.9.11 32 | 33 | ## 1.2.0 34 | 35 | ### Minor Changes 36 | 37 | - 1c6c2f8: Rename to Sei Global Wallet 38 | 39 | ## 1.1.0 40 | 41 | ### Minor Changes 42 | 43 | - 0233cac: Switch to SVG icon 44 | 45 | ## 1.0.0 46 | 47 | ### Major Changes 48 | 49 | - c5d7c9e: Rename Global Wallet to Sei Account 50 | 51 | ## 0.1.0 52 | 53 | ### Minor Changes 54 | 55 | - ce4e50d: Adding Dynamic Global Wallet support 56 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/README.md: -------------------------------------------------------------------------------- 1 | # Sei Global Wallet Package 2 | 3 | This repository provides [Dynamic Global Wallet](https://docs.dynamic.xyz/global-wallets/overview) support for Sei. 4 | 5 | ## Getting Started 6 | 7 | 1.**Install Sei Global Wallet Package** 8 | 9 | ```bash 10 | npm install @sei-js/sei-global-wallet 11 | ``` 12 | 13 | 2.**Importing the Sei Global Wallet** 14 | To use this wallet with any wallet provider that supports the EIP-6963 standard, you need to import the wallet package in your project. 15 | 16 | ```javascript 17 | import "@sei-js/sei-global-wallet/eip6963"; 18 | ``` 19 | 20 | 3.**Use Sei Global Wallet** 21 | Your wallet is now ready to use within the project. 22 | 23 | --- 24 | 25 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/jest.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('jest').Config} */ 2 | export default { 3 | preset: 'ts-jest/presets/default-esm', 4 | testEnvironment: 'node', 5 | transform: { 6 | '^.+\\.ts$': ['ts-jest', { useESM: true }] 7 | }, 8 | extensionsToTreatAsEsm: ['.ts'], 9 | moduleNameMapper: { 10 | '^(\\.{1,2}/.*)\\.js$': '$1' 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/src/eip6963.ts: -------------------------------------------------------------------------------- 1 | import { EIP6963Emitter } from './lib/EIP6963Emitter'; 2 | 3 | EIP6963Emitter(); 4 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/src/index.ts: -------------------------------------------------------------------------------- 1 | export { registerSolanaStandard } from './lib/registerSolanaStandard'; 2 | export { EIP6963Emitter } from './lib/EIP6963Emitter'; 3 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/src/lib/EIP6963Emitter.ts: -------------------------------------------------------------------------------- 1 | import type { DataURIImage } from '@dynamic-labs/global-wallet-client'; 2 | import { announceEip6963Provider, createEIP1193Provider } from '@dynamic-labs/global-wallet-client/ethereum'; 3 | import { config } from './config'; 4 | import Wallet from './wallet'; 5 | 6 | export const EIP6963Emitter = () => { 7 | announceEip6963Provider({ 8 | info: { 9 | icon: config.walletIcon as DataURIImage, 10 | uuid: config.environmentId, 11 | name: config.walletName, 12 | rdns: config.eip6963.rdns 13 | }, 14 | provider: createEIP1193Provider(Wallet) 15 | }); 16 | }; 17 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/src/lib/registerSolanaStandard.ts: -------------------------------------------------------------------------------- 1 | import { createSolanaWallet, registerWallet } from '@dynamic-labs/global-wallet-client/solana'; 2 | import type { WalletIcon } from '@wallet-standard/base'; 3 | import { config } from './config'; 4 | import Wallet from './wallet'; 5 | 6 | export const registerSolanaStandard = () => { 7 | registerWallet( 8 | createSolanaWallet( 9 | { 10 | icon: config.walletIcon as WalletIcon, 11 | name: config.walletName 12 | }, 13 | Wallet 14 | ) 15 | ); 16 | }; 17 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/src/lib/wallet.ts: -------------------------------------------------------------------------------- 1 | import { createGlobalWalletClient, GlobalWalletClient } from '@dynamic-labs/global-wallet-client'; 2 | import { config } from './config'; 3 | 4 | const Wallet: GlobalWalletClient = createGlobalWalletClient({ 5 | environmentId: config.environmentId, 6 | popup: { 7 | url: config.walletUrl 8 | } 9 | }); 10 | 11 | export default Wallet; 12 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/src/solana-standard.ts: -------------------------------------------------------------------------------- 1 | import { registerSolanaStandard } from './lib/registerSolanaStandard'; 2 | 3 | registerSolanaStandard(); 4 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./dist/types", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "isolatedModules": false, 8 | "preserveConstEnums": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/sei-global-wallet/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["src"], 4 | "compilerOptions": { 5 | "outDir": "./dist/types" 6 | }, 7 | "typedocOptions": { 8 | "readme": "./README.md", 9 | "name": "sei-account", 10 | "entryPoints": ["src/index.ts"], 11 | "exclude": ["node_modules"] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | "module": "ES2020", 5 | "strict": true, 6 | "moduleResolution": "Node", 7 | "allowSyntheticDefaultImports": true, 8 | "esModuleInterop": true, 9 | "skipLibCheck": true, 10 | "noImplicitAny": false, 11 | "lib": ["ES2022"], 12 | "resolveJsonModule": true, 13 | "forceConsistentCasingInFileNames": true, 14 | "declaration": false 15 | }, 16 | "exclude": ["node_modules", "dist", "**/*.spec.ts", "**/*.test.ts", "**/*.spec.js", "**/*.test.js", "**/__tests__/**/*"] 17 | } 18 | -------------------------------------------------------------------------------- /typedoc.base.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "ES2022", 4 | "strict": true, 5 | "composite": true, 6 | "declaration": true, 7 | "declarationMap": true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /typedoc.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | entryPoints: ['packages/evm', 'packages/cosmjs', 'packages/cosmos', 'packages/create-sei', 'packages/registry', 'packages/sei-account', 'packages/ledger'], 3 | name: '@sei-js', 4 | entryPointStrategy: 'packages', 5 | includeVersion: false, 6 | customCss: './typedoc.theme.css', 7 | readme: 'TYPEDOC-README.md', 8 | plugin: ['typedoc-material-theme'], 9 | themeColor: '#9d1f19', 10 | navigation: { 11 | includeCategories: true, 12 | includeGroups: true, 13 | includeFolders: true 14 | }, 15 | categorizeByGroup: false, 16 | compilerOptions: { 17 | module: 'Node16', 18 | strict: true, 19 | composite: true, 20 | declaration: true, 21 | declarationMap: true 22 | } 23 | }; 24 | --------------------------------------------------------------------------------