This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Blink": { | |
"8fdac97e-97ce-40ce-8d06-8ad63e122936": { | |
"id": "8fdac97e-97ce-40ce-8d06-8ad63e122936", | |
"type": "action", | |
"icon": "https://bagpipes.io/polkadot-blinks.png", | |
"title": "Blinks for Polkadot", | |
"description": "Here is a test blink to tip some DOT", | |
"label": "", | |
"disabled": false, | |
"links": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket is kind of over kill | |
because we can just fetch in intervals of 5 seconds or something like i am doing on the frontend | |
Define the function: | |
```js | |
async fetchLatestFromWebhookSite(uuid) { | |
try { | |
console.log('[fetchLatestFromWebhookSite] Fetching the latest webhook data with webhook id UUID:', uuid); | |
const response = await axios.get(`${baseURL}/api/webhook/fetchWebhookData/${uuid}`); // Replace with your actual API endpoint | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```Typescript | |
interface Pallet { | |
name: string; | |
calls?: { | |
type: string; | |
}; | |
storage?: { | |
items: StorageItem[]; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
import requests | |
import uuid | |
import json | |
import time | |
class GPTChatAPIWrapper: | |
def __init__(self, api_key: str, model: str): | |
self.api_key = api_key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./target/release/polkadot \ (replace polkadot with the name of your repo) | |
--validator \ - base-path /tmp/relay/MyVal1 \ (specify your db path) | |
--chain ./specs/<INSERT-CHAIN-SPEC.JSON> \ | |
--port 30333 \ | |
--ws-port 9944 \ | |
--rpc-port 9933 \ | |
--unsafe-ws-external \ | |
--rpc-methods=Unsafe \ | |
--rpc-external=True \ | |
--rpc-cors all \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./target/release/polkadot \ | |
-- validator \ | |
-- base-path /tmp/relay/MyVal1 \ specify your db path | |
-- chain ./specs/<INSERT-CHAIN-SPEC.JSON> \ | |
-- port 30333 \ | |
-- ws-port 9944 \ | |
-- rpc-port 9933 \ | |
-- rpc-methods=Unsafe \ | |
-- name MyVal01 \ | |
-- bootnodes /ip4/<INSERT A BOOTNODE TO LAUNCH VALIDATOR> \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./target/release/polkadot \ | |
-- validator \ | |
-- base-path /tmp/relay/MyVal1 \ specify your db path | |
-- chain ./specs/<INSERT-CHAIN-SPEC.JSON> \ | |
-- port 30333 \ | |
-- ws-port 9944 \ | |
-- rpc-port 9933 \ | |
-- rpc-methods=Unsafe \ | |
-- name MyVal01 \ | |
-- bootnodes /ip4/<INSERT A BOOTNODE TO LAUNCH VALIDATOR> \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./target/release/polkadot \ | |
- validator \ | |
- base-path /tmp/relay/MyVal1 \ | |
- chain ./specs/pop-art-3-val.json \ | |
- port 30333 \ | |
- ws-port 9944 \ | |
- rpc-port 9933 \ | |
- unsafe-ws-external \ | |
- rpc-methods=Unsafe \ | |
- rpc-external=True \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can anyone advise why my collator is not producing blocks. | |
I think it is something to do with the relay_chain parameter in my chain spec. Where can i find what options there are? I tried rococo-local, rococo-staging, and rococo-chachacha, while cleaning the tmp/collator/chains each time. | |
Chain spec: | |
``` | |
{ | |
"name": "Chachacha", | |
"id": "cha", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minting... https://gateway.pinata.cloud/ipfs/QmTeMUzcacETGgV9MZSBrUMDoFsQp7HHytjepavdw8gE28 B94D27B9934D3E08A52E52D7DA7DABFAC484EFE37A5380EE9088F7ACE2EFCDE9 https://gateway.pinata.cloud/ipfs/QmQgjchZuoxUPT3WqugPUoW1t7Jj9mENs7vyEUUA5EPiXW B94D27B9934D3E08A52E52D7DA7DABFAC484EFE37A5380EE9088F7ACE2EFCDE9 | |
<ref *1> Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"bad response","code":"SERVER_ERROR","status":504,"headers":{"server":"nginx/1.16.1 (Ubuntu)","date":"Fri, 04 Jun 2021 06:16:26 GMT","content-type":"text/html","content-length":"176","connection":"close"},"body":"<html>\r\n<head><title>504 Gateway Time-out</title></head>\r\n<body>\r\n<center><h1>504 Gateway Time-out</h1></center>\r\n<hr><center>nginx/1.16.1 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n","requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"gasPrice\":\"0x1\",\"from\":\"0x006a758b2b5981b8f79b36c7362bee7a7c79b4f1\",\"to\":\"0xe1cab304a8275f26261e907b812fe267552b80b2\",\"data\":\"0x2cca |
NewerOlder