-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added functionality for manyDeposits change in the escrow
Signed-off-by: carlos.vdr <carlos.vdr@semiotic.ai>
- Loading branch information
Showing
6 changed files
with
146 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,130 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_token", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_allocationID", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_indexer", | ||
"type": "address" | ||
} | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_subgraphDeploymentID", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_tokens", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_allocationID", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_metadata", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_proof", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "allocate", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_tokens", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_allocationID", | ||
"type": "address" | ||
} | ||
], | ||
"name": "collect", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_tokens", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_allocationID", | ||
"type": "address" | ||
} | ||
], | ||
"name": "collect", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_allocationID", | ||
"type": "address" | ||
} | ||
], | ||
"name": "getAllocation", | ||
"outputs": [ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_allocationID", | ||
"type": "address" | ||
} | ||
], | ||
"name": "getAllocation", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "indexer", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_subgraphDeploymentID", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_tokens", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_allocationID", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_metadata", | ||
"type": "bytes32" | ||
} | ||
], | ||
"internalType": "struct IStaking.Allocation", | ||
"name": "", | ||
"type": "tuple" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"components": [ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "indexer", | ||
"name": "_assetHolder", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "_allowed", | ||
"type": "bool" | ||
} | ||
], | ||
"internalType": "struct IStaking.Allocation", | ||
"name": "", | ||
"type": "tuple" | ||
"name": "setAssetHolder", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_tokens", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "stake", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
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
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
Submodule timeline-aggregation-protocol-contracts
updated
11 files
+3 −0 | .gitmodules | |
+5 −2 | foundry.toml | |
+1 −0 | lib/contracts | |
+1 −1 | package.json | |
+9 −1 | remappings.txt | |
+37 −0 | script/deploy.s.sol | |
+119 −0 | scripts/integration_tests.sh | |
+1 −1 | src/Escrow.sol | |
+13 −0 | src/IStaking.sol | |
+379 −126 | test/Escrow.t.sol | |
+30 −2 | test/MockStaking.sol |