JSPM

  • Created
  • Published
  • Downloads 261
  • Score
    100M100P100Q105636F
  • License MIT

AcalaNetwork Smart Contract library for Solidity

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@acala-network/contracts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Predeploy-contracts

    Generate bytecode for predeployment of ERC20 smart contracts in Acala.

    Build

    Run yarn to install dependencies.

    Generate bytecode

    To generate bytecode, run yarn run generate-bytecode.

    The generated bytecode JSON file would be ./resources/bytecodes.json.

    Development

    The token list for ERC20 smart contracts is in ./resources/acala_tokens.json and ./resources/karura_tokens.json. symbol and address are needed for each token, for instance:

    {
      "symbol": "ACA",
      "address": "0x0000000000000000000100000000000000000000"
    }

    All of the tokens and predeployed system contracts have generated code in ./contracts/utils/AcalaAddress.sol and ./contracts/utils/AcalaAddress.js for Acala, ./contracts/utils/KaruraAddress.sol and ./contracts/utils/KaruraAddress.js for Karura, we can use it directly.

    Predeployed System Contracts

    ERC20 Contracts

    These ERC20 contracts make native and cross-chain tokens available inside Acala EVM.

    Other System Contracts:

    These contracts make other chain-native functionalities available in Acala EVM.

    EVM

    Oracle Price Feed

    On-chain Automatic Scheduler

    DEX

    Homa Liquid Staking Protocol

    EVM Accounts

    Honzon Protocol

    Incentives

    StableAsset

    Xtokens

    DeFi Contracts (Coming Soon)

    These contracts will make Acala's DeFi primitives (stablecoin, staking derivative, and DeX) available in Acala EVM.