Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@acala-network/contracts
Advanced tools
Generate bytecode for predeployment of ERC20 smart contracts in Acala.
Run yarn
to install dependencies.
To generate bytecode, run yarn run generate-bytecode
.
The generated bytecode JSON file would be ./resources/bytecodes.json
.
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.
These ERC20 contracts make native and cross-chain tokens available inside Acala EVM.
ADDRESS.ACA
, ADDRESS.AUSD
...(./contracts/utils/AcalaAddress.sol
or ./contracts/utils/KaruraAddress.sol
)These contracts make other chain-native functionalities available in Acala EVM.
ADDRESS.EVM
ADDRESS.ORACLE
ADDRESS.SCHEDULE
ADDRESS.DEX
ADDRESS.HOMA
ADDRESS.EVM_ACCOUNTS
ADDRESS.HONZON
ADDRESS.INCENTIVES
ADDRESS.STABLE_ASSET
ADDRESS.XTOKENS
These contracts will make Acala's DeFi primitives (stablecoin, staking derivative, and DeX) available in Acala EVM.
npx hardhat run scripts/deploy.ts --network karuraTestnet
npx hardhat verify --network karuraTestnet 0xc5d131D410B15890dAF6F517475C6FB9D0c758DA
FAQs
AcalaNetwork Smart Contract library for Solidity
The npm package @acala-network/contracts receives a total of 741 weekly downloads. As such, @acala-network/contracts popularity was classified as not popular.
We found that @acala-network/contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.