Skip to content

Commit

Permalink
Merge pull request #200 from cosmology-tech/eason/chain-template
Browse files Browse the repository at this point in the history
bug fixed for chain-template
  • Loading branch information
marslavish committed Aug 20, 2024
2 parents c6772e9 + c342c76 commit 3e288bd
Show file tree
Hide file tree
Showing 8 changed files with 14,347 additions and 64 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/run-tests-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,18 @@ jobs:
- name: Set up Yarn
uses: threeal/setup-yarn-action@v2.0.0

- name: Get last git commit hash
run: |
echo "DIFF_HASH=$(git log -1 --pretty=format:%H)" >> $GITHUB_ENV
- name: Cache NextJS
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
#key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ env.DIFF_HASH }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
run: |
cca --example nft --name nft
cd nft
touch yarn.lock
yarn install
yarn build
- name: authz
Expand Down
14 changes: 4 additions & 10 deletions examples/nft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@
"locks": "npm run locks:remove && npm run locks:create",
"watch:codegen": "npx graphql-code-generator --config ./config/codegen.ts --watch"
},
"resolutions": {
"react": "18.2.0",
"react-dom": "18.2.0",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9"
},
"dependencies": {
"@chain-registry/types": "0.17.0",
"@chain-registry/types": "^0.16.0",
"@cosmjs/cosmwasm-stargate": "0.31.3",
"@cosmjs/stargate": "0.32.3",
"@cosmos-kit/react": "2.17.0",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@interchain-ui/react": "^1.23.29",
"@interchain-ui/react": "1.23.29",
"@interchain-ui/react-no-ssr": "^0.1.6",
"@tanstack/react-query": "4.32.0",
"bignumber.js": "9.1.0",
Expand All @@ -49,8 +43,8 @@
"@types/node": "^20.14.6",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "8.56.0",
"eslint-config-next": "14.1.0",
"eslint": "8.57.0",
"eslint-config-next": "14.2.3",
"generate-lockfile": "0.0.12",
"typescript": "^5.1.6"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/nft/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function getLogo(from: Asset | Chain) {

export function getChainLogo(name: string) {
const chain = chains.find(chain => chain.chain_name === name)
return chain ? getLogo(chain) : null;
return chain ? getLogo(chain as any) : null;
}

export function getStargazeProfileLink(address: string | undefined) {
Expand Down
Loading

0 comments on commit 3e288bd

Please sign in to comment.