Skip to main content

@chromatic-protocol/sdk-viem

Namespaces

Classes

Interfaces

Variables

aggregatorV3InterfaceABI

Const aggregatorV3InterfaceABI: readonly [{ inputs: readonly [] = []; name: "decimals" = 'decimals'; outputs: readonly [{ internalType: "uint8" = 'uint8'; name: "" = ''; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "description" = 'description'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint80" = 'uint80'; name: "_roundId" = '_roundId'; type: "uint80" = 'uint80' }] ; name: "getRoundData" = 'getRoundData'; outputs: readonly [{ internalType: "uint80" = 'uint80'; name: "roundId" = 'roundId'; type: "uint80" = 'uint80' }, { internalType: "int256" = 'int256'; name: "answer" = 'answer'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "startedAt" = 'startedAt'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "updatedAt" = 'updatedAt'; type: "uint256" = 'uint256' }, { internalType: "uint80" = 'uint80'; name: "answeredInRound" = 'answeredInRound'; type: "uint80" = 'uint80' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "latestRoundData" = 'latestRoundData'; outputs: readonly [{ internalType: "uint80" = 'uint80'; name: "roundId" = 'roundId'; type: "uint80" = 'uint80' }, { internalType: "int256" = 'int256'; name: "answer" = 'answer'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "startedAt" = 'startedAt'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "updatedAt" = 'updatedAt'; type: "uint256" = 'uint256' }, { internalType: "uint80" = 'uint80'; name: "answeredInRound" = 'answeredInRound'; type: "uint80" = 'uint80' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "version" = 'version'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:9499


chromaticAccountABI

Const chromaticAccountABI: readonly [{ inputs: readonly [] = []; name: "AlreadyInitialized" = 'AlreadyInitialized'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughBalance" = 'NotEnoughBalance'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotMarket" = 'NotMarket'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotOwner" = 'NotOwner'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotRouter" = 'NotRouter'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "entryPrice" = 'entryPrice'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "exitPrice" = 'exitPrice'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "int256" = 'int256'; name: "realizedPnl" = 'realizedPnl'; type: "int256" = 'int256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "bytes4" = 'bytes4'; name: "cause" = 'cause'; type: "bytes4" = 'bytes4' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "balance" = 'balance'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "claimPosition" = 'claimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "entryPrice" = 'entryPrice'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "exitPrice" = 'exitPrice'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "realizedPnl" = 'realizedPnl'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { internalType: "bytes4" = 'bytes4'; name: "cause" = 'cause'; type: "bytes4" = 'bytes4' }] ; internalType: "struct ClaimPositionInfo" = 'struct ClaimPositionInfo'; name: "claimInfo" = 'claimInfo'; type: "tuple" = 'tuple' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "claimPositionCallback" = 'claimPositionCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "closePosition" = 'closePosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "getPositionIds" = 'getPositionIds'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "hasPositionId" = 'hasPositionId'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_owner" = '_owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_router" = '_router'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketFactory" = '_marketFactory'; type: "address" = 'address' }] ; name: "initialize" = 'initialize'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "maxAllowableTradingFee" = 'maxAllowableTradingFee'; type: "uint256" = 'uint256' }] ; name: "openPosition" = 'openPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }] ; internalType: "struct OpenPositionInfo" = 'struct OpenPositionInfo'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "vault" = 'vault'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "marginRequired" = 'marginRequired'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "openPositionCallback" = 'openPositionCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "withdraw" = 'withdraw'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:1530


chromaticLensABI

Const chromaticLensABI: readonly [{ inputs: readonly [{ internalType: "contract IChromaticRouter" = 'contract IChromaticRouter'; name: "_router" = '_router'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "_oracleVersion" = '_oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidity" = 'claimableLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity" = 'struct ClaimableLiquidity'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256" = 'uint256'; name: "_oracleVersion" = '_oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidityBatch" = 'claimableLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity[]" = 'struct ClaimableLiquidity[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "clbBalanceOf" = 'clbBalanceOf'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "tokenId" = 'tokenId'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "balance" = 'balance'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalSupply" = 'totalSupply'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "binValue" = 'binValue'; type: "uint256" = 'uint256' }] ; internalType: "struct ChromaticLens.CLBBalance[]" = 'struct ChromaticLens.CLBBalance[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "liquidityBinStatuses" = 'liquidityBinStatuses'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "liquidity" = 'liquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "freeLiquidity" = 'freeLiquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "binValue" = 'binValue'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LiquidityBinStatus[]" = 'struct LiquidityBinStatus[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "lpReceipts" = 'lpReceipts'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "result" = 'result'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }] ; name: "oracleVersion" = 'oracleVersion'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "timestamp" = 'timestamp'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "price" = 'price'; type: "int256" = 'int256' }] ; internalType: "struct IOracleProvider.OracleVersion" = 'struct IOracleProvider.OracleVersion'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "pendingLiquidity" = 'pendingLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity" = 'struct PendingLiquidity'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "pendingLiquidityBatch" = 'pendingLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity[]" = 'struct PendingLiquidity[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:1740


chromaticLensAddress

Const chromaticLensAddress: Object

Type declaration

NameType
31337"0x2E2Ed0Cfd3AD2f1d34481277b3204d807Ca2F8c2"
42161"0x3B7F614389d0b6a5e20dBd3FC3CAE297Ea791590"
421614"0xE8793D457cbADC7e9a9D17b410b71661F47180dB"

Defined in

packages/sdk-viem/src/gen/index.ts:1928


chromaticLensConfig

Const chromaticLensConfig: Object

Type declaration

NameType
abireadonly [{ inputs: readonly [{ internalType: "contract IChromaticRouter" = 'contract IChromaticRouter'; name: "_router" = '_router'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "_oracleVersion" = '_oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidity" = 'claimableLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity" = 'struct ClaimableLiquidity'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256" = 'uint256'; name: "_oracleVersion" = '_oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidityBatch" = 'claimableLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity[]" = 'struct ClaimableLiquidity[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "clbBalanceOf" = 'clbBalanceOf'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "tokenId" = 'tokenId'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "balance" = 'balance'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalSupply" = 'totalSupply'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "binValue" = 'binValue'; type: "uint256" = 'uint256' }] ; internalType: "struct ChromaticLens.CLBBalance[]" = 'struct ChromaticLens.CLBBalance[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "liquidityBinStatuses" = 'liquidityBinStatuses'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "liquidity" = 'liquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "freeLiquidity" = 'freeLiquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "binValue" = 'binValue'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LiquidityBinStatus[]" = 'struct LiquidityBinStatus[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "lpReceipts" = 'lpReceipts'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "result" = 'result'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }] ; name: "oracleVersion" = 'oracleVersion'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "timestamp" = 'timestamp'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "price" = 'price'; type: "int256" = 'int256' }] ; internalType: "struct IOracleProvider.OracleVersion" = 'struct IOracleProvider.OracleVersion'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "pendingLiquidity" = 'pendingLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity" = 'struct PendingLiquidity'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "pendingLiquidityBatch" = 'pendingLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity[]" = 'struct PendingLiquidity[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]
address{ 31337: "0x2E2Ed0Cfd3AD2f1d34481277b3204d807Ca2F8c2" = '0x2E2Ed0Cfd3AD2f1d34481277b3204d807Ca2F8c2'; 42161: "0x3B7F614389d0b6a5e20dBd3FC3CAE297Ea791590" = '0x3B7F614389d0b6a5e20dBd3FC3CAE297Ea791590'; 421614: "0xE8793D457cbADC7e9a9D17b410b71661F47180dB" = '0xE8793D457cbADC7e9a9D17b410b71661F47180dB' }
address.31337"0x2E2Ed0Cfd3AD2f1d34481277b3204d807Ca2F8c2"
address.42161"0x3B7F614389d0b6a5e20dBd3FC3CAE297Ea791590"
address.421614"0xE8793D457cbADC7e9a9D17b410b71661F47180dB"

Defined in

packages/sdk-viem/src/gen/index.ts:1938


chromaticMarketFactoryABI

Const chromaticMarketFactoryABI: readonly [{ inputs: readonly [{ internalType: "address" = 'address'; name: "_marketDiamondCutFacet" = '_marketDiamondCutFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketLoupeFacet" = '_marketLoupeFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketStateFacet" = '_marketStateFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketAddLiquidityFacet" = '_marketAddLiquidityFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketRemoveLiquidityFacet" = '_marketRemoveLiquidityFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketLiquidityLensFacet" = '_marketLiquidityLensFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketTradeOpenPositionFacet" = '_marketTradeOpenPositionFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketTradeClosePositionFacet" = '_marketTradeClosePositionFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketLiquidateFacet" = '_marketLiquidateFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketSettleFacet" = '_marketSettleFacet'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "AlreadySetVault" = 'AlreadySetVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExistMarket" = 'ExistMarket'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotRegisteredOracleProvider" = 'NotRegisteredOracleProvider'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotRegisteredSettlementToken" = 'NotRegisteredSettlementToken'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "daoOld" = 'daoOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "daoNew" = 'daoNew'; type: "address" = 'address' }] ; name: "DaoUpdated" = 'DaoUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "uint16" = 'uint16'; name: "defaultProtocolFeeRateOld" = 'defaultProtocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: true = true; internalType: "uint16" = 'uint16'; name: "defaultProtocolFeeRateNew" = 'defaultProtocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "DefaultProtocolFeeRateUpdated" = 'DefaultProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; name: "InterestRateRecordAppended" = 'InterestRateRecordAppended'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "keeperFeePayerOld" = 'keeperFeePayerOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "keeperFeePayerNew" = 'keeperFeePayerNew'; type: "address" = 'address' }] ; name: "KeeperFeePayerUpdated" = 'KeeperFeePayerUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; name: "LastInterestRateRecordRemoved" = 'LastInterestRateRecordRemoved'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "liquidatorOld" = 'liquidatorOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "liquidatorNew" = 'liquidatorNew'; type: "address" = 'address' }] ; name: "LiquidatorUpdated" = 'LiquidatorUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "MarketCreated" = 'MarketCreated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "marketSettlementOld" = 'marketSettlementOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "marketSettlementNew" = 'marketSettlementNew'; type: "address" = 'address' }] ; name: "MarketSettlementUpdated" = 'MarketSettlementUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; indexed: false = false; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "properties" = 'properties'; type: "tuple" = 'tuple' }] ; name: "OracleProviderRegistered" = 'OracleProviderRegistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "OracleProviderUnregistered" = 'OracleProviderUnregistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }] ; name: "SetEarningDistributionThreshold" = 'SetEarningDistributionThreshold'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }] ; name: "SetFlashLoanFeeRate" = 'SetFlashLoanFeeRate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }] ; name: "SetMinimumMargin" = 'SetMinimumMargin'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "SetSettlementTokenOracleProvider" = 'SetSettlementTokenOracleProvider'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "SetUniswapFeeTier" = 'SetUniswapFeeTier'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "interestRate" = 'interestRate'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "SettlementTokenRegistered" = 'SettlementTokenRegistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "treasuryOld" = 'treasuryOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "treasuryNew" = 'treasuryNew'; type: "address" = 'address' }] ; name: "TreasuryUpdated" = 'TreasuryUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint8" = 'uint8'; name: "level" = 'level'; type: "uint8" = 'uint8' }] ; name: "UpdateLeverageLevel" = 'UpdateLeverageLevel'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { indexed: true = true; internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }] ; name: "UpdateTakeProfitBPSRange" = 'UpdateTakeProfitBPSRange'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "vault" = 'vault'; type: "address" = 'address' }] ; name: "VaultSet" = 'VaultSet'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; name: "appendInterestRateRecord" = 'appendInterestRateRecord'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "from" = 'from'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "to" = 'to'; type: "uint256" = 'uint256' }] ; name: "calculateInterest" = 'calculateInterest'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }] ; name: "createMarket" = 'createMarket'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "currentInterestRate" = 'currentInterestRate'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "dao" = 'dao'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "defaultProtocolFeeRate" = 'defaultProtocolFeeRate'; outputs: readonly [{ internalType: "uint16" = 'uint16'; name: "" = ''; type: "uint16" = 'uint16' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getEarningDistributionThreshold" = 'getEarningDistributionThreshold'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getFlashLoanFeeRate" = 'getFlashLoanFeeRate'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getInterestRateRecords" = 'getInterestRateRecords'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; internalType: "struct InterestRate.Record[]" = 'struct InterestRate.Record[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }] ; name: "getMarket" = 'getMarket'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "getMarkets" = 'getMarkets'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }] ; name: "getMarketsBySettlmentToken" = 'getMarketsBySettlmentToken'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getMinimumMargin" = 'getMinimumMargin'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "getOracleProviderProperties" = 'getOracleProviderProperties'; outputs: readonly [{ components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getSettlementTokenOracleProvider" = 'getSettlementTokenOracleProvider'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getUniswapFeeTier" = 'getUniswapFeeTier'; outputs: readonly [{ internalType: "uint24" = 'uint24'; name: "" = ''; type: "uint24" = 'uint24' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "isRegisteredMarket" = 'isRegisteredMarket'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "isRegisteredOracleProvider" = 'isRegisteredOracleProvider'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "isRegisteredSettlementToken" = 'isRegisteredSettlementToken'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "keeperFeePayer" = 'keeperFeePayer'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "liquidator" = 'liquidator'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "marketSettlement" = 'marketSettlement'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "parameters" = 'parameters'; outputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "protocolFeeRate" = 'protocolFeeRate'; type: "uint16" = 'uint16' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "properties" = 'properties'; type: "tuple" = 'tuple' }] ; name: "registerOracleProvider" = 'registerOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "interestRate" = 'interestRate'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }, { internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "registerSettlementToken" = 'registerSettlementToken'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "registeredOracleProviders" = 'registeredOracleProviders'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "registeredSettlementTokens" = 'registeredSettlementTokens'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "removeLastInterestRateRecord" = 'removeLastInterestRateRecord'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }] ; name: "setEarningDistributionThreshold" = 'setEarningDistributionThreshold'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }] ; name: "setFlashLoanFeeRate" = 'setFlashLoanFeeRate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }] ; name: "setMinimumMargin" = 'setMinimumMargin'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "setSettlementTokenOracleProvider" = 'setSettlementTokenOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "setUniswapFeeTier" = 'setUniswapFeeTier'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_vault" = '_vault'; type: "address" = 'address' }] ; name: "setVault" = 'setVault'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "treasury" = 'treasury'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "unregisterOracleProvider" = 'unregisterOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_dao" = '_dao'; type: "address" = 'address' }] ; name: "updateDao" = 'updateDao'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint16" = 'uint16'; name: "_defaultProtocolFeeRate" = '_defaultProtocolFeeRate'; type: "uint16" = 'uint16' }] ; name: "updateDefaultProtocolFeeRate" = 'updateDefaultProtocolFeeRate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_keeperFeePayer" = '_keeperFeePayer'; type: "address" = 'address' }] ; name: "updateKeeperFeePayer" = 'updateKeeperFeePayer'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint8" = 'uint8'; name: "level" = 'level'; type: "uint8" = 'uint8' }] ; name: "updateLeverageLevel" = 'updateLeverageLevel'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_liquidator" = '_liquidator'; type: "address" = 'address' }] ; name: "updateLiquidator" = 'updateLiquidator'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_marketSettlement" = '_marketSettlement'; type: "address" = 'address' }] ; name: "updateMarketSettlement" = 'updateMarketSettlement'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }] ; name: "updateTakeProfitBPSRange" = 'updateTakeProfitBPSRange'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_treasury" = '_treasury'; type: "address" = 'address' }] ; name: "updateTreasury" = 'updateTreasury'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "vault" = 'vault'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:222


