-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c362d8
commit 9f4c6a5
Showing
6 changed files
with
2,179 additions
and
2,367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,183 +1,183 @@ | ||
export const BALANCER_ABI = [ | ||
{ | ||
"inputs": [ | ||
inputs: [ | ||
{ | ||
"internalType": "enum IVault.SwapKind", | ||
"name": "kind", | ||
"type": "uint8" | ||
internalType: 'enum IVault.SwapKind', | ||
name: 'kind', | ||
type: 'uint8', | ||
}, | ||
{ | ||
"components": [ | ||
components: [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "poolId", | ||
"type": "bytes32" | ||
internalType: 'bytes32', | ||
name: 'poolId', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "assetInIndex", | ||
"type": "uint256" | ||
internalType: 'uint256', | ||
name: 'assetInIndex', | ||
type: 'uint256', | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "assetOutIndex", | ||
"type": "uint256" | ||
internalType: 'uint256', | ||
name: 'assetOutIndex', | ||
type: 'uint256', | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
internalType: 'uint256', | ||
name: 'amount', | ||
type: 'uint256', | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "userData", | ||
"type": "bytes" | ||
} | ||
internalType: 'bytes', | ||
name: 'userData', | ||
type: 'bytes', | ||
}, | ||
], | ||
"internalType": "struct IVault.BatchSwapStep[]", | ||
"name": "swaps", | ||
"type": "tuple[]" | ||
internalType: 'struct IVault.BatchSwapStep[]', | ||
name: 'swaps', | ||
type: 'tuple[]', | ||
}, | ||
{ | ||
"internalType": "contract IAsset[]", | ||
"name": "assets", | ||
"type": "address[]" | ||
internalType: 'contract IAsset[]', | ||
name: 'assets', | ||
type: 'address[]', | ||
}, | ||
{ | ||
"components": [ | ||
components: [ | ||
{ | ||
"internalType": "address", | ||
"name": "sender", | ||
"type": "address" | ||
internalType: 'address', | ||
name: 'sender', | ||
type: 'address', | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "fromInternalBalance", | ||
"type": "bool" | ||
internalType: 'bool', | ||
name: 'fromInternalBalance', | ||
type: 'bool', | ||
}, | ||
{ | ||
"internalType": "address payable", | ||
"name": "recipient", | ||
"type": "address" | ||
internalType: 'address payable', | ||
name: 'recipient', | ||
type: 'address', | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "toInternalBalance", | ||
"type": "bool" | ||
} | ||
internalType: 'bool', | ||
name: 'toInternalBalance', | ||
type: 'bool', | ||
}, | ||
], | ||
"internalType": "struct IVault.FundManagement", | ||
"name": "funds", | ||
"type": "tuple" | ||
internalType: 'struct IVault.FundManagement', | ||
name: 'funds', | ||
type: 'tuple', | ||
}, | ||
{ | ||
"internalType": "int256[]", | ||
"name": "limits", | ||
"type": "int256[]" | ||
internalType: 'int256[]', | ||
name: 'limits', | ||
type: 'int256[]', | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "deadline", | ||
"type": "uint256" | ||
} | ||
internalType: 'uint256', | ||
name: 'deadline', | ||
type: 'uint256', | ||
}, | ||
], | ||
"name": "batchSwap", | ||
"outputs": [ | ||
name: 'batchSwap', | ||
outputs: [ | ||
{ | ||
"internalType": "int256[]", | ||
"name": "assetDeltas", | ||
"type": "int256[]" | ||
} | ||
internalType: 'int256[]', | ||
name: 'assetDeltas', | ||
type: 'int256[]', | ||
}, | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
{ | ||
"inputs": [ | ||
inputs: [ | ||
{ | ||
"components": [ | ||
components: [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "poolId", | ||
"type": "bytes32" | ||
internalType: 'bytes32', | ||
name: 'poolId', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
"internalType": "enum IVault.SwapKind", | ||
"name": "kind", | ||
"type": "uint8" | ||
internalType: 'enum IVault.SwapKind', | ||
name: 'kind', | ||
type: 'uint8', | ||
}, | ||
{ | ||
"internalType": "contract IAsset", | ||
"name": "assetIn", | ||
"type": "address" | ||
internalType: 'contract IAsset', | ||
name: 'assetIn', | ||
type: 'address', | ||
}, | ||
{ | ||
"internalType": "contract IAsset", | ||
"name": "assetOut", | ||
"type": "address" | ||
internalType: 'contract IAsset', | ||
name: 'assetOut', | ||
type: 'address', | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
internalType: 'uint256', | ||
name: 'amount', | ||
type: 'uint256', | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "userData", | ||
"type": "bytes" | ||
} | ||
internalType: 'bytes', | ||
name: 'userData', | ||
type: 'bytes', | ||
}, | ||
], | ||
"internalType": "struct IVault.SingleSwap", | ||
"name": "singleSwap", | ||
"type": "tuple" | ||
internalType: 'struct IVault.SingleSwap', | ||
name: 'singleSwap', | ||
type: 'tuple', | ||
}, | ||
{ | ||
"components": [ | ||
components: [ | ||
{ | ||
"internalType": "address", | ||
"name": "sender", | ||
"type": "address" | ||
internalType: 'address', | ||
name: 'sender', | ||
type: 'address', | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "fromInternalBalance", | ||
"type": "bool" | ||
internalType: 'bool', | ||
name: 'fromInternalBalance', | ||
type: 'bool', | ||
}, | ||
{ | ||
"internalType": "address payable", | ||
"name": "recipient", | ||
"type": "address" | ||
internalType: 'address payable', | ||
name: 'recipient', | ||
type: 'address', | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "toInternalBalance", | ||
"type": "bool" | ||
} | ||
internalType: 'bool', | ||
name: 'toInternalBalance', | ||
type: 'bool', | ||
}, | ||
], | ||
"internalType": "struct IVault.FundManagement", | ||
"name": "funds", | ||
"type": "tuple" | ||
internalType: 'struct IVault.FundManagement', | ||
name: 'funds', | ||
type: 'tuple', | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "limit", | ||
"type": "uint256" | ||
internalType: 'uint256', | ||
name: 'limit', | ||
type: 'uint256', | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "deadline", | ||
"type": "uint256" | ||
} | ||
internalType: 'uint256', | ||
name: 'deadline', | ||
type: 'uint256', | ||
}, | ||
], | ||
"name": "swap", | ||
"outputs": [ | ||
name: 'swap', | ||
outputs: [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "amountCalculated", | ||
"type": "uint256" | ||
} | ||
internalType: 'uint256', | ||
name: 'amountCalculated', | ||
type: 'uint256', | ||
}, | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
} | ||
] | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
] |
Oops, something went wrong.