Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ca48ef9
feat: validator contract with operator functionalities
Szooot Jan 27, 2026
f708223
refactor: moved filecoinpay logic to operator
Szooot Jan 27, 2026
d2d6293
some validator tests
Szooot Jan 28, 2026
358eed4
mocks & refactor
Szooot Jan 30, 2026
07f6d59
initializer changes
Szooot Feb 2, 2026
d457f36
tests & coverage
Szooot Feb 5, 2026
77e692d
conflicts
Szooot Feb 10, 2026
dd54125
refactor and cr changes
Szooot Feb 12, 2026
4989f6c
set approval params
Szooot Feb 17, 2026
68f713c
terminate deal
Szooot Feb 18, 2026
501f8b0
release capacity
Szooot Feb 18, 2026
93ffdf2
build fix
Szooot Feb 23, 2026
7bfa7a9
validator flow refactor
Szooot Mar 3, 2026
1d3c082
mocks, validator tests, filecoinpay interface & operator update
Szooot Mar 4, 2026
677747e
coverage
Szooot Mar 5, 2026
9344c49
operator functionalities fixes
Szooot Mar 5, 2026
6a72b6f
tests fix & getter for deal info
Szooot Mar 6, 2026
586ba4b
lognestDealTerm validation
Szooot Mar 9, 2026
9635af3
conflicts
Szooot Mar 9, 2026
15be613
fmt
Szooot Mar 9, 2026
40fb03f
cr changes - more explicit checks
Szooot Mar 11, 2026
aa1d13d
conflicts
Szooot Mar 11, 2026
c197865
feat: calculate amount per epoch
Szooot Mar 11, 2026
99236b3
ci happy
Szooot Mar 11, 2026
e9d6dbd
tests for terminate rail & early end epoch
Szooot Mar 12, 2026
7a7f986
cr changes & moved PoRepMarket types into PoRepTypes lib
Szooot Mar 14, 2026
5c5d686
simplified calculation on durationDays
Szooot Mar 15, 2026
5320ada
cr changes
Szooot Mar 16, 2026
4cfce3a
deal removal while terminateDeal & caller change in setDealEndEpoch
Szooot Mar 16, 2026
00d34c0
test fix
Szooot Mar 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "lib/filecoin-solidity"]
path = lib/filecoin-solidity
url = https://github.com/filecoin-project/filecoin-solidity
[submodule "lib/filecoin-pay"]
path = lib/filecoin-pay
url = https://github.com/FilOzone/filecoin-pay
59 changes: 59 additions & 0 deletions abis/Operator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[
{
"type": "function",
"name": "createRail",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "contract IERC20"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "modifyRailPayment",
"inputs": [
{
"name": "railId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "terminateRail",
"inputs": [
{
"name": "railId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateLockupPeriod",
"inputs": [
{
"name": "railId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "newLockupPeriod",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]
82 changes: 76 additions & 6 deletions abis/PoRepMarket.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{
"name": "completedDeals",
"type": "tuple[]",
"internalType": "struct PoRepMarket.DealProposal[]",
"internalType": "struct PoRepTypes.DealProposal[]",
"components": [
{
"name": "dealId",
Expand Down Expand Up @@ -151,7 +151,7 @@
{
"name": "state",
"type": "uint8",
"internalType": "enum PoRepMarket.DealState"
"internalType": "enum PoRepTypes.DealState"
},
{
"name": "railId",
Expand Down Expand Up @@ -182,7 +182,7 @@
{
"name": "",
"type": "tuple",
"internalType": "struct PoRepMarket.DealProposal",
"internalType": "struct PoRepTypes.DealProposal",
"components": [
{
"name": "dealId",
Expand Down Expand Up @@ -256,7 +256,7 @@
{
"name": "state",
"type": "uint8",
"internalType": "enum PoRepMarket.DealState"
"internalType": "enum PoRepTypes.DealState"
},
{
"name": "railId",
Expand Down Expand Up @@ -532,6 +532,29 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "terminateDeal",
"inputs": [
{
"name": "dealId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "terminator",
"type": "address",
"internalType": "address"
},
{
"name": "endEpoch",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateManifestLocation",
Expand Down Expand Up @@ -717,6 +740,12 @@
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "totalDealSize",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
Expand All @@ -740,6 +769,31 @@
],
"anonymous": false
},
{
"type": "event",
"name": "DealTerminated",
"inputs": [
{
"name": "dealId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "terminator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "endEpoch",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
Expand Down Expand Up @@ -936,6 +990,22 @@
}
]
},
{
"type": "error",
"name": "CallerIsNotValidator",
"inputs": [
{
"name": "dealId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "caller",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "DealDoesNotExist",
Expand All @@ -953,12 +1023,12 @@
{
"name": "currentState",
"type": "uint8",
"internalType": "enum PoRepMarket.DealState"
"internalType": "enum PoRepTypes.DealState"
},
{
"name": "expectedState",
"type": "uint8",
"internalType": "enum PoRepMarket.DealState"
"internalType": "enum PoRepTypes.DealState"
}
]
},
Expand Down
Loading
Loading