Skip to content

Commit b039317

Browse files
add missing icons & update web3icons validation logic (#84)
* add missing icons * update web3icon types to match the library * add a warning if web3icon is missing on a network * use fileName for the web3icons icon matching * run generate:table * bump version * tweak web3icon validation * update moonriver, zora web3icons --------- Co-authored-by: YaroShkvorets <[email protected]>
1 parent 7838af2 commit b039317

File tree

11 files changed

+182
-159
lines changed

11 files changed

+182
-159
lines changed

docs/networks-table.md

Lines changed: 134 additions & 134 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.6.39",
2+
"version": "0.6.40",
33
"private": true,
44
"type": "module",
55
"scripts": {

registry/cosmos/mantra-mainnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"blockType": "sf.cosmos.type.v2.Block",
2525
"bufUrl": "https://buf.build/streamingfast/firehose-cosmos",
2626
"bytesEncoding": "hex"
27-
}
27+
},
28+
"icon": { "web3Icons": { "name": "mantra" } }
2829
}

registry/cosmos/mantra-testnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"blockType": "sf.cosmos.type.v2.Block",
2727
"bufUrl": "https://buf.build/streamingfast/firehose-cosmos",
2828
"bytesEncoding": "hex"
29-
}
29+
},
30+
"icon": { "web3Icons": { "name": "mantra" } }
3031
}

registry/eip155/botanix-testnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"evmExtendedModel": false,
2929
"bufUrl": "https://buf.build/streamingfast/firehose-ethereum",
3030
"bytesEncoding": "hex"
31-
}
31+
},
32+
"icon": { "web3Icons": { "name": "botanix" } }
3233
}

registry/eip155/expchain-testnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"evmExtendedModel": false,
2929
"bufUrl": "https://buf.build/streamingfast/firehose-ethereum",
3030
"bytesEncoding": "hex"
31-
}
31+
},
32+
"icon": { "web3Icons": { "name": "expchain" } }
3233
}

registry/eip155/lens-testnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"evmExtendedModel": false,
2929
"bufUrl": "https://buf.build/streamingfast/firehose-ethereum",
3030
"bytesEncoding": "hex"
31-
}
31+
},
32+
"icon": { "web3Icons": { "name": "lens" } }
3233
}

registry/eip155/moonriver.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
"bytesEncoding": "hex"
3636
},
3737
"icon": {
38-
"web3Icons": { "name": "moonriver", "variants": ["mono", "branded"] }
38+
"web3Icons": { "name": "moonriver" }
3939
}
4040
}

registry/eip155/zora.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
"bufUrl": "https://buf.build/streamingfast/firehose-ethereum",
4343
"bytesEncoding": "hex"
4444
},
45-
"icon": { "web3Icons": { "name": "zora" } }
45+
"icon": { "web3Icons": { "name": "zora", "variants": ["branded"] } }
4646
}

src/utils/web3icons.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
export type Variants = "branded" | "mono";
1+
export type Variants = "branded" | "mono" | "background";
22

33
export interface Web3IconsNetwork {
44
id: string;
55
name: string;
6+
fileName: string;
67
variants: Variants[];
78
nativeCoinId?: string;
89
shortName?: string;
910
chainId?: number;
11+
caip2id: string;
1012
}
1113

1214
export async function fetchWeb3NetworkIcons(): Promise<Web3IconsNetwork[]> {

0 commit comments

Comments
 (0)