chromaticMarketFactoryAddress

Const chromaticMarketFactoryAddress: Object

Type declaration

NameType
31337"0xFD471836031dc5108809D173A067e8486B9047A3"
42161"0x0b216AB26E20d6caA770B18596A3D53B683638B4"
421614"0x1471332e8e91505a6B20F9bD1C70b52173dECB7d"

Defined in

packages/sdk-viem/src/gen/index.ts:850


chromaticMarketFactoryConfig

Const chromaticMarketFactoryConfig: Object

Type declaration

NameType
abireadonly [{ inputs: readonly [{ internalType: "address" = 'address'; name: "_marketDiamondCutFacet" = '_marketDiamondCutFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketLoupeFacet" = '_marketLoupeFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketStateFacet" = '_marketStateFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketAddLiquidityFacet" = '_marketAddLiquidityFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketRemoveLiquidityFacet" = '_marketRemoveLiquidityFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketLiquidityLensFacet" = '_marketLiquidityLensFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketTradeOpenPositionFacet" = '_marketTradeOpenPositionFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketTradeClosePositionFacet" = '_marketTradeClosePositionFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketLiquidateFacet" = '_marketLiquidateFacet'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "_marketSettleFacet" = '_marketSettleFacet'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "AlreadySetVault" = 'AlreadySetVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExistMarket" = 'ExistMarket'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotRegisteredOracleProvider" = 'NotRegisteredOracleProvider'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotRegisteredSettlementToken" = 'NotRegisteredSettlementToken'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "daoOld" = 'daoOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "daoNew" = 'daoNew'; type: "address" = 'address' }] ; name: "DaoUpdated" = 'DaoUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "uint16" = 'uint16'; name: "defaultProtocolFeeRateOld" = 'defaultProtocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: true = true; internalType: "uint16" = 'uint16'; name: "defaultProtocolFeeRateNew" = 'defaultProtocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "DefaultProtocolFeeRateUpdated" = 'DefaultProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; name: "InterestRateRecordAppended" = 'InterestRateRecordAppended'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "keeperFeePayerOld" = 'keeperFeePayerOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "keeperFeePayerNew" = 'keeperFeePayerNew'; type: "address" = 'address' }] ; name: "KeeperFeePayerUpdated" = 'KeeperFeePayerUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; name: "LastInterestRateRecordRemoved" = 'LastInterestRateRecordRemoved'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "liquidatorOld" = 'liquidatorOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "liquidatorNew" = 'liquidatorNew'; type: "address" = 'address' }] ; name: "LiquidatorUpdated" = 'LiquidatorUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "MarketCreated" = 'MarketCreated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "marketSettlementOld" = 'marketSettlementOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "marketSettlementNew" = 'marketSettlementNew'; type: "address" = 'address' }] ; name: "MarketSettlementUpdated" = 'MarketSettlementUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; indexed: false = false; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "properties" = 'properties'; type: "tuple" = 'tuple' }] ; name: "OracleProviderRegistered" = 'OracleProviderRegistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "OracleProviderUnregistered" = 'OracleProviderUnregistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }] ; name: "SetEarningDistributionThreshold" = 'SetEarningDistributionThreshold'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }] ; name: "SetFlashLoanFeeRate" = 'SetFlashLoanFeeRate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }] ; name: "SetMinimumMargin" = 'SetMinimumMargin'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "SetSettlementTokenOracleProvider" = 'SetSettlementTokenOracleProvider'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "SetUniswapFeeTier" = 'SetUniswapFeeTier'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "interestRate" = 'interestRate'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "SettlementTokenRegistered" = 'SettlementTokenRegistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "treasuryOld" = 'treasuryOld'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "treasuryNew" = 'treasuryNew'; type: "address" = 'address' }] ; name: "TreasuryUpdated" = 'TreasuryUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint8" = 'uint8'; name: "level" = 'level'; type: "uint8" = 'uint8' }] ; name: "UpdateLeverageLevel" = 'UpdateLeverageLevel'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { indexed: true = true; internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }] ; name: "UpdateTakeProfitBPSRange" = 'UpdateTakeProfitBPSRange'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "vault" = 'vault'; type: "address" = 'address' }] ; name: "VaultSet" = 'VaultSet'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; name: "appendInterestRateRecord" = 'appendInterestRateRecord'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "from" = 'from'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "to" = 'to'; type: "uint256" = 'uint256' }] ; name: "calculateInterest" = 'calculateInterest'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }] ; name: "createMarket" = 'createMarket'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "currentInterestRate" = 'currentInterestRate'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "dao" = 'dao'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "defaultProtocolFeeRate" = 'defaultProtocolFeeRate'; outputs: readonly [{ internalType: "uint16" = 'uint16'; name: "" = ''; type: "uint16" = 'uint16' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getEarningDistributionThreshold" = 'getEarningDistributionThreshold'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getFlashLoanFeeRate" = 'getFlashLoanFeeRate'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getInterestRateRecords" = 'getInterestRateRecords'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "annualRateBPS" = 'annualRateBPS'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "beginTimestamp" = 'beginTimestamp'; type: "uint256" = 'uint256' }] ; internalType: "struct InterestRate.Record[]" = 'struct InterestRate.Record[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }] ; name: "getMarket" = 'getMarket'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "getMarkets" = 'getMarkets'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }] ; name: "getMarketsBySettlmentToken" = 'getMarketsBySettlmentToken'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getMinimumMargin" = 'getMinimumMargin'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "getOracleProviderProperties" = 'getOracleProviderProperties'; outputs: readonly [{ components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getSettlementTokenOracleProvider" = 'getSettlementTokenOracleProvider'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "getUniswapFeeTier" = 'getUniswapFeeTier'; outputs: readonly [{ internalType: "uint24" = 'uint24'; name: "" = ''; type: "uint24" = 'uint24' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "isRegisteredMarket" = 'isRegisteredMarket'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "isRegisteredOracleProvider" = 'isRegisteredOracleProvider'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "isRegisteredSettlementToken" = 'isRegisteredSettlementToken'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "keeperFeePayer" = 'keeperFeePayer'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "liquidator" = 'liquidator'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "marketSettlement" = 'marketSettlement'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "parameters" = 'parameters'; outputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "protocolFeeRate" = 'protocolFeeRate'; type: "uint16" = 'uint16' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "properties" = 'properties'; type: "tuple" = 'tuple' }] ; name: "registerOracleProvider" = 'registerOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "interestRate" = 'interestRate'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }, { internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "registerSettlementToken" = 'registerSettlementToken'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "registeredOracleProviders" = 'registeredOracleProviders'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "registeredSettlementTokens" = 'registeredSettlementTokens'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "removeLastInterestRateRecord" = 'removeLastInterestRateRecord'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "earningDistributionThreshold" = 'earningDistributionThreshold'; type: "uint256" = 'uint256' }] ; name: "setEarningDistributionThreshold" = 'setEarningDistributionThreshold'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "flashLoanFeeRate" = 'flashLoanFeeRate'; type: "uint256" = 'uint256' }] ; name: "setFlashLoanFeeRate" = 'setFlashLoanFeeRate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "minimumMargin" = 'minimumMargin'; type: "uint256" = 'uint256' }] ; name: "setMinimumMargin" = 'setMinimumMargin'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "setSettlementTokenOracleProvider" = 'setSettlementTokenOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint24" = 'uint24'; name: "uniswapFeeTier" = 'uniswapFeeTier'; type: "uint24" = 'uint24' }] ; name: "setUniswapFeeTier" = 'setUniswapFeeTier'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_vault" = '_vault'; type: "address" = 'address' }] ; name: "setVault" = 'setVault'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "treasury" = 'treasury'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "unregisterOracleProvider" = 'unregisterOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_dao" = '_dao'; type: "address" = 'address' }] ; name: "updateDao" = 'updateDao'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint16" = 'uint16'; name: "_defaultProtocolFeeRate" = '_defaultProtocolFeeRate'; type: "uint16" = 'uint16' }] ; name: "updateDefaultProtocolFeeRate" = 'updateDefaultProtocolFeeRate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_keeperFeePayer" = '_keeperFeePayer'; type: "address" = 'address' }] ; name: "updateKeeperFeePayer" = 'updateKeeperFeePayer'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint8" = 'uint8'; name: "level" = 'level'; type: "uint8" = 'uint8' }] ; name: "updateLeverageLevel" = 'updateLeverageLevel'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_liquidator" = '_liquidator'; type: "address" = 'address' }] ; name: "updateLiquidator" = 'updateLiquidator'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_marketSettlement" = '_marketSettlement'; type: "address" = 'address' }] ; name: "updateMarketSettlement" = 'updateMarketSettlement'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }] ; name: "updateTakeProfitBPSRange" = 'updateTakeProfitBPSRange'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_treasury" = '_treasury'; type: "address" = 'address' }] ; name: "updateTreasury" = 'updateTreasury'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "vault" = 'vault'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]
address{ 31337: "0xFD471836031dc5108809D173A067e8486B9047A3" = '0xFD471836031dc5108809D173A067e8486B9047A3'; 42161: "0x0b216AB26E20d6caA770B18596A3D53B683638B4" = '0x0b216AB26E20d6caA770B18596A3D53B683638B4'; 421614: "0x1471332e8e91505a6B20F9bD1C70b52173dECB7d" = '0x1471332e8e91505a6B20F9bD1C70b52173dECB7d' }
address.31337"0xFD471836031dc5108809D173A067e8486B9047A3"
address.42161"0x0b216AB26E20d6caA770B18596A3D53B683638B4"
address.421614"0x1471332e8e91505a6B20F9bD1C70b52173dECB7d"

