Skip to content

Commit

Permalink
Merge pull request #22 from cosmology-tech/restructure
Browse files Browse the repository at this point in the history
recreate folder structures using boilerplate
  • Loading branch information
Zetazzz authored Jun 13, 2024
2 parents f094491 + b68be5d commit 7beca77
Show file tree
Hide file tree
Showing 360 changed files with 51,084 additions and 32,381 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"quotes": [
"error",
"double",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
Expand Down
10 changes: 1 addition & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
**/node_modules/
test-data.ts
test.ts
test.ts
scripts/test.sh
**/.DS_Store
**/dist
**/yarn-error.log
lerna-debug.log
git-modules/
**/.env.development
.telescope.json
networks/injective/codegen-injective/
lerna-debug.log
191 changes: 191 additions & 0 deletions .telescope.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"protoDirs": [
"./protos"
],
"outPath": "./libs/cosmos-types",
"options": {
"classesUseArrowFunctions": true,
"env": "v-next",
"useSDKTypes": false,
"prototypes": {
"enableRegistryLoader": false,
"enableMessageComposer": false,
"enabled": true,
"parser": {
"keepCase": false
},
"methods": {
"fromJSON": false,
"toJSON": false,
"encode": true,
"decode": true,
"fromPartial": true,
"toAmino": true,
"fromAmino": true,
"fromProto": false,
"toProto": false,
"fromProtoMsg": false,
"toProtoMsg": false,
"toAminoMsg": true,
"fromAminoMsg": true
},
"addTypeUrlToDecoders": false,
"addTypeUrlToObjects": true,
"addAminoTypeToObjects": true,
"typingsFormat": {
"duration": "duration",
"timestamp": "date",
"useExact": false,
"useDeepPartial": true,
"num64": "bigint",
"customTypes": {
"useCosmosSDKDec": false
},
"useTelescopeGeneratedType": true
}
},
"bundle": {
"enabled": false
},
"stargateClients": {
"enabled": false
},
"lcdClients": {
"enabled": false
},
"rpcClients": {
"enabled": true,
"inline": false,
"extensions": false,
"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,
"useGlobalDecoderRegistry": true,
"useUnionTypes": true
},
"aminoEncoding": {
"enabled": true,
"useLegacyInlineEncoding": false,
"disableMsgTypes": false,
"useProtoOptionality": true
}
}
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"codegen"
],
"[typescript]": {
"editor.defaultFormatter": "svipas.prettier-plus"
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
1 change: 1 addition & 0 deletions git-modules/cometbft/cometbft/main
Submodule main added at 43dcd4
1 change: 1 addition & 0 deletions git-modules/cosmos/cosmos-proto/main
Submodule main added at 6749af
1 change: 1 addition & 0 deletions git-modules/cosmos/cosmos-sdk/main
Submodule main added at 05ff7a
1 change: 1 addition & 0 deletions git-modules/cosmos/cosmos-sdk/release/v0.50.x
Submodule v0.50.x added at aeb1e8
1 change: 1 addition & 0 deletions git-modules/cosmos/gogoproto/main
Submodule main added at 6eec97
1 change: 1 addition & 0 deletions git-modules/cosmos/ibc-go/main
Submodule main added at 061a56
1 change: 1 addition & 0 deletions git-modules/cosmos/ics23/master
Submodule master added at 69d869
1 change: 1 addition & 0 deletions git-modules/cosmwasm/wasmd/main
Submodule main added at 21b048
1 change: 1 addition & 0 deletions git-modules/gogo/protobuf/master
Submodule master added at f67b89
1 change: 1 addition & 0 deletions git-modules/googleapis/googleapis/master
Submodule master added at 573205
1 change: 1 addition & 0 deletions git-modules/injectivelabs/sdk-go/master
Submodule master added at 729475
1 change: 1 addition & 0 deletions git-modules/protocolbuffers/protobuf/main
Submodule main added at bbf522
1 change: 1 addition & 0 deletions git-modules/tendermint/tendermint/main
Submodule main added at 35581c
12 changes: 6 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
"^.+\\.tsx?$": [
"ts-jest",
'^.+\\.tsx?$': [
'ts-jest',
{
babelConfig: false,
tsconfig: "tsconfig.json",
tsconfig: 'tsconfig.json',
},
],
},
transformIgnorePatterns: [`/node_modules/*`],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
};
2 changes: 1 addition & 1 deletion libs/cosmos-types/amino/amino.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {}
export {};
Loading

0 comments on commit 7beca77

Please sign in to comment.