Adera One is committed to product development and service improvement, and contributes its share to the infrastructure of the blockchain world. AOS is a small part of the development prospect.
Adera One Smart Chain (AOS) is a smart contract chain that supports up to 101 validators. Aside from shorter time for block generation and lower fees for transactions, AOS is also fully compatible with Ethereum virtual machine(EVM) and protocols while supporting high-performance transactions. And to achieve that, the easiest solution is to develop based on go-ethereum fork, as we respect the great work of Ethereum very much.
- Decentralization: Permission-free, anyone can become a validator by staking
ADR. - EVM compatibility: Fully compatible with Ethereum virtual machine(EVM), which means that almost all DApps, ecosystem components and tools on Ethereum can be migrated to
AOSdirectly or with very small changes. - High performance: 600+ TPS, 3s block time
ADR on AOS runs the same way as ETH runs on Ethereum, and its main functions are:
- As block reward for validators
- To pay for the gas for transfers and contract calls on
AOS - To pay for the transaction fees for deploying smart contracts on
AOS - To be delegated to the selected validators
For prerequisites and detailed build instructions please read the Compile.
Building sprd requires both a Go (version 1.13 or later) and a C compiler. You can install
them using your favourite package manager. Once the dependencies are installed, run
make sprdGoing through all the possible command line flags is out of scope here (please consult our
CLI),
but we've enumerated a few common parameter combos to get you up to speed quickly
on how you can run your own sprd instance.
- 1T of SSD storage for mainnet, 500G of SSD storage for testnet.
- 16 cores of CPU and 32 gigabytes of memory (RAM) for mainnet.
- 4 cores of CPU and 8 gigabytes of memory (RAM) for testnet.
- A broadband Internet connection with upload/download speeds of at least 10 megabyte per second
By far the most common scenario is people wanting to simply interact with the AOS
network: create accounts; transfer funds; deploy and interact with contracts. For this
particular use-case the user doesn't care about years-old historical data, so we can
fast-sync quickly to the current state of the network. To do so:
$ sprd consoleThis command will:
- Start
sprdin fast sync mode (default, can be changed with the--syncmodeflag), causing it to download more data in exchange for avoiding processing the entire history of the Ethereum network, which is very CPU intensive. - Start up
sprd's built-in interactive JavaScript console, (via the trailingconsolesubcommand) through which you can invoke all officialweb3methods as well assprd's own management APIs. This tool is optional and if you leave it out you can always attach to an already runningsprdinstance withsprd attach.
As an alternative to passing the numerous flags to the sprd binary, you can also pass a
configuration file via:
$ sprd --config /path/to/your_config.tomlAs a developer, sooner rather than later you'll want to start interacting with sprd and the
AOS network via your own programs and not manually through the console. To aid
this, sprd has built-in support for a JSON-RPC based APIs (standard APIs
and specific APIs).
These can be exposed via HTTP, WebSockets and IPC (UNIX sockets on UNIX based
platforms, and named pipes on Windows).
The IPC interface is enabled by default and exposes all the APIs supported by sprd,
whereas the HTTP and WS interfaces need to manually be enabled and only expose a
subset of APIs due to security reasons. These can be turned on/off and configured as
you'd expect.
HTTP based JSON-RPC API options:
--httpEnable the HTTP-RPC server--http.addrHTTP-RPC server listening interface (default:localhost)--http.portHTTP-RPC server listening port (default:8545)--http.apiAPI's offered over the HTTP-RPC interface (default:eth,net,web3)--http.corsdomainComma separated list of domains from which to accept cross origin requests (browser enforced)--wsEnable the WS-RPC server--ws.addrWS-RPC server listening interface (default:localhost)--ws.portWS-RPC server listening port (default:8546)--ws.apiAPI's offered over the WS-RPC interface (default:eth,net,web3)--ws.originsOrigins from which to accept websockets requests--ipcdisableDisable the IPC-RPC server--ipcapiAPI's offered over the IPC-RPC interface (default:admin,debug,eth,miner,net,personal,shh,txpool,web3)--ipcpathFilename for IPC socket/pipe within the datadir (explicit paths escape it)
You'll need to use your own programming environments' capabilities (libraries, tools, etc) to
connect via HTTP, WS or IPC to a sprd node configured with the above flags and you'll
need to speak JSON-RPC on all transports. You
can reuse the same connection for multiple requests!
Note: Please understand the security implications of opening up an HTTP/WS based
transport before doing so! Hackers on the internet are actively trying to subvert
AOS nodes with exposed APIs! Further, all browser tabs can access locally
running web servers, so malicious web pages could try to subvert locally available
APIs!
Thank you for considering to help out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!
If you'd like to contribute to AOS, please fork, fix, commit and send a pull request
for the maintainers to review and merge into the main code base. If you wish to submit
more complex changes though, please contact to the core developer
to ensure those changes are in line with the general philosophy of the project and/or get
some early feedback which can make both your efforts much lighter as well as our review
and merge procedures quick and simple.
Please make sure your contributions adhere to our coding guidelines:
- Code must adhere to the official Go formatting guidelines (i.e. uses gofmt).
- Code must be documented adhering to the official Go commentary guidelines.
- Pull requests need to be based on and opened against the
masterbranch. - Commit messages should be prefixed with the package(s) they modify.
- E.g. "eth, rpc: make trace configs optional"
Please see the Developers' Guide for more details on configuring your environment, managing project dependencies, and testing procedures.
The AOS library (i.e. all code outside of the cmd directory) is licensed under the
GNU Lesser General Public License v3.0,
also included in our repository in the COPYING.LESSER file.
The AOS binaries (i.e. all code inside of the cmd directory) is licensed under the
GNU General Public License v3.0, also
included in our repository in the COPYING file.