Gearbox Permissionless scripts
Environment Variables
Ensure the following environment variables are properly configured:
RPC_URL – RPC URL
ANVIL_URL – Testnet RPC URL for txs simulations and batching
ADDRESS_PROVIDER – Address of the "Address Provider" contract
PRIVATE_KEY – Private key
Scripts arguments
Ensure the following environment variables are properly configured:
-
-r, --rpc-url
Mainnet RPC URL. If not provided, the script assumes you're using a testnet.
Env var: RPC_URL
-
--anvil-url (mandatory)
RPC URL for testnet simulations and batching.
Env var: ANVIL_URL
-
-p, --address-provider>
Address of the AddressProvider contract.
Env var: ADDRESS_PROVIDER
-
-k, --private-key
Private key for mainnet transactions.
Env var: PRIVATE_KEY
-
-a, --account
Testnet account address. Defaults to the InstanceManager owner if not provided.
-
-o, --out-dir
Directory path to save output results.
Env var: OUTPUT_DIR
-
--testnet
Flag to indicate usage of a testnet.
-
--execute
Actually execute the prepared transactions.
-
--force
Force transaction execution, ignoring safety checks.
-
--timelock
Wrap transactions using queueTransaction (timelock logic).
-
-s, --skip-batching
Skip batching transactions. Useful to debug Anvil issues.
Default: false
-
-c, --config
Path to the configuration file.
Default: undefined
-
-e, --eta (mandatory for --timelock)
ETA timestamp for queued transactions.
Default: undefined
-
-m, --market-configurator(mandatory for --timelock)
Address of the MarketConfigurator contract.
Scripts Information
- Update price feeds
pnpm start update-feeds
Update price feeds.