Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ba25df6
wip bloom schema
wjmelements Oct 20, 2025
8a503aa
only shift by 8
wjmelements Oct 20, 2025
934f14e
parameterize K
wjmelements Oct 20, 2025
393a5a3
Merge remote-tracking branch 'origin/main' into bloom-schema
wjmelements Oct 21, 2025
c08fb7a
test BloomSet16
wjmelements Oct 21, 2025
35dd6c3
Errors.InsufficientCapabilitiesForProduct, and restore prior PDPOffer…
wjmelements Oct 21, 2025
62fd4b2
Merge remote-tracking branch 'origin/main' into bloom-schema
wjmelements Oct 22, 2025
2fb481e
must tag as dev
wjmelements Oct 22, 2025
1fdfd06
bytes[] capability values
wjmelements Oct 23, 2025
11dc0ba
tests build but do not yet pass
wjmelements Oct 23, 2025
e317e43
tests pass
wjmelements Oct 23, 2025
fc80b4b
mv PDPOffering.sol to test
wjmelements Oct 23, 2025
3d6682d
make update-abi
wjmelements Oct 23, 2025
17bd9ec
update subgraph: ProductUpdated and create product
wjmelements Oct 23, 2025
8061aa6
subgraph: bytes capabilityValues
wjmelements Oct 23, 2025
621f789
remove misleading exists bools
wjmelements Oct 23, 2025
f565a89
make ipni fields optional and document ipniPeerId
wjmelements Oct 23, 2025
891e3b6
getAllProductCapabilities, and add capability values to getActiveProv…
wjmelements Oct 23, 2025
7a572f1
make update-abi
wjmelements Oct 23, 2025
5a3224c
else if
wjmelements Oct 23, 2025
2709451
doc getAllProductCapabilities
wjmelements Oct 24, 2025
99d9cf9
ban empty capability value
wjmelements Oct 24, 2025
efc9773
forge lint
wjmelements Oct 24, 2025
a4d0062
feat(registry): provide more useful accessors (#328)
rvagg Oct 24, 2025
1628fde
Update service_contracts/src/lib/BloomSet.sol
wjmelements Oct 24, 2025
602b0dc
Merge remote-tracking branch 'origin/main' into bloom-schema
wjmelements Oct 24, 2025
3c28451
BigEndian library
wjmelements Oct 24, 2025
94eed74
use big endian encoding in test
wjmelements Oct 24, 2025
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
236 changes: 27 additions & 209 deletions service_contracts/abi/ServiceProviderRegistry.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,15 @@
"type": "uint8",
"internalType": "enum ServiceProviderRegistryStorage.ProductType"
},
{
"name": "productData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
"internalType": "string[]"
},
{
"name": "capabilityValues",
"type": "string[]",
"internalType": "string[]"
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
Expand Down Expand Up @@ -282,11 +277,6 @@
"type": "uint8",
"internalType": "enum ServiceProviderRegistryStorage.ProductType"
},
{
"name": "productData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
Expand Down Expand Up @@ -353,82 +343,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getPDPService",
"inputs": [
{
"name": "providerId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "pdpOffering",
"type": "tuple",
"internalType": "struct ServiceProviderRegistryStorage.PDPOffering",
"components": [
{
"name": "serviceURL",
"type": "string",
"internalType": "string"
},
{
"name": "minPieceSizeInBytes",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxPieceSizeInBytes",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "ipniPiece",
"type": "bool",
"internalType": "bool"
},
{
"name": "ipniIpfs",
"type": "bool",
"internalType": "bool"
},
{
"name": "storagePricePerTibPerMonth",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minProvingPeriodInEpochs",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "location",
"type": "string",
"internalType": "string"
},
{
"name": "paymentTokenAddress",
"type": "address",
"internalType": "contract IERC20"
}
]
},
{
"name": "capabilityKeys",
"type": "string[]",
"internalType": "string[]"
},
{
"name": "isActive",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getProduct",
Expand All @@ -445,11 +359,6 @@
}
],
"outputs": [
{
"name": "productData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
Expand Down Expand Up @@ -491,8 +400,8 @@
},
{
"name": "values",
"type": "string[]",
"internalType": "string[]"
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"stateMutability": "view"
Expand Down Expand Up @@ -525,8 +434,8 @@
},
{
"name": "value",
"type": "string",
"internalType": "string"
"type": "bytes",
"internalType": "bytes"
}
],
"stateMutability": "view"
Expand Down Expand Up @@ -839,11 +748,6 @@
"type": "uint8",
"internalType": "enum ServiceProviderRegistryStorage.ProductType"
},
{
"name": "productData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
Expand Down Expand Up @@ -962,8 +866,8 @@
"outputs": [
{
"name": "value",
"type": "string",
"internalType": "string"
"type": "bytes",
"internalType": "bytes"
}
],
"stateMutability": "view"
Expand Down Expand Up @@ -1032,11 +936,6 @@
"type": "uint8",
"internalType": "enum ServiceProviderRegistryStorage.ProductType"
},
{
"name": "productData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "isActive",
"type": "bool",
Expand Down Expand Up @@ -1121,20 +1020,15 @@
"type": "uint8",
"internalType": "enum ServiceProviderRegistryStorage.ProductType"
},
{
"name": "productData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
"internalType": "string[]"
},
{
"name": "capabilityValues",
"type": "string[]",
"internalType": "string[]"
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [
Expand Down Expand Up @@ -1186,76 +1080,6 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updatePDPServiceWithCapabilities",
"inputs": [
{
"name": "pdpOffering",
"type": "tuple",
"internalType": "struct ServiceProviderRegistryStorage.PDPOffering",
"components": [
{
"name": "serviceURL",
"type": "string",
"internalType": "string"
},
{
"name": "minPieceSizeInBytes",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxPieceSizeInBytes",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "ipniPiece",
"type": "bool",
"internalType": "bool"
},
{
"name": "ipniIpfs",
"type": "bool",
"internalType": "bool"
},
{
"name": "storagePricePerTibPerMonth",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minProvingPeriodInEpochs",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "location",
"type": "string",
"internalType": "string"
},
{
"name": "paymentTokenAddress",
"type": "address",
"internalType": "contract IERC20"
}
]
},
{
"name": "capabilityKeys",
"type": "string[]",
"internalType": "string[]"
},
{
"name": "capabilityValues",
"type": "string[]",
"internalType": "string[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateProduct",
Expand All @@ -1265,20 +1089,15 @@
"type": "uint8",
"internalType": "enum ServiceProviderRegistryStorage.ProductType"
},
{
"name": "productData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
"internalType": "string[]"
},
{
"name": "capabilityValues",
"type": "string[]",
"internalType": "string[]"
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
Expand Down Expand Up @@ -1399,12 +1218,6 @@
"indexed": false,
"internalType": "address"
},
{
"name": "productData",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
Expand All @@ -1413,9 +1226,9 @@
},
{
"name": "capabilityValues",
"type": "string[]",
"type": "bytes[]",
"indexed": false,
"internalType": "string[]"
"internalType": "bytes[]"
}
],
"anonymous": false
Expand Down Expand Up @@ -1461,12 +1274,6 @@
"indexed": false,
"internalType": "address"
},
{
"name": "productData",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "capabilityKeys",
"type": "string[]",
Expand All @@ -1475,9 +1282,9 @@
},
{
"name": "capabilityValues",
"type": "string[]",
"type": "bytes[]",
"indexed": false,
"internalType": "string[]"
"internalType": "bytes[]"
}
],
"anonymous": false
Expand Down Expand Up @@ -1578,6 +1385,17 @@
"name": "FailedCall",
"inputs": []
},
{
"type": "error",
"name": "InsufficientCapabilitiesForProduct",
"inputs": [
{
"name": "productType",
"type": "uint8",
"internalType": "enum ServiceProviderRegistryStorage.ProductType"
}
]
},
{
"type": "error",
"name": "InvalidInitialization",
Expand Down
Loading
Loading