-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify network infos and add IOTA EVM testnet
- Loading branch information
1 parent
4f5e396
commit 0a51d5e
Showing
10 changed files
with
244 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { AddToMetaMaskButton } from '@theme/AddToMetaMaskButton'; | ||
import { Networks } from '@theme/constant'; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs groupId='network'> | ||
<TabItem value='iota_testnet' label='IOTA EVM Testnet'> | ||
<AddToMetaMaskButton {...Networks['iota_testnet']}/> | ||
</TabItem> | ||
<TabItem value='shimmer' label='ShimmerEVM'> | ||
<AddToMetaMaskButton {...Networks['shimmer']}/> | ||
</TabItem> | ||
<TabItem value='shimmer_testnet' label='ShimmerEVM Testnet'> | ||
<AddToMetaMaskButton {...Networks['shimmer_testnet']}/> | ||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
docs/build/isc/v1.0.0-rc.6/docs/_partials/_hardhat_config.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import CodeBlock from '@theme/CodeBlock'; | ||
import { Networks } from '@theme/constant'; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs groupId='network'> | ||
<TabItem value='shimmer_testnet' label='ShimmerEVM Testnet'> | ||
|
||
<CodeBlock language="js"> | ||
{` | ||
networks: { | ||
'shimmerevm-testnet': { | ||
url: '${Networks['shimmer_testnet'].evm.rpcUrls[0]}', | ||
chainId: ${parseInt(Networks['shimmer_testnet'].evm.chainId)}, | ||
accounts: [YOUR PRIVATE KEY], | ||
}, | ||
} | ||
`} | ||
</CodeBlock> | ||
|
||
</TabItem> | ||
<TabItem value='iota_testnet' label='IOTA EVM Testnet'> | ||
|
||
<CodeBlock language="js"> | ||
{` | ||
networks: { | ||
'iotaevm-testnet': { | ||
url: '${Networks['iota_testnet'].evm.rpcUrls[0]}', | ||
chainId: ${parseInt(Networks['iota_testnet'].evm.chainId)}, | ||
accounts: [YOUR PRIVATE KEY], | ||
}, | ||
} | ||
`} | ||
</CodeBlock> | ||
|
||
</TabItem> | ||
<TabItem value='shimmer' label='ShimmerEVM'> | ||
|
||
<CodeBlock language="js"> | ||
{` | ||
networks: { | ||
'shimmerevm': { | ||
url: '${Networks['shimmer'].evm.rpcUrls[0]}', | ||
chainId: ${parseInt(Networks['shimmer'].evm.chainId)}, | ||
accounts: [YOUR PRIVATE KEY], | ||
}, | ||
} | ||
`} | ||
</CodeBlock> | ||
|
||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.