Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
update limit order manager (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-3-7 authored Jun 6, 2023
1 parent d9293a0 commit 86d7ade
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
21 changes: 18 additions & 3 deletions src/abis/json/LimitOrderManager.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"internalType": "contract ILBFactory",
"name": "factory",
"type": "address"
},
{
"internalType": "contract IWNATIVE",
"name": "wNative",
"type": "address"
}
],
"stateMutability": "nonpayable",
Expand All @@ -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" },
{
Expand Down Expand Up @@ -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" },
{
Expand Down Expand Up @@ -546,7 +561,7 @@
"type": "uint256[]"
}
],
"stateMutability": "nonpayable",
"stateMutability": "payable",
"type": "function"
},
{
Expand Down Expand Up @@ -585,7 +600,7 @@
"type": "uint256[]"
}
],
"stateMutability": "nonpayable",
"stateMutability": "payable",
"type": "function"
},
{
Expand Down Expand Up @@ -878,7 +893,7 @@
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"stateMutability": "payable",
"type": "function"
}
]
11 changes: 7 additions & 4 deletions src/abis/ts/LimitOrderManager.ts
Original file line number Diff line number Diff line change
@@ -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' },
Expand All @@ -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' },
{
Expand Down Expand Up @@ -399,7 +402,7 @@ export const LimitOrderManagerABI = [
outputs: [
{ internalType: 'uint256[]', name: 'orderPositionIds', type: 'uint256[]' }
],
stateMutability: 'nonpayable',
stateMutability: 'payable',
type: 'function'
},
{
Expand All @@ -426,7 +429,7 @@ export const LimitOrderManagerABI = [
outputs: [
{ internalType: 'uint256[]', name: 'orderPositionIds', type: 'uint256[]' }
],
stateMutability: 'nonpayable',
stateMutability: 'payable',
type: 'function'
},
{
Expand Down Expand Up @@ -629,7 +632,7 @@ export const LimitOrderManagerABI = [
outputs: [
{ internalType: 'uint256', name: 'orderPositionId', type: 'uint256' }
],
stateMutability: 'nonpayable',
stateMutability: 'payable',
type: 'function'
}
] as const
12 changes: 6 additions & 6 deletions src/constants/v2Addrs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit 86d7ade

Please sign in to comment.