-
-
Notifications
You must be signed in to change notification settings - Fork 749
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 dchain #2354
add dchain #2354
Changes from 7 commits
1323726
5263512
033bfe5
46a50a5
a04d8ea
38dea6a
d9fd5dd
e232f57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Added dchain chain |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert this change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already reverted There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't be removing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
done |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { chainConfig } from '../../op-stack/chainConfig.js' | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const dchain = /*#__PURE__*/ defineChain({ | ||
...chainConfig, | ||
id: 2716446429837000, | ||
name: 'Dchain', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://dchain-2716446429837000-1.jsonrpc.sagarpc.io'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Dchain Explorer', | ||
url: 'https://dchain-2716446429837000-1.sagaexplorer.io', | ||
apiUrl: 'https://api-dchain-2716446429837000-1.sagaexplorer.io/api', | ||
}, | ||
}, | ||
contracts: { | ||
...chainConfig.contracts, | ||
}, | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { chainConfig } from '../../op-stack/chainConfig.js' | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const dchainTestnet = /*#__PURE__*/ defineChain({ | ||
...chainConfig, | ||
id: 2713017997578000, | ||
name: 'Dchain Testnet', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: [ | ||
'https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io', | ||
], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Dchain Explorer', | ||
url: 'https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io', | ||
apiUrl: | ||
'https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api', | ||
}, | ||
}, | ||
contracts: { | ||
...chainConfig.contracts, | ||
}, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess u can add it to .gitignore for better future PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all done, can u approve?