diff --git a/src/Tribunal.sol b/src/Tribunal.sol index 9742730..b5c5e15 100644 --- a/src/Tribunal.sol +++ b/src/Tribunal.sol @@ -33,6 +33,8 @@ contract Tribunal { uint256 expires; // Claim expiration timestamp uint256 id; // Claimed ERC6909 token ID uint256 maximumAmount; // Maximum claimable tokens + bytes sponsorSignature; // Authorization from the sponsor + bytes allocatorSignature; // Authorization from the allocator } struct Mandate { diff --git a/test/Tribunal.t.sol b/test/Tribunal.t.sol index 84b2fdd..5e8e8a0 100644 --- a/test/Tribunal.t.sol +++ b/test/Tribunal.t.sol @@ -128,7 +128,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); Tribunal.Directive memory directive = @@ -162,7 +164,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); Tribunal.Directive memory directive = @@ -196,7 +200,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); Tribunal.Directive memory directive = @@ -420,7 +426,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); Tribunal.Directive memory directive = @@ -456,7 +464,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); Tribunal.Directive memory directive = @@ -500,7 +510,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); // First derive the mandate hash @@ -545,7 +557,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); address claimant = address(this); @@ -593,7 +607,9 @@ contract TribunalTest is Test { nonce: 0, expires: block.timestamp + 1 hours, id: 1, - maximumAmount: 1 ether + maximumAmount: 1 ether, + sponsorSignature: new bytes(0), + allocatorSignature: new bytes(0) }); Tribunal.Directive memory directive =