@tenderly/hardhat-tenderly
Advanced tools
Comparing version 1.1.0-beta.2 to 1.1.0-beta.3
@@ -23,4 +23,4 @@ import * as axios from "axios"; | ||
setFork(fork: string | undefined): void; | ||
initializeFork(): Promise<void>; | ||
private writeHead; | ||
private initializeFork; | ||
private filterContracts; | ||
@@ -27,0 +27,0 @@ private getForkContractData; |
@@ -104,8 +104,2 @@ "use strict"; | ||
} | ||
writeHead() { | ||
const fileData = fs_1.default.readFileSync(this.filepath); | ||
const yamlData = yaml.load(fileData.toString()); | ||
yamlData.head = this.head; | ||
fs_1.default.writeFileSync(this.filepath, yaml.safeDump(yamlData), "utf8"); | ||
} | ||
async initializeFork() { | ||
@@ -124,2 +118,8 @@ const username = this.env.config.tenderly.username; | ||
} | ||
writeHead() { | ||
const fileData = fs_1.default.readFileSync(this.filepath); | ||
const yamlData = yaml.load(fileData.toString()); | ||
yamlData.head = this.head; | ||
fs_1.default.writeFileSync(this.filepath, yaml.safeDump(yamlData), "utf8"); | ||
} | ||
async filterContracts(flatContracts) { | ||
@@ -126,0 +126,0 @@ let contract; |
@@ -12,2 +12,6 @@ import "hardhat/types/config"; | ||
tenderlyRPC: { | ||
send: (request: { | ||
method: string; | ||
params?: any[]; | ||
}, callback: (error: any, response: any) => void) => void; | ||
verify: (...contracts: any[]) => Promise<void>; | ||
@@ -19,2 +23,3 @@ resetFork: () => string | undefined; | ||
setFork: (fork: string | undefined) => void; | ||
initializeFork: () => Promise<void>; | ||
}; | ||
@@ -21,0 +26,0 @@ } |
{ | ||
"name": "@tenderly/hardhat-tenderly", | ||
"description": "Hardhat plugin for integration with Tenderly", | ||
"version": "1.1.0-beta.2", | ||
"version": "1.1.0-beta.3", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -101,5 +101,5 @@ ![npm (tag)](https://img.shields.io/npm/v/@tenderly/hardhat-tenderly/latest?color=23C197&labelColor=060e18&style=for-the-badge) | ||
For this plugin to function you need to create a `config.yaml` file at | ||
`$HOME/.tenderly/config.yaml` or `%HOMEPATH%\.tenderly\config.yaml` and add an `access_token` field to it: | ||
`$HOME/.tenderly/config.yaml` or `%HOMEPATH%\.tenderly\config.yaml` and add an `access_key` field to it: | ||
```yaml | ||
access_token: topsecretaccesstoken | ||
access_key: topsecretaccesstoken | ||
``` | ||
@@ -106,0 +106,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
98027
788