Skip to content

Commit

Permalink
feat(redux): adding new algonode ipfs gateway (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev authored Oct 20, 2022
1 parent 587046d commit b01df5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const moduleExports = {
'algoworld-nft.com',
'glitchtip.com',
'ipfs.io',
'ipfs.algonode.xyz',
'jsonkeeper.com',
],
},
Expand Down
1 change: 1 addition & 0 deletions src/components/Headers/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ const NavBar = () => {
label={`IPFS Gateway`}
value={gateway}
values={[
IpfsGateway.ALGONODE_IO,
IpfsGateway.DWEB_LINK,
IpfsGateway.IPFS_IO,
IpfsGateway.CLOUDFLARE_IPFS,
Expand Down
1 change: 1 addition & 0 deletions src/models/Gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export enum IpfsGateway {
DWEB_LINK = `dweb.link`,
IPFS_IO = `ipfs.io`,
CLOUDFLARE_IPFS = `cloudflare-ipfs.com`,
ALGONODE_IO = `ipfs.algonode.xyz`,
}
4 changes: 2 additions & 2 deletions src/redux/slices/walletConnectSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const initialState = {
decimals: 6,
offeringAmount: 0,
requestingAmount: 0,
imageUrl: EMPTY_ASSET_IMAGE_URL(IpfsGateway.DWEB_LINK),
imageUrl: EMPTY_ASSET_IMAGE_URL(IpfsGateway.ALGONODE_IO),
name: `Algo`,
unitName: `Algo`,
},
Expand All @@ -71,7 +71,7 @@ const initialState = {
fetchingPackPurchaseTxns: false,
selectedDepositAsset: undefined,
chain: CHAIN_TYPE,
gateway: IpfsGateway.DWEB_LINK,
gateway: IpfsGateway.ALGONODE_IO,
fetchingAccountAssets: false,
} as WalletConnectState;

Expand Down

1 comment on commit b01df5c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for algoworld-explorer ready!

✅ Preview
https://algoworld-explorer-ivq2ctp0s-algoworldexplorer.vercel.app

Built with commit b01df5c.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.