Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use createAsset util function from ocean.js. #14

Merged
merged 5 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 3 additions & 5 deletions metadata/jsAlgo.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"@context": [
"https://w3id.org/did/v1"
],
"@context": ["https://w3id.org/did/v1"],
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": 137,
"chainId": null,
"metadata": {
"created": "2023-08-01T17:09:39Z",
"updated": "2023-08-01T17:09:39Z",
Expand Down Expand Up @@ -68,4 +66,4 @@
"owner": "",
"created": ""
}
}
}
128 changes: 63 additions & 65 deletions metadata/jsIPFSAlgo.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,68 @@
{
"@context": [
"https://w3id.org/did/v1"
],
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": 8996,
"metadata": {
"created": "2023-08-01T17:09:39Z",
"updated": "2023-08-01T17:09:39Z",
"type": "algorithm",
"name": "avreage price real estate algo",
"description": "Cli algo",
"author": "OPF",
"license": "https://market.oceanprotocol.com/terms",
"additionalInformation": {
"termsAndConditions": true
},
"algorithm": {
"language": "",
"version": "0.1",
"container": {
"entrypoint": "node $ALGO",
"image": "node",
"tag": "latest",
"checksum": "sha256:1155995dda741e93afe4b1c6ced2d01734a6ec69865cc0997daf1f4db7259a36"
}
}
"@context": ["https://w3id.org/did/v1"],
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": null,
"metadata": {
"created": "2023-08-01T17:09:39Z",
"updated": "2023-08-01T17:09:39Z",
"type": "algorithm",
"name": "avreage price real estate algo",
"description": "Cli algo",
"author": "OPF",
"license": "https://market.oceanprotocol.com/terms",
"additionalInformation": {
"termsAndConditions": true
},
"services": [
{
"id": "1234567890",
"type": "compute",
"files": {
"datatokenAddress": "0x0",
"nftAddress": "0x0",
"files": [
{
"hash": "QmQN9hWcqN7chF3qrAL5HpZSkfc9kvjSH7o4LaGVMxs9gu",
"type" : "ipfs"
}
]
},
"timeout": 86400,
"compute": {
"allowRawAlgorithm": false,
"allowNetworkAccess": true,
"publisherTrustedAlgorithmPublishers": [],
"publisherTrustedAlgorithms": []
}
"algorithm": {
"language": "",
"version": "0.1",
"container": {
"entrypoint": "node $ALGO",
"image": "node",
"tag": "latest",
"checksum": "sha256:1155995dda741e93afe4b1c6ced2d01734a6ec69865cc0997daf1f4db7259a36"
}
],
"stats": {
"allocated": 0,
"orders": 0,
"price": {
"value": "0"
}
},
"services": [
{
"id": "1234567890",
"type": "compute",
"files": {
"datatokenAddress": "0x0",
"nftAddress": "0x0",
"files": [
{
"hash": "QmQN9hWcqN7chF3qrAL5HpZSkfc9kvjSH7o4LaGVMxs9gu",
"type": "ipfs"
}
]
},
"timeout": 86400,
"compute": {
"allowRawAlgorithm": false,
"allowNetworkAccess": true,
"publisherTrustedAlgorithmPublishers": [],
"publisherTrustedAlgorithms": []
}
},
"nft": {
"address": "",
"name": "Ocean Data NFT",
"symbol": "OCEAN-NFT",
"state": 5,
"tokenURI": "",
"owner": "",
"created": ""
}
}
],
"stats": {
"allocated": 0,
"orders": 0,
"price": {
"value": "0"
}
},
"nft": {
"address": "",
"name": "Ocean Data NFT",
"symbol": "OCEAN-NFT",
"state": 5,
"tokenURI": "",
"owner": "",
"created": ""
}
}
6 changes: 2 additions & 4 deletions metadata/pythonAlgo.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"@context": [
"https://w3id.org/did/v1"
],
"@context": ["https://w3id.org/did/v1"],
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": 8996,
"chainId": null,
"metadata": {
"created": "2023-08-01T17:09:39Z",
"updated": "2023-08-01T17:09:39Z",
Expand Down
16 changes: 5 additions & 11 deletions metadata/simpleComputeDataset.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
"@context": [
"https://w3id.org/did/v1"
],
"@context": ["https://w3id.org/did/v1"],
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": 8996,
"chainId": null,
"metadata": {
"created": "2021-12-20T14:35:20Z",
"updated": "2021-12-20T14:35:20Z",
"type": "dataset",
"name": "cli fixed asset",
"description": "asset published using ocean.js cli tool",
"tags": [
"test"
],
"tags": ["test"],
"author": "oceanprotocol",
"license": "https://market.oceanprotocol.com/terms",
"additionalInformation": {
Expand Down Expand Up @@ -47,8 +43,7 @@
}
}
],
"event": {
},
"event": {},
"nft": {
"address": "",
"name": "Ocean Data NFT",
Expand All @@ -61,8 +56,7 @@
"purgatory": {
"state": false
},
"datatokens": [
],
"datatokens": [],
"stats": {
"allocated": 0,
"orders": 0,
Expand Down
2 changes: 1 addition & 1 deletion metadata/simpleDownloadDataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": 11155420,
"chainId": null,
"metadata": {
"created": "2021-12-20T14:35:20Z",
"updated": "2021-12-20T14:35:20Z",
Expand Down
132 changes: 63 additions & 69 deletions metadata/simpleIPFSComputeDataset.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,66 @@
{
"@context": [
"https://w3id.org/did/v1"
],
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": 8996,
"metadata": {
"created": "2021-12-20T14:35:20Z",
"updated": "2021-12-20T14:35:20Z",
"type": "dataset",
"name": "dubai real estate data",
"description": "dubai real estate dataset published using ocean.js cli tool",
"tags": [
"test"
],
"author": "oceanprotocol",
"license": "https://market.oceanprotocol.com/terms",
"additionalInformation": {
"termsAndConditions": true
}
},
"services": [
{
"id": "ccb398c50d6abd5b456e8d7242bd856a1767a890b537c2f8c10ba8b8a10e6025",
"type": "compute",
"files": {
"datatokenAddress": "0x0",
"nftAddress": "0x0",
"files": [
{
"type": "ipfs",
"hash": "QmdXLHfMwupDZbMXmTD1qA8QAiVfHdt1NiGwvokppdUxj4"
}
]
},
"datatokenAddress": "",
"serviceEndpoint": "https://v4.provider.oceanprotocol.com",
"timeout": 86400,
"compute": {
"allowRawAlgorithm": false,
"allowNetworkAccess": true,
"publisherTrustedAlgorithmPublishers": [],
"publisherTrustedAlgorithms": []
}
}
],
"event": {
},
"nft": {
"address": "",
"name": "Ocean Data NFT",
"symbol": "OCEAN-NFT",
"state": 5,
"tokenURI": "",
"owner": "",
"created": ""
},
"purgatory": {
"state": false
},
"datatokens": [
],
"stats": {
"allocated": 0,
"orders": 0,
"price": {
"value": "0"
"@context": ["https://w3id.org/did/v1"],
"id": "",
"nftAddress": "",
"version": "4.1.0",
"chainId": null,
"metadata": {
"created": "2021-12-20T14:35:20Z",
"updated": "2021-12-20T14:35:20Z",
"type": "dataset",
"name": "dubai real estate data",
"description": "dubai real estate dataset published using ocean.js cli tool",
"tags": ["test"],
"author": "oceanprotocol",
"license": "https://market.oceanprotocol.com/terms",
"additionalInformation": {
"termsAndConditions": true
}
},
"services": [
{
"id": "ccb398c50d6abd5b456e8d7242bd856a1767a890b537c2f8c10ba8b8a10e6025",
"type": "compute",
"files": {
"datatokenAddress": "0x0",
"nftAddress": "0x0",
"files": [
{
"type": "ipfs",
"hash": "QmdXLHfMwupDZbMXmTD1qA8QAiVfHdt1NiGwvokppdUxj4"
}
]
},
"datatokenAddress": "",
"serviceEndpoint": "https://v4.provider.oceanprotocol.com",
"timeout": 86400,
"compute": {
"allowRawAlgorithm": false,
"allowNetworkAccess": true,
"publisherTrustedAlgorithmPublishers": [],
"publisherTrustedAlgorithms": []
}
}
}
],
"event": {},
"nft": {
"address": "",
"name": "Ocean Data NFT",
"symbol": "OCEAN-NFT",
"state": 5,
"tokenURI": "",
"owner": "",
"created": ""
},
"purgatory": {
"state": false
},
"datatokens": [],
"stats": {
"allocated": 0,
"orders": 0,
"price": {
"value": "0"
}
}
}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@libp2p/tcp": "^10.0.7",
"@libp2p/websockets": "^9.0.6",
"@multiformats/multiaddr": "^12.3.1",
"@oceanprotocol/lib": "^3.3.3",
"@oceanprotocol/lib": "^3.4.6",
"axios": "^1.7.7",
"chai": "^4.3.10",
"cross-fetch": "^4.0.0",
Expand Down
Loading