You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/aurora-chains-demo.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Aurora Chains are dedicated blockchains that go beyond mere Ethereum compatibili
11
11
**custom token & fee mechanics* (e.g., gasless transactions; paying for gas with a custom token; some percentage of any transaction value to be stored in Aurora Chain Treasury, etc.);
12
12
**custom access control* (public vs private chain, who can transact, who can deploy contracts? e.g., NFT-based access to the blockchain, private chain can be built by using a private NEAR shard – [Calimero](https://www.calimero.network/));
13
13
**seamless interoperability* with Aurora, NEAR, and any other Aurora Chains: you can freely move your assets using Rainbow Bridge, call contracts via cross-contract calls, etc.; This is the main difference between Chains and other solutions (like Avalanche or Cosmos). There is no disjointness in between. You can call any smart contract in any other Chain or Near and interact with it freely.
14
-
**tremendous transaction throughput – *we can provide you with dozens of millions of transactions daily for your ecosystem.
14
+
**tremendous transaction throughput* – we can provide you with dozens of millions of transactions daily for your ecosystem.
15
15
16
16
Every Aurora Chain is based upon the [Aurora smart contract.](https://github.com/aurora-is-near/aurora-engine/) Aurora Chain is just another instance of it that can be configured in way that will work in the best way possible to be aligned with your business model and goals. The Aurora Labs team will gladly help you maintain and support your chain.
17
17
@@ -112,7 +112,7 @@ We now notice that your Aurora Innovation balance has been topped up in the top-
We will see there our bridge transfer which has been done using a call to the NEP-141 token:\
115
-
*aaaaaa20d9e0e2461697782ef11675f668207961.factory.bridge.near*which represent AURORA token on NEAR. And that balance of the [aurora-silo-dev.near](https://nearblocks.io/address/aurora-silo-dev.near) has been topped up, which is our Aurora Chain contract on NEAR, the little brother of the [aurora.near,](https://nearblocks.io/address/aurora.near) but with the same capabilities in a nutshell.
115
+
*aaaaaa20d9e0e2461697782ef11675f668207961.factory.bridge.near*which represent AURORA token on NEAR. And that balance of the [aurora-silo-dev.near](https://nearblocks.io/address/aurora-silo-dev.near) has been topped up, which is our Aurora Chain contract on NEAR, the little brother of the [aurora.near,](https://nearblocks.io/address/aurora.near) but with the same capabilities in a nutshell.
Copy file name to clipboardExpand all lines: blog/aurora-cloud-borealis-business.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ Borealis Business is a transaction processing and accounting service that allows
16
16
17
17
Aurora has a relaying architecture mapping Aurora to NEAR transactions, separating the origination and payment. At the core of the Borealis Business is the Rule Engine (BBRE), which oversees this transaction relaying to fulfill its cost management goals. It allows the transfer of transaction costs to a third party–typically a decentralized app (dApp)–that seeks to cover its users' fees. This way, businesses can make their users' experience friction-free by shouldering transaction fees.
18
18
19
-
Companies can establish Customer Deals through the Rule Engine by setting specific rules determining who should pay for a transaction and under what conditions. E.g., incoming transactions to the Aurora+ staking contract are now made free in this way. The strategies which Rule Engine allows are particularly advantageous for companies seeking to offer region-specific or time-bound promotions. For instance, businesses can provide free transactions exclusively to their European customers around the clock while extending this offer to customers from other regions only on weekends. This level of customization empowers companies to accommodate diverse business models and opens up possibilities for novel concepts, including cross-business interactions.
19
+
Companies can establish Customer Deals through the Rule Engine by setting specific rules determining who should pay for a transaction and under what conditions. E.g., incoming transactions to the Aurora+ staking contract are now made free in this way. The strategies which Rule Engine allows are particularly advantageous for companies seeking to offer region-specific or time-bound promotions.
20
+
21
+
For instance, businesses can provide free transactions exclusively to their European customers around the clock while extending this offer to customers from other regions only on weekends. This level of customization empowers companies to accommodate diverse business models and opens up possibilities for novel concepts, including cross-business interactions.
In the blockchain world, relayers are off-chain facilitators of data exchange and transactions between blockchain networks and/or layers. They are used primarily in decentralized finance applications, cross-chain communication, and Layer 2 solutions, like sidechains or state channels. In general, relayers listen for events and transactions from one point and then submit the corresponding data or transactions to another. For that, they can charge fees for their services, incentivizing them to operate and maintain their infrastructure.
10
10
11
-
Initially developed in-house at NEAR, the Aurora EVM is the official EVM for the NEAR ecosystem. Powered by the SputnikVM, it accomplishes a 1:1 experience with the Ethereum protocol. This compatibility between Aurora and Ethereum is achieved by the **Aurora Relayer, **a****JSON-RPC compatible server with Ethereum's [Web3 API](https://eth.wiki/json-rpc/API) for the [Aurora Engine. ](https://github.com/aurora-is-near/aurora-engine)It has its own internal database to serve multiple read methods and an indexer that is constantly following the head and indexing blocks, transactions and logs to that internal database
11
+
Initially developed in-house at NEAR, the Aurora EVM is the official EVM for the NEAR ecosystem. Powered by the SputnikVM, it accomplishes a 1:1 experience with the Ethereum protocol. This compatibility between Aurora and Ethereum is achieved by the **Aurora Relayer**, a JSON-RPC compatible server with Ethereum's [Web3 API](https://eth.wiki/json-rpc/API) for the [Aurora Engine](https://github.com/aurora-is-near/aurora-engine)It has its own internal database to serve multiple read methods and an indexer that is constantly following the head and indexing blocks, transactions and logs to that internal database.
12
12
13
13
<!-- truncate -->
14
14
@@ -20,7 +20,9 @@ The Relayer had [its first version](https://github.com/aurora-is-near/aurora-rel
Relayer 2.0 was motivated by the necessity of migrating from JavaScript to a more reliable language like golang that is designed for concurrency and is particularly good at managing multiple connections and resource-intensive tasks, making it very well-suited for the type of high-performance RPC systems required in blockchains. Additionally, it required migrating to a more efficient database system, so it was migrated from `PostgreSQL` to ` badger-db `an embedded key-value database. As a result, there is now a relayer with faster execution speed, lower machine resource usage, and lower data latency that is easier to code, debug, optimize, and deploy. Now, let’s have a general overview of some of the internals of the Relayer.
23
+
Relayer 2.0 was motivated by the necessity of migrating from JavaScript to a more reliable language like golang that is designed for concurrency and is particularly good at managing multiple connections and resource-intensive tasks, making it very well-suited for the type of high-performance RPC systems required in blockchains.
24
+
25
+
Additionally, it required migrating to a more efficient database system, so it was migrated from `PostgreSQL` to `badger-db` an embedded key-value database. As a result, there is now a relayer with faster execution speed, lower machine resource usage, and lower data latency that is easier to code, debug, optimize, and deploy. Now, let’s have a general overview of some of the internals of the Relayer.
24
26
25
27
#### **The JSON-RPC**
26
28
@@ -36,14 +38,20 @@ BadgerDB—our database of choice—is an embeddable, persistent, fast key-value
36
38
37
39
#### **The Indexer**
38
40
39
-
The new embedded indexer continuously reads JSON files generated by the [Aurora Refiner](https://github.com/aurora-is-near/borealis-engine-lib) that populate a local database. The refiner allows users to download all NEAR Blocks and get all information relevant to Aurora. NEAR Blocks data can be consumed from two different sources: the [NEAR data lake](https://docs.near.org/concepts/advanced/near-lake-framework)— a repository of blocks and events from the NEAR network as JSON files on AWS — and an archival instance, [the NEARCore](https://github.com/near/nearcore). In general, Aurora Relayer infrastructure implements an indexer of NEAR blocks, an indexer of blocks from `tar` backups and an indexer of pre-history blocks (height < 34 mln). An open-source repository for the Aurora Refiner can be found [*here*](https://github.com/aurora-is-near/borealis-engine-lib).
41
+
The new embedded indexer continuously reads JSON files generated by the [Aurora Refiner](https://github.com/aurora-is-near/borealis-engine-lib) that populate a local database. The refiner allows users to download all NEAR Blocks and get all information relevant to Aurora.
42
+
43
+
NEAR Blocks data can be consumed from two different sources: the [NEAR data lake](https://docs.near.org/concepts/advanced/near-lake-framework)— a repository of blocks and events from the NEAR network as JSON files on AWS — and an archival instance, [the NEARCore](https://github.com/near/nearcore). In general, Aurora Relayer infrastructure implements an indexer of NEAR blocks, an indexer of blocks from `tar` backups and an indexer of pre-history blocks (height < 34 mln). An open-source repository for the Aurora Refiner can be found [*here*](https://github.com/aurora-is-near/borealis-engine-lib).
40
44
41
45
#### **And more…**
42
46
43
-
In addition, and due to the nature of Aurora’s relayer infrastructure and its interactions with the NEAR network, it was possible to upgrade our internal infrastructure to use our relayer with additions that allow the implementation–among other things–of complex multi-tenant, rule-based accounting systems that support virtually any possible way to account for transactions, to enforce gas prices, pre- or post-run transactions, etc. So it is possible to have users with prepaid fees, prepaid gas, no gas, and many other configurations for distributing gas and fees between relayers, users, and owners of smart contracts. This means that anyone willing to spin a relayer will have access to more sophisticated economic mechanisms for its users or on behalf of others, thus acting the same way ERC-4337 bundlers do, i.e., as validators who earn incentives for completing transactions.
47
+
In addition, and due to the nature of Aurora’s relayer infrastructure and its interactions with the NEAR network, it was possible to upgrade our internal infrastructure to use our relayer with additions that allow the implementation–among other things–of complex multi-tenant, rule-based accounting systems that support virtually any possible way to account for transactions, to enforce gas prices, pre- or post-run transactions, etc.
48
+
49
+
So it is possible to have users with prepaid fees, prepaid gas, no gas, and many other configurations for distributing gas and fees between relayers, users, and owners of smart contracts. This means that anyone willing to spin a relayer will have access to more sophisticated economic mechanisms for its users or on behalf of others, thus acting the same way ERC-4337 bundlers do, i.e., as validators who earn incentives for completing transactions.
44
50
45
51
### **The Future of User Experience**
46
52
47
-
By improving efficiency and reliability and by adding innovative functionality into the relayer, Aurora builders and developers can offer faster, more robust applications and significant improvements to the user’s experience where — among other things — per-transaction fees could be eliminated and accounts could be detached from keys. Therefore, the Aurora Relayer stands as a groundbreaking innovation in the world of decentralised blockchain technologies. Furthermore, as we continue to see rapid advancements and increasing adoption, the Aurora Relayer sets the stage for a more interconnected and efficient future with the potential to unlock unprecedented levels of usability, scalability, security, and cost-effectiveness, ultimately contributing to a more accessible landscape for all types of users.
53
+
By improving efficiency and reliability and by adding innovative functionality into the relayer, Aurora builders and developers can offer faster, more robust applications and significant improvements to the user’s experience where — among other things — per-transaction fees could be eliminated and accounts could be detached from keys.
54
+
55
+
Therefore, the Aurora Relayer stands as a groundbreaking innovation in the world of decentralised blockchain technologies. Furthermore, as we continue to see rapid advancements and increasing adoption, the Aurora Relayer sets the stage for a more interconnected and efficient future with the potential to unlock unprecedented levels of usability, scalability, security, and cost-effectiveness, ultimately contributing to a more accessible landscape for all types of users.
48
56
49
57
If you are interested in getting to know Aurora Relayers in more depth, in our next post, we will teach you how to modify and launch a stand-alone version of the relayer that can be called by a smart contract that can execute functions without charging gas to its callers, stay tuned!
Copy file name to clipboardExpand all lines: blog/building-a-game-using-near-aurora-and-bos.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,9 @@ pub struct GetMoveResponse {
117
117
}
118
118
```
119
119
120
-
The nice thing about this being a stateless contract is that you can interact with it entirely using view calls (essentially using Near as a serverless computation platform). I wrote a [*front-end powered by BOS*](https://alpha.near.org/birchmd.near/widget/tic-tac-toe) to directly interact with this Near contract to illustrate this point. Since no transactions are actually sent to the chain, it’s much more responsive than the final product we’re building toward in this post. But stateless computing has limited applications, so committing transactions on-chain to access the state is still important in real-world use cases. For this, we are making use of Aurora.
120
+
The nice thing about this being a stateless contract is that you can interact with it entirely using view calls (essentially using Near as a serverless computation platform).
121
+
122
+
I wrote a [*front-end powered by BOS*](https://alpha.near.org/birchmd.near/widget/tic-tac-toe) to directly interact with this Near contract to illustrate this point. Since no transactions are actually sent to the chain, it’s much more responsive than the final product we’re building toward in this post. But stateless computing has limited applications, so committing transactions on-chain to access the state is still important in real-world use cases. For this, we are making use of Aurora.
Copy file name to clipboardExpand all lines: blog/communication-from-aurora-to-near-local-testing.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -470,7 +470,9 @@ In this section, we will write a function that calls the `incrementXCC` method i
470
470
471
471
Let's write `increment` function in our test now, which will call the `incrementXCC` from the Aurora's contract. We'll provide as input: (1) aurora engine contract deployed in the sandbox, (2) the near account of the user which will sign the transaction, (3) the counter contract deployed on aurora.
472
472
473
-
Notice that we're going to call the method in the aurora contract, but in this function, the user account ID on Near is provided. We can do this because it is possible to call the aurora's counter contract method by using `call` method from the Aurora Engine contract. In that case, the near user will sign a transaction, but inside the Aurora Engine, there is [an implicit mapping](https://github.com/aurora-is-near/aurora-engine/blob/71980db92a9d4b95d4e1f53954b98e0e8f002a4b/engine-sdk/src/types.rs#L28) between the near account ID and aurora addresses. And it is precisely how we will communicate with the contract in our test.
473
+
Notice that we're going to call the method in the aurora contract, but in this function, the user account ID on Near is provided. We can do this because it is possible to call the aurora's counter contract method by using `call` method from the Aurora Engine contract.
474
+
475
+
In that case, the near user will sign a transaction, but inside the Aurora Engine, there is [an implicit mapping](https://github.com/aurora-is-near/aurora-engine/blob/71980db92a9d4b95d4e1f53954b98e0e8f002a4b/engine-sdk/src/types.rs#L28) between the near account ID and aurora addresses. And it is precisely how we will communicate with the contract in our test.
474
476
475
477
Now, let's first encode the arguments forthe `call` methodin the `AuroraEngine` contract on Near and after that – submit a transaction and check its result:
0 commit comments