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
{ | |
"5": [ | |
{ | |
"name": "goerli", | |
"chainId": "5", | |
"contracts": { | |
"DefaultProxyAdmin": { | |
"address": "0x4D1431dAf0A145454BDd58855b104F73ee967AEc", | |
"abi": [ | |
{ |
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
{ | |
"5": [ | |
{ | |
"name": "goerli", | |
"chainId": "5", | |
"contracts": { | |
"DefaultProxyAdmin": { | |
"address": "0x4D1431dAf0A145454BDd58855b104F73ee967AEc", | |
"abi": [ | |
{ |
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
{ | |
"contractName": "IRoyaltyEngineV1", | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "bytes4", | |
"name": "interfaceId", | |
"type": "bytes4" | |
} |
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
mattlovan@Matts-MacBook-Pro rara-protocol % node ./subgraph/scripts/functions/3_spendReaction.js | |
spending reactions... | |
Error: transaction failed (transactionHash="0xb3384d4874b7315dc4d7a167247b0dff9144363aa64e646834494214a7dd15c4", transaction={"type":2,"chainId":80001,"nonce":105,"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"maxFeePerGas":{"type":"BigNumber","hex":"0x012089f824"},"gasPrice":null,"gasLimit":{"type":"BigNumber","hex":"0x0f4240"},"to":"0x161354414b7aC43deD87Bc1176146e9326ffc671","value":{"type":"BigNumber","hex":"0x00"},"data":"0x755443ce000000000000000000000000000000000000000000000000000000000001388100000000000000000000000007081c92ee04bd9ba46f18ed61e7c593f8d90951000000000000000000000000000000000000000000000000000000000000002c341c6ffe3493b3337dcde53c58aec123f85799a68d0dc4d2e46424f90bc3db0d000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000d34d4fb9b34b8d0281e4a24b4653794b266a90000000000000000000000000000000000000000000000000000000000000000 |
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
mattlovan@Matts-MacBook-Pro rara-protocol % node ./subgraph/scripts/functions/3_spendReaction.js | |
spending reactions... | |
<ref *1> Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"cannot estimate gas; transaction may fail or may require manual gas limit","code":"UNPREDICTABLE_GAS_LIMIT","error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":49,\"error\":{\"code\":-32000,\"message\":\"execution reverted\"}}","error":{"code":-32000},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"type\":\"0x2\",\"maxFeePerGas\":\"0x9502f930\",\"maxPriorityFeePerGas\":\"0x9502f900\",\"from\":\"0x68c5119c92296a290140096b4b60205b62c6dd78\",\"to\":\"0x161354414b7ac43ded87bc1176146e9326ffc671\",\"data\":\"0x755443ce000000000000000000000000000000000000000000000000000000000001388100000000000000000000000007081c92ee04bd9ba46f18ed61e7c593f8d9095100000000000000000000000000000 |
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
{ | |
firstFans: [], // sorted by reverse chronological; how many? | |
topFans: [], // sorted by ra, how many? | |
uniqueBidders: [], //do we need/want this? | |
topBids: [], // how many? | |
asset: {}, | |
nextBid: {number} | |
} |
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
{ | |
"tokenId": "4", | |
"tokenAddress": "0x91f16f2b28d96c3d1a3202b574fc05e749defb6c", | |
"name": "WizardZ", | |
"description": "WizardZ is a zombie wizard collectible artwork.", | |
"owner": { | |
"user": { | |
"username": null | |
}, | |
"profile_img_url": "https://storage.googleapis.com/opensea-static/opensea-profile/8.png", |
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
{ | |
"tokenId": "56967430895675811679808265096816440670731486143859213145439561619809262108673", | |
"tokenAddress": "0xfaee4b062449a24a3d0f211d08caac43ee3a1d9b", | |
"name": "Beach 1", | |
"description": "Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1Beach 1", | |
"owner": { | |
"user": { | |
"username": "NullAddress" | |
}, | |
"profile_img_url": "https://storage.googleapis.com/opensea-static/opensea-profile/1.png", |
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
async function getLeaderboard() { | |
try { | |
// get tournament ID from server | |
const tournamentData = await fetch('/api/data').then(async response => { | |
if (response.status !== 200) throw Error('API error - request'); | |
return response.json(); | |
}); | |
if (!tournamentData.tournamentId) throw Error('API error - data'); | |
console.log('Tournament Code:', tournamentData.tournamentId); |
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
const sigUtil = require('eth-sig-util'); | |
const { checkUserMembership } = require('./pg-controller'); | |
function recover(message, signature) { | |
return sigUtil.recoverPersonalSignature({ | |
data: message, | |
sig: signature | |
}); | |
} |
NewerOlder