Skip to content

Commit

Permalink
update swap contract (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
solidoracle authored Nov 12, 2024
1 parent 7dc3310 commit e316a1e
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 48 deletions.
150 changes: 103 additions & 47 deletions bulla-contracts/abis/BullaSwap.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,73 @@
"name": "OrderCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "orderId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "signerWallet",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "orderId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expiry",
"type": "uint256"
},
{
"internalType": "address",
"name": "signerWallet",
"type": "address"
},
{
"internalType": "address",
"name": "signerToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "signerAmount",
"type": "uint256"
},
{
"internalType": "address",
"name": "senderWallet",
"type": "address"
},
{
"internalType": "address",
"name": "senderToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "senderAmount",
"type": "uint256"
}
],
"indexed": false,
"internalType": "struct IBullaSwap.OrderERC20",
"name": "order",
"type": "tuple"
}
],
"name": "OrderDeleted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -283,11 +350,6 @@
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "orderId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expiry",
Expand Down Expand Up @@ -324,8 +386,8 @@
"type": "uint256"
}
],
"internalType": "struct IBullaSwap.OrderERC20",
"name": "order",
"internalType": "struct IBullaSwap.CreateOrderParams",
"name": "params",
"type": "tuple"
}
],
Expand All @@ -340,6 +402,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "orderId",
"type": "uint256"
}
],
"name": "deleteOrder",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand All @@ -366,20 +441,33 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "result",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
"internalType": "address",
"name": "pendingOwner",
"type": "address"
}
],
"name": "orderExecuted",
"name": "ownershipHandoverExpiresAt",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
"internalType": "uint256",
"name": "result",
"type": "uint256"
}
],
"stateMutability": "view",
Expand All @@ -393,7 +481,7 @@
"type": "uint256"
}
],
"name": "orders",
"name": "pendingOrders",
"outputs": [
{
"internalType": "uint256",
Expand Down Expand Up @@ -439,38 +527,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "result",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "pendingOwner",
"type": "address"
}
],
"name": "ownershipHandoverExpiresAt",
"outputs": [
{
"internalType": "uint256",
"name": "result",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
Expand Down
2 changes: 1 addition & 1 deletion bulla-contracts/config/sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"instantPayment": { "address": "0x1cD1A83C2965CB7aD55d60551877Eb390e9C3d7A", "startBlock": 5096555 },
"bullaFactoring": { "address": "0x0000000000000000000000000000000000000000", "startBlock": 6631476 },
"bullaFactoringv2": { "address": "0xDF0fCe31285dcAB9124bF763AB9E5466723BeF35", "startBlock": 6812207 },
"bullaSwap": { "address": "0xdf30BE5964a7E26b49551a430e85B51148A7b95E", "startBlock": 6982025 }
"bullaSwap": { "address": "0x8bE513f12DA334273e30b0eC30c1b5e9fE3c6daD", "startBlock": 7059406 }
}

0 comments on commit e316a1e

Please sign in to comment.