![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@orbs-network/polygon
Advanced tools
Important: If you're a validator trying to launch an Orbs node - please read the instructions here.
Polygon generates Terraform code to provision the required AWS resources so that you have a running Orbs node. Once done, the following illustration highlights the created resources expected in your AWS account.
Note: Orbs Polygon is a tool which is very similar to Orbs Nebula. Polygon is the up-to-date tool for the Orbs V2 network replacing Nebula that only supports the deprecated Orbs V1 network.
Prior to running polygon to provision your blockchain node, you need to perform 2 tasks:
ECDSA
keypair which will be used by your node (and is required to run polygon)For Polygon to work properly you should have the following setup:
~/.ssh/id_rsa.pub
you're good to go!
you can check this by running the following in your terminal:
$ cat ~/.ssh/id_rsa.pub
Polygon easily integrates into your terminal by installing the NPM package globally
$ npm install @orbs-network/polygon -g
or if using yarn
$ yarn global add @orbs-network/polygon
Creating a node with the CLI is as simple as this:
$ polygon create --name your-node-name \
--orbs-address d27e2e7398e2582f63d0800330010b3e58952ff6 \
--orbs-private-key 87a210586f57890ae3642c62ceb58f0f0a54e787891054a5a54c80e1da418253
--public-ip 1.2.3.4
--region us-west-2
....
[Lots of Terraform output will come out here]
....
Your node was created successfully!
Provided below is the address of your manager node public IP
The manager IPv4 is: 1.2.3.4
Your node name should be used when wanting to destroy/upgrade
Node name:
your-node-name
Example usage:
polygon destroy --name your-node-name
Please allow time now for your node to finish syncing with the Orbs network
No further actions required at this point
or if you wish to use a less terminal verbose style , you can create a JSON file naming
the required arguments. Let's assume the following your-node-name.json
file and content:
{
"name": "your-node-name",
"awsProfile": "default",
"sshPublicKey": "~/.ssh/id_rsa.pub",
"orbsAddress": "d27e2e7398e2582f63d0800330010b3e58952ff6",
"orbsPrivateKey": "87a210586f57890ae3642c62ceb58f0f0a54e787891054a5a54c80e1da418253",
"publicIp": "1.2.3.4",
"region": "us-west-2",
"nodeSize": "t3.medium",
"nodeCount": 2,
"incomingSshCidrBlocks": ["$MY_IP_ADDRESS/32"]
}
and then we can run the following in our terminal:
$ polygon create -f your-node-name.json
....
[Lots of Terraform output will come out here]
....
Your node was created successfully!
Provided below is the address of your manager node public IP
The manager IPv4 is: 1.2.3.4
Your node name should be used when wanting to destroy/upgrade
Node name:
your-node-name
Example usage:
polygon destroy --name your-node-name
Please allow time now for your node to finish syncing with the Orbs network
No further actions required at this point
You should consider using git
to keep this file up to date and safely backed up.
Destroying is even easier and requires even less arguments
$ polygon destroy --name your-node-name
....
[Lots of Terraform output will come out here]
....
Your node has been successfully destroyed!
At the moment - upgrading the node is not possible directly through Polygon. If you wish to upgrade - please destroy and re-create your node.
node.json
file referenceOption | Mandatory | Type | Description | Default |
---|---|---|---|---|
orbs-address | Yes | string | Orbs node address - attained from Orbs or from our DKG process | |
orbs-private-key | Yes | string | Orbs node private key - attained from Orbs or from our DKG process | |
name | Yes | string | name your node! in case non supplied defaults to a random name | Random UUID |
aws-profile | Optional | string | which aws profile name to use when provisioning. Strongly recommended instead of AWS keys for better security | default |
testnet | Optional | boolean | If supplied, the node will join the Orbs Network testnet instead of the mainnet | false |
public-ip | Mandatory | string | if you wish to attach a static pre-existing EC2 Elastic IP | |
node-count | Optional | number | The amount of worker nodes to deploy (the more - the more vChains you can handle) | 2 |
node-size | Optional | string | The worker node instance size to use | t2.medium |
region | Optional | string | The AWS region to deploy to | us-east-1 |
ssh-public-key | Optional | string | Path to the SSH public key to provision the EC2 machines with | ~/.ssh/id_rsa.pub |
boyarAutoUpdate | Optional | boolean | Enables automatic updates of Boyar | false |
FIXME update the file reference
An Orbs node is currently designed to run on top of AWS. If you want to run in on your own infrastructure, you can check out Boyar, which is a tool that runs the node on top of Docker Swarm. To provision resources on AWS Polygon needs:
Polygon will create a new folder within your machine and will generate Terraform scripts to go into these folder which will be used to deploy a new node.
All parameters can be customized via node.json
file.
Polygon then runs the generated Terraform
code, provisioning the entire infrastructure required.
AWS machine bootstrap script will:
boyar
that uses Docker Swarm to run virtual chains
and other servicesboyar
will start running virtual chains
on your node
and have them sync with the networkAt this point you should be good! Polygon has setup the node
for you.
Make sure Node.js is installed (version 8 or later, we recommend version 10 and up).
Verify with
node -v
$ export AWS_ACCESS_KEY_ID='YOUR_AWS_ACCESS_KEY'
$ export AWS_SECRET_ACCESS_KEY='YOUR_AWS_SECRET_KEY'
$ git clone https://github.com/orbs-network/polygon
$ cd polygon && npm install
$ npm test
Please note that this command will run all of the provided tests which at the moment are end to end and unit tests.
Please consult here
MIT
FAQs
Polygon is a tool to provision new Orbs Hybrid Blockchain nodes
The npm package @orbs-network/polygon receives a total of 7 weekly downloads. As such, @orbs-network/polygon popularity was classified as not popular.
We found that @orbs-network/polygon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.