Defined in

packages/sdk-viem/src/gen/index.ts:860


chromaticRouterABI

Const chromaticRouterABI: readonly [{ inputs: readonly [{ internalType: "address" = 'address'; name: "_marketFactory" = '_marketFactory'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "NotMarket" = 'NotMarket'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "AccountCreated" = 'AccountCreated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "trader" = 'trader'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "tradingFeeUSD" = 'tradingFeeUSD'; type: "uint256" = 'uint256' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { inputs: readonly [] = []; name: "accountBase" = 'accountBase'; outputs: readonly [{ internalType: "contract ChromaticAccount" = 'contract ChromaticAccount'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "feeRate" = 'feeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }] ; name: "addLiquidity" = 'addLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "feeRates" = 'feeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }] ; name: "addLiquidityBatch" = 'addLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "lpReceipts" = 'lpReceipts'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "vault" = 'vault'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidityBatchCallback" = 'addLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "vault" = 'vault'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidityCallback" = 'addLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }] ; name: "claimLiquidity" = 'claimLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }] ; name: "claimLiquidityBatch" = 'claimLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "int16[]" = 'int16[]'; name: "" = ''; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "claimLiquidityBatchCallback" = 'claimLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "" = ''; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "claimLiquidityCallback" = 'claimLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "claimPosition" = 'claimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "closePosition" = 'closePosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "createAccount" = 'createAccount'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "getAccount" = 'getAccount'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "getLpReceiptIds" = 'getLpReceiptIds'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "getLpReceiptIds" = 'getLpReceiptIds'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "maxAllowableTradingFee" = 'maxAllowableTradingFee'; type: "uint256" = 'uint256' }] ; name: "openPosition" = 'openPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }] ; internalType: "struct OpenPositionInfo" = 'struct OpenPositionInfo'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "feeRate" = 'feeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }] ; name: "removeLiquidity" = 'removeLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "feeRates" = 'feeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "removeLiquidityBatch" = 'removeLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "lpReceipts" = 'lpReceipts'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "clbToken" = 'clbToken'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "clbTokenIds" = 'clbTokenIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidityBatchCallback" = 'removeLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "clbToken" = 'clbToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "clbTokenId" = 'clbTokenId'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidityCallback" = 'removeLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }] ; name: "withdrawLiquidity" = 'withdrawLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }] ; name: "withdrawLiquidityBatch" = 'withdrawLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "int16[]" = 'int16[]'; name: "" = ''; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidityBatchCallback" = 'withdrawLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "" = ''; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidityCallback" = 'withdrawLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:1948


chromaticRouterAddress

Const chromaticRouterAddress: Object

Type declaration

NameType
31337"0x21dF544947ba3E8b3c32561399E88B52Dc8b2823"
42161"0xbCc97243f965EcbE31071887B5DDBA1Add8E220a"
421614"0x236dAEcCe74D1E13b4440573a538013f26B0e2D2"

Defined in

packages/sdk-viem/src/gen/index.ts:2309


chromaticRouterConfig

Const chromaticRouterConfig: Object

Type declaration

