Skip to content
Open
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,11 @@ devnet/down:



%.abi: %.json
jq -r .abi $*.json > $@

# Download ABIs directly from PDP release:
# curl -L https://github.com/FilOzone/pdp/releases/download/vX.Y.Z/PDPVerifier.abi.json \
# -o pdp/contract/PDPVerifier.abi
# curl -L https://github.com/FilOzone/pdp/releases/download/vX.Y.Z/IPDPProvingSchedule.abi.json \
# -o pdp/contract/IPDPProvingSchedule.abi

%.go: %.abi
abigen --abi $^ --type $(notdir $*) --pkg $(notdir $(patsubst %/,%,$(dir $@))) --out $@
1 change: 0 additions & 1 deletion pdp/contract/IPDPProvingSchedule.json

This file was deleted.

210 changes: 99 additions & 111 deletions pdp/contract/PDPVerifier.abi
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
"inputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "BURN_ACTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "EXTRA_DATA_MAX_SIZE",
Expand All @@ -30,32 +17,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "FIL_USD_PRICE_FEED_ID",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "LEAF_SIZE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MAX_ENQUEUED_REMOVALS",
Expand Down Expand Up @@ -108,45 +69,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PYTH",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IPyth"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "RANDOMNESS_PRECOMPILE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "SECONDS_IN_DAY",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "UPGRADE_INTERFACE_VERSION",
Expand Down Expand Up @@ -182,6 +104,11 @@
"type": "uint256",
"internalType": "uint256"
},
{
"name": "listenerAddr",
"type": "address",
"internalType": "address"
},
{
"name": "pieceData",
"type": "tuple[]",
Expand All @@ -207,7 +134,7 @@
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
"stateMutability": "payable"
},
{
"type": "function",
Expand All @@ -217,9 +144,23 @@
"name": "setId",
"type": "uint256",
"internalType": "uint256"
},
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "calculateProofFeeForSize",
"inputs": [
{
"name": "estimatedGasFee",
"name": "rawSize",
"type": "uint256",
"internalType": "uint256"
}
Expand Down Expand Up @@ -312,6 +253,32 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "feeEffectiveTime",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint64",
"internalType": "uint64"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "feePerTiB",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint96",
"internalType": "uint96"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "findPieceIds",
Expand Down Expand Up @@ -531,24 +498,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getFILUSDPrice",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "",
"type": "int32",
"internalType": "int32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getNextChallengeEpoch",
Expand Down Expand Up @@ -815,6 +764,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "proposedFeePerTiB",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint96",
"internalType": "uint96"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "provePossession",
Expand Down Expand Up @@ -901,6 +863,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateProofFee",
"inputs": [
{
"name": "newFeePerTiB",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "upgradeToAndCall",
Expand Down Expand Up @@ -989,6 +964,31 @@
],
"anonymous": false
},
{
"type": "event",
"name": "FeeUpdateProposed",
"inputs": [
{
"name": "currentFee",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newFee",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "effectiveTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
Expand Down Expand Up @@ -1143,18 +1143,6 @@
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "price",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
},
{
"name": "expo",
"type": "int32",
"indexed": false,
"internalType": "int32"
}
],
"anonymous": false
Expand Down
Loading