
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@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
The npm package @chimera-monorepo/contracts receives a total of 64 weekly downloads. As such, @chimera-monorepo/contracts popularity was classified as not popular.
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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.