Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Filecoin networks. #1567

Merged
merged 9 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions _data/chains/eip155-314.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Filecoin — Mainnet",
"chain": "FIL",
"status": "incubating",
"rpc": [],
Copy link
Contributor

Choose a reason for hiding this comment

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

For rpc we can add:

"rpc" [
     "https://api.node.glif.io/rpc/v0"
].

Copy link
Contributor Author

@raulk raulk Sep 15, 2022

Choose a reason for hiding this comment

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

Sure, I was under the impression that these RPCs needed to follow the Ethereum JSON-RPC interface, hence why I left them blank while that implementation is underway. Happy to add these.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. Can leave it blank for now, this is for EVM flavoured chains only, while the rest of CAIP is setting the standards on a per chain basis for things like wallet clients that want to talk across them.

"faucets": [],
"nativeCurrency": {
"name": "FIL",
raulk marked this conversation as resolved.
Show resolved Hide resolved
"symbol": "FIL",
"decimals": 18
},
"infoURL": "https://filecoin.io",
"shortName": "filecoin",
Copy link
Contributor

@eshon eshon Sep 15, 2022

Choose a reason for hiding this comment

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

isn't it
shortname: "fil",
?

Copy link
Contributor Author

@raulk raulk Sep 15, 2022

Choose a reason for hiding this comment

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

I've never seen the Filecoin network addressed as purely "fil", or "fil network".

Copy link
Contributor

Choose a reason for hiding this comment

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

"icon": "filecoin",
"chainId": 314,
"networkId": 314,
"slip44": 461,
"explorers": [
raulk marked this conversation as resolved.
Show resolved Hide resolved
raulk marked this conversation as resolved.
Show resolved Hide resolved
{
"name": "Filfox",
"url": "https://filfox.info/en",
"standard": "none"
},
{
"name": "Filscan",
"url": "https://filscan.io/",
"standard": "none"
},
{
"name": "Filscout",
"url": "https://filscout.io/en/",
"standard": "none"
}
]
}
21 changes: 21 additions & 0 deletions _data/chains/eip155-3141.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Filecoin — Buildernet",
"chain": "FIL",
"status": "incubating",
"rpc": [],
"faucets": [],
"nativeCurrency": {
"name": "FIL",
"symbol": "FIL",
"decimals": 18
},
"infoURL": "https://filecoin.io",
"shortName": "filecoin",
"icon": "filecoin",
"chainId": 3141,
"networkId": 3141,
"slip44": 461,
raulk marked this conversation as resolved.
Show resolved Hide resolved
"explorers": [

]
}
25 changes: 25 additions & 0 deletions _data/chains/eip155-31415.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "Filecoin — Wallaby testnet",
"chain": "FIL",
"status": "incubating",
"rpc": [],
Copy link
Contributor

Choose a reason for hiding this comment

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

For rpc we can add:

"rpc" [
     "https://wallaby.node.glif.io/rpc/v0"
].

"faucets": [],
raulk marked this conversation as resolved.
Show resolved Hide resolved
"nativeCurrency": {
"name": "tFIL",
"symbol": "tFIL",
"decimals": 18
},
"infoURL": "https://filecoin.io",
"shortName": "filecoin",
"icon": "filecoin",
"chainId": 31415,
"networkId": 31415,
"slip44": 461,
raulk marked this conversation as resolved.
Show resolved Hide resolved
"explorers": [
{
"name": "Filscan",
"url": "http://wallaby.filscan.io/",
"standard": "none"
}
]
}
30 changes: 30 additions & 0 deletions _data/chains/eip155-314159.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "Filecoin — Calibration testnet",
"chain": "FIL",
"status": "incubating",
"rpc": [],
Copy link
Contributor

Choose a reason for hiding this comment

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

For rpc we can add:

"rpc" [
     "https://api.calibration.node.glif.io/rpc/v0"
].

"faucets": [],
raulk marked this conversation as resolved.
Show resolved Hide resolved
"nativeCurrency": {
"name": "tFIL",
"symbol": "tFIL",
"decimals": 18
},
"infoURL": "https://filecoin.io",
"shortName": "filecoin",
"icon": "filecoin",
"chainId": 314159,
"networkId": 314159,
"slip44": 461,
raulk marked this conversation as resolved.
Show resolved Hide resolved
"explorers": [
{
"name": "Filscan",
"url": "https://calibration.filscan.io/",
"standard": "none"
},
{
"name": "Filscout",
"url": "https://calibration.filscout.com/en",
"standard": "none"
}
]
}
21 changes: 21 additions & 0 deletions _data/chains/eip155-3141592.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Filecoin — Butterfly testnet",
"chain": "FIL",
"status": "incubating",
"rpc": [],
"faucets": [],
raulk marked this conversation as resolved.
Show resolved Hide resolved
"nativeCurrency": {
"name": "tFIL",
"symbol": "tFIL",
"decimals": 18
},
"infoURL": "https://filecoin.io",
"shortName": "filecoin",
"icon": "filecoin",
"chainId": 3141592,
"networkId": 3141592,
"slip44": 461,
raulk marked this conversation as resolved.
Show resolved Hide resolved
"explorers": [

]
}
21 changes: 21 additions & 0 deletions _data/chains/eip155-31415926.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Filecoin — Local testnet",
"chain": "FIL",
"status": "incubating",
"rpc": [],
"faucets": [],
"nativeCurrency": {
"name": "tFIL",
"symbol": "tFIL",
"decimals": 18
},
"infoURL": "https://filecoin.io",
"shortName": "filecoin",
"icon": "filecoin",
"chainId": 31415926,
"networkId": 31415926,
"slip44": 461,
raulk marked this conversation as resolved.
Show resolved Hide resolved
"explorers": [

]
}
8 changes: 8 additions & 0 deletions _data/icons/filecoin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"url": "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",
"width": 1000,
"height": 1000,
"format": "png"
}
]