Skip to content

Commit 370ea64

Browse files
committed
fix: contract function params, redeployed
1 parent 6e3fbb7 commit 370ea64

File tree

6 files changed

+50
-86
lines changed

6 files changed

+50
-86
lines changed

contracts/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
1616
### Devnet
1717
#### Arbitrum Sepolia
1818

19-
- [EscrowUniversal](https://sepolia.arbiscan.io/address/0x9B56c711C54F00276787574B6CEE97C33e690BCb)
19+
- [EscrowUniversal](https://sepolia.arbiscan.io/address/0x6e2aC8E5E18191bBa2894F9317d6F2fc50d0830E)
2020

2121
#### Sepolia
2222

contracts/deployments/arbitrumSepoliaDevnet/EscrowUniversal.json

+42-66
Large diffs are not rendered by default.

contracts/src/EscrowUniversal.sol

+2-6
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ contract EscrowUniversal is IEscrow, IArbitrableV2 {
125125
function createNativeTransaction(
126126
uint256 _deadline,
127127
string memory _transactionUri,
128-
address payable _seller,
129-
string memory _templateData,
130-
string memory _templateDataMappings
128+
address payable _seller
131129
) external payable override returns (uint256 transactionID) {
132130
Transaction storage transaction = transactions.push();
133131
transaction.buyer = payable(msg.sender);
@@ -154,9 +152,7 @@ contract EscrowUniversal is IEscrow, IArbitrableV2 {
154152
IERC20 _token,
155153
uint256 _deadline,
156154
string memory _transactionUri,
157-
address payable _seller,
158-
string memory _templateData,
159-
string memory _templateDataMappings
155+
address payable _seller
160156
) external override returns (uint256 transactionID) {
161157
// Transfers token from sender wallet to contract.
162158
if (!_token.safeTransferFrom(msg.sender, address(this), _amount)) revert TokenTransferFailed();

contracts/src/interfaces/IEscrow.sol

+2-10
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,11 @@ interface IEscrow {
7777
/// @param _deadline Time after which a party can automatically execute the arbitrable transaction.
7878
/// @param _transactionUri The IPFS Uri Hash of the transaction.
7979
/// @param _seller The recipient of the transaction.
80-
/// @param _templateData The dispute template data.
81-
/// @param _templateDataMappings The dispute template data mappings.
8280
/// @return transactionID The index of the transaction.
8381
function createNativeTransaction(
8482
uint256 _deadline,
8583
string memory _transactionUri,
86-
address payable _seller,
87-
string memory _templateData,
88-
string memory _templateDataMappings
84+
address payable _seller
8985
) external payable returns (uint256 transactionID);
9086

9187
/// @dev Create a transaction.
@@ -94,17 +90,13 @@ interface IEscrow {
9490
/// @param _deadline Time after which a party can automatically execute the arbitrable transaction.
9591
/// @param _transactionUri The IPFS Uri Hash of the transaction.
9692
/// @param _seller The recipient of the transaction.
97-
/// @param _templateData The dispute template data.
98-
/// @param _templateDataMappings The dispute template data mappings.
9993
/// @return transactionID The index of the transaction.
10094
function createERC20Transaction(
10195
uint256 _amount,
10296
IERC20 _token,
10397
uint256 _deadline,
10498
string memory _transactionUri,
105-
address payable _seller,
106-
string memory _templateData,
107-
string memory _templateDataMappings
99+
address payable _seller
108100
) external returns (uint256 transactionID);
109101

110102
/// @dev Pay seller. To be called if the good or service is provided.

subgraph/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kleros/escrow-v2-subgraph",
3-
"version": "2.0.4",
3+
"version": "2.0.6",
44
"license": "MIT",
55
"scripts": {
66
"update:arbitrum-sepolia-devnet": "./scripts/update.sh arbitrumSepoliaDevnet arbitrum-sepolia",

subgraph/subgraph.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dataSources:
66
name: EscrowUniversal
77
network: arbitrum-sepolia
88
source:
9-
address: '0x9B56c711C54F00276787574B6CEE97C33e690BCb'
9+
address: '0x6e2aC8E5E18191bBa2894F9317d6F2fc50d0830E'
1010
abi: EscrowUniversal
11-
startBlock: 58521526
11+
startBlock: 58544887
1212
mapping:
1313
kind: ethereum/events
1414
apiVersion: 0.0.6

0 commit comments

Comments
 (0)