Section 2: Near DAC Implementation

NEAR DAC is a combination of NEAR DAC plug-in and NEAR contract. The NEAR DAC plug-in provides key infrastructure for zkEVM network access to the NEAR network. The NEAR contract represents the smart contracts on the NEAR blockchain, which work together to achieve the goals and functions of NEAR DAC.

Near DAC plug-in

  • 1.When the DAC receives data, it is notified to the Near DAC plug-in through the pipeline mechanism.

  • 2.The Near DAC plug-in will push the updated batch transaction data to the Near chain.

  • 3.The plug-in backfills records and statistics, and retries error messages.

Near contract record

  • Statistical values, such as total number of transactions, etc.

  • Index value, such as storing key-value pairs through map, counting blocks corresponding to transactions, etc.

  • The specific value is stored according to the length of the specific transaction value in a variety of ways, including contract storage, log, etc.

  • Data query permissions are released to the outside world, and data settings require authentication, etc.

In short, NEAR DAC is a combination of the NEAR DAC plug-in and the NEAR contract. This method can quickly and effectively synchronize batch transaction data off the Validium chain to near.

Last updated