Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@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 585 weekly downloads. As such, @acala-network/contracts popularity was classified as not popular.
We found that @acala-network/contracts demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.