NameType
abireadonly [{ inputs: readonly [{ internalType: "address" = 'address'; name: "_marketFactory" = '_marketFactory'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "NotMarket" = 'NotMarket'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "AccountCreated" = 'AccountCreated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "marketAddress" = 'marketAddress'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "trader" = 'trader'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "tradingFeeUSD" = 'tradingFeeUSD'; type: "uint256" = 'uint256' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { inputs: readonly [] = []; name: "accountBase" = 'accountBase'; outputs: readonly [{ internalType: "contract ChromaticAccount" = 'contract ChromaticAccount'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "feeRate" = 'feeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }] ; name: "addLiquidity" = 'addLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "feeRates" = 'feeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }] ; name: "addLiquidityBatch" = 'addLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "lpReceipts" = 'lpReceipts'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "vault" = 'vault'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidityBatchCallback" = 'addLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "vault" = 'vault'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidityCallback" = 'addLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }] ; name: "claimLiquidity" = 'claimLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }] ; name: "claimLiquidityBatch" = 'claimLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "int16[]" = 'int16[]'; name: "" = ''; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "claimLiquidityBatchCallback" = 'claimLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "" = ''; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "claimLiquidityCallback" = 'claimLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "claimPosition" = 'claimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "closePosition" = 'closePosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "createAccount" = 'createAccount'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "getAccount" = 'getAccount'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }] ; name: "getLpReceiptIds" = 'getLpReceiptIds'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "getLpReceiptIds" = 'getLpReceiptIds'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "maxAllowableTradingFee" = 'maxAllowableTradingFee'; type: "uint256" = 'uint256' }] ; name: "openPosition" = 'openPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }] ; internalType: "struct OpenPositionInfo" = 'struct OpenPositionInfo'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "feeRate" = 'feeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }] ; name: "removeLiquidity" = 'removeLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "feeRates" = 'feeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "removeLiquidityBatch" = 'removeLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "lpReceipts" = 'lpReceipts'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "clbToken" = 'clbToken'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "clbTokenIds" = 'clbTokenIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidityBatchCallback" = 'removeLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "clbToken" = 'clbToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "clbTokenId" = 'clbTokenId'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidityCallback" = 'removeLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }] ; name: "withdrawLiquidity" = 'withdrawLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }] ; name: "withdrawLiquidityBatch" = 'withdrawLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "_receiptIds" = '_receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "int16[]" = 'int16[]'; name: "" = ''; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidityBatchCallback" = 'withdrawLiquidityBatchCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "" = ''; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidityCallback" = 'withdrawLiquidityCallback'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]
address{ 31337: "0x21dF544947ba3E8b3c32561399E88B52Dc8b2823" = '0x21dF544947ba3E8b3c32561399E88B52Dc8b2823'; 42161: "0xbCc97243f965EcbE31071887B5DDBA1Add8E220a" = '0xbCc97243f965EcbE31071887B5DDBA1Add8E220a'; 421614: "0x236dAEcCe74D1E13b4440573a538013f26B0e2D2" = '0x236dAEcCe74D1E13b4440573a538013f26B0e2D2' }
address.31337"0x21dF544947ba3E8b3c32561399E88B52Dc8b2823"
address.42161"0xbCc97243f965EcbE31071887B5DDBA1Add8E220a"
address.421614"0x236dAEcCe74D1E13b4440573a538013f26B0e2D2"

Defined in

packages/sdk-viem/src/gen/index.ts:2319


chromaticVaultABI

Const chromaticVaultABI: readonly [{ inputs: readonly [{ internalType: "contract IChromaticMarketFactory" = 'contract IChromaticMarketFactory'; name: "_factory" = '_factory'; type: "address" = 'address' }, { internalType: "contract IVaultEarningDistributor" = 'contract IVaultEarningDistributor'; name: "_earningDistributor" = '_earningDistributor'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "NotEnoughBalance" = 'NotEnoughBalance'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughFeePaid" = 'NotEnoughFeePaid'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotTradingLockOwner" = 'NotTradingLockOwner'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByEarningDistributor" = 'OnlyAccessableByEarningDistributor'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByMarket" = 'OnlyAccessableByMarket'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TradingLockAlreadyAcquired" = 'TradingLockAlreadyAcquired'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "sender" = 'sender'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "paid" = 'paid'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "paidToTakerPool" = 'paidToTakerPool'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "paidToMakerPool" = 'paidToMakerPool'; type: "uint256" = 'uint256' }] ; name: "FlashLoan" = 'FlashLoan'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }] ; name: "MakerEarningDistributed" = 'MakerEarningDistributed'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }] ; name: "MarketEarningAccumulated" = 'MarketEarningAccumulated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "marketBalance" = 'marketBalance'; type: "uint256" = 'uint256' }] ; name: "MarketEarningDistributed" = 'MarketEarningDistributed'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "OnAddLiquidity" = 'OnAddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "settlementAmount" = 'settlementAmount'; type: "uint256" = 'uint256' }] ; name: "OnClaimPosition" = 'OnClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "protocolFee" = 'protocolFee'; type: "uint256" = 'uint256' }] ; name: "OnOpenPosition" = 'OnOpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "pendingDeposit" = 'pendingDeposit'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "pendingWithdrawal" = 'pendingWithdrawal'; type: "uint256" = 'uint256' }] ; name: "OnSettlePendingLiquidity" = 'OnSettlePendingLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }] ; name: "OnWithdrawLiquidity" = 'OnWithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "TransferKeeperFee" = 'TransferKeeperFee'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "TransferKeeperFee" = 'TransferKeeperFee'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "TransferProtocolFee" = 'TransferProtocolFee'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "vaultEarningDistributor" = 'vaultEarningDistributor'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "oldVaultEarningDistributor" = 'oldVaultEarningDistributor'; type: "address" = 'address' }] ; name: "VaultEarningDistributorSet" = 'VaultEarningDistributorSet'; type: "event" = 'event' }, { inputs: readonly [] = []; name: "acquireTradingLock" = 'acquireTradingLock'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "cancelMakerEarningDistributionTask" = 'cancelMakerEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "cancelMarketEarningDistributionTask" = 'cancelMarketEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "createMakerEarningDistributionTask" = 'createMakerEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "createMarketEarningDistributionTask" = 'createMarketEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }] ; name: "distributeMakerEarning" = 'distributeMakerEarning'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }] ; name: "distributeMarketEarning" = 'distributeMarketEarning'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "earningDistributor" = 'earningDistributor'; outputs: readonly [{ internalType: "contract IVaultEarningDistributor" = 'contract IVaultEarningDistributor'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "factory" = 'factory'; outputs: readonly [{ internalType: "contract IChromaticMarketFactory" = 'contract IChromaticMarketFactory'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "flashLoan" = 'flashLoan'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "binBalance" = 'binBalance'; type: "uint256" = 'uint256' }] ; name: "getPendingBinShare" = 'getPendingBinShare'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "makerBalances" = 'makerBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "makerMarketBalances" = 'makerMarketBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IVaultEarningDistributor" = 'contract IVaultEarningDistributor'; name: "oldEarningDistributor" = 'oldEarningDistributor'; type: "address" = 'address' }] ; name: "migrateEarningDistributionTasks" = 'migrateEarningDistributionTasks'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "onAddLiquidity" = 'onAddLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "settlementAmount" = 'settlementAmount'; type: "uint256" = 'uint256' }] ; name: "onClaimPosition" = 'onClaimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "protocolFee" = 'protocolFee'; type: "uint256" = 'uint256' }] ; name: "onOpenPosition" = 'onOpenPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "pendingDeposit" = 'pendingDeposit'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "pendingWithdrawal" = 'pendingWithdrawal'; type: "uint256" = 'uint256' }] ; name: "onSettlePendingLiquidity" = 'onSettlePendingLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "onWithdrawLiquidity" = 'onWithdrawLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingDeposits" = 'pendingDeposits'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingMakerEarnings" = 'pendingMakerEarnings'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingMarketEarnings" = 'pendingMarketEarnings'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingWithdrawals" = 'pendingWithdrawals'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "releaseTradingLock" = 'releaseTradingLock'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_earningDistributor" = '_earningDistributor'; type: "address" = 'address' }] ; name: "setVaultEarningDistributor" = 'setVaultEarningDistributor'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "takerBalances" = 'takerBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "takerMarketBalances" = 'takerMarketBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "margin" = 'margin'; type: "uint256" = 'uint256' }] ; name: "transferKeeperFee" = 'transferKeeperFee'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "usedFee" = 'usedFee'; type: "uint256" = 'uint256' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:873


chromaticVaultAddress

Const chromaticVaultAddress: Object

Type declaration

NameType
31337"0x5081a39b8A5f0E35a8D959395a630b68B74Dd30f"
42161"0x19631A51aeDcd831E29cbCbCfe77010dAfd3343a"
421614"0x5e8859472e0cBa30a4f4cEa1Ae4fD76FFea77Cf0"

Defined in

packages/sdk-viem/src/gen/index.ts:1286


chromaticVaultConfig

Const chromaticVaultConfig: Object

Type declaration

NameType
abireadonly [{ inputs: readonly [{ internalType: "contract IChromaticMarketFactory" = 'contract IChromaticMarketFactory'; name: "_factory" = '_factory'; type: "address" = 'address' }, { internalType: "contract IVaultEarningDistributor" = 'contract IVaultEarningDistributor'; name: "_earningDistributor" = '_earningDistributor'; type: "address" = 'address' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "NotEnoughBalance" = 'NotEnoughBalance'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughFeePaid" = 'NotEnoughFeePaid'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotTradingLockOwner" = 'NotTradingLockOwner'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByEarningDistributor" = 'OnlyAccessableByEarningDistributor'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByMarket" = 'OnlyAccessableByMarket'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TradingLockAlreadyAcquired" = 'TradingLockAlreadyAcquired'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "sender" = 'sender'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "paid" = 'paid'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "paidToTakerPool" = 'paidToTakerPool'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "paidToMakerPool" = 'paidToMakerPool'; type: "uint256" = 'uint256' }] ; name: "FlashLoan" = 'FlashLoan'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }] ; name: "MakerEarningDistributed" = 'MakerEarningDistributed'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }] ; name: "MarketEarningAccumulated" = 'MarketEarningAccumulated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "marketBalance" = 'marketBalance'; type: "uint256" = 'uint256' }] ; name: "MarketEarningDistributed" = 'MarketEarningDistributed'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "OnAddLiquidity" = 'OnAddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "settlementAmount" = 'settlementAmount'; type: "uint256" = 'uint256' }] ; name: "OnClaimPosition" = 'OnClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "protocolFee" = 'protocolFee'; type: "uint256" = 'uint256' }] ; name: "OnOpenPosition" = 'OnOpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "pendingDeposit" = 'pendingDeposit'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "pendingWithdrawal" = 'pendingWithdrawal'; type: "uint256" = 'uint256' }] ; name: "OnSettlePendingLiquidity" = 'OnSettlePendingLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }] ; name: "OnWithdrawLiquidity" = 'OnWithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "TransferKeeperFee" = 'TransferKeeperFee'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "TransferKeeperFee" = 'TransferKeeperFee'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "TransferProtocolFee" = 'TransferProtocolFee'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "vaultEarningDistributor" = 'vaultEarningDistributor'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "oldVaultEarningDistributor" = 'oldVaultEarningDistributor'; type: "address" = 'address' }] ; name: "VaultEarningDistributorSet" = 'VaultEarningDistributorSet'; type: "event" = 'event' }, { inputs: readonly [] = []; name: "acquireTradingLock" = 'acquireTradingLock'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "cancelMakerEarningDistributionTask" = 'cancelMakerEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "cancelMarketEarningDistributionTask" = 'cancelMarketEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }] ; name: "createMakerEarningDistributionTask" = 'createMakerEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }] ; name: "createMarketEarningDistributionTask" = 'createMarketEarningDistributionTask'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }] ; name: "distributeMakerEarning" = 'distributeMakerEarning'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }] ; name: "distributeMarketEarning" = 'distributeMarketEarning'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "earningDistributor" = 'earningDistributor'; outputs: readonly [{ internalType: "contract IVaultEarningDistributor" = 'contract IVaultEarningDistributor'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "factory" = 'factory'; outputs: readonly [{ internalType: "contract IChromaticMarketFactory" = 'contract IChromaticMarketFactory'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "token" = 'token'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "flashLoan" = 'flashLoan'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "market" = 'market'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "binBalance" = 'binBalance'; type: "uint256" = 'uint256' }] ; name: "getPendingBinShare" = 'getPendingBinShare'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "makerBalances" = 'makerBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "makerMarketBalances" = 'makerMarketBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "contract IVaultEarningDistributor" = 'contract IVaultEarningDistributor'; name: "oldEarningDistributor" = 'oldEarningDistributor'; type: "address" = 'address' }] ; name: "migrateEarningDistributionTasks" = 'migrateEarningDistributionTasks'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "onAddLiquidity" = 'onAddLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "settlementAmount" = 'settlementAmount'; type: "uint256" = 'uint256' }] ; name: "onClaimPosition" = 'onClaimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "protocolFee" = 'protocolFee'; type: "uint256" = 'uint256' }] ; name: "onOpenPosition" = 'onOpenPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "pendingDeposit" = 'pendingDeposit'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "pendingWithdrawal" = 'pendingWithdrawal'; type: "uint256" = 'uint256' }] ; name: "onSettlePendingLiquidity" = 'onSettlePendingLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "onWithdrawLiquidity" = 'onWithdrawLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingDeposits" = 'pendingDeposits'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingMakerEarnings" = 'pendingMakerEarnings'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingMarketEarnings" = 'pendingMarketEarnings'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "pendingWithdrawals" = 'pendingWithdrawals'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "releaseTradingLock" = 'releaseTradingLock'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_earningDistributor" = '_earningDistributor'; type: "address" = 'address' }] ; name: "setVaultEarningDistributor" = 'setVaultEarningDistributor'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "takerBalances" = 'takerBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "takerMarketBalances" = 'takerMarketBalances'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "settlementToken" = 'settlementToken'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "fee" = 'fee'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "margin" = 'margin'; type: "uint256" = 'uint256' }] ; name: "transferKeeperFee" = 'transferKeeperFee'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "usedFee" = 'usedFee'; type: "uint256" = 'uint256' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]
address{ 31337: "0x5081a39b8A5f0E35a8D959395a630b68B74Dd30f" = '0x5081a39b8A5f0E35a8D959395a630b68B74Dd30f'; 42161: "0x19631A51aeDcd831E29cbCbCfe77010dAfd3343a" = '0x19631A51aeDcd831E29cbCbCfe77010dAfd3343a'; 421614: "0x5e8859472e0cBa30a4f4cEa1Ae4fD76FFea77Cf0" = '0x5e8859472e0cBa30a4f4cEa1Ae4fD76FFea77Cf0' }
address.31337"0x5081a39b8A5f0E35a8D959395a630b68B74Dd30f"
address.42161"0x19631A51aeDcd831E29cbCbCfe77010dAfd3343a"
address.421614"0x5e8859472e0cBa30a4f4cEa1Ae4fD76FFea77Cf0"

Defined in

packages/sdk-viem/src/gen/index.ts:1296


clbTokenABI

Const clbTokenABI: readonly [{ inputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "OnlyAccessableByMarket" = 'OnlyAccessableByMarket'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { indexed: false = false; internalType: "bool" = 'bool'; name: "approved" = 'approved'; type: "bool" = 'bool' }] ; name: "ApprovalForAll" = 'ApprovalForAll'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "ids" = 'ids'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "values" = 'values'; type: "uint256[]" = 'uint256[]' }] ; name: "TransferBatch" = 'TransferBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "TransferSingle" = 'TransferSingle'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "string" = 'string'; name: "value" = 'value'; type: "string" = 'string' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "URI" = 'URI'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "balanceOf" = 'balanceOf'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address[]" = 'address[]'; name: "accounts" = 'accounts'; type: "address[]" = 'address[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "ids" = 'ids'; type: "uint256[]" = 'uint256[]' }] ; name: "balanceOfBatch" = 'balanceOfBatch'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "burn" = 'burn'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "decimals" = 'decimals'; outputs: readonly [{ internalType: "uint8" = 'uint8'; name: "" = ''; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "description" = 'description'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "exists" = 'exists'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "image" = 'image'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }] ; name: "isApprovedForAll" = 'isApprovedForAll'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "market" = 'market'; outputs: readonly [{ internalType: "contract IChromaticMarket" = 'contract IChromaticMarket'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "mint" = 'mint'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "name" = 'name'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "ids" = 'ids'; type: "uint256[]" = 'uint256[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "safeBatchTransferFrom" = 'safeBatchTransferFrom'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "safeTransferFrom" = 'safeTransferFrom'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { internalType: "bool" = 'bool'; name: "approved" = 'approved'; type: "bool" = 'bool' }] ; name: "setApprovalForAll" = 'setApprovalForAll'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "bytes4" = 'bytes4'; name: "interfaceId" = 'interfaceId'; type: "bytes4" = 'bytes4' }] ; name: "supportsInterface" = 'supportsInterface'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "totalSupply" = 'totalSupply'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "ids" = 'ids'; type: "uint256[]" = 'uint256[]' }] ; name: "totalSupplyBatch" = 'totalSupplyBatch'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "uri" = 'uri'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:7


iChromaticMarketABI

Const iChromaticMarketABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidity" = 'addLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidityBatch" = 'addLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "checkClaimPosition" = 'checkClaimPosition'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "checkLiquidation" = 'checkLiquidation'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "timestamp" = 'timestamp'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "price" = 'price'; type: "int256" = 'int256' }] ; internalType: "struct IOracleProvider.OracleVersion" = 'struct IOracleProvider.OracleVersion'; name: "oracleVersion" = 'oracleVersion'; type: "tuple" = 'tuple' }] ; name: "checkLiquidationWithOracleVersion" = 'checkLiquidationWithOracleVersion'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "claimLiquidity" = 'claimLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "receiptIds" = 'receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "claimLiquidityBatch" = 'claimLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "claimPosition" = 'claimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "keeperFee" = 'keeperFee'; type: "uint256" = 'uint256' }] ; name: "claimPosition" = 'claimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidity" = 'claimableLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity" = 'struct ClaimableLiquidity'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidityBatch" = 'claimableLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity[]" = 'struct ClaimableLiquidity[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "clbToken" = 'clbToken'; outputs: readonly [{ internalType: "contract ICLBToken" = 'contract ICLBToken'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "closePosition" = 'closePosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }] ; internalType: "struct ClosePositionInfo" = 'struct ClosePositionInfo'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "closingPosition" = 'closingPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalEntryAmount" = 'totalEntryAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct ClosingPosition" = 'struct ClosingPosition'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "closingPositionBatch" = 'closingPositionBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalEntryAmount" = 'totalEntryAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct ClosingPosition[]" = 'struct ClosingPosition[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "displayMode" = 'displayMode'; outputs: readonly [{ internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "" = ''; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "marketBalance" = 'marketBalance'; type: "uint256" = 'uint256' }] ; name: "distributeEarningToBins" = 'distributeEarningToBins'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "factory" = 'factory'; outputs: readonly [{ internalType: "contract IChromaticMarketFactory" = 'contract IChromaticMarketFactory'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "getBinFreeLiquidity" = 'getBinFreeLiquidity'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "getBinLiquidity" = 'getBinLiquidity'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "getBinValues" = 'getBinValues'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "values" = 'values'; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }] ; name: "getLpReceipt" = 'getLpReceipt'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "receiptIds" = 'receiptIds'; type: "uint256[]" = 'uint256[]' }] ; name: "getLpReceipts" = 'getLpReceipts'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "getPosition" = 'getPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; internalType: "struct Position" = 'struct Position'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "positionIds" = 'positionIds'; type: "uint256[]" = 'uint256[]' }] ; name: "getPositions" = 'getPositions'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; internalType: "struct Position[]" = 'struct Position[]'; name: "positions" = 'positions'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "keeperFee" = 'keeperFee'; type: "uint256" = 'uint256' }] ; name: "liquidate" = 'liquidate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "liquidityBinStatuses" = 'liquidityBinStatuses'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "liquidity" = 'liquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "freeLiquidity" = 'freeLiquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "binValue" = 'binValue'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LiquidityBinStatus[]" = 'struct LiquidityBinStatus[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "liquidityMode" = 'liquidityMode'; outputs: readonly [{ internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "" = ''; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "maxAllowableTradingFee" = 'maxAllowableTradingFee'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "openPosition" = 'openPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }] ; internalType: "struct OpenPositionInfo" = 'struct OpenPositionInfo'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "oracleProvider" = 'oracleProvider'; outputs: readonly [{ internalType: "contract IOracleProvider" = 'contract IOracleProvider'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "pendingLiquidity" = 'pendingLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity" = 'struct PendingLiquidity'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "pendingLiquidityBatch" = 'pendingLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity[]" = 'struct PendingLiquidity[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "pendingPosition" = 'pendingPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingPosition" = 'struct PendingPosition'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "pendingPositionBatch" = 'pendingPositionBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingPosition[]" = 'struct PendingPosition[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "positionMode" = 'positionMode'; outputs: readonly [{ internalType: "enum PositionMode" = 'enum PositionMode'; name: "" = ''; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "protocolFeeRate" = 'protocolFeeRate'; outputs: readonly [{ internalType: "uint16" = 'uint16'; name: "" = ''; type: "uint16" = 'uint16' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidity" = 'removeLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidityBatch" = 'removeLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "" = ''; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "feeRates" = 'feeRates'; type: "int16[]" = 'int16[]' }] ; name: "settle" = 'settle'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "settleAll" = 'settleAll'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "settlementToken" = 'settlementToken'; outputs: readonly [{ internalType: "contract IERC20Metadata" = 'contract IERC20Metadata'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "_displayMode" = '_displayMode'; type: "uint8" = 'uint8' }] ; name: "updateDisplayMode" = 'updateDisplayMode'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "_liquidityMode" = '_liquidityMode'; type: "uint8" = 'uint8' }] ; name: "updateLiquidityMode" = 'updateLiquidityMode'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "enum PositionMode" = 'enum PositionMode'; name: "_positionMode" = '_positionMode'; type: "uint8" = 'uint8' }] ; name: "updatePositionMode" = 'updatePositionMode'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }] ; name: "updateProtocolFeeRate" = 'updateProtocolFeeRate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "vault" = 'vault'; outputs: readonly [{ internalType: "contract IChromaticVault" = 'contract IChromaticVault'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidity" = 'withdrawLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "receiptIds" = 'receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidityBatch" = 'withdrawLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:2328


iOracleProviderABI

Const iOracleProviderABI: readonly [{ inputs: readonly [] = []; name: "InvalidOracleRound" = 'InvalidOracleRound'; type: "error" = 'error' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }] ; name: "atVersion" = 'atVersion'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "timestamp" = 'timestamp'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "price" = 'price'; type: "int256" = 'int256' }] ; internalType: "struct IOracleProvider.OracleVersion" = 'struct IOracleProvider.OracleVersion'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "currentVersion" = 'currentVersion'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "timestamp" = 'timestamp'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "price" = 'price'; type: "int256" = 'int256' }] ; internalType: "struct IOracleProvider.OracleVersion" = 'struct IOracleProvider.OracleVersion'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "description" = 'description'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "oracleProviderName" = 'oracleProviderName'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "bytes4" = 'bytes4'; name: "interfaceId" = 'interfaceId'; type: "bytes4" = 'bytes4' }] ; name: "supportsInterface" = 'supportsInterface'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "sync" = 'sync'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "timestamp" = 'timestamp'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "price" = 'price'; type: "int256" = 'int256' }] ; internalType: "struct IOracleProvider.OracleVersion" = 'struct IOracleProvider.OracleVersion'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:3441


iOracleProviderRegistryABI

Const iOracleProviderRegistryABI: readonly [{ anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; indexed: false = false; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "properties" = 'properties'; type: "tuple" = 'tuple' }] ; name: "OracleProviderRegistered" = 'OracleProviderRegistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "OracleProviderUnregistered" = 'OracleProviderUnregistered'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint8" = 'uint8'; name: "level" = 'level'; type: "uint8" = 'uint8' }] ; name: "UpdateLeverageLevel" = 'UpdateLeverageLevel'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { indexed: true = true; internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { indexed: true = true; internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }] ; name: "UpdateTakeProfitBPSRange" = 'UpdateTakeProfitBPSRange'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "getOracleProviderProperties" = 'getOracleProviderProperties'; outputs: readonly [{ components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "" = ''; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "isRegisteredOracleProvider" = 'isRegisteredOracleProvider'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint8" = 'uint8'; name: "leverageLevel" = 'leverageLevel'; type: "uint8" = 'uint8' }] ; internalType: "struct OracleProviderProperties" = 'struct OracleProviderProperties'; name: "properties" = 'properties'; type: "tuple" = 'tuple' }] ; name: "registerOracleProvider" = 'registerOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "registeredOracleProviders" = 'registeredOracleProviders'; outputs: readonly [{ internalType: "address[]" = 'address[]'; name: "" = ''; type: "address[]" = 'address[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }] ; name: "unregisterOracleProvider" = 'unregisterOracleProvider'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint8" = 'uint8'; name: "level" = 'level'; type: "uint8" = 'uint8' }] ; name: "updateLeverageLevel" = 'updateLeverageLevel'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "oracleProvider" = 'oracleProvider'; type: "address" = 'address' }, { internalType: "uint32" = 'uint32'; name: "minTakeProfitBPS" = 'minTakeProfitBPS'; type: "uint32" = 'uint32' }, { internalType: "uint32" = 'uint32'; name: "maxTakeProfitBPS" = 'maxTakeProfitBPS'; type: "uint32" = 'uint32' }] ; name: "updateTakeProfitBPSRange" = 'updateTakeProfitBPSRange'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:9369


ierc1155ABI

Const ierc1155ABI: readonly [{ anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { indexed: false = false; internalType: "bool" = 'bool'; name: "approved" = 'approved'; type: "bool" = 'bool' }] ; name: "ApprovalForAll" = 'ApprovalForAll'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "ids" = 'ids'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "values" = 'values'; type: "uint256[]" = 'uint256[]' }] ; name: "TransferBatch" = 'TransferBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "TransferSingle" = 'TransferSingle'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "string" = 'string'; name: "value" = 'value'; type: "string" = 'string' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "URI" = 'URI'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }] ; name: "balanceOf" = 'balanceOf'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address[]" = 'address[]'; name: "accounts" = 'accounts'; type: "address[]" = 'address[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "ids" = 'ids'; type: "uint256[]" = 'uint256[]' }] ; name: "balanceOfBatch" = 'balanceOfBatch'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }] ; name: "isApprovedForAll" = 'isApprovedForAll'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "ids" = 'ids'; type: "uint256[]" = 'uint256[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "safeBatchTransferFrom" = 'safeBatchTransferFrom'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "safeTransferFrom" = 'safeTransferFrom'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "operator" = 'operator'; type: "address" = 'address' }, { internalType: "bool" = 'bool'; name: "approved" = 'approved'; type: "bool" = 'bool' }] ; name: "setApprovalForAll" = 'setApprovalForAll'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "bytes4" = 'bytes4'; name: "interfaceId" = 'interfaceId'; type: "bytes4" = 'bytes4' }] ; name: "supportsInterface" = 'supportsInterface'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:3524


ierc20ABI

Const ierc20ABI: readonly [{ anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "Approval" = 'Approval'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "Transfer" = 'Transfer'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }] ; name: "allowance" = 'allowance'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "approve" = 'approve'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }] ; name: "balanceOf" = 'balanceOf'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "totalSupply" = 'totalSupply'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "transfer" = 'transfer'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "transferFrom" = 'transferFrom'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:3647


ierc20MetadataABI

Const ierc20MetadataABI: readonly [{ anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "Approval" = 'Approval'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "Transfer" = 'Transfer'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }] ; name: "allowance" = 'allowance'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "approve" = 'approve'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }] ; name: "balanceOf" = 'balanceOf'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "decimals" = 'decimals'; outputs: readonly [{ internalType: "uint8" = 'uint8'; name: "" = ''; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "name" = 'name'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "symbol" = 'symbol'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "totalSupply" = 'totalSupply'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "transfer" = 'transfer'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "transferFrom" = 'transferFrom'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:9553


marketAddLiquidityFacetABI

Const marketAddLiquidityFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "Empty" = 'Empty'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OutOfBounds" = 'OutOfBounds'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidity" = 'addLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "addLiquidityBatch" = 'addLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "claimLiquidity" = 'claimLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "receiptIds" = 'receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "claimLiquidityBatch" = 'claimLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "earning" = 'earning'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "marketBalance" = 'marketBalance'; type: "uint256" = 'uint256' }] ; name: "distributeEarningToBins" = 'distributeEarningToBins'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:3729


marketDiamondCutFacetABI

Const marketDiamondCutFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "_initializationContractAddress" = '_initializationContractAddress'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "_calldata" = '_calldata'; type: "bytes" = 'bytes' }] ; name: "InitializationFunctionReverted" = 'InitializationFunctionReverted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "address" = 'address'; name: "facetAddress" = 'facetAddress'; type: "address" = 'address' }, { internalType: "enum IDiamondCut.FacetCutAction" = 'enum IDiamondCut.FacetCutAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "bytes4[]" = 'bytes4[]'; name: "functionSelectors" = 'functionSelectors'; type: "bytes4[]" = 'bytes4[]' }] ; indexed: false = false; internalType: "struct IDiamondCut.FacetCut[]" = 'struct IDiamondCut.FacetCut[]'; name: "_diamondCut" = '_diamondCut'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "address" = 'address'; name: "_init" = '_init'; type: "address" = 'address' }, { indexed: false = false; internalType: "bytes" = 'bytes'; name: "_calldata" = '_calldata'; type: "bytes" = 'bytes' }] ; name: "DiamondCut" = 'DiamondCut'; type: "event" = 'event' }, { inputs: readonly [{ components: readonly [{ internalType: "address" = 'address'; name: "facetAddress" = 'facetAddress'; type: "address" = 'address' }, { internalType: "enum IDiamondCut.FacetCutAction" = 'enum IDiamondCut.FacetCutAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "bytes4[]" = 'bytes4[]'; name: "functionSelectors" = 'functionSelectors'; type: "bytes4[]" = 'bytes4[]' }] ; internalType: "struct IDiamondCut.FacetCut[]" = 'struct IDiamondCut.FacetCut[]'; name: "_cut" = '_cut'; type: "tuple[]" = 'tuple[]' }, { internalType: "address" = 'address'; name: "_init" = '_init'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "_calldata" = '_calldata'; type: "bytes" = 'bytes' }] ; name: "diamondCut" = 'diamondCut'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:4252


marketFacetBaseABI

Const marketFacetBaseABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }]

Defined in

packages/sdk-viem/src/gen/index.ts:4332


marketLensFacetABI

Const marketLensFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidity" = 'claimableLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity" = 'struct ClaimableLiquidity'; name: "liquidity" = 'liquidity'; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }] ; name: "claimableLiquidityBatch" = 'claimableLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingCLBTokenAmount" = 'mintingCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmount" = 'burningCLBTokenAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningTokenAmount" = 'burningTokenAmount'; type: "uint256" = 'uint256' }] ; internalType: "struct ClaimableLiquidity[]" = 'struct ClaimableLiquidity[]'; name: "liquidities" = 'liquidities'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "closingPosition" = 'closingPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalEntryAmount" = 'totalEntryAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct ClosingPosition" = 'struct ClosingPosition'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "closingPositionBatch" = 'closingPositionBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalEntryAmount" = 'totalEntryAmount'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct ClosingPosition[]" = 'struct ClosingPosition[]'; name: "positions" = 'positions'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "getBinFreeLiquidity" = 'getBinFreeLiquidity'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "getBinLiquidity" = 'getBinLiquidity'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "getBinValues" = 'getBinValues'; outputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "values" = 'values'; type: "uint256[]" = 'uint256[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }] ; name: "getLpReceipt" = 'getLpReceipt'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "receiptIds" = 'receiptIds'; type: "uint256[]" = 'uint256[]' }] ; name: "getLpReceipts" = 'getLpReceipts'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "getPosition" = 'getPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "positionIds" = 'positionIds'; type: "uint256[]" = 'uint256[]' }] ; name: "getPositions" = 'getPositions'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; internalType: "struct Position[]" = 'struct Position[]'; name: "positions" = 'positions'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "liquidityBinStatuses" = 'liquidityBinStatuses'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "liquidity" = 'liquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "freeLiquidity" = 'freeLiquidity'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "binValue" = 'binValue'; type: "uint256" = 'uint256' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LiquidityBinStatus[]" = 'struct LiquidityBinStatus[]'; name: "statuses" = 'statuses'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "pendingLiquidity" = 'pendingLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity" = 'struct PendingLiquidity'; name: "liquidity" = 'liquidity'; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "pendingLiquidityBatch" = 'pendingLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "mintingTokenAmountRequested" = 'mintingTokenAmountRequested'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "burningCLBTokenAmountRequested" = 'burningCLBTokenAmountRequested'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingLiquidity[]" = 'struct PendingLiquidity[]'; name: "liquidities" = 'liquidities'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; name: "pendingPosition" = 'pendingPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingPosition" = 'struct PendingPosition'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }] ; name: "pendingPositionBatch" = 'pendingPositionBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "totalQty" = 'totalQty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "totalMakerMargin" = 'totalMakerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "totalTakerMargin" = 'totalTakerMargin'; type: "uint256" = 'uint256' }] ; internalType: "struct PendingPosition[]" = 'struct PendingPosition[]'; name: "positions" = 'positions'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:4772


marketLiquidateFacetABI

Const marketLiquidateFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "Empty" = 'Empty'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OutOfBounds" = 'OutOfBounds'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "checkClaimPosition" = 'checkClaimPosition'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "checkLiquidation" = 'checkLiquidation'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "_liquidate" = '_liquidate'; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "version" = 'version'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "timestamp" = 'timestamp'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "price" = 'price'; type: "int256" = 'int256' }] ; internalType: "struct IOracleProvider.OracleVersion" = 'struct IOracleProvider.OracleVersion'; name: "oracleVersion" = 'oracleVersion'; type: "tuple" = 'tuple' }] ; name: "checkLiquidationWithOracleVersion" = 'checkLiquidationWithOracleVersion'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "_liquidate" = '_liquidate'; type: "bool" = 'bool' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "keeperFee" = 'keeperFee'; type: "uint256" = 'uint256' }] ; name: "claimPosition" = 'claimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "keeper" = 'keeper'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "keeperFee" = 'keeperFee'; type: "uint256" = 'uint256' }] ; name: "liquidate" = 'liquidate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:5522


marketLiquidityFacetBaseABI

Const marketLiquidityFacetBaseABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }]

Defined in

packages/sdk-viem/src/gen/index.ts:6019


marketRemoveLiquidityFacetABI

Const marketRemoveLiquidityFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "Empty" = 'Empty'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OutOfBounds" = 'OutOfBounds'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "" = ''; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "onERC1155BatchReceived" = 'onERC1155BatchReceived'; outputs: readonly [{ internalType: "bytes4" = 'bytes4'; name: "" = ''; type: "bytes4" = 'bytes4' }] ; stateMutability: "pure" = 'pure'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "" = ''; type: "bytes" = 'bytes' }] ; name: "onERC1155Received" = 'onERC1155Received'; outputs: readonly [{ internalType: "bytes4" = 'bytes4'; name: "" = ''; type: "bytes4" = 'bytes4' }] ; stateMutability: "pure" = 'pure'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidity" = 'removeLiquidity'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "int16[]" = 'int16[]'; name: "tradingFeeRates" = 'tradingFeeRates'; type: "int16[]" = 'int16[]' }, { internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "removeLiquidityBatch" = 'removeLiquidityBatch'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "bytes4" = 'bytes4'; name: "interfaceID" = 'interfaceID'; type: "bytes4" = 'bytes4' }] ; name: "supportsInterface" = 'supportsInterface'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "pure" = 'pure'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "receiptId" = 'receiptId'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidity" = 'withdrawLiquidity'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256[]" = 'uint256[]'; name: "receiptIds" = 'receiptIds'; type: "uint256[]" = 'uint256[]' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "withdrawLiquidityBatch" = 'withdrawLiquidityBatch'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:6459


marketSettleFacetABI

Const marketSettleFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "Empty" = 'Empty'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OutOfBounds" = 'OutOfBounds'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "int16[]" = 'int16[]'; name: "feeRates" = 'feeRates'; type: "int16[]" = 'int16[]' }] ; name: "settle" = 'settle'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "settleAll" = 'settleAll'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:7005


marketStateFacetABI

