Skip to content

Commit

Permalink
Merge pull request #44 from cosmology-tech/re-structure
Browse files Browse the repository at this point in the history
Re structure
  • Loading branch information
Zetazzz authored Oct 1, 2024
2 parents 4c39c2b + 94c9e00 commit 17f18a4
Show file tree
Hide file tree
Showing 254 changed files with 35,996 additions and 21,286 deletions.
144 changes: 22 additions & 122 deletions .telescope.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"protoDirs": [
"./protos"
],
"outPath": "./libs/cosmos-types",
"outPath": "./libs/cosmos-types/src",
"options": {
"classesUseArrowFunctions": true,
"env": "v-next",
Expand All @@ -14,20 +14,33 @@
"parser": {
"keepCase": false
},
"includes": {
"protos": [
"cosmos/vesting/v1beta1/vesting.proto",
"cosmos/tx/v1beta1/service.proto",
"cosmos/tx/signing/v1beta1/signing.proto",
"cosmos/tx/v1beta1/tx.proto",
"cosmos/tx/v1beta1/service.proto",
"injective/types/v1beta1/account.proto",
"cosmos/auth/v1beta1/auth.proto",
"cosmos/auth/v1beta1/query.proto",
"cosmos/crypto/secp256k1/keys.proto"
]
},
"methods": {
"fromJSON": false,
"toJSON": false,
"encode": true,
"decode": true,
"fromPartial": true,
"toAmino": true,
"fromAmino": true,
"toAmino": false,
"fromAmino": false,
"fromProto": false,
"toProto": false,
"fromProtoMsg": false,
"toProtoMsg": false,
"toAminoMsg": true,
"fromAminoMsg": true
"toAminoMsg": false,
"fromAminoMsg": false
},
"addTypeUrlToDecoders": false,
"addTypeUrlToObjects": true,
Expand All @@ -41,7 +54,8 @@
"customTypes": {
"useCosmosSDKDec": false
},
"useTelescopeGeneratedType": true
"useTelescopeGeneratedType": true,
"autoFixUndefinedEnumDefault": true
}
},
"bundle": {
Expand All @@ -60,129 +74,15 @@
"camelCase": true,
"enabledServices": [
"Query"
],
"serviceImplement": {
"Msg": {
"type": "Tx"
},
"Query": {
"type": "Query"
}
},
"instantOps": [
{
"className": "QueryImpl",
"include": {
"serviceTypes": [
"Query"
],
"patterns": [
"cosmos.auth.v1beta1.*",
"cosmos.bank.v1beta1.*",
"cosmos.gov.v1beta1.*",
"cosmos.staking.v1beta1.*",
"cosmwasm.wasm.v1.*"
]
},
"nameMapping": {
"Msg": {
"updateAuthParams": "cosmos.auth.v1beta1.updateParams",
"updateBankParams": "cosmos.bank.v1beta1.updateParams",
"updateGovParams": "cosmos.gov.v1beta1.updateParams",
"updateStakingParams": "cosmos.staking.v1beta1.updateParams",
"updateWasmParams": "cosmwasm.wasm.v1.updateParams"
},
"Query": {
"getAuthParams": "cosmos.auth.v1beta1.params",
"getBankParams": "cosmos.bank.v1beta1.params",
"getGovParams": "cosmos.gov.v1beta1.params",
"getStakingParams": "cosmos.staking.v1beta1.params",
"getVote": "cosmos.gov.v1beta1.vote",
"getDeposit": "cosmos.gov.v1beta1.deposit",
"getWasmParams": "cosmwasm.wasm.v1.params"
}
}
},
{
"className": "StargateImpl",
"include": {
"serviceTypes": [
"Tx"
],
"patterns": [
"cosmos.authz.v1beta1.*",
"cosmos.bank.v1beta1.*",
"cosmos.gov.v1beta1.*",
"cosmos.staking.v1beta1.*",
"cosmos.distribution.v1beta1.*",
"ibc.applications.transfer.v1.*"
]
},
"nameMapping": {
"Msg": {
"updateAuthParams": "cosmos.auth.v1beta1.updateParams",
"updateBankParams": "cosmos.bank.v1beta1.updateParams",
"updateGovParams": "cosmos.gov.v1beta1.updateParams",
"updateStakingParams": "cosmos.staking.v1beta1.updateParams",
"updateIBCTransferParams": "ibc.applications.transfer.v1.updateParams",
"updateWasmParams": "cosmwasm.wasm.v1.updateParams"
},
"Query": {
"getAuthParams": "cosmos.auth.v1beta1.params",
"getBankParams": "cosmos.bank.v1beta1.params",
"getGovParams": "cosmos.gov.v1beta1.params",
"getStakingParams": "cosmos.staking.v1beta1.params",
"getVote": "cosmos.gov.v1beta1.vote",
"getDeposit": "cosmos.gov.v1beta1.deposit",
"getWasmParams": "cosmwasm.wasm.v1.params"
}
}
},
{
"className": "CosmWasmStargateImpl",
"include": {
"serviceTypes": [
"Tx"
],
"patterns": [
"cosmos.authz.v1beta1.*",
"cosmos.bank.v1beta1.*",
"cosmos.gov.v1beta1.*",
"cosmos.staking.v1beta1.*",
"cosmos.distribution.v1beta1.*",
"ibc.applications.transfer.v1.*",
"cosmwasm.wasm.v1.*"
]
},
"nameMapping": {
"Msg": {
"updateAuthParams": "cosmos.auth.v1beta1.updateParams",
"updateBankParams": "cosmos.bank.v1beta1.updateParams",
"updateGovParams": "cosmos.gov.v1beta1.updateParams",
"updateStakingParams": "cosmos.staking.v1beta1.updateParams",
"updateIBCTransferParams": "ibc.applications.transfer.v1.updateParams",
"updateWasmParams": "cosmwasm.wasm.v1.updateParams"
},
"Query": {
"getAuthParams": "cosmos.auth.v1beta1.params",
"getBankParams": "cosmos.bank.v1beta1.params",
"getGovParams": "cosmos.gov.v1beta1.params",
"getStakingParams": "cosmos.staking.v1beta1.params",
"getVote": "cosmos.gov.v1beta1.vote",
"getDeposit": "cosmos.gov.v1beta1.deposit",
"getWasmParams": "cosmwasm.wasm.v1.params"
}
}
}
]
},
"interfaces": {
"enabled": true,
"enabled": false,
"useGlobalDecoderRegistry": true,
"useUnionTypes": true
},
"aminoEncoding": {
"enabled": true,
"enabled": false,
"useLegacyInlineEncoding": false,
"disableMsgTypes": false,
"useProtoOptionality": true
Expand Down
18 changes: 17 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"type": "node",
"request": "launch",
"name": "Debug Jest Tests in cosmos",
"name": "Debug Jest Tests in cosmos gov",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--config",
Expand All @@ -20,6 +20,22 @@
"cwd": "${workspaceFolder}/networks/cosmos",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Debug Jest Tests in cosmos token",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--config",
"./jest.starship.config.js",
"--verbose",
"--bail",
"starship/__tests__/token.test.ts"
],
"console": "integratedTerminal",
"cwd": "${workspaceFolder}/networks/cosmos",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
Expand Down
1 change: 0 additions & 1 deletion libs/cosmos-types/amino/amino.ts

This file was deleted.

154 changes: 0 additions & 154 deletions libs/cosmos-types/cosmos.ts

This file was deleted.

18 changes: 0 additions & 18 deletions libs/cosmos-types/cosmos/authz/v1beta1/tx.amino.ts

This file was deleted.

Loading

0 comments on commit 17f18a4

Please sign in to comment.