From 170018f45b83d998af9e5055ffb03dc0e94876d4 Mon Sep 17 00:00:00 2001 From: solidoracle <105349716+solidoracle@users.noreply.github.com> Date: Wed, 15 May 2024 14:20:53 +0200 Subject: [PATCH] address and abi change (#35) --- bulla-contracts/abis/BullaFactoring.json | 59 ++++++++++++++++++++++-- bulla-contracts/config/sepolia.json | 2 +- 2 files changed, 56 insertions(+), 5 deletions(-) diff --git a/bulla-contracts/abis/BullaFactoring.json b/bulla-contracts/abis/BullaFactoring.json index 09c3668..bbf6b6f 100644 --- a/bulla-contracts/abis/BullaFactoring.json +++ b/bulla-contracts/abis/BullaFactoring.json @@ -332,6 +332,11 @@ "name": "InvoiceCanceled", "type": "error" }, + { + "inputs": [], + "name": "InvoiceCreditorChanged", + "type": "error" + }, { "inputs": [], "name": "InvoiceNotApproved", @@ -821,6 +826,19 @@ "name": "InvoiceKickbackAmountSent", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IInvoiceProviderAdapter", + "name": "newInvoiceProviderAdapter", + "type": "address" + } + ], + "name": "InvoiceProviderAdapterChanged", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1265,7 +1283,7 @@ }, { "internalType": "uint16", - "name": "minDays", + "name": "minDaysInterestApplied", "type": "uint16" } ], @@ -1296,6 +1314,11 @@ "name": "faceValue", "type": "uint256" }, + { + "internalType": "address", + "name": "creditor", + "type": "address" + }, { "internalType": "address", "name": "debtor", @@ -1363,7 +1386,7 @@ }, { "internalType": "uint16", - "name": "minDays", + "name": "minDaysInterestApplied", "type": "uint16" } ], @@ -1466,11 +1489,26 @@ "outputs": [ { "internalType": "uint256", - "name": "", + "name": "kickbackAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "trueInterest", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "trueProtocolFee", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "taxAmount", "type": "uint256" } ], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { @@ -2412,6 +2450,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "contract IInvoiceProviderAdapter", + "name": "_newInvoiceProviderAdapter", + "type": "address" + } + ], + "name": "setInvoiceProviderAdapter", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/bulla-contracts/config/sepolia.json b/bulla-contracts/config/sepolia.json index ecd7676..da08e99 100644 --- a/bulla-contracts/config/sepolia.json +++ b/bulla-contracts/config/sepolia.json @@ -8,5 +8,5 @@ "bullaFinance": { "address": "0xB219ecd037E8A5410d2e8839586D9F3996685cfB", "startBlock": 5096555 }, "frendLend": { "address": "0x3E058834CE20A54F0755889c008D3fF62D33cE85", "startBlock": 5096555 }, "instantPayment": { "address": "0x1cD1A83C2965CB7aD55d60551877Eb390e9C3d7A", "startBlock": 5096555 }, - "bullaFactoring": { "address": "0xd55077b4e2E80bB9d76235E49dbfF330d2a39b0d", "startBlock": 5752212 } + "bullaFactoring": { "address": "0x2371A9F2c103f8f546a969109B350d6A13d0851B", "startBlock": 5752212 } } \ No newline at end of file