@graphprotocol/grc-20 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -98,9 +98,9 @@ const deleteRelationOp: DeleteRelationOp = Relation.remove('id of relation');
|
|
|
98
98
|
|
|
99
99
|
Once you have a set of ops ready to publish, you'll need to binary encode them into an Edit and upload the Edit to IPFS.
|
|
100
100
|
|
|
101
|
-
Currently the indexer only supports reading
|
|
101
|
+
Currently the indexer only supports reading a specific gateway. You should use our IPFS API to guarantee data availability for your published data while in early access.
|
|
102
102
|
|
|
103
|
-
Additionally, the indexer expects that IPFS CIDs be prefixed with `ipfs://` so it knows how to process it correctly.
|
|
103
|
+
Additionally, the indexer expects that IPFS CIDs be prefixed with `ipfs://` so it knows how to process it correctly. The API already returns the CID prefixed with `ipfs://`.
|
|
104
104
|
|
|
105
105
|
```ts
|
|
106
106
|
import { EditProposal } from '@graphprotocol/grc-20/proto';
|
|
@@ -116,7 +116,7 @@ const blob = new Blob([binaryEncodedEdit], { type: 'application/octet-stream' })
|
|
|
116
116
|
const formData = new FormData();
|
|
117
117
|
formData.append('file', blob);
|
|
118
118
|
|
|
119
|
-
const result = await fetch('https://geobrowser.io/api/ipfs/upload-binary, {
|
|
119
|
+
const result = await fetch('https://geobrowser.io/api/ipfs/upload-binary', {
|
|
120
120
|
method: 'POST',
|
|
121
121
|
body: formData,
|
|
122
122
|
});
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphprotocol/grc-20",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"ascMain": "./dist/index.js",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"files": [
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
11
13
|
"exports": {
|
|
12
14
|
"./package.json": "./package.json",
|
|
13
15
|
".": "./dist/index.js",
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
"dependencies": {
|
|
27
29
|
"@biomejs/biome": "^1.9.4",
|
|
28
30
|
"@bufbuild/protobuf": "^1.9.0",
|
|
31
|
+
"@changesets/cli": "^2.27.12",
|
|
29
32
|
"@ethersproject/abi": "^5.6.4",
|
|
30
33
|
"@ethersproject/providers": "^5.6.8",
|
|
31
34
|
"@types/uuid": "^9.0.8",
|
|
@@ -43,5 +46,5 @@
|
|
|
43
46
|
"prettier": "^3.2.5",
|
|
44
47
|
"typescript": "^5.4.5"
|
|
45
48
|
},
|
|
46
|
-
"packageManager": "pnpm@9.15.4"
|
|
49
|
+
"packageManager": "pnpm@9.15.4"
|
|
47
50
|
}
|