fix: deploy & instances map

This commit is contained in:
nikdementev 2021-06-10 14:39:00 +03:00
parent 336e8c7a98
commit 8e29ae7372
No known key found for this signature in database
GPG Key ID: 769B05D57CF16FE2
6 changed files with 14 additions and 14 deletions

@ -39,7 +39,7 @@ module.exports = {
Contracts.forEach(({ address, name, amount, currency }) => { Contracts.forEach(({ address, name, amount, currency }) => {
if (address != null) { if (address != null) {
contractsToInstancesContent += `contractsToInstances.set("${address.toLowerCase()}",${space}//${space}${name}-${currency}-${amount}${newLine}${doubleSpace}"${amount}${'-'}${currency}"${newLine});${newLine}`; contractsToInstancesContent += `contractsToInstances.set("${address.toLowerCase()}",${space}//${space}${name}-${currency}-${amount}${newLine}${doubleSpace}"${currency}${'-'}${amount}"${newLine});${newLine}`;
} }
}); });

@ -9,8 +9,8 @@
"codegen:tornado": "yarn yaml:tornado && yarn codegen -- subgraphs/tornado-subgraph.yaml", "codegen:tornado": "yarn yaml:tornado && yarn codegen -- subgraphs/tornado-subgraph.yaml",
"build": "graph build", "build": "graph build",
"build:tornado": "graph build subgraphs/tornado-subgraph.yaml", "build:tornado": "graph build subgraphs/tornado-subgraph.yaml",
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ $(echo $(cat .env))", "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ --access-token TOKEN",
"deploy:tornado": "yarn deploy -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph.yaml" "deploy:tornado": "yarn deploy -- 0xzick/bsc-sub-graph subgraphs/tornado-subgraph.yaml"
}, },
"dependencies": { "dependencies": {
"@graphprotocol/graph-cli": "0.20.0", "@graphprotocol/graph-cli": "0.20.0",

@ -1,19 +1,19 @@
// this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js. // this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js.
export let contractsToInstances = new Map<string, string>(); export let contractsToInstances = new Map<string, string>();
contractsToInstances.set( contractsToInstances.set(
'0x84443cfd09a48af6ef360c6976c5392ac5023a1f', // Instance-bnb-0.1 '0x84443cfd09a48af6ef360c6976c5392ac5023a1f', // Instance-bnb-0.1
'0.1-bnb', 'bnb-0.1',
); );
contractsToInstances.set( contractsToInstances.set(
'0xd47438c816c9e7f2e2888e060936a499af9582b3', // Instance-bnb-1 '0xd47438c816c9e7f2e2888e060936a499af9582b3', // Instance-bnb-1
'1-bnb', 'bnb-1',
); );
contractsToInstances.set( contractsToInstances.set(
'0x330bdfade01ee9bf63c209ee33102dd334618e0a', // Instance-bnb-10 '0x330bdfade01ee9bf63c209ee33102dd334618e0a', // Instance-bnb-10
'10-bnb', 'bnb-10',
); );
contractsToInstances.set( contractsToInstances.set(
'0x1e34a77868e19a6647b1f2f47b51ed72dede95dd', // Instance-bnb-100 '0x1e34a77868e19a6647b1f2f47b51ed72dede95dd', // Instance-bnb-100
'100-bnb', 'bnb-100',
); );
// this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js. // this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js.

@ -1,4 +1,4 @@
import { Echo } from '../generated'; import { Echo } from '../generated/Echoer/Echoer';
import { NoteAccount as NoteAccountEntity } from '../generated/schema'; import { NoteAccount as NoteAccountEntity } from '../generated/schema';
export function handleEcho(event: Echo): void { export function handleEcho(event: Echo): void {

@ -1,4 +1,4 @@
import { EncryptedNote } from '../generated'; import { EncryptedNote } from '../generated/Proxy/Proxy';
import { EncryptedNote as EncryptedNoteEntity } from '../generated/schema'; import { EncryptedNote as EncryptedNoteEntity } from '../generated/schema';
export function handleEncryptedNote(event: EncryptedNote): void { export function handleEncryptedNote(event: EncryptedNote): void {

@ -1,4 +1,4 @@
import { Withdrawal, Deposit } from '../generated'; import { Withdrawal, Deposit } from '../generated/Instance-1-bnb/Instance';
import { Withdrawal as WithdrawalEntity, Deposit as DepositEntity } from '../generated/schema'; import { Withdrawal as WithdrawalEntity, Deposit as DepositEntity } from '../generated/schema';
import { contractsToInstances } from './contractsToInstances'; import { contractsToInstances } from './contractsToInstances';