-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify blockchains integration (#79)
- Loading branch information
1 parent
fe7933a
commit ef0151a
Showing
11 changed files
with
183 additions
and
168 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
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
64 changes: 0 additions & 64 deletions
64
docs/03-core-concepts/06-blockchains-integration/02-context-contract.mdx
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
docs/03-core-concepts/06-blockchains-integration/03-proxy-contract.mdx
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
docs/03-core-concepts/06-blockchains-integration/_category_.json
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs | ||
defaultValue="near" | ||
groupId="protocol" | ||
values={[ | ||
{label: 'NEAR', value: 'near'}, | ||
{label: 'Starknet', value: 'starknet'}, | ||
{label: 'ICP', value: 'icp'}, | ||
]}> | ||
|
||
<TabItem value="near"> | ||
```bash title="Terminal" | ||
merod --node-name node1 init --server-port 2428 --swarm-port 2528 | ||
``` | ||
</TabItem> | ||
<TabItem value="starknet"> | ||
```bash title="Terminal" | ||
merod --node-name node1 init --server-port 2428 --swarm-port 2528 --protocol starknet | ||
``` | ||
</TabItem> | ||
<TabItem value="icp"> | ||
```bash title="Terminal" | ||
merod --node-name node1 init --server-port 2428 --swarm-port 2528 --protocol icp | ||
``` | ||
</TabItem> | ||
|
||
</Tabs> | ||
|
||
:::tip | ||
|
||
A `--protocol` flag defines which chain will be used in the node context. NEAR | ||
is default protocol so it doesn't need to be specified. List of supported | ||
protocols can be found in the | ||
[Blockchains integration](../core-concepts/blockchains-integration) | ||
|
||
::: | ||
|
||
Node configuration file contains protocol defined metada. | ||
|
||
<Tabs | ||
defaultValue="near" | ||
groupId="protocol" | ||
values={[ | ||
{label: 'NEAR', value: 'near'}, | ||
{label: 'Starknet', value: 'starknet'}, | ||
{label: 'ICP', value: 'icp'}, | ||
]}> | ||
|
||
<TabItem value="near"> | ||
![NearConfig](/init/near-config.png) | ||
|
||
</TabItem> | ||
<TabItem value="starknet"> | ||
![SnConfig](/init/sn-config.png) | ||
|
||
</TabItem> | ||
<TabItem value="icp"> | ||
![ICPConfig](/init/icp-config.png) | ||
|
||
</TabItem> | ||
</Tabs> |
Oops, something went wrong.