@graphprotocol/grc-20 0.2.2 → 0.2.3
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 +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -130,7 +130,11 @@ const cid = 'ipfs://hash';
|
|
|
130
130
|
// This returns the correct contract address and calldata depending on the space id
|
|
131
131
|
const result = await fetch(`https://api.geobrowser.io/space/${spaceId}/edit/calldata`, {
|
|
132
132
|
method: "POST",
|
|
133
|
-
body: JSON.stringify({
|
|
133
|
+
body: JSON.stringify({
|
|
134
|
+
cid: cid,
|
|
135
|
+
// Optionally specify TESTNET or MAINNET. Defaults to MAINNET
|
|
136
|
+
network: "TESTNET",
|
|
137
|
+
}),
|
|
134
138
|
});
|
|
135
139
|
|
|
136
140
|
const { to, data } = await result.json();
|
|
@@ -146,6 +150,8 @@ const txResult = await walletClient.sendTransaction({
|
|
|
146
150
|
|
|
147
151
|
You can deploy spaces programmatically using the API. Currently there are two types of governance modes for spaces: one with voting and one without. They're called PUBLIC or PERSONAL spaces respectively. The API only supports deploying the PERSONAL governance mode currently.
|
|
148
152
|
|
|
153
|
+
The API only supports deploying to TESTNET for now.
|
|
154
|
+
|
|
149
155
|
```ts
|
|
150
156
|
const editorAddress = '0x000000000000000000000000000000000000';
|
|
151
157
|
const spaceName = 'Example-Name';
|