diff --git a/codegen.yaml b/codegen.yaml new file mode 100644 index 0000000..044bc41 --- /dev/null +++ b/codegen.yaml @@ -0,0 +1,14 @@ +overwrite: true +config: + # omitOperationSuffix: true + skipTypeNameForRoot: true + assumeValid: true +generates: + ./src/graphql/types.tsx: + documents: + - './src/**/*.graphql' + schema: ${VITE_APP_GRAPHQL_URL} + plugins: + - 'typescript' + - 'typescript-operations' + - 'typescript-react-apollo' # To generate custom hooks per query diff --git a/example.env.file b/example.env.file index bd18ba1..973f7da 100644 --- a/example.env.file +++ b/example.env.file @@ -1,6 +1,15 @@ +VITE_APP_GRAPHQL_URL=http://localhost:8080/v1/graphql +VITE_APP_RAPHQL_WS=ws://localhost:8080/v1/graphql VITE_APP_RPC="http://localhost:26657" VITE_APP_API="http://localhost:1317" VITE_APP_EXPLORER_PUBLIC_ADDRESS='http://localhost:3000' +VITE_APP_STAKING_URL='http://localhost:3000/validators' VITE_APP_CHAIN_NAME="CudosTestnet-Local" -VITE_APP_CHAIN_ID="cudos-network" +VITE_APP_CHAIN_ID="cudos-local-network" VITE_APP_GAS_PRICE="5000000000000" +VITE_APP_FIREBASE_API_KEY="AddressBook123" +VITE_APP_FIREBASE_AUTH_DOMAIN="address-book-123.firebaseapp.com" +VITE_APP_FIREBASE_PROJECT_ID="address-book-123" +VITE_APP_FIREBASE_AUTH_EMAIL="admin@multisig.cudos" +VITE_APP_FIREBASE_AUTH_PASSWORD="123123" +VITE_APP_FIREBASE_COLLECTION_NAME="address-book" \ No newline at end of file diff --git a/index.html b/index.html index a4aba10..74e3087 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,11 @@