Would it be possible to add the deployment of token pricer contracts into the SDK?
For now, we have coded the deployment ourselves in internal tooling, for example for TradeTracker:
import { ContractFactory } from 'ethers'
const TRADE_TRACKER_ABI = [{"type":"constructor","inputs" ...
const TRADE_TRACKER_BYTECODE = "0x60e060 ...
const TradeTrackerFactory = new ContractFactory(
TRADE_TRACKER_ABI,
TRADE_TRACKER_BYTECODE,
chainDeployerSigner
);
const contract = await TradeTrackerFactory.deploy(
decimals,
40,
sequencerInbox
);
const deployedContract = await contract.deployed();
https://github.com/OffchainLabs/nitro-contracts/tree/main/test/foundry/fee-token-pricers
Would it be possible to add the deployment of token pricer contracts into the SDK?
For now, we have coded the deployment ourselves in internal tooling, for example for TradeTracker: