diff --git a/src/abis/json/LimitOrderManager.json b/src/abis/json/LimitOrderManager.json index c6f433d..30bb717 100644 --- a/src/abis/json/LimitOrderManager.json +++ b/src/abis/json/LimitOrderManager.json @@ -5,6 +5,11 @@ "internalType": "contract ILBFactory", "name": "factory", "type": "address" + }, + { + "internalType": "contract IWNATIVE", + "name": "wNative", + "type": "address" } ], "stateMutability": "nonpayable", @@ -15,6 +20,11 @@ "name": "LimitOrderManager__InvalidBatchLength", "type": "error" }, + { + "inputs": [], + "name": "LimitOrderManager__InvalidNativeAmount", + "type": "error" + }, { "inputs": [], "name": "LimitOrderManager__InvalidOrder", "type": "error" }, { "inputs": [], "name": "LimitOrderManager__InvalidPair", "type": "error" }, { @@ -52,6 +62,11 @@ "name": "LimitOrderManager__OrdersAlreadyExecuted", "type": "error" }, + { + "inputs": [], + "name": "LimitOrderManager__TransferFailed", + "type": "error" + }, { "inputs": [], "name": "LimitOrderManager__ZeroAddress", "type": "error" }, { "inputs": [], "name": "LimitOrderManager__ZeroAmount", "type": "error" }, { @@ -546,7 +561,7 @@ "type": "uint256[]" } ], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { @@ -585,7 +600,7 @@ "type": "uint256[]" } ], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { @@ -878,7 +893,7 @@ "type": "uint256" } ], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" } ] diff --git a/src/abis/ts/LimitOrderManager.ts b/src/abis/ts/LimitOrderManager.ts index 8a55221..7ca1601 100644 --- a/src/abis/ts/LimitOrderManager.ts +++ b/src/abis/ts/LimitOrderManager.ts @@ -1,12 +1,14 @@ export const LimitOrderManagerABI = [ { inputs: [ - { internalType: 'contract ILBFactory', name: 'factory', type: 'address' } + { internalType: 'contract ILBFactory', name: 'factory', type: 'address' }, + { internalType: 'contract IWNATIVE', name: 'wNative', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'LimitOrderManager__InvalidBatchLength', type: 'error' }, + { inputs: [], name: 'LimitOrderManager__InvalidNativeAmount', type: 'error' }, { inputs: [], name: 'LimitOrderManager__InvalidOrder', type: 'error' }, { inputs: [], name: 'LimitOrderManager__InvalidPair', type: 'error' }, { inputs: [], name: 'LimitOrderManager__InvalidTokenOrder', type: 'error' }, @@ -24,6 +26,7 @@ export const LimitOrderManagerABI = [ name: 'LimitOrderManager__OrdersAlreadyExecuted', type: 'error' }, + { inputs: [], name: 'LimitOrderManager__TransferFailed', type: 'error' }, { inputs: [], name: 'LimitOrderManager__ZeroAddress', type: 'error' }, { inputs: [], name: 'LimitOrderManager__ZeroAmount', type: 'error' }, { @@ -399,7 +402,7 @@ export const LimitOrderManagerABI = [ outputs: [ { internalType: 'uint256[]', name: 'orderPositionIds', type: 'uint256[]' } ], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function' }, { @@ -426,7 +429,7 @@ export const LimitOrderManagerABI = [ outputs: [ { internalType: 'uint256[]', name: 'orderPositionIds', type: 'uint256[]' } ], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function' }, { @@ -629,7 +632,7 @@ export const LimitOrderManagerABI = [ outputs: [ { internalType: 'uint256', name: 'orderPositionId', type: 'uint256' } ], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function' } ] as const diff --git a/src/constants/v2Addrs.ts b/src/constants/v2Addrs.ts index 44e41a4..8e6e459 100644 --- a/src/constants/v2Addrs.ts +++ b/src/constants/v2Addrs.ts @@ -108,10 +108,10 @@ export const LIQUIDITY_AMOUNTS_HELPER_ADDRESS: { export const LIMIT_ORDER_MANAGER_ADDRESS: { [chainId in ChainId]: Hex } = { - [ChainId.FUJI]: '0x73bae648ac01f721e7fbef045e2062de33ef6615', - [ChainId.AVALANCHE]: '0x73bae648ac01f721e7fbef045e2062de33ef6615', - [ChainId.ARBITRUM_ONE]: '0x73bae648ac01f721e7fbef045e2062de33ef6615', - [ChainId.ARB_GOERLI]: '0x73bae648ac01f721e7fbef045e2062de33ef6615', - [ChainId.BNB_CHAIN]: '0x73bae648ac01f721e7fbef045e2062de33ef6615', - [ChainId.BNB_TESTNET]: '0x73bae648ac01f721e7fbef045e2062de33ef6615' + [ChainId.FUJI]: '0xd88401763206db1C32A3bd938CBD205b9fcde5b5', + [ChainId.AVALANCHE]: '0xd88401763206db1C32A3bd938CBD205b9fcde5b5', + [ChainId.ARBITRUM_ONE]: '0xd88401763206db1C32A3bd938CBD205b9fcde5b5', + [ChainId.ARB_GOERLI]: '0xd88401763206db1C32A3bd938CBD205b9fcde5b5', + [ChainId.BNB_CHAIN]: '0xd88401763206db1C32A3bd938CBD205b9fcde5b5', + [ChainId.BNB_TESTNET]: '0xd88401763206db1C32A3bd938CBD205b9fcde5b5' }