Const marketStateFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [] = []; name: "clbToken" = 'clbToken'; outputs: readonly [{ internalType: "contract ICLBToken" = 'contract ICLBToken'; name: "_token" = '_token'; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "displayMode" = 'displayMode'; outputs: readonly [{ internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "_displayMode" = '_displayMode'; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "factory" = 'factory'; outputs: readonly [{ internalType: "contract IChromaticMarketFactory" = 'contract IChromaticMarketFactory'; name: "_factory" = '_factory'; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "liquidityMode" = 'liquidityMode'; outputs: readonly [{ internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "_liquidityMode" = '_liquidityMode'; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "oracleProvider" = 'oracleProvider'; outputs: readonly [{ internalType: "contract IOracleProvider" = 'contract IOracleProvider'; name: "_provider" = '_provider'; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "positionMode" = 'positionMode'; outputs: readonly [{ internalType: "enum PositionMode" = 'enum PositionMode'; name: "_positionMode" = '_positionMode'; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "protocolFeeRate" = 'protocolFeeRate'; outputs: readonly [{ internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "settlementToken" = 'settlementToken'; outputs: readonly [{ internalType: "contract IERC20Metadata" = 'contract IERC20Metadata'; name: "_token" = '_token'; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "_displayMode" = '_displayMode'; type: "uint8" = 'uint8' }] ; name: "updateDisplayMode" = 'updateDisplayMode'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "_liquidityMode" = '_liquidityMode'; type: "uint8" = 'uint8' }] ; name: "updateLiquidityMode" = 'updateLiquidityMode'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "enum PositionMode" = 'enum PositionMode'; name: "_positionMode" = '_positionMode'; type: "uint8" = 'uint8' }] ; name: "updatePositionMode" = 'updatePositionMode'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }] ; name: "updateProtocolFeeRate" = 'updateProtocolFeeRate'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "vault" = 'vault'; outputs: readonly [{ internalType: "contract IChromaticVault" = 'contract IChromaticVault'; name: "_vault" = '_vault'; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:7455


marketTradeClosePositionFacetABI

Const marketTradeClosePositionFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "Empty" = 'Empty'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OutOfBounds" = 'OutOfBounds'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "claimPosition" = 'claimPosition'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "positionId" = 'positionId'; type: "uint256" = 'uint256' }] ; name: "closePosition" = 'closePosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }] ; internalType: "struct ClosePositionInfo" = 'struct ClosePositionInfo'; name: "closed" = 'closed'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:7988


marketTradeFacetBaseABI

Const marketTradeFacetBaseABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }]

Defined in

packages/sdk-viem/src/gen/index.ts:8459


marketTradeOpenPositionFacetABI

Const marketTradeOpenPositionFacetABI: readonly [{ inputs: readonly [] = []; name: "AddLiquidityDisabled" = 'AddLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "AlreadyClosedPosition" = 'AlreadyClosedPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClaimPositionCallbackError" = 'ClaimPositionCallbackError'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ClosePositionDisabled" = 'ClosePositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "DuplicatedTradingFeeRate" = 'DuplicatedTradingFeeRate'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "Empty" = 'Empty'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableLeverage" = 'ExceedMaxAllowableLeverage'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "ExceedMaxAllowableTradingFee" = 'ExceedMaxAllowableTradingFee'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidLpReceiptAction" = 'InvalidLpReceiptAction'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "InvalidTransferredTokenAmount" = 'InvalidTransferredTokenAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotAllowableMakerMargin" = 'NotAllowableMakerMargin'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimableLpReceipt" = 'NotClaimableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotClaimablePosition" = 'NotClaimablePosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotEnoughMarginTransferred" = 'NotEnoughMarginTransferred'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistLpReceipt" = 'NotExistLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotExistPosition" = 'NotExistPosition'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotPermitted" = 'NotPermitted'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "NotWithdrawableLpReceipt" = 'NotWithdrawableLpReceipt'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByDao" = 'OnlyAccessableByDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByFactoryOrDao" = 'OnlyAccessableByFactoryOrDao'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByLiquidator" = 'OnlyAccessableByLiquidator'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OnlyAccessableByVault" = 'OnlyAccessableByVault'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OpenPositionDisabled" = 'OpenPositionDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "OutOfBounds" = 'OutOfBounds'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "RemoveLiquidityDisabled" = 'RemoveLiquidityDisabled'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallAmount" = 'TooSmallAmount'; type: "error" = 'error' }, { inputs: readonly [] = []; name: "TooSmallTakerMargin" = 'TooSmallTakerMargin'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "AddLiquidity" = 'AddLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "AddLiquidityBatch" = 'AddLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "clbTokenAmount" = 'clbTokenAmount'; type: "uint256" = 'uint256' }] ; name: "ClaimLiquidity" = 'ClaimLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "clbTokenAmounts" = 'clbTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "ClaimLiquidityBatch" = 'ClaimLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPosition" = 'ClaimPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClaimPositionByKeeper" = 'ClaimPositionByKeeper'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "ClosePosition" = 'ClosePosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeOld" = 'displayModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum DisplayMode" = 'enum DisplayMode'; name: "displayModeNew" = 'displayModeNew'; type: "uint8" = 'uint8' }] ; name: "DisplayModeUpdated" = 'DisplayModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { indexed: true = true; internalType: "int256" = 'int256'; name: "pnl" = 'pnl'; type: "int256" = 'int256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "interest" = 'interest'; type: "uint256" = 'uint256' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "usedKeeperFee" = 'usedKeeperFee'; type: "uint256" = 'uint256' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "Liquidate" = 'Liquidate'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeOld" = 'liquidityModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum LiquidityMode" = 'enum LiquidityMode'; name: "liquidityModeNew" = 'liquidityModeNew'; type: "uint8" = 'uint8' }] ; name: "LiquidityModeUpdated" = 'LiquidityModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }, { components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeVersion" = 'closeVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "closeTimestamp" = 'closeTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "liquidator" = 'liquidator'; type: "address" = 'address' }, { internalType: "uint16" = 'uint16'; name: "_protocolFeeRate" = '_protocolFeeRate'; type: "uint16" = 'uint16' }, { components: readonly [{ internalType: "uint16" = 'uint16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "uint16" = 'uint16' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; internalType: "struct BinMargin[]" = 'struct BinMargin[]'; name: "_binMargins" = '_binMargins'; type: "tuple[]" = 'tuple[]' }] ; indexed: false = false; internalType: "struct Position" = 'struct Position'; name: "position" = 'position'; type: "tuple" = 'tuple' }] ; name: "OpenPosition" = 'OpenPosition'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeOld" = 'positionModeOld'; type: "uint8" = 'uint8' }, { indexed: false = false; internalType: "enum PositionMode" = 'enum PositionMode'; name: "positionModeNew" = 'positionModeNew'; type: "uint8" = 'uint8' }] ; name: "PositionModeUpdated" = 'PositionModeUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateOld" = 'protocolFeeRateOld'; type: "uint16" = 'uint16' }, { indexed: false = false; internalType: "uint16" = 'uint16'; name: "protocolFeeRateNew" = 'protocolFeeRateNew'; type: "uint16" = 'uint16' }] ; name: "ProtocolFeeRateUpdated" = 'ProtocolFeeRateUpdated'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }] ; name: "RemoveLiquidity" = 'RemoveLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }] ; name: "RemoveLiquidityBatch" = 'RemoveLiquidityBatch'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt" = 'struct LpReceipt'; name: "receipt" = 'receipt'; type: "tuple" = 'tuple' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { indexed: true = true; internalType: "uint256" = 'uint256'; name: "burnedCLBTokenAmount" = 'burnedCLBTokenAmount'; type: "uint256" = 'uint256' }] ; name: "WithdrawLiquidity" = 'WithdrawLiquidity'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "oracleVersion" = 'oracleVersion'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }, { internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "enum LpAction" = 'enum LpAction'; name: "action" = 'action'; type: "uint8" = 'uint8' }, { internalType: "int16" = 'int16'; name: "tradingFeeRate" = 'tradingFeeRate'; type: "int16" = 'int16' }] ; indexed: false = false; internalType: "struct LpReceipt[]" = 'struct LpReceipt[]'; name: "receipts" = 'receipts'; type: "tuple[]" = 'tuple[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "amounts" = 'amounts'; type: "uint256[]" = 'uint256[]' }, { indexed: false = false; internalType: "uint256[]" = 'uint256[]'; name: "burnedCLBTokenAmounts" = 'burnedCLBTokenAmounts'; type: "uint256[]" = 'uint256[]' }] ; name: "WithdrawLiquidityBatch" = 'WithdrawLiquidityBatch'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "maxAllowableTradingFee" = 'maxAllowableTradingFee'; type: "uint256" = 'uint256' }, { internalType: "bytes" = 'bytes'; name: "data" = 'data'; type: "bytes" = 'bytes' }] ; name: "openPosition" = 'openPosition'; outputs: readonly [{ components: readonly [{ internalType: "uint256" = 'uint256'; name: "id" = 'id'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "openVersion" = 'openVersion'; type: "uint256" = 'uint256' }, { internalType: "int256" = 'int256'; name: "qty" = 'qty'; type: "int256" = 'int256' }, { internalType: "uint256" = 'uint256'; name: "openTimestamp" = 'openTimestamp'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "takerMargin" = 'takerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "makerMargin" = 'makerMargin'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "tradingFee" = 'tradingFee'; type: "uint256" = 'uint256' }] ; internalType: "struct OpenPositionInfo" = 'struct OpenPositionInfo'; name: "positionInfo" = 'positionInfo'; type: "tuple" = 'tuple' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:8899


testSettlementTokenABI

Const testSettlementTokenABI: readonly [{ inputs: readonly [{ internalType: "string" = 'string'; name: "name_" = 'name_'; type: "string" = 'string' }, { internalType: "string" = 'string'; name: "symbol_" = 'symbol_'; type: "string" = 'string' }, { internalType: "uint256" = 'uint256'; name: "faucetAmount_" = 'faucetAmount_'; type: "uint256" = 'uint256' }, { internalType: "uint256" = 'uint256'; name: "faucetMinInterval_" = 'faucetMinInterval_'; type: "uint256" = 'uint256' }, { internalType: "uint8" = 'uint8'; name: "decimals_" = 'decimals_'; type: "uint8" = 'uint8' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "constructor" = 'constructor' }, { inputs: readonly [] = []; name: "AlreadyFaucetedInInterval" = 'AlreadyFaucetedInInterval'; type: "error" = 'error' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "Approval" = 'Approval'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "previousOwner" = 'previousOwner'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "newOwner" = 'newOwner'; type: "address" = 'address' }] ; name: "OwnershipTransferred" = 'OwnershipTransferred'; type: "event" = 'event' }, { anonymous: false = false; inputs: readonly [{ indexed: true = true; internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { indexed: true = true; internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { indexed: false = false; internalType: "uint256" = 'uint256'; name: "value" = 'value'; type: "uint256" = 'uint256' }] ; name: "Transfer" = 'Transfer'; type: "event" = 'event' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "owner" = 'owner'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }] ; name: "allowance" = 'allowance'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "approve" = 'approve'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "account" = 'account'; type: "address" = 'address' }] ; name: "balanceOf" = 'balanceOf'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "decimals" = 'decimals'; outputs: readonly [{ internalType: "uint8" = 'uint8'; name: "" = ''; type: "uint8" = 'uint8' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "subtractedValue" = 'subtractedValue'; type: "uint256" = 'uint256' }] ; name: "decreaseAllowance" = 'decreaseAllowance'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "faucet" = 'faucet'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "faucetAmount" = 'faucetAmount'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "faucetMinInterval" = 'faucetMinInterval'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "spender" = 'spender'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "addedValue" = 'addedValue'; type: "uint256" = 'uint256' }] ; name: "increaseAllowance" = 'increaseAllowance'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; name: "lastFaucetTimestamp" = 'lastFaucetTimestamp'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "recipient" = 'recipient'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "mint" = 'mint'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "name" = 'name'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "owner" = 'owner'; outputs: readonly [{ internalType: "address" = 'address'; name: "" = ''; type: "address" = 'address' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "renounceOwnership" = 'renounceOwnership'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "faucetAmount_" = 'faucetAmount_'; type: "uint256" = 'uint256' }] ; name: "setFaucetAmount" = 'setFaucetAmount'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "uint256" = 'uint256'; name: "faucetMinInterval_" = 'faucetMinInterval_'; type: "uint256" = 'uint256' }] ; name: "setFaucetMinInterval" = 'setFaucetMinInterval'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "string" = 'string'; name: "name_" = 'name_'; type: "string" = 'string' }] ; name: "setName" = 'setName'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "string" = 'string'; name: "symbol_" = 'symbol_'; type: "string" = 'string' }] ; name: "setSymbol" = 'setSymbol'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "symbol" = 'symbol'; outputs: readonly [{ internalType: "string" = 'string'; name: "" = ''; type: "string" = 'string' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [] = []; name: "totalSupply" = 'totalSupply'; outputs: readonly [{ internalType: "uint256" = 'uint256'; name: "" = ''; type: "uint256" = 'uint256' }] ; stateMutability: "view" = 'view'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "transfer" = 'transfer'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "from" = 'from'; type: "address" = 'address' }, { internalType: "address" = 'address'; name: "to" = 'to'; type: "address" = 'address' }, { internalType: "uint256" = 'uint256'; name: "amount" = 'amount'; type: "uint256" = 'uint256' }] ; name: "transferFrom" = 'transferFrom'; outputs: readonly [{ internalType: "bool" = 'bool'; name: "" = ''; type: "bool" = 'bool' }] ; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }, { inputs: readonly [{ internalType: "address" = 'address'; name: "newOwner" = 'newOwner'; type: "address" = 'address' }] ; name: "transferOwnership" = 'transferOwnership'; outputs: readonly [] = []; stateMutability: "nonpayable" = 'nonpayable'; type: "function" = 'function' }]

Defined in

packages/sdk-viem/src/gen/index.ts:1305

Functions

adjustMakerGasLimit

adjustMakerGasLimit(gas): bigint

Parameters

NameType
gasbigint

Returns

bigint

Defined in

packages/sdk-viem/src/entities/ChromaticRouter.ts:48


adjustTakerGasLimit

adjustTakerGasLimit(gas): bigint

Parameters

NameType
gasbigint

Returns

bigint

Defined in

packages/sdk-viem/src/entities/ChromaticRouter.ts:45