├── .DS_Store ├── .github └── workflows │ └── deploy.yml ├── .gitignore ├── app ├── app.go ├── export.go └── genesis.go ├── cmd └── anoned │ └── main.go ├── config.yml ├── docs ├── docs.go ├── one-pager-plan-outline.md └── static │ └── openapi.yml ├── gentx-instruction.md ├── go.mod ├── go.sum ├── keplr_suggestion.txt ├── lambda ├── .gitignore ├── README.md ├── build.ts ├── index.js ├── package-lock.json ├── package.json ├── src │ ├── Server.ts │ ├── event-sample.json │ ├── handler.ts │ ├── hash │ │ └── index.ts │ ├── index.ts │ ├── models │ │ ├── Attestation.ts │ │ └── mongo │ │ │ └── AttestationModel.ts │ ├── preStart.ts │ ├── public │ │ ├── scripts │ │ │ └── index.js │ │ └── stylesheets │ │ │ └── style.css │ ├── routes │ │ ├── index.ts │ │ └── testing.ts │ ├── service │ │ └── MongoAttestationService.ts │ ├── shared │ │ ├── Logger.ts │ │ ├── constants.ts │ │ └── functions.ts │ ├── util.ts │ └── views │ │ └── index.html ├── tsconfig.json └── tsconfig.prod.json ├── networks └── testnet-1 │ └── gentxs │ ├── README.md │ ├── gentx-05a4c982b3bc5a4dff9508c0b0d9d401357018f6.json │ ├── gentx-05c242cf520fc35b1ddc3536d55e6ce25cdc4117.json │ ├── gentx-0cd1b2fdae39d269c39053b268206cc997ceda17.json │ ├── gentx-18f75e489efbc2f680108cb615d42c49a11b6b5a.json │ ├── gentx-1fcf5a1cbdec73092ef3bfe3944fbfc6d240c6d6.json │ ├── gentx-216cc6dfce5878a2a627e306cae219bab4601f65.json │ ├── gentx-216cc6dfce5878a7e306cae219bab4601f65.json │ ├── gentx-229b31707536e32447a94edf63f9e0c999e31097.json │ ├── gentx-300507b829a8befac579dd0c7357851a188ab973.json │ ├── gentx-4d2099cb772f639e7e2936f9f9f2a9a85ab35e62.json │ ├── gentx-57eabe7acb4f39f07aa5653ac4baec27f0f6f3b9.json │ ├── gentx-5bd7cef7ff9b50847532f311e17aa74e7e45a56d.json │ ├── gentx-5c2b1c4deb14501871c773e8c6c41bbcfe853471.json │ ├── gentx-6abd85339523371ceb44ecc45c17b24836e4a13d.json │ ├── gentx-7130dc7f837215eba6429c752b606f2165f72463.json │ ├── gentx-75e21f3f515294caadaed054297b591e7aff1ff0.json │ ├── gentx-82ba6b00244af1b1fee3dc415d398188de40217b.json │ ├── gentx-c52aa7de58b29d93b17d09a373e6adb2eb29f5f1.json │ ├── gentx-d7faed682e9e901827c1de86d9111f1ecc7f3e3f.json │ └── gentx-f09e0f1e15301da178306c613c5d4a2291f6851c.json ├── node_deploy.sh ├── proto └── anone │ ├── genesis.proto │ ├── query.proto │ └── tx.proto ├── readme.md ├── testutil ├── keeper │ └── anone.go ├── network │ └── network.go ├── sample │ └── sample.go └── simapp │ └── simapp.go ├── vue ├── .browserslistrc ├── .env ├── .eslintrc.js ├── .gitignore ├── README.md ├── babel.config.js ├── jest.config.js ├── jsconfig.json ├── lint-staged.config.js ├── package-lock.json ├── package.json ├── public │ ├── another1_logo.png │ ├── favicon.ico │ └── index.html ├── src │ ├── App.vue │ ├── components │ │ ├── AnButton │ │ │ └── AnButton.vue │ │ ├── AnOneAttestation │ │ │ ├── AnOneAttestation.vue │ │ │ └── anone_abi.json │ │ ├── AnOneWelcome │ │ │ └── AnOneWelcome.vue │ │ ├── AnWallet │ │ │ └── AnWallet.vue │ │ └── Sidebar.vue │ ├── main.js │ ├── router │ │ └── index.js │ ├── scss │ │ └── app.scss │ ├── store │ │ ├── config.js │ │ ├── generated │ │ │ ├── cosmos │ │ │ │ ├── cosmos-sdk │ │ │ │ │ ├── cosmos.authz.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── authz │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── authz.d.ts │ │ │ │ │ │ │ │ │ │ ├── authz.js │ │ │ │ │ │ │ │ │ │ ├── authz.ts │ │ │ │ │ │ │ │ │ │ ├── event.d.ts │ │ │ │ │ │ │ │ │ │ ├── event.js │ │ │ │ │ │ │ │ │ │ ├── event.ts │ │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ └── base │ │ │ │ │ │ │ │ │ ├── abci │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── abci.d.ts │ │ │ │ │ │ │ │ │ │ ├── abci.js │ │ │ │ │ │ │ │ │ │ └── abci.ts │ │ │ │ │ │ │ │ │ └── query │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ ├── cosmos_proto │ │ │ │ │ │ │ │ ├── cosmos.d.ts │ │ │ │ │ │ │ │ ├── cosmos.js │ │ │ │ │ │ │ │ └── cosmos.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ ├── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ │ ├── any.d.ts │ │ │ │ │ │ │ │ │ ├── any.js │ │ │ │ │ │ │ │ │ ├── any.ts │ │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ │ │ │ │ ├── duration.d.ts │ │ │ │ │ │ │ │ │ ├── duration.js │ │ │ │ │ │ │ │ │ ├── duration.ts │ │ │ │ │ │ │ │ │ ├── timestamp.d.ts │ │ │ │ │ │ │ │ │ ├── timestamp.js │ │ │ │ │ │ │ │ │ └── timestamp.ts │ │ │ │ │ │ │ │ └── tendermint │ │ │ │ │ │ │ │ ├── abci │ │ │ │ │ │ │ │ ├── types.d.ts │ │ │ │ │ │ │ │ ├── types.js │ │ │ │ │ │ │ │ └── types.ts │ │ │ │ │ │ │ │ ├── crypto │ │ │ │ │ │ │ │ ├── keys.d.ts │ │ │ │ │ │ │ │ ├── keys.js │ │ │ │ │ │ │ │ ├── keys.ts │ │ │ │ │ │ │ │ ├── proof.d.ts │ │ │ │ │ │ │ │ ├── proof.js │ │ │ │ │ │ │ │ └── proof.ts │ │ │ │ │ │ │ │ ├── types │ │ │ │ │ │ │ │ ├── params.d.ts │ │ │ │ │ │ │ │ ├── params.js │ │ │ │ │ │ │ │ ├── params.ts │ │ │ │ │ │ │ │ ├── types.d.ts │ │ │ │ │ │ │ │ ├── types.js │ │ │ │ │ │ │ │ ├── types.ts │ │ │ │ │ │ │ │ ├── validator.d.ts │ │ │ │ │ │ │ │ ├── validator.js │ │ │ │ │ │ │ │ └── validator.ts │ │ │ │ │ │ │ │ └── version │ │ │ │ │ │ │ │ ├── types.d.ts │ │ │ │ │ │ │ │ ├── types.js │ │ │ │ │ │ │ │ └── types.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.bank.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── bank │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── authz.d.ts │ │ │ │ │ │ │ │ │ │ ├── authz.js │ │ │ │ │ │ │ │ │ │ ├── authz.ts │ │ │ │ │ │ │ │ │ │ ├── bank.d.ts │ │ │ │ │ │ │ │ │ │ ├── bank.js │ │ │ │ │ │ │ │ │ │ ├── bank.ts │ │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ └── base │ │ │ │ │ │ │ │ │ ├── query │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ │ │ ├── cosmos_proto │ │ │ │ │ │ │ │ ├── cosmos.d.ts │ │ │ │ │ │ │ │ ├── cosmos.js │ │ │ │ │ │ │ │ └── cosmos.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ └── descriptor.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.crisis.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ │ │ └── crisis │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ └── descriptor.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.distribution.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ │ ├── query │ │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ │ │ └── distribution │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── distribution.d.ts │ │ │ │ │ │ │ │ │ ├── distribution.js │ │ │ │ │ │ │ │ │ ├── distribution.ts │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ └── descriptor.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.evidence.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ │ └── query │ │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ └── evidence │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── evidence.d.ts │ │ │ │ │ │ │ │ │ ├── evidence.js │ │ │ │ │ │ │ │ │ ├── evidence.ts │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ ├── cosmos_proto │ │ │ │ │ │ │ │ ├── cosmos.d.ts │ │ │ │ │ │ │ │ ├── cosmos.js │ │ │ │ │ │ │ │ └── cosmos.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ ├── any.d.ts │ │ │ │ │ │ │ │ ├── any.js │ │ │ │ │ │ │ │ ├── any.ts │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ │ │ │ ├── timestamp.d.ts │ │ │ │ │ │ │ │ ├── timestamp.js │ │ │ │ │ │ │ │ └── timestamp.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.feegrant.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ │ ├── query │ │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ │ │ └── feegrant │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── feegrant.d.ts │ │ │ │ │ │ │ │ │ ├── feegrant.js │ │ │ │ │ │ │ │ │ ├── feegrant.ts │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ ├── cosmos_proto │ │ │ │ │ │ │ │ ├── cosmos.d.ts │ │ │ │ │ │ │ │ ├── cosmos.js │ │ │ │ │ │ │ │ └── cosmos.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ ├── any.d.ts │ │ │ │ │ │ │ │ ├── any.js │ │ │ │ │ │ │ │ ├── any.ts │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ │ │ │ ├── duration.d.ts │ │ │ │ │ │ │ │ ├── duration.js │ │ │ │ │ │ │ │ ├── duration.ts │ │ │ │ │ │ │ │ ├── timestamp.d.ts │ │ │ │ │ │ │ │ ├── timestamp.js │ │ │ │ │ │ │ │ └── timestamp.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.gov.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ │ ├── query │ │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ │ │ └── gov │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ ├── gov.d.ts │ │ │ │ │ │ │ │ │ ├── gov.js │ │ │ │ │ │ │ │ │ ├── gov.ts │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ ├── cosmos_proto │ │ │ │ │ │ │ │ ├── cosmos.d.ts │ │ │ │ │ │ │ │ ├── cosmos.js │ │ │ │ │ │ │ │ └── cosmos.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ ├── any.d.ts │ │ │ │ │ │ │ │ ├── any.js │ │ │ │ │ │ │ │ ├── any.ts │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ │ │ │ ├── duration.d.ts │ │ │ │ │ │ │ │ ├── duration.js │ │ │ │ │ │ │ │ ├── duration.ts │ │ │ │ │ │ │ │ ├── timestamp.d.ts │ │ │ │ │ │ │ │ ├── timestamp.js │ │ │ │ │ │ │ │ └── timestamp.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.slashing.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ │ └── query │ │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ └── slashing │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ ├── slashing.d.ts │ │ │ │ │ │ │ │ │ ├── slashing.js │ │ │ │ │ │ │ │ │ ├── slashing.ts │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ │ │ │ ├── duration.d.ts │ │ │ │ │ │ │ │ ├── duration.js │ │ │ │ │ │ │ │ ├── duration.ts │ │ │ │ │ │ │ │ ├── timestamp.d.ts │ │ │ │ │ │ │ │ ├── timestamp.js │ │ │ │ │ │ │ │ └── timestamp.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ ├── cosmos.staking.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ │ └── types │ │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ │ ├── query │ │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ │ │ └── staking │ │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── authz.d.ts │ │ │ │ │ │ │ │ │ ├── authz.js │ │ │ │ │ │ │ │ │ ├── authz.ts │ │ │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ │ │ ├── staking.d.ts │ │ │ │ │ │ │ │ │ ├── staking.js │ │ │ │ │ │ │ │ │ ├── staking.ts │ │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ │ │ ├── cosmos_proto │ │ │ │ │ │ │ │ ├── cosmos.d.ts │ │ │ │ │ │ │ │ ├── cosmos.js │ │ │ │ │ │ │ │ └── cosmos.ts │ │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ │ ├── google │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ │ │ ├── any.d.ts │ │ │ │ │ │ │ │ │ ├── any.js │ │ │ │ │ │ │ │ │ ├── any.ts │ │ │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ │ │ │ │ ├── duration.d.ts │ │ │ │ │ │ │ │ │ ├── duration.js │ │ │ │ │ │ │ │ │ ├── duration.ts │ │ │ │ │ │ │ │ │ ├── timestamp.d.ts │ │ │ │ │ │ │ │ │ ├── timestamp.js │ │ │ │ │ │ │ │ │ └── timestamp.ts │ │ │ │ │ │ │ │ └── tendermint │ │ │ │ │ │ │ │ ├── crypto │ │ │ │ │ │ │ │ ├── keys.d.ts │ │ │ │ │ │ │ │ ├── keys.js │ │ │ │ │ │ │ │ ├── keys.ts │ │ │ │ │ │ │ │ ├── proof.d.ts │ │ │ │ │ │ │ │ ├── proof.js │ │ │ │ │ │ │ │ └── proof.ts │ │ │ │ │ │ │ │ ├── types │ │ │ │ │ │ │ │ ├── types.d.ts │ │ │ │ │ │ │ │ ├── types.js │ │ │ │ │ │ │ │ ├── types.ts │ │ │ │ │ │ │ │ ├── validator.d.ts │ │ │ │ │ │ │ │ ├── validator.js │ │ │ │ │ │ │ │ └── validator.ts │ │ │ │ │ │ │ │ └── version │ │ │ │ │ │ │ │ ├── types.d.ts │ │ │ │ │ │ │ │ ├── types.js │ │ │ │ │ │ │ │ └── types.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ │ └── cosmos.vesting.v1beta1 │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── module │ │ │ │ │ │ ├── index.d.ts │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ │ ├── rest.js │ │ │ │ │ │ ├── rest.ts │ │ │ │ │ │ └── types │ │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ │ ├── auth │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── auth.d.ts │ │ │ │ │ │ │ │ │ ├── auth.js │ │ │ │ │ │ │ │ │ └── auth.ts │ │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ │ └── vesting │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ │ ├── tx.ts │ │ │ │ │ │ │ │ ├── vesting.d.ts │ │ │ │ │ │ │ │ ├── vesting.js │ │ │ │ │ │ │ │ └── vesting.ts │ │ │ │ │ │ │ ├── cosmos_proto │ │ │ │ │ │ │ ├── cosmos.d.ts │ │ │ │ │ │ │ ├── cosmos.js │ │ │ │ │ │ │ └── cosmos.ts │ │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ │ └── google │ │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ ├── any.d.ts │ │ │ │ │ │ │ ├── any.js │ │ │ │ │ │ │ ├── any.ts │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ └── descriptor.ts │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── vuex-root │ │ │ │ └── ibc-go │ │ │ │ │ └── ibc.applications.transfer.v1 │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── index.js │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── module │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── index.js │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── rest.d.ts │ │ │ │ │ ├── rest.js │ │ │ │ │ ├── rest.ts │ │ │ │ │ └── types │ │ │ │ │ │ ├── cosmos │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ ├── query │ │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ │ ├── pagination.d.ts │ │ │ │ │ │ │ │ │ ├── pagination.js │ │ │ │ │ │ │ │ │ └── pagination.ts │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ │ ├── coin.d.ts │ │ │ │ │ │ │ │ ├── coin.js │ │ │ │ │ │ │ │ └── coin.ts │ │ │ │ │ │ └── upgrade │ │ │ │ │ │ │ └── v1beta1 │ │ │ │ │ │ │ ├── upgrade.d.ts │ │ │ │ │ │ │ ├── upgrade.js │ │ │ │ │ │ │ └── upgrade.ts │ │ │ │ │ │ ├── gogoproto │ │ │ │ │ │ ├── gogo.d.ts │ │ │ │ │ │ ├── gogo.js │ │ │ │ │ │ └── gogo.ts │ │ │ │ │ │ ├── google │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ ├── annotations.d.ts │ │ │ │ │ │ │ ├── annotations.js │ │ │ │ │ │ │ ├── annotations.ts │ │ │ │ │ │ │ ├── http.d.ts │ │ │ │ │ │ │ ├── http.js │ │ │ │ │ │ │ └── http.ts │ │ │ │ │ │ └── protobuf │ │ │ │ │ │ │ ├── any.d.ts │ │ │ │ │ │ │ ├── any.js │ │ │ │ │ │ │ ├── any.ts │ │ │ │ │ │ │ ├── descriptor.d.ts │ │ │ │ │ │ │ ├── descriptor.js │ │ │ │ │ │ │ ├── descriptor.ts │ │ │ │ │ │ │ ├── timestamp.d.ts │ │ │ │ │ │ │ ├── timestamp.js │ │ │ │ │ │ │ └── timestamp.ts │ │ │ │ │ │ └── ibc │ │ │ │ │ │ ├── applications │ │ │ │ │ │ └── transfer │ │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ ├── genesis.d.ts │ │ │ │ │ │ │ ├── genesis.js │ │ │ │ │ │ │ ├── genesis.ts │ │ │ │ │ │ │ ├── query.d.ts │ │ │ │ │ │ │ ├── query.js │ │ │ │ │ │ │ ├── query.ts │ │ │ │ │ │ │ ├── transfer.d.ts │ │ │ │ │ │ │ ├── transfer.js │ │ │ │ │ │ │ ├── transfer.ts │ │ │ │ │ │ │ ├── tx.d.ts │ │ │ │ │ │ │ ├── tx.js │ │ │ │ │ │ │ └── tx.ts │ │ │ │ │ │ └── core │ │ │ │ │ │ └── client │ │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── client.d.ts │ │ │ │ │ │ ├── client.js │ │ │ │ │ │ └── client.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── vuex-root │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── index.ts │ │ │ ├── package.json │ │ │ └── readme.md │ │ └── index.js │ └── views │ │ ├── Index.vue │ │ ├── Relayers.vue │ │ └── Types.vue └── vue.config.js └── x └── anone ├── client └── cli │ ├── query.go │ └── tx.go ├── genesis.go ├── genesis_test.go ├── handler.go ├── keeper ├── grpc_query.go ├── keeper.go ├── msg_server.go └── msg_server_test.go ├── module.go └── types ├── codec.go ├── errors.go ├── expected_keepers.go ├── genesis.go ├── genesis.pb.go ├── genesis_test.go ├── keys.go ├── query.pb.go ├── tx.pb.go └── types.go /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/web3validator/anone/d2cad20649208e03f8dc6006a77be31357b37727/.DS_Store -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | name: Deploy 4 | 5 | on: 6 | push: 7 | branches: [ master ] 8 | pull_request: 9 | branches: [ master ] 10 | 11 | jobs: 12 | deploy: 13 | runs-on: ubuntu-latest 14 | strategy: 15 | matrix: 16 | node-version: [17.x] 17 | 18 | steps: 19 | - name: Checkout 20 | uses: actions/checkout@v2 21 | 22 | - name: Use Node.js 23 | uses: actions/setup-node@v2 24 | with: 25 | node-version: ${{ matrix.node-version }} 26 | 27 | - name: Cache dependencies 28 | uses: actions/cache@v2 29 | with: 30 | path: ~/.npm 31 | key: npm-${{ hashFiles('package-lock.json') }} 32 | restore-keys: npm- 33 | 34 | - name: Build the web 35 | env: 36 | NODE_OPTIONS: --openssl-legacy-provider 37 | run: | 38 | cd vue 39 | npm ci --ignore-scripts 40 | npm run build 41 | 42 | - name: Transfer /dist folder to server 43 | uses: garygrossgarten/github-action-scp@release 44 | with: 45 | local: vue/dist 46 | remote: /root/anone 47 | host: ${{ secrets.HOST }} 48 | username: ${{ secrets.USERNAME }} 49 | privateKey: ${{ secrets.PRIV_KEY }} 50 | passphrase: ${{ secrets.PASSPHRASE }} 51 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vue/node_modules 2 | vue/dist 3 | release/ 4 | .env 5 | debug.txt 6 | .DS_Store 7 | .idea -------------------------------------------------------------------------------- /app/genesis.go: -------------------------------------------------------------------------------- 1 | package app 2 | 3 | import ( 4 | "encoding/json" 5 | 6 | "github.com/cosmos/cosmos-sdk/codec" 7 | ) 8 | 9 | // The genesis state of the blockchain is represented here as a map of raw json 10 | // messages key'd by a identifier string. 11 | // The identifier is used to determine which module genesis information belongs 12 | // to so it may be appropriately routed during init chain. 13 | // Within this application default genesis information is retrieved from 14 | // the ModuleBasicManager which populates json from each BasicModule 15 | // object provided to it during init. 16 | type GenesisState map[string]json.RawMessage 17 | 18 | // NewDefaultGenesisState generates the default state for the application. 19 | func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState { 20 | return ModuleBasics.DefaultGenesis(cdc) 21 | } 22 | -------------------------------------------------------------------------------- /cmd/anoned/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os" 5 | 6 | svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" 7 | "github.com/notional-labs/anone/app" 8 | "github.com/tendermint/spm/cosmoscmd" 9 | ) 10 | 11 | func main() { 12 | rootCmd, _ := cosmoscmd.NewRootCmd( 13 | app.Name, 14 | app.AccountAddressPrefix, 15 | app.DefaultNodeHome, 16 | app.Name, 17 | app.ModuleBasics, 18 | app.New, 19 | // this line is used by starport scaffolding # root/arguments 20 | ) 21 | if err := svrcmd.Execute(rootCmd, app.DefaultNodeHome); err != nil { 22 | os.Exit(1) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /config.yml: -------------------------------------------------------------------------------- 1 | accounts: 2 | - name: alice 3 | coins: ["20000token", "200000000stake"] 4 | - name: bob 5 | coins: ["10000token", "100000000stake"] 6 | validator: 7 | name: alice 8 | staked: "100000000stake" 9 | client: 10 | openapi: 11 | path: "docs/static/openapi.yml" 12 | vuex: 13 | path: "vue/src/store" 14 | faucet: 15 | name: bob 16 | coins: ["5token", "100000stake"] 17 | -------------------------------------------------------------------------------- /docs/docs.go: -------------------------------------------------------------------------------- 1 | package docs 2 | 3 | import "embed" 4 | 5 | //go:embed static 6 | var Docs embed.FS 7 | -------------------------------------------------------------------------------- /docs/one-pager-plan-outline.md: -------------------------------------------------------------------------------- 1 | # Anone engineering plan outline 2 | 3 | # Requirements: 4 | 1. Have to point out where we can collaborate with Marco's content creator team (what content?) 5 | 6 | # Phases outline 7 | 1. __Testnet 1__: super safe basic functional chain 8 | * __WHY?__: the tasks in this phase are very familiar with the team. We can still ICO on schedule in case test - net 2 fails to meet deadline. 9 | * __GOAL__: basic functionalities on cosmos eco-system 10 | * integrate one to keplr wallet. 11 | * website for adding keplr wallet + block explorer. 12 | * prepare an uniform https RPC and REST endpoint. 13 | * IPFS-based genesis hosting and download (for validators) 14 | * IBC testing (this is for later integration to major DEX on cosmos eco-system) 15 | * add airdrop for one1 address 16 | * custom configuration 17 | 18 | 2. __Testnet 2__: etherum and NFT integration 19 | * __WHY?__: this phase is for adding and testing new features 20 | * __GENERAL GOAL__: this chain version must resemble real mainnet 21 | * __ETHERUM GOAL__: add support for etherum 22 | * implement support for handling tx signed by metamask 23 | * prepare an uniform https JSON-RPC endpoint 24 | * add airdrop testing for eth-format address 25 | 26 | * __NFT GOAL__: add support for NFT functionality 27 | * (We can collaborate on this part?) 28 | * implement NFT functionality 29 | * NFT marketplace? 30 | 31 | 3. __Testnet 3__: for further change to test - net 2 if exists 32 | 33 | # Timeline estimation 34 | 35 | __Total time__: 3 months 36 | 37 | 1. __Testnet 1__: 1 month 38 | 2. __Testnet 2__: 1.5 month (1 month and 2 weeks) 39 | 3. __Reserve time__: 0.5 month (2 weeks) 40 | 41 | # Team member estimation 42 | 43 | # Budget estimation 44 | -------------------------------------------------------------------------------- /gentx-instruction.md: -------------------------------------------------------------------------------- 1 | ## Clone the project 2 | ``` 3 | git clone https://github.com/notional-labs/anone 4 | ``` 5 | ## Build 6 | ``` 7 | cd anone 8 | git checkout testnet-1 9 | go install ./... 10 | ``` 11 | 12 | ## Set up 13 | If you get an error that genesis.json file already exists, use overwrite flag 14 | ``` 15 | anoned init -o moniker --chain-id anone-testnet-1 16 | ``` 17 | If you get an error that 'anoned not found' then your gopath is not setup properly. You can try: 18 | ``` 19 | export GOPATH=~/go 20 | export PATH=$PATH:~/go/bin 21 | ``` 22 | Assign yourself a balance, replace "" with the name of your keys above 23 | ``` 24 | anoned add-genesis-account 1000000000uan1 --keyring-backend os 25 | ``` 26 | Define the amount you want to stake, replace "" with the name of your keys from step 5 27 | ``` 28 | anoned gentx 1000000uan1 \ 29 | --chain-id anone-testnet-1 \ 30 | --moniker="" \ 31 | --commission-max-change-rate=0.01 \ 32 | --commission-max-rate=0.20 \ 33 | --commission-rate=0.05 \ 34 | --details="XXXXXXXX" \ 35 | --security-contact="XXXXXXXX" \ 36 | --website="XXXXXXXX" 37 | ``` 38 | You should now get an output like: 39 | ``` 40 | Genesis transaction written to "~/.anone/config/gentx/gentx-e4987c1bfc4c1135ddfd79ee0114e1212a747da3.json" 41 | ``` 42 | Copy the gentx file to your local anone repo, use the below command exactly as is 43 | ``` 44 | cp ~/.anone/config/gentx/* networks/anone-testnet-1/gentxs 45 | ``` 46 | Submit a Pull Request with your gentx file 47 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/notional-labs/anone 2 | 3 | go 1.16 4 | 5 | require ( 6 | github.com/cosmos/cosmos-sdk v0.44.5 7 | github.com/cosmos/ibc-go/v2 v2.0.2 8 | github.com/gogo/protobuf v1.3.3 9 | github.com/google/go-cmp v0.5.6 // indirect 10 | github.com/gorilla/mux v1.8.0 11 | github.com/grpc-ecosystem/grpc-gateway v1.16.0 12 | github.com/spf13/cast v1.4.1 13 | github.com/spf13/cobra v1.2.1 14 | github.com/stretchr/testify v1.7.0 15 | github.com/tendermint/spm v0.1.8 16 | github.com/tendermint/tendermint v0.34.14 17 | github.com/tendermint/tm-db v0.6.4 18 | google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa 19 | google.golang.org/grpc v1.43.0 20 | ) 21 | 22 | replace ( 23 | github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 24 | github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 25 | google.golang.org/grpc => google.golang.org/grpc v1.33.2 26 | ) 27 | -------------------------------------------------------------------------------- /keplr_suggestion.txt: -------------------------------------------------------------------------------- 1 | window.keplr.experimentalSuggestChain({ 2 | chainId: "anoned-1", 3 | chainName: "Anone Test Net", 4 | rpc: "http://127.0.0.1:26657", 5 | rest: "http://127.0.0.1:1317", 6 | bip44: { 7 | coinType: 118, 8 | }, 9 | bech32Config: { 10 | bech32PrefixAccAddr: "one", 11 | bech32PrefixAccPub: "one" + "pub", 12 | bech32PrefixValAddr: "one" + "valoper", 13 | bech32PrefixValPub: "one" + "valoperpub", 14 | bech32PrefixConsAddr: "one" + "valcons", 15 | bech32PrefixConsPub: "one" + "valconspub", 16 | }, 17 | currencies: [ 18 | { 19 | coinDenom: "ONE", 20 | coinMinimalDenom: "uone", 21 | coinDecimals: 6, 22 | coinGeckoId: "fuck", 23 | }, 24 | ], 25 | feeCurrencies: [ 26 | { 27 | coinDenom: "ONE", 28 | coinMinimalDenom: "uone", 29 | coinDecimals: 6, 30 | coinGeckoId: "fuck", 31 | }, 32 | ], 33 | stakeCurrency: { 34 | coinDenom: "ONE", 35 | coinMinimalDenom: "uone", 36 | coinDecimals: 6, 37 | coinGeckoId: "fuck", 38 | }, 39 | coinType: 118, 40 | gasPriceStep: { 41 | low: 0.01, 42 | average: 0.025, 43 | high: 0.03, 44 | }, 45 | }); -------------------------------------------------------------------------------- /lambda/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .DS_Store 3 | dist/ 4 | node_modules/ 5 | .env 6 | lambda.zip 7 | -------------------------------------------------------------------------------- /lambda/README.md: -------------------------------------------------------------------------------- 1 | # Metrics Handler 2 | 3 | ## SQS Queue Config 4 | Queue should be normal. We do not care about order. 5 | Naming convention 6 | `${ENVIRONMENT}-Analytics` 7 | 8 | The final name of the Queue created in the AWS dashboard should be kept and saved in lambda environment config 9 | 10 | ## Lambda config 11 | Handler function in AWS console should be set to **dist/lambda.handler** 12 | 13 | **Runtime:** node 12.x+ 14 | 15 | ## Lambda build 16 | Do the following: 17 | * `npm install` 18 | * `npm run package` 19 | * Upload the created `lambda.zip` in the AWS lambda console. 20 | 21 | ### Env variables: 22 | SQS_QUEUE_URL should be set to the URL of the created metrics queue. 23 | 24 | ## Putting items on the Queue. 25 | Look at the code in /routes/Metric.ts. This is an example of putting a message in the SQS Queue to be processed by the Metric handler. 26 | 27 | You can run `npm start` and this will launch a webserver. 28 | 29 | ## Environment Variables: 30 | -------------------------------------------------------------------------------- /lambda/build.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Remove old files, copy front-end ones. 3 | */ 4 | 5 | import fs from 'fs-extra'; 6 | import Logger from 'jet-logger'; 7 | 8 | 9 | try { 10 | // Remove current build 11 | fs.removeSync('./dist/'); 12 | // Copy front-end files 13 | fs.copySync('./src/public', './dist/public'); 14 | fs.copySync('./src/views', './dist/views'); 15 | } catch (err) { 16 | Logger.Err(err); 17 | } 18 | -------------------------------------------------------------------------------- /lambda/index.js: -------------------------------------------------------------------------------- 1 | const AWS = require('aws-sdk'); 2 | const dynamo = new AWS.DynamoDB.DocumentClient(); 3 | 4 | 5 | const validateSignature = async (ethAddress, signedMessage) => { 6 | 7 | } 8 | 9 | const writeDB = async ({ethAddress, oneAddress, signature}) => { 10 | 11 | } 12 | 13 | /** 14 | * Demonstrates a simple HTTP endpoint using API Gateway. You have full 15 | * access to the request and response payload, including headers and 16 | * status code. 17 | * 18 | * To scan a DynamoDB table, make a GET request with the TableName as a 19 | * query string parameter. To put, update, or delete an item, make a POST, 20 | * PUT, or DELETE request respectively, passing in the payload to the 21 | * DynamoDB API as a JSON body. 22 | */ 23 | exports.handler = async (event, context) => { 24 | //console.log('Received event:', JSON.stringify(event, null, 2)); 25 | 26 | let body; 27 | let statusCode = '200'; 28 | const headers = { 29 | 'Content-Type': 'application/json', 30 | }; 31 | 32 | try { 33 | switch (event.httpMethod) { 34 | case 'POST': 35 | const {ethAddress, oneAddress, signature} = JSON.parse(event.body); 36 | body = await dynamo.put().promise(); 37 | break; 38 | default: 39 | throw new Error(`Unsupported method "${event.httpMethod}"`); 40 | } 41 | } catch (err) { 42 | console.log(err); 43 | statusCode = '400'; 44 | body = err.message; 45 | } finally { 46 | body = JSON.stringify(body); 47 | } 48 | 49 | return { 50 | statusCode, 51 | body, 52 | headers, 53 | }; 54 | }; 55 | -------------------------------------------------------------------------------- /lambda/src/Server.ts: -------------------------------------------------------------------------------- 1 | import cookieParser from 'cookie-parser'; 2 | import morgan from 'morgan'; 3 | import path from 'path'; 4 | import helmet from 'helmet'; 5 | 6 | import express, { NextFunction, Request, Response } from 'express'; 7 | import StatusCodes from 'http-status-codes'; 8 | import 'express-async-errors'; 9 | 10 | import BaseRouter from './routes'; 11 | 12 | 13 | const app = express(); 14 | const { BAD_REQUEST } = StatusCodes; 15 | 16 | 17 | 18 | /************************************************************************************ 19 | * Set basic express settings 20 | ***********************************************************************************/ 21 | 22 | app.use(express.json()); 23 | app.use(express.urlencoded({extended: true})); 24 | app.use(cookieParser()); 25 | 26 | // Show routes called in console during development 27 | if (process.env.NODE_ENV === 'development') { 28 | app.use(morgan('dev')); 29 | } 30 | 31 | // Security 32 | if (process.env.NODE_ENV === 'production') { 33 | app.use(helmet()); 34 | } 35 | 36 | // Add APIs 37 | app.use('/api', BaseRouter); 38 | 39 | // Print API errors 40 | // eslint-disable-next-line @typescript-eslint/no-unused-vars 41 | app.use((err: Error, req: Request, res: Response, next: NextFunction) => { 42 | console.error(err, true); 43 | return res.status(BAD_REQUEST).json({ 44 | error: err.message, 45 | }); 46 | }); 47 | 48 | 49 | 50 | /************************************************************************************ 51 | * Serve front-end content 52 | ***********************************************************************************/ 53 | 54 | const viewsDir = path.join(__dirname, 'views'); 55 | app.set('views', viewsDir); 56 | const staticDir = path.join(__dirname, 'public'); 57 | app.use(express.static(staticDir)); 58 | app.get('*', (req: Request, res: Response) => { 59 | res.sendFile('index.html', {root: viewsDir}); 60 | }); 61 | 62 | // Export express instance 63 | export default app; 64 | -------------------------------------------------------------------------------- /lambda/src/event-sample.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0", 3 | "routeKey": "ANY /nodejs-apig-function-1G3XMPLZXVXYI", 4 | "rawPath": "/default/nodejs-apig-function-1G3XMPLZXVXYI", 5 | "rawQueryString": "", 6 | "cookies": [ 7 | "s_fid=7AABXMPL1AFD9BBF-0643XMPL09956DE2", 8 | "regStatus=pre-register" 9 | ], 10 | "headers": { 11 | "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", 12 | "accept-encoding": "gzip, deflate, br" 13 | }, 14 | "requestContext": { 15 | "accountId": "123456789012", 16 | "apiId": "r3pmxmplak", 17 | "domainName": "r3pmxmplak.execute-api.us-east-2.amazonaws.com", 18 | "domainPrefix": "r3pmxmplak", 19 | "http": { 20 | "method": "GET", 21 | "path": "/default/nodejs-apig-function-1G3XMPLZXVXYI", 22 | "protocol": "HTTP/1.1", 23 | "sourceIp": "205.255.255.176", 24 | "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 25 | }, 26 | "requestId": "JKJaXmPLvHcESHA=", 27 | "routeKey": "ANY /nodejs-apig-function-1G3XMPLZXVXYI", 28 | "stage": "default", 29 | "time": "10/Mar/2020:05:16:23 +0000", 30 | "timeEpoch": 1583817383220 31 | }, 32 | "isBase64Encoded": true 33 | } 34 | -------------------------------------------------------------------------------- /lambda/src/index.ts: -------------------------------------------------------------------------------- 1 | import './preStart'; // Must be the first import 2 | import app from './Server'; 3 | import mongoose, {Connection} from 'mongoose'; 4 | 5 | mongoose.set('useNewUrlParser', true); 6 | mongoose.set('useUnifiedTopology', true); 7 | mongoose.set('useFindAndModify', false); 8 | 9 | /** 10 | * THIS IS USED FOR TESTING LOCALLY 11 | */ 12 | // Start the server 13 | const port = Number(process.env.PORT || 3000); 14 | app.listen(port, () => { 15 | console.info('Express server started on port: ' + port); 16 | }); 17 | -------------------------------------------------------------------------------- /lambda/src/models/Attestation.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface IAttestation { 3 | ethAddress:string, 4 | oneAddress:string, 5 | NFTs: string[], 6 | signature: string 7 | added?: Date | string 8 | } 9 | -------------------------------------------------------------------------------- /lambda/src/models/mongo/AttestationModel.ts: -------------------------------------------------------------------------------- 1 | import {Schema, Date, model} from 'mongoose'; 2 | import {IAttestation} from "../Attestation"; 3 | 4 | 5 | export interface AttestationModel extends IAttestation { 6 | _id: string, 7 | added: string, 8 | ethAddress: string, 9 | oneAddress: string, 10 | NFTs: string[], 11 | signature: string 12 | } 13 | 14 | export const AttestationSchema = new Schema({ 15 | _id: {type: String}, 16 | added: Date, 17 | ethAddress: String, 18 | oneAddress: String, 19 | NFTs: [], 20 | signature: String 21 | }, { versionKey: false }); 22 | 23 | 24 | 25 | export const Attestation = model('User', AttestationSchema); 26 | -------------------------------------------------------------------------------- /lambda/src/preStart.ts: -------------------------------------------------------------------------------- 1 | import dotenv from 'dotenv'; 2 | import commandLineArgs from 'command-line-args'; 3 | import {Connection, Error} from "mongoose"; 4 | import mongoose from "mongoose"; 5 | 6 | // Setup command line options 7 | const options = commandLineArgs([ 8 | { 9 | name: 'env', 10 | alias: 'e', 11 | defaultValue: 'development', 12 | type: String, 13 | }, 14 | ]); 15 | 16 | // Set the env file 17 | dotenv.config(); 18 | 19 | let conn:Promise | Connection; 20 | let connection: Connection; 21 | // eslint-disable-next-line max-len 22 | const uri = process.env.MONGODB_URI as string; // 23 | if(!uri) { 24 | throw new Error("No mongo uri"); 25 | } 26 | mongoose.set('useFindAndModify', false); 27 | mongoose.set('useCreateIndex', true); 28 | mongoose.set('useNewUrlParser', true); 29 | mongoose.set('useUnifiedTopology', true); 30 | mongoose.connect(uri); 31 | mongoose.connection.on('connected', () => { 32 | console.log('Connected to mongo'); 33 | }); 34 | mongoose.connection.on('error', (err) => { 35 | console.error(err); 36 | console.log(process.env.MONGODB_URI); 37 | console.log('%s MongoDB connection error. Please make sure MongoDB is running.'); 38 | process.exit(); 39 | }); 40 | 41 | -------------------------------------------------------------------------------- /lambda/src/public/scripts/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/web3validator/anone/d2cad20649208e03f8dc6006a77be31357b37727/lambda/src/public/scripts/index.js -------------------------------------------------------------------------------- /lambda/src/public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 100px; 3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 4 | } 5 | 6 | body .users-column { 7 | display: inline-block; 8 | margin-right: 2em; 9 | vertical-align: top; 10 | } 11 | 12 | body .users-column .column-header { 13 | padding-bottom: 5px; 14 | font-weight: 700; 15 | font-size: 1.2em; 16 | } 17 | 18 | body .add-user-col input { 19 | margin-bottom: 10px; 20 | } 21 | 22 | body .users-column .user-display-ele { 23 | padding-bottom: 10px; 24 | } 25 | 26 | body .users-column .user-display-ele button { 27 | margin-top: 2px; 28 | margin-bottom: 10px; 29 | } 30 | 31 | body .users-column .user-display-ele .edit-view { 32 | display: none; 33 | } 34 | -------------------------------------------------------------------------------- /lambda/src/routes/index.ts: -------------------------------------------------------------------------------- 1 | import { Router } from 'express'; 2 | 3 | import testRouter from './testing'; 4 | // Init router and path 5 | const router = Router(); 6 | 7 | router.use('/testing', testRouter) 8 | router.use('/', (req, res) => { 9 | console.log(req); 10 | res.send("Unknown api: "+req.baseUrl) 11 | }) 12 | 13 | // Export the base-router 14 | export default router; 15 | -------------------------------------------------------------------------------- /lambda/src/routes/testing.ts: -------------------------------------------------------------------------------- 1 | import AWS from 'aws-sdk'; 2 | import { Router, Request, Response } from 'express'; 3 | 4 | 5 | const router = Router(); 6 | 7 | import {handler} from "../handler"; 8 | 9 | // eslint-disable-next-line @typescript-eslint/no-misused-promises 10 | router.post('/attest', async (req: Request, res: Response) => { 11 | const event = { 12 | "version": "2.0", 13 | "routeKey": "ANY /nodejs-apig-function-1G3XMPLZXVXYI", 14 | "rawPath": "/default/nodejs-apig-function-1G3XMPLZXVXYI", 15 | "rawQueryString": "", 16 | "cookies": [ 17 | "s_fid=7AABXMPL1AFD9BBF-0643XMPL09956DE2", 18 | "regStatus=pre-register" 19 | ], 20 | "headers": { 21 | "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", 22 | "accept-encoding": "gzip, deflate, br" 23 | }, 24 | "requestContext": { 25 | "accountId": "123456789012", 26 | "apiId": "r3pmxmplak", 27 | "domainName": "r3pmxmplak.execute-api.us-east-2.amazonaws.com", 28 | "domainPrefix": "r3pmxmplak", 29 | "http": { 30 | "method": "GET", 31 | "path": "/default/nodejs-apig-function-1G3XMPLZXVXYI", 32 | "protocol": "HTTP/1.1", 33 | "sourceIp": "205.255.255.176", 34 | "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 35 | }, 36 | "requestId": "JKJaXmPLvHcESHA=", 37 | "routeKey": "ANY /nodejs-apig-function-1G3XMPLZXVXYI", 38 | "stage": "default", 39 | "time": "10/Mar/2020:05:16:23 +0000", 40 | "timeEpoch": 1583817383220 41 | }, 42 | "isBase64Encoded": true, 43 | body: {} 44 | }; 45 | event.body = req.body; 46 | const output = await handler(event, {}) 47 | 48 | //res.json(output); 49 | res.send(output); 50 | 51 | }); 52 | 53 | export default router; 54 | -------------------------------------------------------------------------------- /lambda/src/shared/Logger.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Setup the jet-logger. 3 | * 4 | * Documentation: https://github.com/seanpmaxwell/jet-logger 5 | */ 6 | 7 | import Logger from 'jet-logger'; 8 | 9 | 10 | const logger = new Logger(); 11 | 12 | export default logger; 13 | -------------------------------------------------------------------------------- /lambda/src/shared/constants.ts: -------------------------------------------------------------------------------- 1 | import { Request } from 'express'; 2 | 3 | export const paramMissingError = 'One or more of the required parameters was missing.'; 4 | 5 | export interface IRequest extends Request { 6 | body: { 7 | user: any, 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lambda/src/shared/functions.ts: -------------------------------------------------------------------------------- 1 | import logger from './Logger'; 2 | 3 | export const pErr = (err: Error) => { 4 | if (err) { 5 | logger.err(err); 6 | } 7 | }; 8 | 9 | export const getRandomInt = () => { 10 | return Math.floor(Math.random() * 1_000_000_000_000); 11 | }; 12 | -------------------------------------------------------------------------------- /lambda/src/util.ts: -------------------------------------------------------------------------------- 1 | import AWS from "aws-sdk"; 2 | 3 | export async function deleteMessage(sqs: AWS.SQS,queueURL: string, message: AWS.SQS.Types.Message) { 4 | return new Promise((resolve, reject) => { 5 | const deleteParams: any = { 6 | QueueUrl: queueURL, 7 | }; 8 | // Have to do this because AWS lowercases the param name and types are wrong. WTF. 9 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment 10 | // @ts-ignore 11 | deleteParams.ReceiptHandle = message.ReceiptHandle || message.receiptHandle 12 | console.log(message); 13 | sqs.deleteMessage(deleteParams, function (err, data) { 14 | if (err) { 15 | console.log(`Delete Error with queue: ${queueURL}`, err); 16 | reject(err); 17 | return; 18 | } else { 19 | console.log("Message Deleted", data); 20 | resolve(data); 21 | return; 22 | } 23 | reject("Cannot delete"); 24 | return; 25 | }); 26 | }) 27 | } -------------------------------------------------------------------------------- /lambda/src/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ExpressGeneratorTypeScriptApp 6 | 7 | 8 | 9 | Testing loaded. 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /lambda/tsconfig.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "sourceMap": false 5 | }, 6 | "exclude": [ 7 | "spec", 8 | "src/**/*.mock.ts", 9 | "src/public/" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/README.md: -------------------------------------------------------------------------------- 1 | this place contains gentxs 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-05a4c982b3bc5a4dff9508c0b0d9d401357018f6.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"isaelruiz","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one18t9g9nf0ranndrx0mmsc3wzkq32tdr7pkhejuh","validator_address":"onevaloper18t9g9nf0ranndrx0mmsc3wzkq32tdr7phv6j4m","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"eULcwlURGxaxIsY14eZ/QpC3tvBfUwMpa2fRKcEGL+Y="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"05a4c982b3bc5a4dff9508c0b0d9d401357018f6@144.126.137.231:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Ah+CgUJODMqn2KQCkXzXlKBFcDw0Qm3kDbTbXD3GdFYp"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["m5mhTaFTIxIMN2Im6/yDZsiWQYHrRj4yTExkz+xIl9Q+5bhLbJo2wSrX2DzzG6wsHE9ocF8SnTeqdoCWgeNeog=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-05c242cf520fc35b1ddc3536d55e6ce25cdc4117.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"hellblade","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1umcrgr2ayvcy387gt6tlfewu0ffdljshj36smk","validator_address":"onevaloper1umcrgr2ayvcy387gt6tlfewu0ffdljshn2esj6","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"TrbL4lRCjFAqD3mKT3nIN4I22YfMX23rwHdNzIwYs1U="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"05c242cf520fc35b1ddc3536d55e6ce25cdc4117@161.97.126.98:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A/jtKrBACZLnb1EZOvmfM8A9UiSW0+RPCT2KLnOg/B6D"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["uLCTiz5aCVXuB8Q2yOVV3JY1TUDgCGhPu9havJtpNYc2RvtwD2MB+tQkgjUBorEJxlTEd7deRA5t05FYGZQ7XQ=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-0cd1b2fdae39d269c39053b268206cc997ceda17.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"tekraze","identity":"","website":"=https://tekraze.com","security_contact":"balvinder294@gmail.com","details":"=Just a dev on validating mission for cosmos ecosystem"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1d7n5pytjej7dqas6et8rkyd0jtdvfszdqxz8f8","validator_address":"onevaloper1d7n5pytjej7dqas6et8rkyd0jtdvfszdpap8qt","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"XDaLfsQ0zoEZ/4aKYaIzm+8lNJxXXTkCA7WG9OFIITs="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"0cd1b2fdae39d269c39053b268206cc997ceda17@173.249.39.187:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A6gxP0WBqTCwyo0fhXeVDyvm+FGtSEod+rmt0V9w9GMP"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["5n0OCFcMyz2WLMi0fq8Kuvsf5i0HiUhakweraCeRNEMEKBM8lxUBAEtFawNpqN4+AW4iFM8EMgqgum88HatwZA=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-18f75e489efbc2f680108cb615d42c49a11b6b5a.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"kamranrkploy","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1v2m4plzremqlz7x3n074uwjzegfjtv7vclwp75","validator_address":"onevaloper1v2m4plzremqlz7x3n074uwjzegfjtv7veydphc","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"0kyJ3tYtHu2lV8Pjw7mZjjEp+9y2zLGbhZGq0ljtvu0="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"18f75e489efbc2f680108cb615d42c49a11b6b5a@144.126.139.112:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AybNDEWYrUCa5ZI61FRPZ3XqK+XIuxsectPF1Pnnt9L3"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["HnpqwhC1RJ8GZEwQWQOKlrbrYqO4KlzRL6J9RAkNl5NmRQ+oaiYkiprefHNmKHgJ9reZ77GTyeqemywvazw0Mg=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-1fcf5a1cbdec73092ef3bfe3944fbfc6d240c6d6.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"vickyguevara","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1rsy0aru59zhsleuk6tvlz9rwyzefhpnylzww9e","validator_address":"onevaloper1rsy0aru59zhsleuk6tvlz9rwyzefhpny7edwv4","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"aNi2/Mc2nVd99iXDSSs/d3++gnM8G7m2CZO9jHS81iA="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"1fcf5a1cbdec73092ef3bfe3944fbfc6d240c6d6@185.230.138.141:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A5U2qgH+0O0tI9TVnP7IwNaA3hUEXhsDAXMD7bCpUeDn"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["M5zPYWY8IWUkESMOF+cN4BrN5BgiInIvQlpcNcK2Aw84IFXakeV8bJ03/5SU34zJLvJmdc+JitEdnfS9HLNuKw=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-216cc6dfce5878a2a627e306cae219bab4601f65.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"shot","identity":"","website":"https://www.facebook.com/","security_contact":"XXXXXXXX","details":"AnhDuctn"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1zh684h4fz6dt09vv4w0ln3y7kwklr80tqy9nms","validator_address":"onevaloper1zh684h4fz6dt09vv4w0ln3y7kwklr80tplxnju","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"9ugYtNz2xaKOJDal9zcv7BpnQ2DS4wZshtTdIR5AISw="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"216cc6dfce5878a2a627e306cae219bab4601f65@192.168.1.12:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A6yz2BsFyqDYJ8AlEgUnlB8wRXhzBGHamHTXIjmfL2dD"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["/9i0HLJedLdwIyV65tIP4X8u1/6DHWpcYpT0KQzzm2dzxgHefrcrCWYcBUf8CjKYZTFDtfoxWs2170hDifBDqw=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-216cc6dfce5878a7e306cae219bab4601f65.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"shot","identity":"","website":"https://www.facebook.com/","security_contact":"XXXXXXXX","details":"Yasuo"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one10mjesf96p0vteprypzu3tzumlpafywwpnuv5cd","validator_address":"onevaloper10mjesf96p0vteprypzu3tzumlpafywwpj8053p","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"BudaKYFCW1vtd9WkeFRA+0df+GmxpciljpnZiLqg8yk="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"278fb82a20a951dc942db0110a9588c9d996decc@192.168.1.12:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AqvxtRkJ1XEqvQYLvo5Bcz2mCviluLNqnXObqVyoKj+y"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["BHCEmg2G7wFiZe3uMXUe7BGpnxUxQEdhVWgskTHfT/5t6LaJJffHFDeNzWL0m7ToTD4rqBfezXxBTpPHqYqH3A=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-229b31707536e32447a94edf63f9e0c999e31097.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"rakety","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1e6y0cuha8w6r278ffzap4gdm4fzd58nejxsxp6","validator_address":"onevaloper1e6y0cuha8w6r278ffzap4gdm4fzd58nenanxgk","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"jgb7oIfhsVEjuTOZmKRhrxCfX3nJlX1MpjTD3xdSfxo="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"229b31707536e32447a94edf63f9e0c999e31097@95.111.239.233:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AlQ3UwOk3mIclmpts4S4gTQXEQHdCvfQjMAjk8imtl0z"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["jBNVJcnWPUE5/RPwuOsw+aLJ0o5FB0UQ7tHwlW84zEImArvM6+yyEuwB7gKxIXzL9QKK7nUnOkIkQLe6C8QcPQ=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-300507b829a8befac579dd0c7357851a188ab973.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"gnavarro","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one13kg7a2un24f2c6vmdsgpv09ac87jjw95rew2q7","validator_address":"onevaloper13kg7a2un24f2c6vmdsgpv09ac87jjw95zzd2fj","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"fMD/Ot1FS5ZyRc8g27Y2ww3b3QlvCbjP2JopCDpJmQo="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"300507b829a8befac579dd0c7357851a188ab973@144.126.138.115:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A/b6ti8xeIazQ1BfLHPknc89RdiCQlOqDW8cKEkNSZzW"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["jN8t2jSDDllGSSvjCoDNnWEG+KeHRg26X1NU5a/EdEg7lvwTj5TrRTXV5+t+wcw3cn9IvmWA/fzdXPo7W4D3hQ=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-4d2099cb772f639e7e2936f9f9f2a9a85ab35e62.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"dehazelabs","identity":"","website":"https://dehazelabs.com","security_contact":"balvinder.singh@de-haze.com","details":"Dehazelabs is a team building future products and validators for cosmos"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1e23d7x86vq6hem4rf33nv6fkgyqk8238vq04ce","validator_address":"onevaloper1e23d7x86vq6hem4rf33nv6fkgyqk8238dmv434","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"5qnPqwG6ecfi8fKtj7oagn+i3xhfQe8FULYxOXTq9i8="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"4d2099cb772f639e7e2936f9f9f2a9a85ab35e62@173.249.7.49:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Ayrziiogrfpe2Js5eedZIoYbmn7yLisvQqazCUKf8ghp"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["tYigG89VROYnAsXdkXyrpIJNGMyypAfrjfKfmHPggYEQTJKGIo/TPUuTtdcQmFInMVVWR91rbhQ5Qyc73SbjNA=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-57eabe7acb4f39f07aa5653ac4baec27f0f6f3b9.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"Kentzz001","identity":"","website":"https://blurt.blog/@kentzz001","security_contact":"","details":"Kentzz001 a prominent Blurt witness and Dig validator."},"commission":{"rate":"0.066900000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one17xx7mapc5rrvj00e0ch4l6wkncguxsmkxh0zl5","validator_address":"onevaloper17xx7mapc5rrvj00e0ch4l6wkncguxsmk8vvzkc","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"nwrS2KZ57VBT+KzMhuf2NEmvcquxYZ8tkXA+D1wJf3M="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"57eabe7acb4f39f07aa5653ac4baec27f0f6f3b9@194.163.162.253:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AqSTOjy61nvw7nrAqdQPHUosgyb8c43zDmsxmaOWPQUp"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["FAJcZSz1xOrGuCblWHz/5Kvi6r6aiapMQhtOL9X8EHUXI5kHsb6EP7p3RCalRidAlhmJz03BeJqIsTUZR8DMng=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-5bd7cef7ff9b50847532f311e17aa74e7e45a56d.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"web34ever","identity":"","website":"https://web34ever.network/","security_contact":"web34ever@gmail.com","details":"web34ever build a world where your life belongs to you"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1gv4qq0f7kacn6aytm3th6rpejlcgwz8x3x43sj","validator_address":"onevaloper1gv4qq0f7kacn6aytm3th6rpejlcgwz8xsak3e7","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"YiF3KSKV6Dj3C6AYEzVD83OrV+C8icarykxWoS5MnTY="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"5bd7cef7ff9b50847532f311e17aa74e7e45a56d@135.181.214.164:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AvH9X4l82/doGSbvVnbUG/mhXuXt8ztys436Qijy+gII"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["yeEc6uwCZscZGToDmoPFBbAhQgdr3ZPsj3NjlaG1o/dCLUjN5n0SHvpCfTDunFtkSkb1gkQJIA9Vr+XvdErPsg=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-5c2b1c4deb14501871c773e8c6c41bbcfe853471.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"d00dl3web3","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one19dxwy667j8qknef3qxgtkqq9l4kktq9qh7h9h6","validator_address":"onevaloper19dxwy667j8qknef3qxgtkqq9l4kktq9qk9597k","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"ZZiK82W7dIGXCtK8MvnQXAgGTwD0NsHmR/3pUy14EI4="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"5c2b1c4deb14501871c773e8c6c41bbcfe853471@207.244.243.245:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A0tjW8NEvkfodZed+r3Foo0yIkTZQST26Z4DjHsRRbFP"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["mzIGBm+y8fg/Y7O19yaiqBbsxfczip9LxZDYWv7OPe5UmC392k2PaP3JVwXoroHoeGxX5JUj8Ygj3AYE30ZHqA=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-6abd85339523371ceb44ecc45c17b24836e4a13d.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"williamapc","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1y3xcw5qhv3rs736hj8lapn06r2mep5urkwu8c4","validator_address":"onevaloper1y3xcw5qhv3rs736hj8lapn06r2mep5urh4l83e","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"31Xm0UB2a6ULJ+abA2o4+Gqayx4BFa33fjvkUnugLws="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"6abd85339523371ceb44ecc45c17b24836e4a13d@209.126.7.201:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AmNcbQGAqhQpW9mq09FRESsQsRwIewYnGBGu20G53Eor"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["+DdW0tGn5kLxyXgdIzv//lLnKNLb59hypebM7Dt5l2hFhaxB2mzvBHK8ev/1E4lFKQUqx45F2c8P1YEt0iOXPQ=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-7130dc7f837215eba6429c752b606f2165f72463.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"opsin","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1ux8r8jfve3tckdskeplgxqycnx9ztt5fvlxe96","validator_address":"onevaloper1ux8r8jfve3tckdskeplgxqycnx9ztt5fdy9evk","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Q4/HMiv/5ym78SKNNrmym9RjSm78A92xNqPK/kMMUBI="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"7130dc7f837215eba6429c752b606f2165f72463@207.244.246.217:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"ArQbpXJd4SJsAZd5xGPmCYJfcItzAvyvnpNZP5L1rY6k"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["uVFYfUsbLOwQAxER3XLQsKn1cxtV9/smQ/7fZ/UcxOZik42HgtZ0AkHlAjv/qiuMut3JEOuV9yCvdNpOZGrVcw=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-75e21f3f515294caadaed054297b591e7aff1ff0.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"ZenChainLabs","identity":"C0586A29077BF9AE","website":"https://zenchainlabs.io","security_contact":"","details":"Secure and Reliable Blockchain Services"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1xm37x2wed0vzxevc3wqmkzz7paukyr2mk3zxd0","validator_address":"onevaloper1xm37x2wed0vzxevc3wqmkzz7paukyr2mh2pxyr","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"wiwke6I6chSmDxBaX78RjpS+tRLNpEFlLOu92r/G+AI="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"75e21f3f515294caadaed054297b591e7aff1ff0@173.212.223.37:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AiqGF/9w3JAw7R5jj4n5GF7ZTO6/vEpo9wdzL3VgmdpH"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["pGVIF4+V805Mctr4m+Wq6NkXjddTsu3ZQvRDerqxCfkE6Q4Vr7tHipi4Zz7CZKLTNKHAXBU4Fh/oJ3KFZ4pI5A=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-82ba6b00244af1b1fee3dc415d398188de40217b.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"freakeao","identity":"","website":"blurt.blog","security_contact":"vgla2000@gmail.com","details":"Witness Blurt, Dig Validator"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1tzzh5fqwdg3fggymx73dkhuljakhxa04qjay4g","validator_address":"onevaloper1tzzh5fqwdg3fggymx73dkhuljakhxa04pf7yuy","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"bbZSfjyTp/yvUnGdPFGdla/rIFjSn0plhubWggAiocs="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"82ba6b00244af1b1fee3dc415d398188de40217b@75.119.135.167:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AlHJ6KtBhpDuBbfACsOd7Xx7rPr07qWNY7fCT2MTe2GG"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["gMpnAY1TI9EdhbsyKTWQ3TuHbMaaquKFGeiP++4xYdJmSCwyrf+smRzonbDvhTmk8iczuM+Ei80wBEb/3HsUjQ=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-c52aa7de58b29d93b17d09a373e6adb2eb29f5f1.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"Rosper7","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one12v4d2gcnz0qdrfv8e7w7wsrskmls3u7hzctrrf","validator_address":"onevaloper12v4d2gcnz0qdrfv8e7w7wsrskmls3u7hrrgr29","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"HltCl7Pl13uh50rBqsV+Ga26QI7uJmjrRI9GR00oToY="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"c52aa7de58b29d93b17d09a373e6adb2eb29f5f1@144.126.138.48:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A+sGKroY8mr5fOOgjW0PI5bMwk4kcpmtvez95Uip60va"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["EIsSqaVh8bWN/pkniHkc0SigH70z2YpiZkipcSmg35lRqMgVoey/UbNRJt+S25iIZZwQuAkgzBcjcTWPVRZvDg=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-d7faed682e9e901827c1de86d9111f1ecc7f3e3f.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"trinity","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1lf5xl0wuu385gnakxdyvtqt23r376sk2qhv95j","validator_address":"onevaloper1lf5xl0wuu385gnakxdyvtqt23r376sk2pv09a7","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Y80MXvhZT+nPHZceqlIXqviyr+XLff+jXh9alEQ3VDM="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"d7faed682e9e901827c1de86d9111f1ecc7f3e3f@144.91.64.157:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AyK/txStigsdQqMC+Jv3vuTDAaoRtXbw+n5kIb8qzCpf"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["lTdb4AGBsRPePUFtoXV1Ox8M3lfi2HWMsJZg4XmXa1A5rqOGx9xe3LG2QKeJGx+jP4kIBpaAQtWzgCEMb9ZnXA=="]} 2 | -------------------------------------------------------------------------------- /networks/testnet-1/gentxs/gentx-f09e0f1e15301da178306c613c5d4a2291f6851c.json: -------------------------------------------------------------------------------- 1 | {"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"zahidsun","identity":"","website":"XXXXXXXX","security_contact":"XXXXXXXX","details":"XXXXXXXX"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"one1qndxhzj4lu6mnjvf2fgvkg4nr0xvlsudq6j20y","validator_address":"onevaloper1qndxhzj4lu6mnjvf2fgvkg4nr0xvlsudpp32xg","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"uqbR+A5Ua+zo9VN/UMufO7G19qoaSZYALwbNV9XcjbQ="},"value":{"denom":"uan1","amount":"1000000"}}],"memo":"f09e0f1e15301da178306c613c5d4a2291f6851c@161.97.126.191:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AzpVj2an9zzKt0YbFdydJqDKYWzGDXf3dyTWJT0OtIpJ"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["EvqSJon9rUJYLlUj/u3925aLc5RBtg2VAEZiL9vPVFNaH8WBVA/nWb2gqnJrBJLDDypeU0DdCK1l4lz6iJ1BKQ=="]} 2 | -------------------------------------------------------------------------------- /proto/anone/genesis.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package notionallabs.anone.anone; 3 | 4 | // this line is used by starport scaffolding # genesis/proto/import 5 | 6 | option go_package = "github.com/notional-labs/anone/x/anone/types"; 7 | 8 | // GenesisState defines the anone module's genesis state. 9 | message GenesisState { 10 | // this line is used by starport scaffolding # genesis/proto/state 11 | } 12 | -------------------------------------------------------------------------------- /proto/anone/query.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package notionallabs.anone.anone; 3 | 4 | import "google/api/annotations.proto"; 5 | import "cosmos/base/query/v1beta1/pagination.proto"; 6 | // this line is used by starport scaffolding # 1 7 | 8 | option go_package = "github.com/notional-labs/anone/x/anone/types"; 9 | 10 | // Query defines the gRPC querier service. 11 | service Query { 12 | // this line is used by starport scaffolding # 2 13 | } 14 | 15 | // this line is used by starport scaffolding # 3 16 | -------------------------------------------------------------------------------- /proto/anone/tx.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package notionallabs.anone.anone; 3 | 4 | // this line is used by starport scaffolding # proto/tx/import 5 | 6 | option go_package = "github.com/notional-labs/anone/x/anone/types"; 7 | 8 | // Msg defines the Msg service. 9 | service Msg { 10 | // this line is used by starport scaffolding # proto/tx/rpc 11 | } 12 | 13 | // this line is used by starport scaffolding # proto/tx/message -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # anone 2 | **anone** is a blockchain built using Cosmos SDK and Tendermint and created with [Starport](https://github.com/tendermint/starport). 3 | 4 | ## Get started 5 | 6 | ``` 7 | starport chain serve 8 | ``` 9 | 10 | `serve` command installs dependencies, builds, initializes, and starts your blockchain in development. 11 | 12 | ### Configure 13 | 14 | Your blockchain in development can be configured with `config.yml`. To learn more, see the [Starport docs](https://docs.starport.network). 15 | 16 | ### Launch 17 | 18 | To launch your blockchain live on multiple nodes, use `starport network` commands. Learn more about [Starport Network](https://github.com/tendermint/spn). 19 | 20 | ### Web Frontend 21 | 22 | Starport has scaffolded a Vue.js-based web app in the `vue` directory. Run the following commands to install dependencies and start the app: 23 | 24 | ``` 25 | cd vue 26 | npm install 27 | npm run serve 28 | ``` 29 | 30 | The frontend app is built using the `@starport/vue` and `@starport/vuex` packages. For details, see the [monorepo for Starport front-end development](https://github.com/tendermint/vue). 31 | 32 | ## Release 33 | To release a new version of your blockchain, create and push a new tag with `v` prefix. A new draft release with the configured targets will be created. 34 | 35 | ``` 36 | git tag v0.1 37 | git push origin v0.1 38 | ``` 39 | 40 | After a draft release is created, make your final changes from the release page and publish it. 41 | 42 | ### Install 43 | To install the latest version of your blockchain node's binary, execute the following command on your machine: 44 | 45 | ``` 46 | curl https://get.starport.network/notional-labs/anone@latest! | sudo bash 47 | ``` 48 | `notional-labs/anone` should match the `username` and `repo_name` of the Github repository to which the source code was pushed. Learn more about [the install process](https://github.com/allinbits/starport-installer). 49 | 50 | ## Learn more 51 | 52 | - [Starport](https://github.com/tendermint/starport) 53 | - [Starport Docs](https://docs.starport.network) 54 | - [Cosmos SDK documentation](https://docs.cosmos.network) 55 | - [Cosmos SDK Tutorials](https://tutorials.cosmos.network) 56 | - [Discord](https://discord.gg/cosmosnetwork) 57 | -------------------------------------------------------------------------------- /testutil/keeper/anone.go: -------------------------------------------------------------------------------- 1 | package keeper 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/cosmos/cosmos-sdk/codec" 7 | codectypes "github.com/cosmos/cosmos-sdk/codec/types" 8 | "github.com/cosmos/cosmos-sdk/store" 9 | storetypes "github.com/cosmos/cosmos-sdk/store/types" 10 | sdk "github.com/cosmos/cosmos-sdk/types" 11 | "github.com/notional-labs/anone/x/anone/keeper" 12 | "github.com/notional-labs/anone/x/anone/types" 13 | "github.com/stretchr/testify/require" 14 | "github.com/tendermint/tendermint/libs/log" 15 | tmproto "github.com/tendermint/tendermint/proto/tendermint/types" 16 | tmdb "github.com/tendermint/tm-db" 17 | ) 18 | 19 | func AnoneKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { 20 | storeKey := sdk.NewKVStoreKey(types.StoreKey) 21 | memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) 22 | 23 | db := tmdb.NewMemDB() 24 | stateStore := store.NewCommitMultiStore(db) 25 | stateStore.MountStoreWithDB(storeKey, sdk.StoreTypeIAVL, db) 26 | stateStore.MountStoreWithDB(memStoreKey, sdk.StoreTypeMemory, nil) 27 | require.NoError(t, stateStore.LoadLatestVersion()) 28 | 29 | registry := codectypes.NewInterfaceRegistry() 30 | k := keeper.NewKeeper( 31 | codec.NewProtoCodec(registry), 32 | storeKey, 33 | memStoreKey, 34 | ) 35 | 36 | ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) 37 | return k, ctx 38 | } 39 | -------------------------------------------------------------------------------- /testutil/sample/sample.go: -------------------------------------------------------------------------------- 1 | package sample 2 | 3 | import ( 4 | "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" 5 | sdk "github.com/cosmos/cosmos-sdk/types" 6 | ) 7 | 8 | // AccAddress returns a sample account address 9 | func AccAddress() string { 10 | pk := ed25519.GenPrivKey().PubKey() 11 | addr := pk.Address() 12 | return sdk.AccAddress(addr).String() 13 | } 14 | -------------------------------------------------------------------------------- /testutil/simapp/simapp.go: -------------------------------------------------------------------------------- 1 | package simapp 2 | 3 | import ( 4 | "time" 5 | 6 | "github.com/cosmos/cosmos-sdk/simapp" 7 | "github.com/tendermint/spm/cosmoscmd" 8 | abci "github.com/tendermint/tendermint/abci/types" 9 | "github.com/tendermint/tendermint/libs/log" 10 | tmproto "github.com/tendermint/tendermint/proto/tendermint/types" 11 | tmtypes "github.com/tendermint/tendermint/types" 12 | tmdb "github.com/tendermint/tm-db" 13 | 14 | "github.com/notional-labs/anone/app" 15 | ) 16 | 17 | // New creates application instance with in-memory database and disabled logging. 18 | func New(dir string) cosmoscmd.App { 19 | db := tmdb.NewMemDB() 20 | logger := log.NewNopLogger() 21 | 22 | encoding := cosmoscmd.MakeEncodingConfig(app.ModuleBasics) 23 | 24 | a := app.New(logger, db, nil, true, map[int64]bool{}, dir, 0, encoding, 25 | simapp.EmptyAppOptions{}) 26 | // InitChain updates deliverState which is required when app.NewContext is called 27 | a.InitChain(abci.RequestInitChain{ 28 | ConsensusParams: defaultConsensusParams, 29 | AppStateBytes: []byte("{}"), 30 | }) 31 | return a 32 | } 33 | 34 | var defaultConsensusParams = &abci.ConsensusParams{ 35 | Block: &abci.BlockParams{ 36 | MaxBytes: 200000, 37 | MaxGas: 2000000, 38 | }, 39 | Evidence: &tmproto.EvidenceParams{ 40 | MaxAgeNumBlocks: 302400, 41 | MaxAgeDuration: 504 * time.Hour, // 3 weeks is the max duration 42 | MaxBytes: 10000, 43 | }, 44 | Validator: &tmproto.ValidatorParams{ 45 | PubKeyTypes: []string{ 46 | tmtypes.ABCIPubKeyTypeEd25519, 47 | }, 48 | }, 49 | } 50 | -------------------------------------------------------------------------------- /vue/.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not dead 4 | not ie 11 5 | -------------------------------------------------------------------------------- /vue/.env: -------------------------------------------------------------------------------- 1 | VUE_APP_WS_TENDERMINT=NULL 2 | VUE_APP_API_COSMOS=https://api-anone.notional.ventures 3 | VUE_APP_API_TENDERMINT=https://rpc-anone.notional.ventures 4 | VUE_APP_ADDRESS_PREFIX=one 5 | VUE_APP_CHAIN_ID=anoned-1 6 | VUE_APP_CHAIN_NAME=AnotherOne 7 | VUE_APP_COIN_DECIMAL=6 8 | VUE_APP_COIN_TYPE=118 9 | -------------------------------------------------------------------------------- /vue/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true, 5 | }, 6 | extends: ['plugin:vue/vue3-essential', 'eslint:recommended', 'plugin:prettier/recommended', '@vue/prettier'], 7 | parserOptions: { 8 | parser: '@babel/eslint-parser', 9 | }, 10 | rules: { 11 | 'no-tabs': 'warn', 12 | 'no-console': 'off', 13 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 14 | 'no-unused-vars': 'off', 15 | 'vue/component-name-in-template-casing': ['error', 'PascalCase'], 16 | 'prettier/prettier': [ 17 | 'warn', 18 | { 19 | trailingComma: 'all', 20 | semi: false, 21 | useTabs: false, 22 | singleQuote: true, 23 | printWidth: 120, 24 | endOfLine: 'auto', 25 | }, 26 | ], 27 | }, 28 | overrides: [ 29 | { 30 | files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'], 31 | env: { 32 | jest: true, 33 | }, 34 | }, 35 | ], 36 | } 37 | -------------------------------------------------------------------------------- /vue/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /vue/README.md: -------------------------------------------------------------------------------- 1 | ## App UI Template 2 | 3 | [Vue.js](https://vuejs.org/)-based web app template for your Cosmos SDK blockchain. Use the template to quickly bootstrap your app. To learn more, check out the components in `@starport/vue` and the [Starport documentation](https://docs.starport.network/). 4 | 5 | 6 | ## Project setup 7 | 8 | ``` 9 | npm install 10 | ``` 11 | 12 | ### Compiles and reloads the app on save for development 13 | 14 | ``` 15 | npm run dev 16 | ``` 17 | 18 | ### Compiles and minifies for production 19 | 20 | ``` 21 | npm run build 22 | ``` 23 | 24 | ### Customize configuration 25 | 26 | See [Configuration Reference](https://cli.vuejs.org/config/). 27 | -------------------------------------------------------------------------------- /vue/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['@vue/cli-plugin-babel/preset'], 3 | plugins: ['@babel/plugin-transform-runtime'], 4 | } 5 | -------------------------------------------------------------------------------- /vue/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: '@vue/cli-plugin-unit-jest', 3 | } 4 | -------------------------------------------------------------------------------- /vue/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "esnext", 5 | "baseUrl": "./", 6 | "moduleResolution": "node", 7 | "paths": { 8 | "@/*": [ 9 | "src/*" 10 | ] 11 | }, 12 | "lib": [ 13 | "esnext", 14 | "dom", 15 | "dom.iterable", 16 | "scripthost" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vue/lint-staged.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | '*.{js,jsx,vue}': 'vue-cli-service lint', 3 | } 4 | -------------------------------------------------------------------------------- /vue/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@starport/template", 3 | "version": "0.1.55", 4 | "description": "A Vue 3 boilerplate project utilizing @starport/vue and @starport/vuex", 5 | "author": "Tendermint, Inc ", 6 | "private": true, 7 | "scripts": { 8 | "serve": "vue-cli-service serve --mode=production --fix", 9 | "dev": "vue-cli-service serve", 10 | "lint": "vue-cli-service lint", 11 | "build": "vue-cli-service build", 12 | "test:unit": "vue-cli-service test:unit" 13 | }, 14 | "dependencies": { 15 | "@cosmjs/launchpad": "^0.26.1", 16 | "@cosmjs/proto-signing": "^0.26.1", 17 | "@cosmjs/stargate": "^0.26.1", 18 | "@starport/vue": "^0.1.55", 19 | "@starport/vuex": "^0.1.55", 20 | "axios": "^0.25.0", 21 | "core-js": "^3.18.2", 22 | "ethers": "^5.5.2", 23 | "vue": "^3.2.6", 24 | "vue-router": "^4.0.3", 25 | "vuex": "^4.0.0" 26 | }, 27 | "devDependencies": { 28 | "@babel/core": "^7.15.5", 29 | "@babel/eslint-parser": "^7.15.7", 30 | "@babel/plugin-transform-runtime": "^7.16.0", 31 | "@vue/cli-plugin-babel": "~5.0.0-beta.4", 32 | "@vue/cli-plugin-eslint": "~5.0.0-beta.4", 33 | "@vue/cli-plugin-router": "~5.0.0-beta.4", 34 | "@vue/cli-plugin-unit-jest": "~5.0.0-beta.4", 35 | "@vue/cli-plugin-vuex": "~5.0.0-beta.4", 36 | "@vue/cli-service": "~5.0.0-beta.4", 37 | "@vue/compiler-sfc": "^3.2.19", 38 | "@vue/eslint-config-prettier": "^6.0.0", 39 | "@vue/test-utils": "^2.0.0-0", 40 | "@vue/vue3-jest": "^27.0.0-alpha.1", 41 | "babel-jest": "^27.2.4", 42 | "eslint": "^7.32.0", 43 | "eslint-plugin-prettier": "^3.4.1", 44 | "eslint-plugin-vue": "^7.19.1", 45 | "jest": "^27.2.4", 46 | "lint-staged": "^11.2.0", 47 | "node-polyfill-webpack-plugin": "^1.1.4", 48 | "prettier": "^2.4.1", 49 | "sass": "^1.42.1", 50 | "sass-loader": "^12.1.0" 51 | }, 52 | "gitHooks": { 53 | "pre-commit": "lint-staged" 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vue/public/another1_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/web3validator/anone/d2cad20649208e03f8dc6006a77be31357b37727/vue/public/another1_logo.png -------------------------------------------------------------------------------- /vue/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/web3validator/anone/d2cad20649208e03f8dc6006a77be31357b37727/vue/public/favicon.ico -------------------------------------------------------------------------------- /vue/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Another-1 Attestation 11 | 12 | 13 | 15 | 16 | 17 | 18 | 22 |
23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /vue/src/App.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 20 | 21 | 52 | -------------------------------------------------------------------------------- /vue/src/components/AnButton/AnButton.vue: -------------------------------------------------------------------------------- 1 | 40 | 67 | -------------------------------------------------------------------------------- /vue/src/components/AnOneWelcome/AnOneWelcome.vue: -------------------------------------------------------------------------------- 1 | 29 | 40 | -------------------------------------------------------------------------------- /vue/src/components/Sidebar.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 36 | -------------------------------------------------------------------------------- /vue/src/main.js: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from './App.vue' 3 | import store from './store' 4 | import router from './router' 5 | import vueLib from '@starport/vue' 6 | // import AnOneWelcome from './components/AnOneWelcome/AnOneWelcome' 7 | 8 | const app = createApp(App) 9 | app.config.globalProperties._depsLoaded = true 10 | app.use(store).use(router).use(vueLib).mount('#app') 11 | -------------------------------------------------------------------------------- /vue/src/router/index.js: -------------------------------------------------------------------------------- 1 | import { createRouter, createWebHistory } from 'vue-router' 2 | import Index from '@/views/Index.vue' 3 | import Types from '@/views/Types.vue' 4 | import Relayers from '@/views/Relayers.vue' 5 | 6 | const routerHistory = createWebHistory() 7 | const routes = [ 8 | { 9 | path: '/', 10 | component: Index, 11 | }, 12 | { path: '/types', component: Types }, 13 | { path: '/relayers', component: Relayers }, 14 | ] 15 | 16 | const router = createRouter({ 17 | history: routerHistory, 18 | routes, 19 | }) 20 | 21 | export default router 22 | -------------------------------------------------------------------------------- /vue/src/scss/app.scss: -------------------------------------------------------------------------------- 1 | //Your custom styles here 2 | $rich-blue:#4A68BC; 3 | $light-blue: #7C9AEE; 4 | $toxic-green: #77fa4c; 5 | $teal: #3B9189; 6 | 7 | 8 | .sp-sidebar { 9 | background-color: #000!important; 10 | color: #fff; 11 | } 12 | 13 | .sp-fill { 14 | background: #000; 15 | } 16 | 17 | h3 { 18 | color: $toxic-green; 19 | font-family: Helvetica, sans-serif; 20 | font-weight:100; 21 | text-transform: uppercase; 22 | } 23 | 24 | .sp-button { 25 | margin-right: 1rem; 26 | } 27 | 28 | .sp-button.sp-button-primary { 29 | background: $toxic-green; 30 | border: 0.2rem solid darken($toxic-green, 30%); 31 | color: #111; 32 | } 33 | 34 | .sp-sidebar a { 35 | color: $rich-blue; 36 | } 37 | .sp-sidebar .sp-link-icon { 38 | color: $rich-blue; 39 | } 40 | .sp-link-icon__text { color:$rich-blue!important;} 41 | .sp-link-icon a { 42 | color:$rich-blue; 43 | } 44 | .sp-icon { 45 | color:$rich-blue; 46 | } 47 | 48 | .sp-link-icon a:hover { 49 | color:$light-blue; 50 | .sp-icon { 51 | color:$light-blue; 52 | } 53 | } 54 | 55 | .logo { 56 | width:100%; 57 | } 58 | 59 | //.sp-fill { 60 | // color: white; 61 | // background: black; 62 | //} 63 | 64 | a { 65 | color: $rich-blue; 66 | } 67 | a:hover { 68 | color: $light-blue; 69 | } 70 | -------------------------------------------------------------------------------- /vue/src/store/config.js: -------------------------------------------------------------------------------- 1 | import { env, blocks, wallet, transfers, relayers } from '@starport/vuex' 2 | import generated from './generated' 3 | export default function init(store) { 4 | for (const moduleInit of Object.values(generated)) { 5 | moduleInit(store) 6 | } 7 | transfers(store) 8 | blocks(store) 9 | env(store) 10 | wallet(store) 11 | relayers(store) 12 | } 13 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { GenericAuthorization } from "./module/types/cosmos/authz/v1beta1/authz"; 2 | import { Grant } from "./module/types/cosmos/authz/v1beta1/authz"; 3 | import { EventGrant } from "./module/types/cosmos/authz/v1beta1/event"; 4 | import { EventRevoke } from "./module/types/cosmos/authz/v1beta1/event"; 5 | import { GrantAuthorization } from "./module/types/cosmos/authz/v1beta1/genesis"; 6 | export { GenericAuthorization, Grant, EventGrant, EventRevoke, GrantAuthorization }; 7 | declare const _default; 8 | export default _default; 9 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; 5 | import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; 6 | import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; 7 | export declare const MissingWalletError: Error; 8 | export declare const registry: Registry; 9 | interface TxClientOptions { 10 | addr: string; 11 | } 12 | interface SignAndBroadcastOptions { 13 | fee: StdFee; 14 | memo?: string; 15 | } 16 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 17 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 18 | msgGrant: (data: MsgGrant) => EncodeObject; 19 | msgExec: (data: MsgExec) => EncodeObject; 20 | msgRevoke: (data: MsgRevoke) => EncodeObject; 21 | }>; 22 | interface QueryClientOptions { 23 | addr: string; 24 | } 25 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 26 | export { txClient, queryClient, }; 27 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgGrant } from './types/cosmos/authz/v1beta1/tx' 6 | import { MsgExec } from './types/cosmos/authz/v1beta1/tx' 7 | import { MsgRevoke } from './types/cosmos/authz/v1beta1/tx' 8 | const types = [ 9 | ['/cosmos.authz.v1beta1.MsgGrant', MsgGrant], 10 | ['/cosmos.authz.v1beta1.MsgExec', MsgExec], 11 | ['/cosmos.authz.v1beta1.MsgRevoke', MsgRevoke], 12 | ] 13 | export const MissingWalletError = new Error('wallet is required') 14 | export const registry = new Registry(types) 15 | const defaultFee = { 16 | amount: [], 17 | gas: '200000', 18 | } 19 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 20 | if (!wallet) throw MissingWalletError 21 | let client 22 | if (addr) { 23 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 24 | } else { 25 | client = await SigningStargateClient.offline(wallet, { registry }) 26 | } 27 | const { address } = (await wallet.getAccounts())[0] 28 | return { 29 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 30 | client.signAndBroadcast(address, msgs, fee, memo), 31 | msgGrant: (data) => ({ typeUrl: '/cosmos.authz.v1beta1.MsgGrant', value: data }), 32 | msgExec: (data) => ({ typeUrl: '/cosmos.authz.v1beta1.MsgExec', value: data }), 33 | msgRevoke: (data) => ({ typeUrl: '/cosmos.authz.v1beta1.MsgRevoke', value: data }), 34 | } 35 | } 36 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 37 | return new Api({ baseUrl: addr }) 38 | } 39 | export { txClient, queryClient } 40 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/authz.d.ts: -------------------------------------------------------------------------------- 1 | import { Any } from '../../../google/protobuf/any'; 2 | import { Writer, Reader } from 'protobufjs/minimal'; 3 | export declare const protobufPackage = "cosmos.authz.v1beta1"; 4 | /** 5 | * GenericAuthorization gives the grantee unrestricted permissions to execute 6 | * the provided method on behalf of the granter's account. 7 | */ 8 | export interface GenericAuthorization { 9 | /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ 10 | msg: string; 11 | } 12 | /** 13 | * Grant gives permissions to execute 14 | * the provide method with expiration time. 15 | */ 16 | export interface Grant { 17 | authorization: Any | undefined; 18 | expiration: Date | undefined; 19 | } 20 | export declare const GenericAuthorization: { 21 | encode(message: GenericAuthorization, writer?: Writer): Writer; 22 | decode(input: Reader | Uint8Array, length?: number): GenericAuthorization; 23 | fromJSON(object: any): GenericAuthorization; 24 | toJSON(message: GenericAuthorization): unknown; 25 | fromPartial(object: DeepPartial): GenericAuthorization; 26 | }; 27 | export declare const Grant: { 28 | encode(message: Grant, writer?: Writer): Writer; 29 | decode(input: Reader | Uint8Array, length?: number): Grant; 30 | fromJSON(object: any): Grant; 31 | toJSON(message: Grant): unknown; 32 | fromPartial(object: DeepPartial): Grant; 33 | }; 34 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 35 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 36 | [K in keyof T]?: DeepPartial; 37 | } : Partial; 38 | export {}; 39 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/event.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "cosmos.authz.v1beta1"; 3 | /** EventGrant is emitted on Msg/Grant */ 4 | export interface EventGrant { 5 | /** Msg type URL for which an autorization is granted */ 6 | msgTypeUrl: string; 7 | /** Granter account address */ 8 | granter: string; 9 | /** Grantee account address */ 10 | grantee: string; 11 | } 12 | /** EventRevoke is emitted on Msg/Revoke */ 13 | export interface EventRevoke { 14 | /** Msg type URL for which an autorization is revoked */ 15 | msgTypeUrl: string; 16 | /** Granter account address */ 17 | granter: string; 18 | /** Grantee account address */ 19 | grantee: string; 20 | } 21 | export declare const EventGrant: { 22 | encode(message: EventGrant, writer?: Writer): Writer; 23 | decode(input: Reader | Uint8Array, length?: number): EventGrant; 24 | fromJSON(object: any): EventGrant; 25 | toJSON(message: EventGrant): unknown; 26 | fromPartial(object: DeepPartial): EventGrant; 27 | }; 28 | export declare const EventRevoke: { 29 | encode(message: EventRevoke, writer?: Writer): Writer; 30 | decode(input: Reader | Uint8Array, length?: number): EventRevoke; 31 | fromJSON(object: any): EventRevoke; 32 | toJSON(message: EventRevoke): unknown; 33 | fromPartial(object: DeepPartial): EventRevoke; 34 | }; 35 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 36 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 37 | [K in keyof T]?: DeepPartial; 38 | } : Partial; 39 | export {}; 40 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos/authz/v1beta1/genesis.d.ts: -------------------------------------------------------------------------------- 1 | import { Any } from '../../../google/protobuf/any'; 2 | import { Writer, Reader } from 'protobufjs/minimal'; 3 | export declare const protobufPackage = "cosmos.authz.v1beta1"; 4 | /** GenesisState defines the authz module's genesis state. */ 5 | export interface GenesisState { 6 | authorization: GrantAuthorization[]; 7 | } 8 | /** GrantAuthorization defines the GenesisState/GrantAuthorization type. */ 9 | export interface GrantAuthorization { 10 | granter: string; 11 | grantee: string; 12 | authorization: Any | undefined; 13 | expiration: Date | undefined; 14 | } 15 | export declare const GenesisState: { 16 | encode(message: GenesisState, writer?: Writer): Writer; 17 | decode(input: Reader | Uint8Array, length?: number): GenesisState; 18 | fromJSON(object: any): GenesisState; 19 | toJSON(message: GenesisState): unknown; 20 | fromPartial(object: DeepPartial): GenesisState; 21 | }; 22 | export declare const GrantAuthorization: { 23 | encode(message: GrantAuthorization, writer?: Writer): Writer; 24 | decode(input: Reader | Uint8Array, length?: number): GrantAuthorization; 25 | fromJSON(object: any): GrantAuthorization; 26 | toJSON(message: GrantAuthorization): unknown; 27 | fromPartial(object: DeepPartial): GrantAuthorization; 28 | }; 29 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 30 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 31 | [K in keyof T]?: DeepPartial; 32 | } : Partial; 33 | export {}; 34 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos_proto/cosmos.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "cosmos_proto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos_proto/cosmos.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/crypto/keys.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "tendermint.crypto"; 3 | /** PublicKey defines the keys available for use with Tendermint Validators */ 4 | export interface PublicKey { 5 | ed25519: Uint8Array | undefined; 6 | secp256k1: Uint8Array | undefined; 7 | } 8 | export declare const PublicKey: { 9 | encode(message: PublicKey, writer?: Writer): Writer; 10 | decode(input: Reader | Uint8Array, length?: number): PublicKey; 11 | fromJSON(object: any): PublicKey; 12 | toJSON(message: PublicKey): unknown; 13 | fromPartial(object: DeepPartial): PublicKey; 14 | }; 15 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 16 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 17 | [K in keyof T]?: DeepPartial; 18 | } : Partial; 19 | export {}; 20 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/types/validator.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | import { PublicKey } from '../../tendermint/crypto/keys'; 3 | export declare const protobufPackage = "tendermint.types"; 4 | export interface ValidatorSet { 5 | validators: Validator[]; 6 | proposer: Validator | undefined; 7 | totalVotingPower: number; 8 | } 9 | export interface Validator { 10 | address: Uint8Array; 11 | pubKey: PublicKey | undefined; 12 | votingPower: number; 13 | proposerPriority: number; 14 | } 15 | export interface SimpleValidator { 16 | pubKey: PublicKey | undefined; 17 | votingPower: number; 18 | } 19 | export declare const ValidatorSet: { 20 | encode(message: ValidatorSet, writer?: Writer): Writer; 21 | decode(input: Reader | Uint8Array, length?: number): ValidatorSet; 22 | fromJSON(object: any): ValidatorSet; 23 | toJSON(message: ValidatorSet): unknown; 24 | fromPartial(object: DeepPartial): ValidatorSet; 25 | }; 26 | export declare const Validator: { 27 | encode(message: Validator, writer?: Writer): Writer; 28 | decode(input: Reader | Uint8Array, length?: number): Validator; 29 | fromJSON(object: any): Validator; 30 | toJSON(message: Validator): unknown; 31 | fromPartial(object: DeepPartial): Validator; 32 | }; 33 | export declare const SimpleValidator: { 34 | encode(message: SimpleValidator, writer?: Writer): Writer; 35 | decode(input: Reader | Uint8Array, length?: number): SimpleValidator; 36 | fromJSON(object: any): SimpleValidator; 37 | toJSON(message: SimpleValidator): unknown; 38 | fromPartial(object: DeepPartial): SimpleValidator; 39 | }; 40 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 41 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 42 | [K in keyof T]?: DeepPartial; 43 | } : Partial; 44 | export {}; 45 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/module/types/tendermint/version/types.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "tendermint.version"; 3 | /** 4 | * App includes the protocol and software version for the application. 5 | * This information is included in ResponseInfo. The App.Protocol can be 6 | * updated in ResponseEndBlock. 7 | */ 8 | export interface App { 9 | protocol: number; 10 | software: string; 11 | } 12 | /** 13 | * Consensus captures the consensus rules for processing a block in the blockchain, 14 | * including all blockchain data structures and the rules of the application's 15 | * state transition machine. 16 | */ 17 | export interface Consensus { 18 | block: number; 19 | app: number; 20 | } 21 | export declare const App: { 22 | encode(message: App, writer?: Writer): Writer; 23 | decode(input: Reader | Uint8Array, length?: number): App; 24 | fromJSON(object: any): App; 25 | toJSON(message: App): unknown; 26 | fromPartial(object: DeepPartial): App; 27 | }; 28 | export declare const Consensus: { 29 | encode(message: Consensus, writer?: Writer): Writer; 30 | decode(input: Reader | Uint8Array, length?: number): Consensus; 31 | fromJSON(object: any): Consensus; 32 | toJSON(message: Consensus): unknown; 33 | fromPartial(object: DeepPartial): Consensus; 34 | }; 35 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 36 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 37 | [K in keyof T]?: DeepPartial; 38 | } : Partial; 39 | export {}; 40 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-authz-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.authz.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/authz", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.authz.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { SendAuthorization } from "./module/types/cosmos/bank/v1beta1/authz"; 2 | import { Params } from "./module/types/cosmos/bank/v1beta1/bank"; 3 | import { SendEnabled } from "./module/types/cosmos/bank/v1beta1/bank"; 4 | import { Input } from "./module/types/cosmos/bank/v1beta1/bank"; 5 | import { Output } from "./module/types/cosmos/bank/v1beta1/bank"; 6 | import { Supply } from "./module/types/cosmos/bank/v1beta1/bank"; 7 | import { DenomUnit } from "./module/types/cosmos/bank/v1beta1/bank"; 8 | import { Metadata } from "./module/types/cosmos/bank/v1beta1/bank"; 9 | import { Balance } from "./module/types/cosmos/bank/v1beta1/genesis"; 10 | export { SendAuthorization, Params, SendEnabled, Input, Output, Supply, DenomUnit, Metadata, Balance }; 11 | declare const _default; 12 | export default _default; 13 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; 5 | import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; 6 | export declare const MissingWalletError: Error; 7 | export declare const registry: Registry; 8 | interface TxClientOptions { 9 | addr: string; 10 | } 11 | interface SignAndBroadcastOptions { 12 | fee: StdFee; 13 | memo?: string; 14 | } 15 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 16 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 17 | msgMultiSend: (data: MsgMultiSend) => EncodeObject; 18 | msgSend: (data: MsgSend) => EncodeObject; 19 | }>; 20 | interface QueryClientOptions { 21 | addr: string; 22 | } 23 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 24 | export { txClient, queryClient, }; 25 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgMultiSend } from './types/cosmos/bank/v1beta1/tx' 6 | import { MsgSend } from './types/cosmos/bank/v1beta1/tx' 7 | const types = [ 8 | ['/cosmos.bank.v1beta1.MsgMultiSend', MsgMultiSend], 9 | ['/cosmos.bank.v1beta1.MsgSend', MsgSend], 10 | ] 11 | export const MissingWalletError = new Error('wallet is required') 12 | export const registry = new Registry(types) 13 | const defaultFee = { 14 | amount: [], 15 | gas: '200000', 16 | } 17 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 18 | if (!wallet) throw MissingWalletError 19 | let client 20 | if (addr) { 21 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 22 | } else { 23 | client = await SigningStargateClient.offline(wallet, { registry }) 24 | } 25 | const { address } = (await wallet.getAccounts())[0] 26 | return { 27 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 28 | client.signAndBroadcast(address, msgs, fee, memo), 29 | msgMultiSend: (data) => ({ typeUrl: '/cosmos.bank.v1beta1.MsgMultiSend', value: data }), 30 | msgSend: (data) => ({ typeUrl: '/cosmos.bank.v1beta1.MsgSend', value: data }), 31 | } 32 | } 33 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 34 | return new Api({ baseUrl: addr }) 35 | } 36 | export { txClient, queryClient } 37 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/index.ts: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient } from "@cosmjs/stargate"; 5 | import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; 6 | import { Api } from "./rest"; 7 | import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; 8 | import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; 9 | 10 | 11 | const types = [ 12 | ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], 13 | ["/cosmos.bank.v1beta1.MsgSend", MsgSend], 14 | 15 | ]; 16 | export const MissingWalletError = new Error("wallet is required"); 17 | 18 | export const registry = new Registry(types); 19 | 20 | const defaultFee = { 21 | amount: [], 22 | gas: "200000", 23 | }; 24 | 25 | interface TxClientOptions { 26 | addr: string 27 | } 28 | 29 | interface SignAndBroadcastOptions { 30 | fee: StdFee, 31 | memo?: string 32 | } 33 | 34 | const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = { addr: "http://localhost:26657" }) => { 35 | if (!wallet) throw MissingWalletError; 36 | let client; 37 | if (addr) { 38 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }); 39 | }else{ 40 | client = await SigningStargateClient.offline( wallet, { registry }); 41 | } 42 | const { address } = (await wallet.getAccounts())[0]; 43 | 44 | return { 45 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), 46 | msgMultiSend: (data: MsgMultiSend): EncodeObject => ({ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: data }), 47 | msgSend: (data: MsgSend): EncodeObject => ({ typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: data }), 48 | 49 | }; 50 | }; 51 | 52 | interface QueryClientOptions { 53 | addr: string 54 | } 55 | 56 | const queryClient = async ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 57 | return new Api({ baseUrl: addr }); 58 | }; 59 | 60 | export { 61 | txClient, 62 | queryClient, 63 | }; 64 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/cosmos/bank/v1beta1/authz.d.ts: -------------------------------------------------------------------------------- 1 | import { Coin } from '../../../cosmos/base/v1beta1/coin'; 2 | import { Writer, Reader } from 'protobufjs/minimal'; 3 | export declare const protobufPackage = "cosmos.bank.v1beta1"; 4 | /** 5 | * SendAuthorization allows the grantee to spend up to spend_limit coins from 6 | * the granter's account. 7 | */ 8 | export interface SendAuthorization { 9 | spendLimit: Coin[]; 10 | } 11 | export declare const SendAuthorization: { 12 | encode(message: SendAuthorization, writer?: Writer): Writer; 13 | decode(input: Reader | Uint8Array, length?: number): SendAuthorization; 14 | fromJSON(object: any): SendAuthorization; 15 | toJSON(message: SendAuthorization): unknown; 16 | fromPartial(object: DeepPartial): SendAuthorization; 17 | }; 18 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 19 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 20 | [K in keyof T]?: DeepPartial; 21 | } : Partial; 22 | export {}; 23 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/cosmos/bank/v1beta1/authz.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import { Coin } from '../../../cosmos/base/v1beta1/coin'; 3 | import { Writer, Reader } from 'protobufjs/minimal'; 4 | export const protobufPackage = 'cosmos.bank.v1beta1'; 5 | const baseSendAuthorization = {}; 6 | export const SendAuthorization = { 7 | encode(message, writer = Writer.create()) { 8 | for (const v of message.spendLimit) { 9 | Coin.encode(v, writer.uint32(10).fork()).ldelim(); 10 | } 11 | return writer; 12 | }, 13 | decode(input, length) { 14 | const reader = input instanceof Uint8Array ? new Reader(input) : input; 15 | let end = length === undefined ? reader.len : reader.pos + length; 16 | const message = { ...baseSendAuthorization }; 17 | message.spendLimit = []; 18 | while (reader.pos < end) { 19 | const tag = reader.uint32(); 20 | switch (tag >>> 3) { 21 | case 1: 22 | message.spendLimit.push(Coin.decode(reader, reader.uint32())); 23 | break; 24 | default: 25 | reader.skipType(tag & 7); 26 | break; 27 | } 28 | } 29 | return message; 30 | }, 31 | fromJSON(object) { 32 | const message = { ...baseSendAuthorization }; 33 | message.spendLimit = []; 34 | if (object.spendLimit !== undefined && object.spendLimit !== null) { 35 | for (const e of object.spendLimit) { 36 | message.spendLimit.push(Coin.fromJSON(e)); 37 | } 38 | } 39 | return message; 40 | }, 41 | toJSON(message) { 42 | const obj = {}; 43 | if (message.spendLimit) { 44 | obj.spendLimit = message.spendLimit.map((e) => (e ? Coin.toJSON(e) : undefined)); 45 | } 46 | else { 47 | obj.spendLimit = []; 48 | } 49 | return obj; 50 | }, 51 | fromPartial(object) { 52 | const message = { ...baseSendAuthorization }; 53 | message.spendLimit = []; 54 | if (object.spendLimit !== undefined && object.spendLimit !== null) { 55 | for (const e of object.spendLimit) { 56 | message.spendLimit.push(Coin.fromPartial(e)); 57 | } 58 | } 59 | return message; 60 | } 61 | }; 62 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/cosmos/bank/v1beta1/genesis.d.ts: -------------------------------------------------------------------------------- 1 | import { Params, Metadata } from '../../../cosmos/bank/v1beta1/bank'; 2 | import { Coin } from '../../../cosmos/base/v1beta1/coin'; 3 | import { Writer, Reader } from 'protobufjs/minimal'; 4 | export declare const protobufPackage = "cosmos.bank.v1beta1"; 5 | /** GenesisState defines the bank module's genesis state. */ 6 | export interface GenesisState { 7 | /** params defines all the paramaters of the module. */ 8 | params: Params | undefined; 9 | /** balances is an array containing the balances of all the accounts. */ 10 | balances: Balance[]; 11 | /** 12 | * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided 13 | * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. 14 | */ 15 | supply: Coin[]; 16 | /** denom_metadata defines the metadata of the differents coins. */ 17 | denomMetadata: Metadata[]; 18 | } 19 | /** 20 | * Balance defines an account address and balance pair used in the bank module's 21 | * genesis state. 22 | */ 23 | export interface Balance { 24 | /** address is the address of the balance holder. */ 25 | address: string; 26 | /** coins defines the different coins this balance holds. */ 27 | coins: Coin[]; 28 | } 29 | export declare const GenesisState: { 30 | encode(message: GenesisState, writer?: Writer): Writer; 31 | decode(input: Reader | Uint8Array, length?: number): GenesisState; 32 | fromJSON(object: any): GenesisState; 33 | toJSON(message: GenesisState): unknown; 34 | fromPartial(object: DeepPartial): GenesisState; 35 | }; 36 | export declare const Balance: { 37 | encode(message: Balance, writer?: Writer): Writer; 38 | decode(input: Reader | Uint8Array, length?: number): Balance; 39 | fromJSON(object: any): Balance; 40 | toJSON(message: Balance): unknown; 41 | fromPartial(object: DeepPartial): Balance; 42 | }; 43 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 44 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 45 | [K in keyof T]?: DeepPartial; 46 | } : Partial; 47 | export {}; 48 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/cosmos_proto/cosmos.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "cosmos_proto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/cosmos_proto/cosmos.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-bank-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.bank.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/bank/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.bank.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | declare const _default; 3 | export default _default; 4 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; 5 | export declare const MissingWalletError: Error; 6 | export declare const registry: Registry; 7 | interface TxClientOptions { 8 | addr: string; 9 | } 10 | interface SignAndBroadcastOptions { 11 | fee: StdFee; 12 | memo?: string; 13 | } 14 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 15 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 16 | msgVerifyInvariant: (data: MsgVerifyInvariant) => EncodeObject; 17 | }>; 18 | interface QueryClientOptions { 19 | addr: string; 20 | } 21 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 22 | export { txClient, queryClient, }; 23 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgVerifyInvariant } from './types/cosmos/crisis/v1beta1/tx' 6 | const types = [['/cosmos.crisis.v1beta1.MsgVerifyInvariant', MsgVerifyInvariant]] 7 | export const MissingWalletError = new Error('wallet is required') 8 | export const registry = new Registry(types) 9 | const defaultFee = { 10 | amount: [], 11 | gas: '200000', 12 | } 13 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 14 | if (!wallet) throw MissingWalletError 15 | let client 16 | if (addr) { 17 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 18 | } else { 19 | client = await SigningStargateClient.offline(wallet, { registry }) 20 | } 21 | const { address } = (await wallet.getAccounts())[0] 22 | return { 23 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 24 | client.signAndBroadcast(address, msgs, fee, memo), 25 | msgVerifyInvariant: (data) => ({ typeUrl: '/cosmos.crisis.v1beta1.MsgVerifyInvariant', value: data }), 26 | } 27 | } 28 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 29 | return new Api({ baseUrl: addr }) 30 | } 31 | export { txClient, queryClient } 32 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/index.ts: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient } from "@cosmjs/stargate"; 5 | import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; 6 | import { Api } from "./rest"; 7 | import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; 8 | 9 | 10 | const types = [ 11 | ["/cosmos.crisis.v1beta1.MsgVerifyInvariant", MsgVerifyInvariant], 12 | 13 | ]; 14 | export const MissingWalletError = new Error("wallet is required"); 15 | 16 | export const registry = new Registry(types); 17 | 18 | const defaultFee = { 19 | amount: [], 20 | gas: "200000", 21 | }; 22 | 23 | interface TxClientOptions { 24 | addr: string 25 | } 26 | 27 | interface SignAndBroadcastOptions { 28 | fee: StdFee, 29 | memo?: string 30 | } 31 | 32 | const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = { addr: "http://localhost:26657" }) => { 33 | if (!wallet) throw MissingWalletError; 34 | let client; 35 | if (addr) { 36 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }); 37 | }else{ 38 | client = await SigningStargateClient.offline( wallet, { registry }); 39 | } 40 | const { address } = (await wallet.getAccounts())[0]; 41 | 42 | return { 43 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), 44 | msgVerifyInvariant: (data: MsgVerifyInvariant): EncodeObject => ({ typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", value: data }), 45 | 46 | }; 47 | }; 48 | 49 | interface QueryClientOptions { 50 | addr: string 51 | } 52 | 53 | const queryClient = async ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 54 | return new Api({ baseUrl: addr }); 55 | }; 56 | 57 | export { 58 | txClient, 59 | queryClient, 60 | }; 61 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/cosmos/crisis/v1beta1/genesis.d.ts: -------------------------------------------------------------------------------- 1 | import { Coin } from '../../../cosmos/base/v1beta1/coin'; 2 | import { Writer, Reader } from 'protobufjs/minimal'; 3 | export declare const protobufPackage = "cosmos.crisis.v1beta1"; 4 | /** GenesisState defines the crisis module's genesis state. */ 5 | export interface GenesisState { 6 | /** 7 | * constant_fee is the fee used to verify the invariant in the crisis 8 | * module. 9 | */ 10 | constantFee: Coin | undefined; 11 | } 12 | export declare const GenesisState: { 13 | encode(message: GenesisState, writer?: Writer): Writer; 14 | decode(input: Reader | Uint8Array, length?: number): GenesisState; 15 | fromJSON(object: any): GenesisState; 16 | toJSON(message: GenesisState): unknown; 17 | fromPartial(object: DeepPartial): GenesisState; 18 | }; 19 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 20 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 21 | [K in keyof T]?: DeepPartial; 22 | } : Partial; 23 | export {}; 24 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/cosmos/crisis/v1beta1/genesis.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import { Coin } from '../../../cosmos/base/v1beta1/coin'; 3 | import { Writer, Reader } from 'protobufjs/minimal'; 4 | export const protobufPackage = 'cosmos.crisis.v1beta1'; 5 | const baseGenesisState = {}; 6 | export const GenesisState = { 7 | encode(message, writer = Writer.create()) { 8 | if (message.constantFee !== undefined) { 9 | Coin.encode(message.constantFee, writer.uint32(26).fork()).ldelim(); 10 | } 11 | return writer; 12 | }, 13 | decode(input, length) { 14 | const reader = input instanceof Uint8Array ? new Reader(input) : input; 15 | let end = length === undefined ? reader.len : reader.pos + length; 16 | const message = { ...baseGenesisState }; 17 | while (reader.pos < end) { 18 | const tag = reader.uint32(); 19 | switch (tag >>> 3) { 20 | case 3: 21 | message.constantFee = Coin.decode(reader, reader.uint32()); 22 | break; 23 | default: 24 | reader.skipType(tag & 7); 25 | break; 26 | } 27 | } 28 | return message; 29 | }, 30 | fromJSON(object) { 31 | const message = { ...baseGenesisState }; 32 | if (object.constantFee !== undefined && object.constantFee !== null) { 33 | message.constantFee = Coin.fromJSON(object.constantFee); 34 | } 35 | else { 36 | message.constantFee = undefined; 37 | } 38 | return message; 39 | }, 40 | toJSON(message) { 41 | const obj = {}; 42 | message.constantFee !== undefined && (obj.constantFee = message.constantFee ? Coin.toJSON(message.constantFee) : undefined); 43 | return obj; 44 | }, 45 | fromPartial(object) { 46 | const message = { ...baseGenesisState }; 47 | if (object.constantFee !== undefined && object.constantFee !== null) { 48 | message.constantFee = Coin.fromPartial(object.constantFee); 49 | } 50 | else { 51 | message.constantFee = undefined; 52 | } 53 | return message; 54 | } 55 | }; 56 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/cosmos/crisis/v1beta1/tx.d.ts: -------------------------------------------------------------------------------- 1 | import { Reader, Writer } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "cosmos.crisis.v1beta1"; 3 | /** MsgVerifyInvariant represents a message to verify a particular invariance. */ 4 | export interface MsgVerifyInvariant { 5 | sender: string; 6 | invariantModuleName: string; 7 | invariantRoute: string; 8 | } 9 | /** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ 10 | export interface MsgVerifyInvariantResponse { 11 | } 12 | export declare const MsgVerifyInvariant: { 13 | encode(message: MsgVerifyInvariant, writer?: Writer): Writer; 14 | decode(input: Reader | Uint8Array, length?: number): MsgVerifyInvariant; 15 | fromJSON(object: any): MsgVerifyInvariant; 16 | toJSON(message: MsgVerifyInvariant): unknown; 17 | fromPartial(object: DeepPartial): MsgVerifyInvariant; 18 | }; 19 | export declare const MsgVerifyInvariantResponse: { 20 | encode(_: MsgVerifyInvariantResponse, writer?: Writer): Writer; 21 | decode(input: Reader | Uint8Array, length?: number): MsgVerifyInvariantResponse; 22 | fromJSON(_: any): MsgVerifyInvariantResponse; 23 | toJSON(_: MsgVerifyInvariantResponse): unknown; 24 | fromPartial(_: DeepPartial): MsgVerifyInvariantResponse; 25 | }; 26 | /** Msg defines the bank Msg service. */ 27 | export interface Msg { 28 | /** VerifyInvariant defines a method to verify a particular invariance. */ 29 | VerifyInvariant(request: MsgVerifyInvariant): Promise; 30 | } 31 | export declare class MsgClientImpl implements Msg { 32 | private readonly rpc; 33 | constructor(rpc: Rpc); 34 | VerifyInvariant(request: MsgVerifyInvariant): Promise; 35 | } 36 | interface Rpc { 37 | request(service: string, method: string, data: Uint8Array): Promise; 38 | } 39 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 40 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 41 | [K in keyof T]?: DeepPartial; 42 | } : Partial; 43 | export {}; 44 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-crisis-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.crisis.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/crisis/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.crisis.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; 5 | import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; 6 | import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; 7 | import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; 8 | export declare const MissingWalletError: Error; 9 | export declare const registry: Registry; 10 | interface TxClientOptions { 11 | addr: string; 12 | } 13 | interface SignAndBroadcastOptions { 14 | fee: StdFee; 15 | memo?: string; 16 | } 17 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 18 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 19 | msgSetWithdrawAddress: (data: MsgSetWithdrawAddress) => EncodeObject; 20 | msgWithdrawValidatorCommission: (data: MsgWithdrawValidatorCommission) => EncodeObject; 21 | msgFundCommunityPool: (data: MsgFundCommunityPool) => EncodeObject; 22 | msgWithdrawDelegatorReward: (data: MsgWithdrawDelegatorReward) => EncodeObject; 23 | }>; 24 | interface QueryClientOptions { 25 | addr: string; 26 | } 27 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 28 | export { txClient, queryClient, }; 29 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-distribution-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.distribution.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/distribution/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.distribution.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Equivocation } from "./module/types/cosmos/evidence/v1beta1/evidence"; 2 | export { Equivocation }; 3 | declare const _default; 4 | export default _default; 5 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; 5 | export declare const MissingWalletError: Error; 6 | export declare const registry: Registry; 7 | interface TxClientOptions { 8 | addr: string; 9 | } 10 | interface SignAndBroadcastOptions { 11 | fee: StdFee; 12 | memo?: string; 13 | } 14 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 15 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 16 | msgSubmitEvidence: (data: MsgSubmitEvidence) => EncodeObject; 17 | }>; 18 | interface QueryClientOptions { 19 | addr: string; 20 | } 21 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 22 | export { txClient, queryClient, }; 23 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgSubmitEvidence } from './types/cosmos/evidence/v1beta1/tx' 6 | const types = [['/cosmos.evidence.v1beta1.MsgSubmitEvidence', MsgSubmitEvidence]] 7 | export const MissingWalletError = new Error('wallet is required') 8 | export const registry = new Registry(types) 9 | const defaultFee = { 10 | amount: [], 11 | gas: '200000', 12 | } 13 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 14 | if (!wallet) throw MissingWalletError 15 | let client 16 | if (addr) { 17 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 18 | } else { 19 | client = await SigningStargateClient.offline(wallet, { registry }) 20 | } 21 | const { address } = (await wallet.getAccounts())[0] 22 | return { 23 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 24 | client.signAndBroadcast(address, msgs, fee, memo), 25 | msgSubmitEvidence: (data) => ({ typeUrl: '/cosmos.evidence.v1beta1.MsgSubmitEvidence', value: data }), 26 | } 27 | } 28 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 29 | return new Api({ baseUrl: addr }) 30 | } 31 | export { txClient, queryClient } 32 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/index.ts: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient } from "@cosmjs/stargate"; 5 | import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; 6 | import { Api } from "./rest"; 7 | import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; 8 | 9 | 10 | const types = [ 11 | ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence], 12 | 13 | ]; 14 | export const MissingWalletError = new Error("wallet is required"); 15 | 16 | export const registry = new Registry(types); 17 | 18 | const defaultFee = { 19 | amount: [], 20 | gas: "200000", 21 | }; 22 | 23 | interface TxClientOptions { 24 | addr: string 25 | } 26 | 27 | interface SignAndBroadcastOptions { 28 | fee: StdFee, 29 | memo?: string 30 | } 31 | 32 | const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = { addr: "http://localhost:26657" }) => { 33 | if (!wallet) throw MissingWalletError; 34 | let client; 35 | if (addr) { 36 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }); 37 | }else{ 38 | client = await SigningStargateClient.offline( wallet, { registry }); 39 | } 40 | const { address } = (await wallet.getAccounts())[0]; 41 | 42 | return { 43 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), 44 | msgSubmitEvidence: (data: MsgSubmitEvidence): EncodeObject => ({ typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", value: data }), 45 | 46 | }; 47 | }; 48 | 49 | interface QueryClientOptions { 50 | addr: string 51 | } 52 | 53 | const queryClient = async ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 54 | return new Api({ baseUrl: addr }); 55 | }; 56 | 57 | export { 58 | txClient, 59 | queryClient, 60 | }; 61 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos/evidence/v1beta1/evidence.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "cosmos.evidence.v1beta1"; 3 | /** 4 | * Equivocation implements the Evidence interface and defines evidence of double 5 | * signing misbehavior. 6 | */ 7 | export interface Equivocation { 8 | height: number; 9 | time: Date | undefined; 10 | power: number; 11 | consensusAddress: string; 12 | } 13 | export declare const Equivocation: { 14 | encode(message: Equivocation, writer?: Writer): Writer; 15 | decode(input: Reader | Uint8Array, length?: number): Equivocation; 16 | fromJSON(object: any): Equivocation; 17 | toJSON(message: Equivocation): unknown; 18 | fromPartial(object: DeepPartial): Equivocation; 19 | }; 20 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 21 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 22 | [K in keyof T]?: DeepPartial; 23 | } : Partial; 24 | export {}; 25 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos/evidence/v1beta1/genesis.d.ts: -------------------------------------------------------------------------------- 1 | import { Any } from '../../../google/protobuf/any'; 2 | import { Writer, Reader } from 'protobufjs/minimal'; 3 | export declare const protobufPackage = "cosmos.evidence.v1beta1"; 4 | /** GenesisState defines the evidence module's genesis state. */ 5 | export interface GenesisState { 6 | /** evidence defines all the evidence at genesis. */ 7 | evidence: Any[]; 8 | } 9 | export declare const GenesisState: { 10 | encode(message: GenesisState, writer?: Writer): Writer; 11 | decode(input: Reader | Uint8Array, length?: number): GenesisState; 12 | fromJSON(object: any): GenesisState; 13 | toJSON(message: GenesisState): unknown; 14 | fromPartial(object: DeepPartial): GenesisState; 15 | }; 16 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 17 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 18 | [K in keyof T]?: DeepPartial; 19 | } : Partial; 20 | export {}; 21 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos/evidence/v1beta1/genesis.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import { Any } from '../../../google/protobuf/any'; 3 | import { Writer, Reader } from 'protobufjs/minimal'; 4 | export const protobufPackage = 'cosmos.evidence.v1beta1'; 5 | const baseGenesisState = {}; 6 | export const GenesisState = { 7 | encode(message, writer = Writer.create()) { 8 | for (const v of message.evidence) { 9 | Any.encode(v, writer.uint32(10).fork()).ldelim(); 10 | } 11 | return writer; 12 | }, 13 | decode(input, length) { 14 | const reader = input instanceof Uint8Array ? new Reader(input) : input; 15 | let end = length === undefined ? reader.len : reader.pos + length; 16 | const message = { ...baseGenesisState }; 17 | message.evidence = []; 18 | while (reader.pos < end) { 19 | const tag = reader.uint32(); 20 | switch (tag >>> 3) { 21 | case 1: 22 | message.evidence.push(Any.decode(reader, reader.uint32())); 23 | break; 24 | default: 25 | reader.skipType(tag & 7); 26 | break; 27 | } 28 | } 29 | return message; 30 | }, 31 | fromJSON(object) { 32 | const message = { ...baseGenesisState }; 33 | message.evidence = []; 34 | if (object.evidence !== undefined && object.evidence !== null) { 35 | for (const e of object.evidence) { 36 | message.evidence.push(Any.fromJSON(e)); 37 | } 38 | } 39 | return message; 40 | }, 41 | toJSON(message) { 42 | const obj = {}; 43 | if (message.evidence) { 44 | obj.evidence = message.evidence.map((e) => (e ? Any.toJSON(e) : undefined)); 45 | } 46 | else { 47 | obj.evidence = []; 48 | } 49 | return obj; 50 | }, 51 | fromPartial(object) { 52 | const message = { ...baseGenesisState }; 53 | message.evidence = []; 54 | if (object.evidence !== undefined && object.evidence !== null) { 55 | for (const e of object.evidence) { 56 | message.evidence.push(Any.fromPartial(e)); 57 | } 58 | } 59 | return message; 60 | } 61 | }; 62 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos_proto/cosmos.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "cosmos_proto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos_proto/cosmos.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-evidence-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.evidence.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/evidence/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.evidence.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { BasicAllowance } from "./module/types/cosmos/feegrant/v1beta1/feegrant"; 2 | import { PeriodicAllowance } from "./module/types/cosmos/feegrant/v1beta1/feegrant"; 3 | import { AllowedMsgAllowance } from "./module/types/cosmos/feegrant/v1beta1/feegrant"; 4 | import { Grant } from "./module/types/cosmos/feegrant/v1beta1/feegrant"; 5 | export { BasicAllowance, PeriodicAllowance, AllowedMsgAllowance, Grant }; 6 | declare const _default; 7 | export default _default; 8 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; 5 | import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; 6 | export declare const MissingWalletError: Error; 7 | export declare const registry: Registry; 8 | interface TxClientOptions { 9 | addr: string; 10 | } 11 | interface SignAndBroadcastOptions { 12 | fee: StdFee; 13 | memo?: string; 14 | } 15 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 16 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 17 | msgGrantAllowance: (data: MsgGrantAllowance) => EncodeObject; 18 | msgRevokeAllowance: (data: MsgRevokeAllowance) => EncodeObject; 19 | }>; 20 | interface QueryClientOptions { 21 | addr: string; 22 | } 23 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 24 | export { txClient, queryClient, }; 25 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgGrantAllowance } from './types/cosmos/feegrant/v1beta1/tx' 6 | import { MsgRevokeAllowance } from './types/cosmos/feegrant/v1beta1/tx' 7 | const types = [ 8 | ['/cosmos.feegrant.v1beta1.MsgGrantAllowance', MsgGrantAllowance], 9 | ['/cosmos.feegrant.v1beta1.MsgRevokeAllowance', MsgRevokeAllowance], 10 | ] 11 | export const MissingWalletError = new Error('wallet is required') 12 | export const registry = new Registry(types) 13 | const defaultFee = { 14 | amount: [], 15 | gas: '200000', 16 | } 17 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 18 | if (!wallet) throw MissingWalletError 19 | let client 20 | if (addr) { 21 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 22 | } else { 23 | client = await SigningStargateClient.offline(wallet, { registry }) 24 | } 25 | const { address } = (await wallet.getAccounts())[0] 26 | return { 27 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 28 | client.signAndBroadcast(address, msgs, fee, memo), 29 | msgGrantAllowance: (data) => ({ typeUrl: '/cosmos.feegrant.v1beta1.MsgGrantAllowance', value: data }), 30 | msgRevokeAllowance: (data) => ({ typeUrl: '/cosmos.feegrant.v1beta1.MsgRevokeAllowance', value: data }), 31 | } 32 | } 33 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 34 | return new Api({ baseUrl: addr }) 35 | } 36 | export { txClient, queryClient } 37 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/index.ts: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient } from "@cosmjs/stargate"; 5 | import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; 6 | import { Api } from "./rest"; 7 | import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; 8 | import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; 9 | 10 | 11 | const types = [ 12 | ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], 13 | ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], 14 | 15 | ]; 16 | export const MissingWalletError = new Error("wallet is required"); 17 | 18 | export const registry = new Registry(types); 19 | 20 | const defaultFee = { 21 | amount: [], 22 | gas: "200000", 23 | }; 24 | 25 | interface TxClientOptions { 26 | addr: string 27 | } 28 | 29 | interface SignAndBroadcastOptions { 30 | fee: StdFee, 31 | memo?: string 32 | } 33 | 34 | const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = { addr: "http://localhost:26657" }) => { 35 | if (!wallet) throw MissingWalletError; 36 | let client; 37 | if (addr) { 38 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }); 39 | }else{ 40 | client = await SigningStargateClient.offline( wallet, { registry }); 41 | } 42 | const { address } = (await wallet.getAccounts())[0]; 43 | 44 | return { 45 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), 46 | msgGrantAllowance: (data: MsgGrantAllowance): EncodeObject => ({ typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: data }), 47 | msgRevokeAllowance: (data: MsgRevokeAllowance): EncodeObject => ({ typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", value: data }), 48 | 49 | }; 50 | }; 51 | 52 | interface QueryClientOptions { 53 | addr: string 54 | } 55 | 56 | const queryClient = async ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 57 | return new Api({ baseUrl: addr }); 58 | }; 59 | 60 | export { 61 | txClient, 62 | queryClient, 63 | }; 64 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos/feegrant/v1beta1/genesis.d.ts: -------------------------------------------------------------------------------- 1 | import { Grant } from '../../../cosmos/feegrant/v1beta1/feegrant'; 2 | import { Writer, Reader } from 'protobufjs/minimal'; 3 | export declare const protobufPackage = "cosmos.feegrant.v1beta1"; 4 | /** GenesisState contains a set of fee allowances, persisted from the store */ 5 | export interface GenesisState { 6 | allowances: Grant[]; 7 | } 8 | export declare const GenesisState: { 9 | encode(message: GenesisState, writer?: Writer): Writer; 10 | decode(input: Reader | Uint8Array, length?: number): GenesisState; 11 | fromJSON(object: any): GenesisState; 12 | toJSON(message: GenesisState): unknown; 13 | fromPartial(object: DeepPartial): GenesisState; 14 | }; 15 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 16 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 17 | [K in keyof T]?: DeepPartial; 18 | } : Partial; 19 | export {}; 20 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos/feegrant/v1beta1/genesis.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import { Grant } from '../../../cosmos/feegrant/v1beta1/feegrant'; 3 | import { Writer, Reader } from 'protobufjs/minimal'; 4 | export const protobufPackage = 'cosmos.feegrant.v1beta1'; 5 | const baseGenesisState = {}; 6 | export const GenesisState = { 7 | encode(message, writer = Writer.create()) { 8 | for (const v of message.allowances) { 9 | Grant.encode(v, writer.uint32(10).fork()).ldelim(); 10 | } 11 | return writer; 12 | }, 13 | decode(input, length) { 14 | const reader = input instanceof Uint8Array ? new Reader(input) : input; 15 | let end = length === undefined ? reader.len : reader.pos + length; 16 | const message = { ...baseGenesisState }; 17 | message.allowances = []; 18 | while (reader.pos < end) { 19 | const tag = reader.uint32(); 20 | switch (tag >>> 3) { 21 | case 1: 22 | message.allowances.push(Grant.decode(reader, reader.uint32())); 23 | break; 24 | default: 25 | reader.skipType(tag & 7); 26 | break; 27 | } 28 | } 29 | return message; 30 | }, 31 | fromJSON(object) { 32 | const message = { ...baseGenesisState }; 33 | message.allowances = []; 34 | if (object.allowances !== undefined && object.allowances !== null) { 35 | for (const e of object.allowances) { 36 | message.allowances.push(Grant.fromJSON(e)); 37 | } 38 | } 39 | return message; 40 | }, 41 | toJSON(message) { 42 | const obj = {}; 43 | if (message.allowances) { 44 | obj.allowances = message.allowances.map((e) => (e ? Grant.toJSON(e) : undefined)); 45 | } 46 | else { 47 | obj.allowances = []; 48 | } 49 | return obj; 50 | }, 51 | fromPartial(object) { 52 | const message = { ...baseGenesisState }; 53 | message.allowances = []; 54 | if (object.allowances !== undefined && object.allowances !== null) { 55 | for (const e of object.allowances) { 56 | message.allowances.push(Grant.fromPartial(e)); 57 | } 58 | } 59 | return message; 60 | } 61 | }; 62 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos_proto/cosmos.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "cosmos_proto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos_proto/cosmos.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-feegrant-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.feegrant.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/feegrant", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.feegrant.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { WeightedVoteOption } from "./module/types/cosmos/gov/v1beta1/gov"; 2 | import { TextProposal } from "./module/types/cosmos/gov/v1beta1/gov"; 3 | import { Deposit } from "./module/types/cosmos/gov/v1beta1/gov"; 4 | import { Proposal } from "./module/types/cosmos/gov/v1beta1/gov"; 5 | import { TallyResult } from "./module/types/cosmos/gov/v1beta1/gov"; 6 | import { Vote } from "./module/types/cosmos/gov/v1beta1/gov"; 7 | import { DepositParams } from "./module/types/cosmos/gov/v1beta1/gov"; 8 | import { VotingParams } from "./module/types/cosmos/gov/v1beta1/gov"; 9 | import { TallyParams } from "./module/types/cosmos/gov/v1beta1/gov"; 10 | export { WeightedVoteOption, TextProposal, Deposit, Proposal, TallyResult, Vote, DepositParams, VotingParams, TallyParams }; 11 | declare const _default; 12 | export default _default; 13 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; 5 | import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; 6 | import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; 7 | import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; 8 | export declare const MissingWalletError: Error; 9 | export declare const registry: Registry; 10 | interface TxClientOptions { 11 | addr: string; 12 | } 13 | interface SignAndBroadcastOptions { 14 | fee: StdFee; 15 | memo?: string; 16 | } 17 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 18 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 19 | msgVoteWeighted: (data: MsgVoteWeighted) => EncodeObject; 20 | msgDeposit: (data: MsgDeposit) => EncodeObject; 21 | msgSubmitProposal: (data: MsgSubmitProposal) => EncodeObject; 22 | msgVote: (data: MsgVote) => EncodeObject; 23 | }>; 24 | interface QueryClientOptions { 25 | addr: string; 26 | } 27 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 28 | export { txClient, queryClient, }; 29 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgVoteWeighted } from './types/cosmos/gov/v1beta1/tx' 6 | import { MsgDeposit } from './types/cosmos/gov/v1beta1/tx' 7 | import { MsgSubmitProposal } from './types/cosmos/gov/v1beta1/tx' 8 | import { MsgVote } from './types/cosmos/gov/v1beta1/tx' 9 | const types = [ 10 | ['/cosmos.gov.v1beta1.MsgVoteWeighted', MsgVoteWeighted], 11 | ['/cosmos.gov.v1beta1.MsgDeposit', MsgDeposit], 12 | ['/cosmos.gov.v1beta1.MsgSubmitProposal', MsgSubmitProposal], 13 | ['/cosmos.gov.v1beta1.MsgVote', MsgVote], 14 | ] 15 | export const MissingWalletError = new Error('wallet is required') 16 | export const registry = new Registry(types) 17 | const defaultFee = { 18 | amount: [], 19 | gas: '200000', 20 | } 21 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 22 | if (!wallet) throw MissingWalletError 23 | let client 24 | if (addr) { 25 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 26 | } else { 27 | client = await SigningStargateClient.offline(wallet, { registry }) 28 | } 29 | const { address } = (await wallet.getAccounts())[0] 30 | return { 31 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 32 | client.signAndBroadcast(address, msgs, fee, memo), 33 | msgVoteWeighted: (data) => ({ typeUrl: '/cosmos.gov.v1beta1.MsgVoteWeighted', value: data }), 34 | msgDeposit: (data) => ({ typeUrl: '/cosmos.gov.v1beta1.MsgDeposit', value: data }), 35 | msgSubmitProposal: (data) => ({ typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal', value: data }), 36 | msgVote: (data) => ({ typeUrl: '/cosmos.gov.v1beta1.MsgVote', value: data }), 37 | } 38 | } 39 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 40 | return new Api({ baseUrl: addr }) 41 | } 42 | export { txClient, queryClient } 43 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos/gov/v1beta1/genesis.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | import { Deposit, Vote, Proposal, DepositParams, VotingParams, TallyParams } from '../../../cosmos/gov/v1beta1/gov'; 3 | export declare const protobufPackage = "cosmos.gov.v1beta1"; 4 | /** GenesisState defines the gov module's genesis state. */ 5 | export interface GenesisState { 6 | /** starting_proposal_id is the ID of the starting proposal. */ 7 | startingProposalId: number; 8 | /** deposits defines all the deposits present at genesis. */ 9 | deposits: Deposit[]; 10 | /** votes defines all the votes present at genesis. */ 11 | votes: Vote[]; 12 | /** proposals defines all the proposals present at genesis. */ 13 | proposals: Proposal[]; 14 | /** params defines all the paramaters of related to deposit. */ 15 | depositParams: DepositParams | undefined; 16 | /** params defines all the paramaters of related to voting. */ 17 | votingParams: VotingParams | undefined; 18 | /** params defines all the paramaters of related to tally. */ 19 | tallyParams: TallyParams | undefined; 20 | } 21 | export declare const GenesisState: { 22 | encode(message: GenesisState, writer?: Writer): Writer; 23 | decode(input: Reader | Uint8Array, length?: number): GenesisState; 24 | fromJSON(object: any): GenesisState; 25 | toJSON(message: GenesisState): unknown; 26 | fromPartial(object: DeepPartial): GenesisState; 27 | }; 28 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 29 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 30 | [K in keyof T]?: DeepPartial; 31 | } : Partial; 32 | export {}; 33 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos_proto/cosmos.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "cosmos_proto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos_proto/cosmos.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-gov-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.gov.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/gov/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.gov.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { SigningInfo } from "./module/types/cosmos/slashing/v1beta1/genesis"; 2 | import { ValidatorMissedBlocks } from "./module/types/cosmos/slashing/v1beta1/genesis"; 3 | import { MissedBlock } from "./module/types/cosmos/slashing/v1beta1/genesis"; 4 | import { ValidatorSigningInfo } from "./module/types/cosmos/slashing/v1beta1/slashing"; 5 | import { Params } from "./module/types/cosmos/slashing/v1beta1/slashing"; 6 | export { SigningInfo, ValidatorMissedBlocks, MissedBlock, ValidatorSigningInfo, Params }; 7 | declare const _default; 8 | export default _default; 9 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; 5 | export declare const MissingWalletError: Error; 6 | export declare const registry: Registry; 7 | interface TxClientOptions { 8 | addr: string; 9 | } 10 | interface SignAndBroadcastOptions { 11 | fee: StdFee; 12 | memo?: string; 13 | } 14 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 15 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 16 | msgUnjail: (data: MsgUnjail) => EncodeObject; 17 | }>; 18 | interface QueryClientOptions { 19 | addr: string; 20 | } 21 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 22 | export { txClient, queryClient, }; 23 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgUnjail } from './types/cosmos/slashing/v1beta1/tx' 6 | const types = [['/cosmos.slashing.v1beta1.MsgUnjail', MsgUnjail]] 7 | export const MissingWalletError = new Error('wallet is required') 8 | export const registry = new Registry(types) 9 | const defaultFee = { 10 | amount: [], 11 | gas: '200000', 12 | } 13 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 14 | if (!wallet) throw MissingWalletError 15 | let client 16 | if (addr) { 17 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 18 | } else { 19 | client = await SigningStargateClient.offline(wallet, { registry }) 20 | } 21 | const { address } = (await wallet.getAccounts())[0] 22 | return { 23 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 24 | client.signAndBroadcast(address, msgs, fee, memo), 25 | msgUnjail: (data) => ({ typeUrl: '/cosmos.slashing.v1beta1.MsgUnjail', value: data }), 26 | } 27 | } 28 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 29 | return new Api({ baseUrl: addr }) 30 | } 31 | export { txClient, queryClient } 32 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/index.ts: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient } from "@cosmjs/stargate"; 5 | import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; 6 | import { Api } from "./rest"; 7 | import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; 8 | 9 | 10 | const types = [ 11 | ["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], 12 | 13 | ]; 14 | export const MissingWalletError = new Error("wallet is required"); 15 | 16 | export const registry = new Registry(types); 17 | 18 | const defaultFee = { 19 | amount: [], 20 | gas: "200000", 21 | }; 22 | 23 | interface TxClientOptions { 24 | addr: string 25 | } 26 | 27 | interface SignAndBroadcastOptions { 28 | fee: StdFee, 29 | memo?: string 30 | } 31 | 32 | const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = { addr: "http://localhost:26657" }) => { 33 | if (!wallet) throw MissingWalletError; 34 | let client; 35 | if (addr) { 36 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }); 37 | }else{ 38 | client = await SigningStargateClient.offline( wallet, { registry }); 39 | } 40 | const { address } = (await wallet.getAccounts())[0]; 41 | 42 | return { 43 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), 44 | msgUnjail: (data: MsgUnjail): EncodeObject => ({ typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", value: data }), 45 | 46 | }; 47 | }; 48 | 49 | interface QueryClientOptions { 50 | addr: string 51 | } 52 | 53 | const queryClient = async ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 54 | return new Api({ baseUrl: addr }); 55 | }; 56 | 57 | export { 58 | txClient, 59 | queryClient, 60 | }; 61 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/cosmos/slashing/v1beta1/tx.d.ts: -------------------------------------------------------------------------------- 1 | import { Reader, Writer } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "cosmos.slashing.v1beta1"; 3 | /** MsgUnjail defines the Msg/Unjail request type */ 4 | export interface MsgUnjail { 5 | validatorAddr: string; 6 | } 7 | /** MsgUnjailResponse defines the Msg/Unjail response type */ 8 | export interface MsgUnjailResponse { 9 | } 10 | export declare const MsgUnjail: { 11 | encode(message: MsgUnjail, writer?: Writer): Writer; 12 | decode(input: Reader | Uint8Array, length?: number): MsgUnjail; 13 | fromJSON(object: any): MsgUnjail; 14 | toJSON(message: MsgUnjail): unknown; 15 | fromPartial(object: DeepPartial): MsgUnjail; 16 | }; 17 | export declare const MsgUnjailResponse: { 18 | encode(_: MsgUnjailResponse, writer?: Writer): Writer; 19 | decode(input: Reader | Uint8Array, length?: number): MsgUnjailResponse; 20 | fromJSON(_: any): MsgUnjailResponse; 21 | toJSON(_: MsgUnjailResponse): unknown; 22 | fromPartial(_: DeepPartial): MsgUnjailResponse; 23 | }; 24 | /** Msg defines the slashing Msg service. */ 25 | export interface Msg { 26 | /** 27 | * Unjail defines a method for unjailing a jailed validator, thus returning 28 | * them into the bonded validator set, so they can begin receiving provisions 29 | * and rewards again. 30 | */ 31 | Unjail(request: MsgUnjail): Promise; 32 | } 33 | export declare class MsgClientImpl implements Msg { 34 | private readonly rpc; 35 | constructor(rpc: Rpc); 36 | Unjail(request: MsgUnjail): Promise; 37 | } 38 | interface Rpc { 39 | request(service: string, method: string, data: Uint8Array): Promise; 40 | } 41 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 42 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 43 | [K in keyof T]?: DeepPartial; 44 | } : Partial; 45 | export {}; 46 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-slashing-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.slashing.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/slashing/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.slashing.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StakeAuthorization } from "./module/types/cosmos/staking/v1beta1/authz"; 2 | import { StakeAuthorization_Validators } from "./module/types/cosmos/staking/v1beta1/authz"; 3 | import { LastValidatorPower } from "./module/types/cosmos/staking/v1beta1/genesis"; 4 | import { HistoricalInfo } from "./module/types/cosmos/staking/v1beta1/staking"; 5 | import { CommissionRates } from "./module/types/cosmos/staking/v1beta1/staking"; 6 | import { Commission } from "./module/types/cosmos/staking/v1beta1/staking"; 7 | import { Description } from "./module/types/cosmos/staking/v1beta1/staking"; 8 | import { Validator } from "./module/types/cosmos/staking/v1beta1/staking"; 9 | import { ValAddresses } from "./module/types/cosmos/staking/v1beta1/staking"; 10 | import { DVPair } from "./module/types/cosmos/staking/v1beta1/staking"; 11 | import { DVPairs } from "./module/types/cosmos/staking/v1beta1/staking"; 12 | import { DVVTriplet } from "./module/types/cosmos/staking/v1beta1/staking"; 13 | import { DVVTriplets } from "./module/types/cosmos/staking/v1beta1/staking"; 14 | import { Delegation } from "./module/types/cosmos/staking/v1beta1/staking"; 15 | import { UnbondingDelegation } from "./module/types/cosmos/staking/v1beta1/staking"; 16 | import { UnbondingDelegationEntry } from "./module/types/cosmos/staking/v1beta1/staking"; 17 | import { RedelegationEntry } from "./module/types/cosmos/staking/v1beta1/staking"; 18 | import { Redelegation } from "./module/types/cosmos/staking/v1beta1/staking"; 19 | import { Params } from "./module/types/cosmos/staking/v1beta1/staking"; 20 | import { DelegationResponse } from "./module/types/cosmos/staking/v1beta1/staking"; 21 | import { RedelegationEntryResponse } from "./module/types/cosmos/staking/v1beta1/staking"; 22 | import { RedelegationResponse } from "./module/types/cosmos/staking/v1beta1/staking"; 23 | import { Pool } from "./module/types/cosmos/staking/v1beta1/staking"; 24 | export { StakeAuthorization, StakeAuthorization_Validators, LastValidatorPower, HistoricalInfo, CommissionRates, Commission, Description, Validator, ValAddresses, DVPair, DVPairs, DVVTriplet, DVVTriplets, Delegation, UnbondingDelegation, UnbondingDelegationEntry, RedelegationEntry, Redelegation, Params, DelegationResponse, RedelegationEntryResponse, RedelegationResponse, Pool }; 25 | declare const _default; 26 | export default _default; 27 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; 5 | import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; 6 | import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; 7 | import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; 8 | import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; 9 | export declare const MissingWalletError: Error; 10 | export declare const registry: Registry; 11 | interface TxClientOptions { 12 | addr: string; 13 | } 14 | interface SignAndBroadcastOptions { 15 | fee: StdFee; 16 | memo?: string; 17 | } 18 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 19 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 20 | msgDelegate: (data: MsgDelegate) => EncodeObject; 21 | msgUndelegate: (data: MsgUndelegate) => EncodeObject; 22 | msgEditValidator: (data: MsgEditValidator) => EncodeObject; 23 | msgBeginRedelegate: (data: MsgBeginRedelegate) => EncodeObject; 24 | msgCreateValidator: (data: MsgCreateValidator) => EncodeObject; 25 | }>; 26 | interface QueryClientOptions { 27 | addr: string; 28 | } 29 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 30 | export { txClient, queryClient, }; 31 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos_proto/cosmos.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "cosmos_proto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos_proto/cosmos.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/tendermint/crypto/keys.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "tendermint.crypto"; 3 | /** PublicKey defines the keys available for use with Tendermint Validators */ 4 | export interface PublicKey { 5 | ed25519: Uint8Array | undefined; 6 | secp256k1: Uint8Array | undefined; 7 | } 8 | export declare const PublicKey: { 9 | encode(message: PublicKey, writer?: Writer): Writer; 10 | decode(input: Reader | Uint8Array, length?: number): PublicKey; 11 | fromJSON(object: any): PublicKey; 12 | toJSON(message: PublicKey): unknown; 13 | fromPartial(object: DeepPartial): PublicKey; 14 | }; 15 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 16 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 17 | [K in keyof T]?: DeepPartial; 18 | } : Partial; 19 | export {}; 20 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/tendermint/types/validator.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | import { PublicKey } from '../../tendermint/crypto/keys'; 3 | export declare const protobufPackage = "tendermint.types"; 4 | export interface ValidatorSet { 5 | validators: Validator[]; 6 | proposer: Validator | undefined; 7 | totalVotingPower: number; 8 | } 9 | export interface Validator { 10 | address: Uint8Array; 11 | pubKey: PublicKey | undefined; 12 | votingPower: number; 13 | proposerPriority: number; 14 | } 15 | export interface SimpleValidator { 16 | pubKey: PublicKey | undefined; 17 | votingPower: number; 18 | } 19 | export declare const ValidatorSet: { 20 | encode(message: ValidatorSet, writer?: Writer): Writer; 21 | decode(input: Reader | Uint8Array, length?: number): ValidatorSet; 22 | fromJSON(object: any): ValidatorSet; 23 | toJSON(message: ValidatorSet): unknown; 24 | fromPartial(object: DeepPartial): ValidatorSet; 25 | }; 26 | export declare const Validator: { 27 | encode(message: Validator, writer?: Writer): Writer; 28 | decode(input: Reader | Uint8Array, length?: number): Validator; 29 | fromJSON(object: any): Validator; 30 | toJSON(message: Validator): unknown; 31 | fromPartial(object: DeepPartial): Validator; 32 | }; 33 | export declare const SimpleValidator: { 34 | encode(message: SimpleValidator, writer?: Writer): Writer; 35 | decode(input: Reader | Uint8Array, length?: number): SimpleValidator; 36 | fromJSON(object: any): SimpleValidator; 37 | toJSON(message: SimpleValidator): unknown; 38 | fromPartial(object: DeepPartial): SimpleValidator; 39 | }; 40 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 41 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 42 | [K in keyof T]?: DeepPartial; 43 | } : Partial; 44 | export {}; 45 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/module/types/tendermint/version/types.d.ts: -------------------------------------------------------------------------------- 1 | import { Writer, Reader } from 'protobufjs/minimal'; 2 | export declare const protobufPackage = "tendermint.version"; 3 | /** 4 | * App includes the protocol and software version for the application. 5 | * This information is included in ResponseInfo. The App.Protocol can be 6 | * updated in ResponseEndBlock. 7 | */ 8 | export interface App { 9 | protocol: number; 10 | software: string; 11 | } 12 | /** 13 | * Consensus captures the consensus rules for processing a block in the blockchain, 14 | * including all blockchain data structures and the rules of the application's 15 | * state transition machine. 16 | */ 17 | export interface Consensus { 18 | block: number; 19 | app: number; 20 | } 21 | export declare const App: { 22 | encode(message: App, writer?: Writer): Writer; 23 | decode(input: Reader | Uint8Array, length?: number): App; 24 | fromJSON(object: any): App; 25 | toJSON(message: App): unknown; 26 | fromPartial(object: DeepPartial): App; 27 | }; 28 | export declare const Consensus: { 29 | encode(message: Consensus, writer?: Writer): Writer; 30 | decode(input: Reader | Uint8Array, length?: number): Consensus; 31 | fromJSON(object: any): Consensus; 32 | toJSON(message: Consensus): unknown; 33 | fromPartial(object: DeepPartial): Consensus; 34 | }; 35 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 36 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 37 | [K in keyof T]?: DeepPartial; 38 | } : Partial; 39 | export {}; 40 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-staking-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.staking.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/staking/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.staking.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { BaseVestingAccount } from "./module/types/cosmos/vesting/v1beta1/vesting"; 2 | import { ContinuousVestingAccount } from "./module/types/cosmos/vesting/v1beta1/vesting"; 3 | import { DelayedVestingAccount } from "./module/types/cosmos/vesting/v1beta1/vesting"; 4 | import { Period } from "./module/types/cosmos/vesting/v1beta1/vesting"; 5 | import { PeriodicVestingAccount } from "./module/types/cosmos/vesting/v1beta1/vesting"; 6 | import { PermanentLockedAccount } from "./module/types/cosmos/vesting/v1beta1/vesting"; 7 | export { BaseVestingAccount, ContinuousVestingAccount, DelayedVestingAccount, Period, PeriodicVestingAccount, PermanentLockedAccount }; 8 | declare const _default; 9 | export default _default; 10 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; 5 | export declare const MissingWalletError: Error; 6 | export declare const registry: Registry; 7 | interface TxClientOptions { 8 | addr: string; 9 | } 10 | interface SignAndBroadcastOptions { 11 | fee: StdFee; 12 | memo?: string; 13 | } 14 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 15 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 16 | msgCreateVestingAccount: (data: MsgCreateVestingAccount) => EncodeObject; 17 | }>; 18 | interface QueryClientOptions { 19 | addr: string; 20 | } 21 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 22 | export { txClient, queryClient, }; 23 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgCreateVestingAccount } from './types/cosmos/vesting/v1beta1/tx' 6 | const types = [['/cosmos.vesting.v1beta1.MsgCreateVestingAccount', MsgCreateVestingAccount]] 7 | export const MissingWalletError = new Error('wallet is required') 8 | export const registry = new Registry(types) 9 | const defaultFee = { 10 | amount: [], 11 | gas: '200000', 12 | } 13 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 14 | if (!wallet) throw MissingWalletError 15 | let client 16 | if (addr) { 17 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 18 | } else { 19 | client = await SigningStargateClient.offline(wallet, { registry }) 20 | } 21 | const { address } = (await wallet.getAccounts())[0] 22 | return { 23 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 24 | client.signAndBroadcast(address, msgs, fee, memo), 25 | msgCreateVestingAccount: (data) => ({ typeUrl: '/cosmos.vesting.v1beta1.MsgCreateVestingAccount', value: data }), 26 | } 27 | } 28 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 29 | return new Api({ baseUrl: addr }) 30 | } 31 | export { txClient, queryClient } 32 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/index.ts: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient } from "@cosmjs/stargate"; 5 | import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; 6 | import { Api } from "./rest"; 7 | import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; 8 | 9 | 10 | const types = [ 11 | ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], 12 | 13 | ]; 14 | export const MissingWalletError = new Error("wallet is required"); 15 | 16 | export const registry = new Registry(types); 17 | 18 | const defaultFee = { 19 | amount: [], 20 | gas: "200000", 21 | }; 22 | 23 | interface TxClientOptions { 24 | addr: string 25 | } 26 | 27 | interface SignAndBroadcastOptions { 28 | fee: StdFee, 29 | memo?: string 30 | } 31 | 32 | const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = { addr: "http://localhost:26657" }) => { 33 | if (!wallet) throw MissingWalletError; 34 | let client; 35 | if (addr) { 36 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }); 37 | }else{ 38 | client = await SigningStargateClient.offline( wallet, { registry }); 39 | } 40 | const { address } = (await wallet.getAccounts())[0]; 41 | 42 | return { 43 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), 44 | msgCreateVestingAccount: (data: MsgCreateVestingAccount): EncodeObject => ({ typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: data }), 45 | 46 | }; 47 | }; 48 | 49 | interface QueryClientOptions { 50 | addr: string 51 | } 52 | 53 | const queryClient = async ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 54 | return new Api({ baseUrl: addr }); 55 | }; 56 | 57 | export { 58 | txClient, 59 | queryClient, 60 | }; 61 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/cosmos_proto/cosmos.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "cosmos_proto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/cosmos_proto/cosmos.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/cosmos_proto/cosmos.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'cosmos_proto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cosmos-vesting-v1beta1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module cosmos.vesting.v1beta1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/cosmos-sdk/x/auth/vesting/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/cosmos-sdk/cosmos.vesting.v1beta1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/index.d.ts: -------------------------------------------------------------------------------- 1 | import { FungibleTokenPacketData } from "./module/types/ibc/applications/transfer/v1/transfer"; 2 | import { DenomTrace } from "./module/types/ibc/applications/transfer/v1/transfer"; 3 | import { Params } from "./module/types/ibc/applications/transfer/v1/transfer"; 4 | export { FungibleTokenPacketData, DenomTrace, Params }; 5 | declare const _default; 6 | export default _default; 7 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StdFee } from "@cosmjs/launchpad"; 2 | import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; 3 | import { Api } from "./rest"; 4 | import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; 5 | export declare const MissingWalletError: Error; 6 | export declare const registry: Registry; 7 | interface TxClientOptions { 8 | addr: string; 9 | } 10 | interface SignAndBroadcastOptions { 11 | fee: StdFee; 12 | memo?: string; 13 | } 14 | declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ 15 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; 16 | msgTransfer: (data: MsgTransfer) => EncodeObject; 17 | }>; 18 | interface QueryClientOptions { 19 | addr: string; 20 | } 21 | declare const queryClient: ({ addr: addr }?: QueryClientOptions) => Promise>; 22 | export { txClient, queryClient, }; 23 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/index.js: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | import { SigningStargateClient } from '@cosmjs/stargate' 3 | import { Registry } from '@cosmjs/proto-signing' 4 | import { Api } from './rest' 5 | import { MsgTransfer } from './types/ibc/applications/transfer/v1/tx' 6 | const types = [['/ibc.applications.transfer.v1.MsgTransfer', MsgTransfer]] 7 | export const MissingWalletError = new Error('wallet is required') 8 | export const registry = new Registry(types) 9 | const defaultFee = { 10 | amount: [], 11 | gas: '200000', 12 | } 13 | const txClient = async (wallet, { addr: addr } = { addr: 'http://localhost:26657' }) => { 14 | if (!wallet) throw MissingWalletError 15 | let client 16 | if (addr) { 17 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }) 18 | } else { 19 | client = await SigningStargateClient.offline(wallet, { registry }) 20 | } 21 | const { address } = (await wallet.getAccounts())[0] 22 | return { 23 | signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: '' }) => 24 | client.signAndBroadcast(address, msgs, fee, memo), 25 | msgTransfer: (data) => ({ typeUrl: '/ibc.applications.transfer.v1.MsgTransfer', value: data }), 26 | } 27 | } 28 | const queryClient = async ({ addr: addr } = { addr: 'http://localhost:1317' }) => { 29 | return new Api({ baseUrl: addr }) 30 | } 31 | export { txClient, queryClient } 32 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/index.ts: -------------------------------------------------------------------------------- 1 | // THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient } from "@cosmjs/stargate"; 5 | import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; 6 | import { Api } from "./rest"; 7 | import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; 8 | 9 | 10 | const types = [ 11 | ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer], 12 | 13 | ]; 14 | export const MissingWalletError = new Error("wallet is required"); 15 | 16 | export const registry = new Registry(types); 17 | 18 | const defaultFee = { 19 | amount: [], 20 | gas: "200000", 21 | }; 22 | 23 | interface TxClientOptions { 24 | addr: string 25 | } 26 | 27 | interface SignAndBroadcastOptions { 28 | fee: StdFee, 29 | memo?: string 30 | } 31 | 32 | const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = { addr: "http://localhost:26657" }) => { 33 | if (!wallet) throw MissingWalletError; 34 | let client; 35 | if (addr) { 36 | client = await SigningStargateClient.connectWithSigner(addr, wallet, { registry }); 37 | }else{ 38 | client = await SigningStargateClient.offline( wallet, { registry }); 39 | } 40 | const { address } = (await wallet.getAccounts())[0]; 41 | 42 | return { 43 | signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), 44 | msgTransfer: (data: MsgTransfer): EncodeObject => ({ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: data }), 45 | 46 | }; 47 | }; 48 | 49 | interface QueryClientOptions { 50 | addr: string 51 | } 52 | 53 | const queryClient = async ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 54 | return new Api({ baseUrl: addr }); 55 | }; 56 | 57 | export { 58 | txClient, 59 | queryClient, 60 | }; 61 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/gogoproto/gogo.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "gogoproto"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/gogoproto/gogo.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'gogoproto' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/google/api/annotations.d.ts: -------------------------------------------------------------------------------- 1 | export declare const protobufPackage = "google.api"; 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/google/api/annotations.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api'; 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = 'google.api' 3 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/module/types/ibc/applications/transfer/v1/genesis.d.ts: -------------------------------------------------------------------------------- 1 | import { DenomTrace, Params } from '../../../../ibc/applications/transfer/v1/transfer'; 2 | import { Writer, Reader } from 'protobufjs/minimal'; 3 | export declare const protobufPackage = "ibc.applications.transfer.v1"; 4 | /** GenesisState defines the ibc-transfer genesis state */ 5 | export interface GenesisState { 6 | portId: string; 7 | denomTraces: DenomTrace[]; 8 | params: Params | undefined; 9 | } 10 | export declare const GenesisState: { 11 | encode(message: GenesisState, writer?: Writer): Writer; 12 | decode(input: Reader | Uint8Array, length?: number): GenesisState; 13 | fromJSON(object: any): GenesisState; 14 | toJSON(message: GenesisState): unknown; 15 | fromPartial(object: DeepPartial): GenesisState; 16 | }; 17 | declare type Builtin = Date | Function | Uint8Array | string | number | undefined; 18 | export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { 19 | [K in keyof T]?: DeepPartial; 20 | } : Partial; 21 | export {}; 22 | -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ibc-applications-transfer-v1-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated vuex store for Cosmos module ibc.applications.transfer.v1", 5 | "author": "Starport Codegen ", 6 | "homepage": "http://github.com/cosmos/ibc-go/modules/apps/transfer/types", 7 | "license": "Apache-2.0", 8 | "licenses": [ 9 | { 10 | "type": "Apache-2.0", 11 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 12 | } 13 | ], 14 | "main": "index.js", 15 | "publishConfig": { 16 | "access": "public" 17 | } 18 | } -------------------------------------------------------------------------------- /vue/src/store/generated/cosmos/ibc-go/ibc.applications.transfer.v1/vuex-root: -------------------------------------------------------------------------------- 1 | THIS FILE IS GENERATED AUTOMATICALLY. DO NOT DELETE. 2 | -------------------------------------------------------------------------------- /vue/src/store/generated/index.d.ts: -------------------------------------------------------------------------------- 1 | declare const _default: { 2 | CosmosCosmosSdkCosmosAuthzV1Beta1: (store: any) => void; 3 | CosmosCosmosSdkCosmosBankV1Beta1: (store: any) => void; 4 | CosmosCosmosSdkCosmosCrisisV1Beta1: (store: any) => void; 5 | CosmosCosmosSdkCosmosDistributionV1Beta1: (store: any) => void; 6 | CosmosCosmosSdkCosmosEvidenceV1Beta1: (store: any) => void; 7 | CosmosCosmosSdkCosmosFeegrantV1Beta1: (store: any) => void; 8 | CosmosCosmosSdkCosmosGovV1Beta1: (store: any) => void; 9 | CosmosCosmosSdkCosmosSlashingV1Beta1: (store: any) => void; 10 | CosmosCosmosSdkCosmosStakingV1Beta1: (store: any) => void; 11 | CosmosCosmosSdkCosmosVestingV1Beta1: (store: any) => void; 12 | CosmosIbcGoIbcApplicationsTransferV1: (store: any) => void; 13 | }; 14 | export default _default; 15 | -------------------------------------------------------------------------------- /vue/src/store/generated/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "notional-labs-anone-js", 3 | "version": "0.1.0", 4 | "description": "Autogenerated cosmos modules vuex store", 5 | "author": "Starport Codegen ", 6 | "license": "Apache-2.0", 7 | "licenses": [ 8 | { 9 | "type": "Apache-2.0", 10 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 11 | } 12 | ], 13 | "main": "index.js", 14 | "publishConfig": { 15 | "access": "public" 16 | } 17 | } -------------------------------------------------------------------------------- /vue/src/store/generated/readme.md: -------------------------------------------------------------------------------- 1 | THIS FOLDER IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | -------------------------------------------------------------------------------- /vue/src/store/index.js: -------------------------------------------------------------------------------- 1 | import { createStore } from 'vuex' 2 | import init from './config' 3 | 4 | const store = createStore({ 5 | state() { 6 | return {} 7 | }, 8 | mutations: {}, 9 | actions: {}, 10 | }) 11 | init(store) 12 | export default store 13 | -------------------------------------------------------------------------------- /vue/src/views/Index.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 30 | -------------------------------------------------------------------------------- /vue/src/views/Relayers.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 14 | -------------------------------------------------------------------------------- /vue/src/views/Types.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 14 | -------------------------------------------------------------------------------- /vue/vue.config.js: -------------------------------------------------------------------------------- 1 | const NodePolyfillPlugin = require('node-polyfill-webpack-plugin') 2 | const path = require('path') 3 | const webpack = require('webpack') 4 | 5 | const lambda = process.env.LAMBDA || 'http://localhost:8080/api/testing/attest' 6 | 7 | module.exports = { 8 | transpileDependencies: true, 9 | configureWebpack: { 10 | resolve: { 11 | symlinks: false, 12 | alias: { 13 | vue$: path.resolve('./node_modules/vue/dist/vue.esm-bundler.js'), 14 | }, 15 | }, 16 | plugins: [ 17 | new NodePolyfillPlugin(), 18 | new webpack.DefinePlugin({ 19 | __lambda__: lambda, 20 | }), 21 | ], 22 | }, 23 | } 24 | -------------------------------------------------------------------------------- /x/anone/client/cli/query.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "fmt" 5 | // "strings" 6 | 7 | "github.com/spf13/cobra" 8 | 9 | "github.com/cosmos/cosmos-sdk/client" 10 | // "github.com/cosmos/cosmos-sdk/client/flags" 11 | // sdk "github.com/cosmos/cosmos-sdk/types" 12 | 13 | "github.com/notional-labs/anone/x/anone/types" 14 | ) 15 | 16 | // GetQueryCmd returns the cli query commands for this module 17 | func GetQueryCmd(queryRoute string) *cobra.Command { 18 | // Group anone queries under a subcommand 19 | cmd := &cobra.Command{ 20 | Use: types.ModuleName, 21 | Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName), 22 | DisableFlagParsing: true, 23 | SuggestionsMinimumDistance: 2, 24 | RunE: client.ValidateCmd, 25 | } 26 | 27 | // this line is used by starport scaffolding # 1 28 | 29 | return cmd 30 | } 31 | -------------------------------------------------------------------------------- /x/anone/client/cli/tx.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "fmt" 5 | "time" 6 | 7 | "github.com/spf13/cobra" 8 | 9 | "github.com/cosmos/cosmos-sdk/client" 10 | // "github.com/cosmos/cosmos-sdk/client/flags" 11 | "github.com/notional-labs/anone/x/anone/types" 12 | ) 13 | 14 | var ( 15 | DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) 16 | ) 17 | 18 | const ( 19 | flagPacketTimeoutTimestamp = "packet-timeout-timestamp" 20 | ) 21 | 22 | // GetTxCmd returns the transaction commands for this module 23 | func GetTxCmd() *cobra.Command { 24 | cmd := &cobra.Command{ 25 | Use: types.ModuleName, 26 | Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), 27 | DisableFlagParsing: true, 28 | SuggestionsMinimumDistance: 2, 29 | RunE: client.ValidateCmd, 30 | } 31 | 32 | // this line is used by starport scaffolding # 1 33 | 34 | return cmd 35 | } 36 | -------------------------------------------------------------------------------- /x/anone/genesis.go: -------------------------------------------------------------------------------- 1 | package anone 2 | 3 | import ( 4 | sdk "github.com/cosmos/cosmos-sdk/types" 5 | "github.com/notional-labs/anone/x/anone/keeper" 6 | "github.com/notional-labs/anone/x/anone/types" 7 | ) 8 | 9 | // InitGenesis initializes the capability module's state from a provided genesis 10 | // state. 11 | func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { 12 | // this line is used by starport scaffolding # genesis/module/init 13 | } 14 | 15 | // ExportGenesis returns the capability module's exported genesis. 16 | func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { 17 | genesis := types.DefaultGenesis() 18 | 19 | // this line is used by starport scaffolding # genesis/module/export 20 | 21 | return genesis 22 | } 23 | -------------------------------------------------------------------------------- /x/anone/genesis_test.go: -------------------------------------------------------------------------------- 1 | package anone_test 2 | 3 | import ( 4 | "testing" 5 | 6 | keepertest "github.com/notional-labs/anone/testutil/keeper" 7 | "github.com/notional-labs/anone/x/anone" 8 | "github.com/notional-labs/anone/x/anone/types" 9 | "github.com/stretchr/testify/require" 10 | ) 11 | 12 | func TestGenesis(t *testing.T) { 13 | genesisState := types.GenesisState{ 14 | // this line is used by starport scaffolding # genesis/test/state 15 | } 16 | 17 | k, ctx := keepertest.AnoneKeeper(t) 18 | anone.InitGenesis(ctx, *k, genesisState) 19 | got := anone.ExportGenesis(ctx, *k) 20 | require.NotNil(t, got) 21 | 22 | // this line is used by starport scaffolding # genesis/test/assert 23 | } 24 | -------------------------------------------------------------------------------- /x/anone/handler.go: -------------------------------------------------------------------------------- 1 | package anone 2 | 3 | import ( 4 | "fmt" 5 | 6 | sdk "github.com/cosmos/cosmos-sdk/types" 7 | sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" 8 | "github.com/notional-labs/anone/x/anone/keeper" 9 | "github.com/notional-labs/anone/x/anone/types" 10 | ) 11 | 12 | // NewHandler ... 13 | func NewHandler(k keeper.Keeper) sdk.Handler { 14 | // this line is used by starport scaffolding # handler/msgServer 15 | 16 | return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { 17 | ctx = ctx.WithEventManager(sdk.NewEventManager()) 18 | 19 | switch msg := msg.(type) { 20 | // this line is used by starport scaffolding # 1 21 | default: 22 | errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) 23 | return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /x/anone/keeper/grpc_query.go: -------------------------------------------------------------------------------- 1 | package keeper 2 | 3 | import ( 4 | "github.com/notional-labs/anone/x/anone/types" 5 | ) 6 | 7 | var _ types.QueryServer = Keeper{} 8 | -------------------------------------------------------------------------------- /x/anone/keeper/keeper.go: -------------------------------------------------------------------------------- 1 | package keeper 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/tendermint/tendermint/libs/log" 7 | 8 | "github.com/cosmos/cosmos-sdk/codec" 9 | sdk "github.com/cosmos/cosmos-sdk/types" 10 | "github.com/notional-labs/anone/x/anone/types" 11 | ) 12 | 13 | type ( 14 | Keeper struct { 15 | cdc codec.BinaryCodec 16 | storeKey sdk.StoreKey 17 | memKey sdk.StoreKey 18 | } 19 | ) 20 | 21 | func NewKeeper( 22 | cdc codec.BinaryCodec, 23 | storeKey, 24 | memKey sdk.StoreKey, 25 | 26 | ) *Keeper { 27 | return &Keeper{ 28 | cdc: cdc, 29 | storeKey: storeKey, 30 | memKey: memKey, 31 | } 32 | } 33 | 34 | func (k Keeper) Logger(ctx sdk.Context) log.Logger { 35 | return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) 36 | } 37 | -------------------------------------------------------------------------------- /x/anone/keeper/msg_server.go: -------------------------------------------------------------------------------- 1 | package keeper 2 | 3 | import ( 4 | "github.com/notional-labs/anone/x/anone/types" 5 | ) 6 | 7 | type msgServer struct { 8 | Keeper 9 | } 10 | 11 | // NewMsgServerImpl returns an implementation of the MsgServer interface 12 | // for the provided Keeper. 13 | func NewMsgServerImpl(keeper Keeper) types.MsgServer { 14 | return &msgServer{Keeper: keeper} 15 | } 16 | 17 | var _ types.MsgServer = msgServer{} 18 | -------------------------------------------------------------------------------- /x/anone/keeper/msg_server_test.go: -------------------------------------------------------------------------------- 1 | package keeper_test 2 | 3 | import ( 4 | "context" 5 | "testing" 6 | 7 | sdk "github.com/cosmos/cosmos-sdk/types" 8 | keepertest "github.com/notional-labs/anone/testutil/keeper" 9 | "github.com/notional-labs/anone/x/anone/keeper" 10 | "github.com/notional-labs/anone/x/anone/types" 11 | ) 12 | 13 | func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) { 14 | k, ctx := keepertest.AnoneKeeper(t) 15 | return keeper.NewMsgServerImpl(*k), sdk.WrapSDKContext(ctx) 16 | } 17 | -------------------------------------------------------------------------------- /x/anone/types/codec.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "github.com/cosmos/cosmos-sdk/codec" 5 | cdctypes "github.com/cosmos/cosmos-sdk/codec/types" 6 | // this line is used by starport scaffolding # 1 7 | "github.com/cosmos/cosmos-sdk/types/msgservice" 8 | ) 9 | 10 | func RegisterCodec(cdc *codec.LegacyAmino) { 11 | // this line is used by starport scaffolding # 2 12 | } 13 | 14 | func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { 15 | // this line is used by starport scaffolding # 3 16 | 17 | msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) 18 | } 19 | 20 | var ( 21 | amino = codec.NewLegacyAmino() 22 | ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) 23 | ) 24 | -------------------------------------------------------------------------------- /x/anone/types/errors.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // DONTCOVER 4 | 5 | import ( 6 | sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" 7 | ) 8 | 9 | // x/anone module sentinel errors 10 | var ( 11 | ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") 12 | ) 13 | -------------------------------------------------------------------------------- /x/anone/types/expected_keepers.go: -------------------------------------------------------------------------------- 1 | package types 2 | -------------------------------------------------------------------------------- /x/anone/types/genesis.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | // this line is used by starport scaffolding # genesis/types/import 5 | ) 6 | 7 | // DefaultIndex is the default capability global index 8 | const DefaultIndex uint64 = 1 9 | 10 | // DefaultGenesis returns the default Capability genesis state 11 | func DefaultGenesis() *GenesisState { 12 | return &GenesisState{ 13 | // this line is used by starport scaffolding # genesis/types/default 14 | } 15 | } 16 | 17 | // Validate performs basic genesis state validation returning an error upon any 18 | // failure. 19 | func (gs GenesisState) Validate() error { 20 | // this line is used by starport scaffolding # genesis/types/validate 21 | 22 | return nil 23 | } 24 | -------------------------------------------------------------------------------- /x/anone/types/genesis_test.go: -------------------------------------------------------------------------------- 1 | package types_test 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/notional-labs/anone/x/anone/types" 7 | "github.com/stretchr/testify/require" 8 | ) 9 | 10 | func TestGenesisState_Validate(t *testing.T) { 11 | for _, tc := range []struct { 12 | desc string 13 | genState *types.GenesisState 14 | valid bool 15 | }{ 16 | { 17 | desc: "default is valid", 18 | genState: types.DefaultGenesis(), 19 | valid: true, 20 | }, 21 | { 22 | desc: "valid genesis state", 23 | genState: &types.GenesisState{ 24 | // this line is used by starport scaffolding # types/genesis/validField 25 | }, 26 | valid: true, 27 | }, 28 | // this line is used by starport scaffolding # types/genesis/testcase 29 | } { 30 | t.Run(tc.desc, func(t *testing.T) { 31 | err := tc.genState.Validate() 32 | if tc.valid { 33 | require.NoError(t, err) 34 | } else { 35 | require.Error(t, err) 36 | } 37 | }) 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /x/anone/types/keys.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | const ( 4 | // ModuleName defines the module name 5 | ModuleName = "anone" 6 | 7 | // StoreKey defines the primary module store key 8 | StoreKey = ModuleName 9 | 10 | // RouterKey is the message route for slashing 11 | RouterKey = ModuleName 12 | 13 | // QuerierRoute defines the module's query routing key 14 | QuerierRoute = ModuleName 15 | 16 | // MemStoreKey defines the in-memory store key 17 | MemStoreKey = "mem_anone" 18 | ) 19 | 20 | func KeyPrefix(p string) []byte { 21 | return []byte(p) 22 | } 23 | -------------------------------------------------------------------------------- /x/anone/types/types.go: -------------------------------------------------------------------------------- 1 | package types 2 | --------------------------------------------------------------------------------