Skip to content

Instantly share code, notes, and snippets.

View ethers-wasm-build-log.log
$ wasm-pack build
[INFO]: 🎯 Checking for the Wasm target...
[INFO]: 🌀 Compiling to Wasm...
Compiling ethers-wasm v0.1.0 (/Users/jannis/work/oss/jannis/ethers-wasm)
error[E0433]: failed to resolve: could not find `EthEvent` in `ethers_contract`
--> src/contracts.rs:3:1
|
3 | abigen!(Factory, "./abis/factory.json");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `EthEvent` in `ethers_contract`
|
@Jannis
Jannis / client.js
Last active Oct 25, 2021
urql + graphql-ws network error
View client.js
pipe(
client.subscription(query, variables),
subscribe(result => {
try {
if (result.error) {
throw result.error
}
...
} catch (err) {
// log the error here
View mapping-assertions.ts
// The entry file of your WebAssembly module.
class ExpectTo<T> {
value: T
constructor(value: T) {
this.value = value
}
equal(other: T): void {
View resend-failed-query-fees.log
Send query fees for allocation 0x718A0d1264b7F80369CCf9a89e83C57A841f5D00 (0.498180532055191122 GRT), which previously failed on 2020-12-26T09:09:47.857Z
.. pending: https://etherscan.io/tx/0x4bab90b3194a6526ff3152d563c28c5c326ecb93751f797904e8f74766da5974
Send query fees for allocation 0x6DB56297839Cd4711078eAd1D5EBfe83c35e29Ec (8.231211994479437827 GRT), which previously failed on 2020-12-25T23:34:49.753Z
.. pending: https://etherscan.io/tx/0x088bc5ebb5878f39f9fbc2f48a34b132fe704f04a7355bfacb1f001afb9830d5
Send query fees for allocation 0x2d330041fa71a53B7CF469eC5843d699B1093C22 (8.247464480312050578 GRT), which previously failed on 2020-12-25T23:17:41.607Z
.. pending: https://etherscan.io/tx/0xe2944b1e281a97276c070c3392b6b9174c6ccfdb0f837db2b7082de23a971361
Send query fees for allocation 0xD0eDDa733021DDa9a49d5639b1d5A0075025F685 (5.862612297028162079 GRT), which previously failed on 2020-12-25T17:34:49.598Z
.. pending: https://etherscan.io/tx/0x2713a4715c7a96d3a1a82ec0b536e8850bef5125b6db1439b4484
View gist:1db7dcf374ae989c4ecc687f9ed3da32
id | channel_id | signing_address | chain_id | channel_nonce | app_definition | challenge_duration |
View gist:f0264bdd9a71fd3c72d2cda41b6798b1
http {
# See http://nginx.org/en/docs/http/websocket.html
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
location ... {
# Proxy configuration.
View derived-from-with-ifaces.patch
diff --git a/graph/src/data/graphql/validation.rs b/graph/src/data/graphql/validation.rs
index 19e677be..1a4953b5 100644
--- a/graph/src/data/graphql/validation.rs
+++ b/graph/src/data/graphql/validation.rs
@@ -146,8 +146,9 @@ fn validate_derived_from(schema: &Document) -> Result<(), SchemaValidationError>
let object_and_interface_type_fields = get_object_and_interface_type_fields(schema);
// Iterate over all derived fields in all entity types; include the
- // `field` argument of @derivedFrom directive
- for (object_type, field, target_field) in type_definitions
View kauri-ipfs-sync.log
➜ kauri-ipfs ./sync-files.sh
Fetching QmVr9ksVmc3A6yRU3kfjyMF67PD2RjH3dEuu6T8ezvLXdL
.. Fetching QmeRYyFCrUbz9BMDCePq6ki766vbzjHNnV2gkrKMRqStgf
.. Fetching QmQ94fkPGDNUNSfvpyMgv9bjvaY9BUqinqAsawNSQY4qsq
.. Fetching QmVNJ8J1p3C2NqN8WYcXqBo4EmiPXgc4UJJe7FX3jVEVBb
.. Fetching QmUAyrxMcrhPuX1AjXenAcrE46e42Dm9sdZio9mJd8QZ4X
.. Fetching QmY6Ly3GGuMh5gLfNJcBZSPe37PzRdTmTP1tzFrGWXc2zQ
.. Fetching Qma9h4zEKG6kDo2Da2RcRFxgUtgc4qptCGtjyXAinyGo59
.. Fetching QmZ5J7UJXwWuPiPZWTfCwCPkJUBCqdPzgyY71i9XgJGdgR
.. Fetching QmX6Cjg1tiFC6RcCrXGodStwSP2t6CsjmYPA2FxvMRYBLo
View uma.patch
diff --git a/schema.graphql b/schema.graphql
index 2b16914..0cb8249 100644
--- a/schema.graphql
+++ b/schema.graphql
@@ -4,13 +4,12 @@ type CreatedToken @entity {
creator: ID!
timestamp: BigInt!
contractAddress: Bytes! # address
- synthetics: [Synthetic!]! @derivedFrom(field: "count")
+ synthetic: Synthetic
View gist:3fc8ddb5b95f63ab27fc5ab336d46166
const { utils } = require('ethers')
const fetch = require('cross-fetch')
const name = 'coin-mountain.argent.xyz'
const namehash = name =>
name
.split('.')
.reverse()
.reduce((parentHash, label) => {