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

View File

@ -39,7 +39,7 @@ module.exports = {
Contracts.forEach(({ address, name, amount, currency }) => {
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}`;
}
});

View File

@ -9,8 +9,8 @@
"codegen:tornado": "yarn yaml:tornado && yarn codegen -- subgraphs/tornado-subgraph.yaml",
"build": "graph build",
"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:tornado": "yarn deploy -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph.yaml"
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ --access-token TOKEN",
"deploy:tornado": "yarn deploy -- 0xzick/bsc-sub-graph subgraphs/tornado-subgraph.yaml"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.20.0",

View File

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

View File

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

View File

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

View File

@ -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 { contractsToInstances } from './contractsToInstances';