
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@chimera-monorepo/contracts
Advanced tools
Install foundry or update with foundryup
.
Run:
yarn workspace @chimera-monorepo/contracts forge clean
yarn workspace @chimera-monorepo/contracts forge install
yarn workspace @chimera-monorepo/contracts forge build
The protocol variables for contracts deployment and configuration are fetched from the environment files located at script/<environment>
(e.g. TestnetStaging.sol
).
The TestnetStaging.sol
environment file defines the following contracts:
DefaultValues
for the default protocol variables (e.g. epoch length, expiry time buffer, etc)TestnetAssets
for the staging assets addressesTestnetStagingDomains
for the environment domains and their details and addressesTestnetStagingEnvironment
for defining the EverclearHub
initialization parametersThe domains to be used must be configured in:
script/<environment>.sol
(the domains for a specific environment)cli/config/domains.json
(all the domains for all environments)In domains.json
, the declared domains follow the following interface:
interface Domain {
name: string;
id: number;
rpc: string;
verifierUrl?: string;
verifierAPIKey?: string;
maxBlockGasLimit: number;
environment: Environment;
realm: Realm;
owner?: Address; // viem address type
}
enum Environment {
TESTNET_STAGING = 'TestnetStaging',
MAINNET_STAGING = 'MainnetStaging',
TESTNET_PRODUCTION = 'TestnetProduction',
MAINNET_PRODUCTION = 'MainnetProduction',
}
enum Realm {
HUB = 'hub',
SPOKE = 'spoke',
}
To be able to interact with deployed contracts these must be declared in:
cli/config/hub.json
for the EverclearHub
contractscli/config/spoke.json
for the EverclearSpoke
contractsBoth follow the following interface:
interface Contract {
address: Address; // viem address type
domainName: string;
domainId: number;
}
To whitelist and update asset configurations these must be declared in:
cli/config/assets/<environment>.json
for listing all the assets for an environmentscript/assets/<environment>/<asset_symbol>.sol
for the actual adopted and fees configurationIn cli/config/assets/<environment>.json
the assets follow the interface:
interface Asset {
symbol: string;
contractName: string;
}
For each task, the CLI will ask the user to select options or input values. In order for it to work properly, the necessary domains, contracts and protocol arguments must be previously configured in the files explained ut supra.
Before running each script, the user will be asked to choose the account to broadcast from. All private keys defined in .env
will be fetched no matter their variable name (without exposing any value) and shown as options to choose from.
To start the CLI tool run:
$ yarn cli
This will show the user the following options:
Steps:
deployments/<environment>/<domain>/<contract>.json
file with the new address
, startBlock
, and abi
(usually in out/<contract>.sol
)Note: if deployments fail, it may be due to an out of gas error. This can be resolved by running the forge script
command with the --gas-estimate-multiplier
set higher (e.g. 300 for 3x the estimate, default is 130).
Steps:
script/<environment>.sol
Steps:
Steps:
cli/config/assets/<environment>.json
)FAQs
Smart contracts for Everclear
We found that @chimera-monorepo/contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.