2021-06-08 19:08:11 +03:00
|
|
|
const Contracts = require('./contracts');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
createYaml: (env) => {
|
|
|
|
|
2021-06-09 15:34:06 +03:00
|
|
|
const createProxyBlock = ({ name, address }) => ({
|
2021-06-08 19:08:11 +03:00
|
|
|
name,
|
|
|
|
mappingFile: '../src/mapping-encrypted-note.ts',
|
2021-06-09 15:34:06 +03:00
|
|
|
abi: 'Proxy',
|
|
|
|
startBlock: 7941563,
|
2021-06-08 19:08:11 +03:00
|
|
|
address,
|
|
|
|
entities: ['EncryptedNote'],
|
|
|
|
abis: [
|
|
|
|
{
|
|
|
|
event: 'Proxy',
|
2021-06-09 15:34:06 +03:00
|
|
|
path: '../abis/Proxy.json'
|
2021-06-08 19:08:11 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
events: [
|
|
|
|
{
|
|
|
|
event: 'EncryptedNote(indexed address,bytes)',
|
|
|
|
handler: 'handleEncryptedNote',
|
|
|
|
}
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
2021-06-09 15:34:06 +03:00
|
|
|
return Contracts.map(({ prod, name, address }) => {
|
|
|
|
const startBlocks = { prod };
|
2021-06-08 19:08:11 +03:00
|
|
|
|
|
|
|
return createProxyBlock({ name, startBlocks, address })
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|