Skip to content

integrate token pricers into SDK #636

Description

@antonio-altr

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:

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions