Skip to content

Commit

Permalink
chore: rename asset paths in code
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrem committed Jan 18, 2024
1 parent 3fd588f commit 40612c7
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const CosmosChainData = {

export const CosmosMetadata: NamespaceMetadata = {
"cosmoshub-4": {
logo: "/assets/" + "cosmos:cosmoshub-4.png",
logo: "/assets/" + "cosmos-cosmoshub-4.png",
rgb: "27, 31, 53",
},
};
Expand Down
24 changes: 12 additions & 12 deletions advanced/dapps/react-dapp-v2-cosmos-provider/src/chains/eip155.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,55 +21,55 @@ export const EIP155Colors = {
export const EIP155Metadata: NamespaceMetadata = {
"1": {
name: "Ethereum",
logo: "/assets/" + "eip155:1.png",
logo: "/assets/" + "eip155-1.png",
rgb: EIP155Colors.ethereum,
},
"5": {
logo: "/assets/" + "eip155:5.png",
logo: "/assets/" + "eip155-5.png",
rgb: EIP155Colors.goerli,
},
"10": {
name: "Optimism",
logo: "/assets/" + "eip155:10.png",
logo: "/assets/" + "eip155-10.png",
rgb: EIP155Colors.optimism,
},
"42": {
logo: "/assets/" + "eip155:42.png",
logo: "/assets/" + "eip155-42.png",
rgb: EIP155Colors.ethereum,
},
"69": {
logo: "/assets/" + "eip155:69.png",
logo: "/assets/" + "eip155-69.png",
rgb: EIP155Colors.optimism,
},
"100": {
logo: "/assets/" + "eip155:100.png",
logo: "/assets/" + "eip155-100.png",
rgb: EIP155Colors.xdai,
},
"137": {
name: "Polygon",
logo: "/assets/" + "eip155:137.png",
logo: "/assets/" + "eip155-137.png",
rgb: EIP155Colors.polygon,
},
"80001": {
logo: "/assets/" + "eip155:80001.png",
logo: "/assets/" + "eip155-80001.png",
rgb: EIP155Colors.polygon,
},
"42161": {
name: "Arbitrum",
logo: "/assets/" + "eip155:42161.png",
logo: "/assets/" + "eip155-42161.png",
rgb: EIP155Colors.arbitrum,
},
"42220": {
name: "Celo",
logo: "/assets/" + "eip155:42220.png",
logo: "/assets/" + "eip155-42220.png",
rgb: EIP155Colors.celo,
},
"44787": {
logo: "/assets/" + "eip155:44787.png",
logo: "/assets/" + "eip155-44787.png",
rgb: EIP155Colors.celo,
},
"421611": {
logo: "/assets/" + "eip155:421611.png",
logo: "/assets/" + "eip155-421611.png",
rgb: EIP155Colors.arbitrum,
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NamespaceMetadata, ChainMetadata, ChainRequestRender } from "../helpers

export const CosmosMetadata: NamespaceMetadata = {
"cosmoshub-4": {
logo: "/assets/" + "cosmos:cosmoshub-4.png",
logo: "/assets/" + "cosmos-cosmoshub-4.png",
rgb: "27, 31, 53",
},
};
Expand Down
24 changes: 12 additions & 12 deletions advanced/dapps/react-dapp-v2-with-ethers/src/chains/eip155.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,55 +129,55 @@ export const EIP155ChainData = {
export const EIP155Metadata: NamespaceMetadata = {
"1": {
name: "Ethereum",
logo: "/assets/" + "eip155:1.png",
logo: "/assets/" + "eip155-1.png",
rgb: EIP155Colors.ethereum,
},
"5": {
logo: "/assets/" + "eip155:5.png",
logo: "/assets/" + "eip155-5.png",
rgb: EIP155Colors.goerli,
},
"10": {
name: "Optimism",
logo: "/assets/" + "eip155:10.png",
logo: "/assets/" + "eip155-10.png",
rgb: EIP155Colors.optimism,
},
"42": {
logo: "/assets/" + "eip155:42.png",
logo: "/assets/" + "eip155-42.png",
rgb: EIP155Colors.ethereum,
},
"69": {
logo: "/assets/" + "eip155:69.png",
logo: "/assets/" + "eip155-69.png",
rgb: EIP155Colors.optimism,
},
"100": {
logo: "/assets/" + "eip155:100.png",
logo: "/assets/" + "eip155-100.png",
rgb: EIP155Colors.xdai,
},
"137": {
name: "Polygon",
logo: "/assets/" + "eip155:137.png",
logo: "/assets/" + "eip155-137.png",
rgb: EIP155Colors.polygon,
},
"80001": {
logo: "/assets/" + "eip155:80001.png",
logo: "/assets/" + "eip155-80001.png",
rgb: EIP155Colors.polygon,
},
"42161": {
name: "Arbitrum",
logo: "/assets/" + "eip155:42161.png",
logo: "/assets/" + "eip155-42161.png",
rgb: EIP155Colors.arbitrum,
},
"42220": {
name: "Celo",
logo: "/assets/" + "eip155:42220.png",
logo: "/assets/" + "eip155-42220.png",
rgb: EIP155Colors.celo,
},
"44787": {
logo: "/assets/" + "eip155:44787.png",
logo: "/assets/" + "eip155-44787.png",
rgb: EIP155Colors.celo,
},
"421611": {
logo: "/assets/" + "eip155:421611.png",
logo: "/assets/" + "eip155-421611.png",
rgb: EIP155Colors.arbitrum,
},
};
Expand Down
6 changes: 2 additions & 4 deletions advanced/dapps/react-dapp-v2-with-web3js/src/chains/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NamespaceMetadata, ChainMetadata, ChainRequestRender } from "../helpers

export const CosmosMetadata: NamespaceMetadata = {
"cosmoshub-4": {
logo: "/assets/" + "cosmos:cosmoshub-4.png",
logo: "/assets/" + "cosmos-cosmoshub-4.png",
rgb: "27, 31, 53",
},
};
Expand All @@ -18,9 +18,7 @@ export function getChainMetadata(chainId: string): ChainMetadata {
return metadata;
}

export function getChainRequestRender(
request: JsonRpcRequest
): ChainRequestRender[] {
export function getChainRequestRender(request: JsonRpcRequest): ChainRequestRender[] {
return [
{ label: "Method", value: request.method },
{
Expand Down
24 changes: 12 additions & 12 deletions advanced/dapps/react-dapp-v2-with-web3js/src/chains/eip155.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,55 +129,55 @@ export const EIP155ChainData = {
export const EIP155Metadata: NamespaceMetadata = {
"1": {
name: "Ethereum",
logo: "/assets/" + "eip155:1.png",
logo: "/assets/" + "eip155-1.png",
rgb: EIP155Colors.ethereum,
},
"5": {
logo: "/assets/" + "eip155:5.png",
logo: "/assets/" + "eip155-5.png",
rgb: EIP155Colors.goerli,
},
"10": {
name: "Optimism",
logo: "/assets/" + "eip155:10.png",
logo: "/assets/" + "eip155-10.png",
rgb: EIP155Colors.optimism,
},
"42": {
logo: "/assets/" + "eip155:42.png",
logo: "/assets/" + "eip155-42.png",
rgb: EIP155Colors.ethereum,
},
"69": {
logo: "/assets/" + "eip155:69.png",
logo: "/assets/" + "eip155-69.png",
rgb: EIP155Colors.optimism,
},
"100": {
logo: "/assets/" + "eip155:100.png",
logo: "/assets/" + "eip155-100.png",
rgb: EIP155Colors.xdai,
},
"137": {
name: "Polygon",
logo: "/assets/" + "eip155:137.png",
logo: "/assets/" + "eip155-137.png",
rgb: EIP155Colors.polygon,
},
"80001": {
logo: "/assets/" + "eip155:80001.png",
logo: "/assets/" + "eip155-80001.png",
rgb: EIP155Colors.polygon,
},
"42161": {
name: "Arbitrum",
logo: "/assets/" + "eip155:42161.png",
logo: "/assets/" + "eip155-42161.png",
rgb: EIP155Colors.arbitrum,
},
"42220": {
name: "Celo",
logo: "/assets/" + "eip155:42220.png",
logo: "/assets/" + "eip155-42220.png",
rgb: EIP155Colors.celo,
},
"44787": {
logo: "/assets/" + "eip155:44787.png",
logo: "/assets/" + "eip155-44787.png",
rgb: EIP155Colors.celo,
},
"421611": {
logo: "/assets/" + "eip155:421611.png",
logo: "/assets/" + "eip155-421611.png",
rgb: EIP155Colors.arbitrum,
},
};
Expand Down
2 changes: 1 addition & 1 deletion advanced/dapps/react-dapp-v2/src/chains/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const CosmosChainData: ChainsMap = {

export const CosmosMetadata: NamespaceMetadata = {
"cosmoshub-4": {
logo: "/assets/" + "cosmos:cosmoshub-4.png",
logo: "/assets/" + "cosmos-cosmoshub-4.png",
rgb: "27, 31, 53",
},
};
Expand Down
24 changes: 12 additions & 12 deletions advanced/dapps/react-dapp-v2/src/chains/eip155.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,28 +131,28 @@ export const EIP155ChainData: ChainsMap = {
export const EIP155Metadata: NamespaceMetadata = {
"1": {
name: "Ethereum",
logo: "/assets/" + "eip155:1.png",
logo: "/assets/" + "eip155-1.png",
rgb: EIP155Colors.ethereum,
},
"5": {
logo: "/assets/" + "eip155:1.png",
logo: "/assets/" + "eip155-1.png",
rgb: EIP155Colors.ethereum,
},
"10": {
name: "Optimism",
logo: "/assets/" + "eip155:10.png",
logo: "/assets/" + "eip155-10.png",
rgb: EIP155Colors.optimism,
},
"42": {
logo: "/assets/" + "eip155:42.png",
logo: "/assets/" + "eip155-42.png",
rgb: EIP155Colors.ethereum,
},
"420": {
logo: "/assets/" + "eip155:420.png",
logo: "/assets/" + "eip155-420.png",
rgb: EIP155Colors.optimism,
},
"100": {
logo: "/assets/" + "eip155:100.png",
logo: "/assets/" + "eip155-100.png",
rgb: EIP155Colors.xdai,
},
"280": {
Expand All @@ -167,29 +167,29 @@ export const EIP155Metadata: NamespaceMetadata = {
},
"137": {
name: "Polygon",
logo: "/assets/" + "eip155:137.png",
logo: "/assets/" + "eip155-137.png",
rgb: EIP155Colors.polygon,
},
"80001": {
logo: "/assets/" + "eip155:80001.png",
logo: "/assets/" + "eip155-80001.png",
rgb: EIP155Colors.polygon,
},
"42161": {
name: "Arbitrum",
logo: "/assets/" + "eip155:42161.png",
logo: "/assets/" + "eip155-42161.png",
rgb: EIP155Colors.arbitrum,
},
"42220": {
name: "Celo",
logo: "/assets/" + "eip155:42220.png",
logo: "/assets/" + "eip155-42220.png",
rgb: EIP155Colors.celo,
},
"44787": {
logo: "/assets/" + "eip155:44787.png",
logo: "/assets/" + "eip155-44787.png",
rgb: EIP155Colors.celo,
},
"421611": {
logo: "/assets/" + "eip155:421611.png",
logo: "/assets/" + "eip155-421611.png",
rgb: EIP155Colors.arbitrum,
},
};
Expand Down

0 comments on commit 40612c7

Please sign in to comment.