From f09a1b2d5230c056509d0116c2d195ce31b478a4 Mon Sep 17 00:00:00 2001 From: nonows <133763990+nownosw@users.noreply.github.com> Date: Mon, 26 Jun 2023 12:47:22 +0300 Subject: [PATCH 1/4] Update hardhat.config.ts --- .../contract-verification/hardhat.config.ts | 40 +------------------ 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/examples/contract-verification/hardhat.config.ts b/examples/contract-verification/hardhat.config.ts index 1136dbfd..d6d69ac6 100644 --- a/examples/contract-verification/hardhat.config.ts +++ b/examples/contract-verification/hardhat.config.ts @@ -1,38 +1,2 @@ -import * as tdly from "@tenderly/hardhat-tenderly"; -import { HardhatUserConfig } from "hardhat/config"; -import * as dotenv from "dotenv"; - -const { TENDERLY_PRIVATE_VERIFICATION, TENDERLY_AUTOMATIC_VERIFICATION } = process.env; - -const privateVerification = TENDERLY_PRIVATE_VERIFICATION === "true"; -const automaticVerifications = TENDERLY_AUTOMATIC_VERIFICATION === "true"; - -console.log("Using private verification? ", privateVerification, TENDERLY_PRIVATE_VERIFICATION); -console.log("Using automatic verification? ", automaticVerifications, TENDERLY_AUTOMATIC_VERIFICATION); - -tdly.setup({ automaticVerifications }); - -dotenv.config(); - -const config: HardhatUserConfig = { - solidity: "0.8.17", - - networks: { - tenderly: { - url: `https://rpc.tenderly.co/fork/${process.env.TENDERLY_FORK_ID ?? ""}`, - }, - sepolia: { - url: `${process.env.SEPOLIA_URL ?? ""}`, - accounts: [process.env.SEPOLIA_PRIVATE_KEY ?? ""], - }, - }, - - tenderly: { - project: process.env.TENDERLY_PROJECT ?? "", - username: process.env.TENDERLY_USERNAME ?? "", - privateVerification, - }, -}; - -// eslint-disable-next-line import/no-default-export -export default config; +const tdly = require("@tenderly/hardhat-tenderly"); +tdly.setup(); \ No newline at end of file From 99f40087584cd2f6626ce53ae1426e6cbd0fa6f3 Mon Sep 17 00:00:00 2001 From: nownosw <133763990+nownosw@users.noreply.github.com> Date: Thu, 13 Jul 2023 15:32:35 +0300 Subject: [PATCH 2/4] Add .circleci/config.yml --- .circleci/config.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..cb16e75f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,38 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/configuration-reference/#jobs +jobs: + test: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/configuration-reference/#docker-machine-macos-windows-executor + docker: + - image: cimg/node:15.1 + # Add steps to the job + # See: https://circleci.com/docs/configuration-reference/#steps + steps: + - checkout + - restore_cache: + # See the configuration reference documentation for more details on using restore_cache and save_cache steps + # https://circleci.com/docs/configuration-reference/?section=reference#save_cache + keys: + - node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}} + - run: + name: install packages + command: npm ci + - save_cache: + key: node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}} + paths: + - ~/.npm + - run: + name: Run Tests + command: npm run test + +# Invoke jobs via workflows +# See: https://circleci.com/docs/configuration-reference/#workflows +workflows: + orb-free-workflow: + jobs: + - test From 2a8dec8c2a26f2c954497c14c6bddb02fb234430 Mon Sep 17 00:00:00 2001 From: nownosw <133763990+nownosw@users.noreply.github.com> Date: Sat, 16 Mar 2024 01:09:51 +0300 Subject: [PATCH 3/4] Add .circleci/config.yml --- .circleci/config.yml | 47 +++++++++++++++----------------------------- 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cb16e75f..a63fb275 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,37 +2,22 @@ # See: https://circleci.com/docs/configuration-reference version: 2.1 -# Define a job to be invoked later in a workflow. -# See: https://circleci.com/docs/configuration-reference/#jobs -jobs: - test: - # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. - # See: https://circleci.com/docs/configuration-reference/#docker-machine-macos-windows-executor - docker: - - image: cimg/node:15.1 - # Add steps to the job - # See: https://circleci.com/docs/configuration-reference/#steps - steps: - - checkout - - restore_cache: - # See the configuration reference documentation for more details on using restore_cache and save_cache steps - # https://circleci.com/docs/configuration-reference/?section=reference#save_cache - keys: - - node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}} - - run: - name: install packages - command: npm ci - - save_cache: - key: node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}} - paths: - - ~/.npm - - run: - name: Run Tests - command: npm run test +# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. +# See: https://circleci.com/docs/orb-intro/ +orbs: + # See the Node orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node + node: circleci/node@5.2 -# Invoke jobs via workflows -# See: https://circleci.com/docs/configuration-reference/#workflows +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows workflows: - orb-free-workflow: + sample: # This is the name of the workflow, feel free to change it to better match your workflow. + # Inside the workflow, you define the jobs you want to run. jobs: - - test + - node/test: + # This is the node version to use for the `cimg/node` tag + # Relevant tags can be found on the CircleCI Developer Hub + # https://circleci.com/developer/images/image/cimg/node + version: '16.10' + # If you are using yarn, change the line below from "npm" to "yarn" + pkg-manager: npm \ No newline at end of file From 9276719764fb3effb58dac00c81490d1dfd2e81d Mon Sep 17 00:00:00 2001 From: nownosw <133763990+nownosw@users.noreply.github.com> Date: Fri, 26 Apr 2024 00:53:01 +0300 Subject: [PATCH 4/4] Add .circleci/config.yml --- .circleci/config.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a63fb275..62291703 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,22 +2,30 @@ # See: https://circleci.com/docs/configuration-reference version: 2.1 -# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. -# See: https://circleci.com/docs/orb-intro/ -orbs: - # See the Node orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node - node: circleci/node@5.2 +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job + docker: + # Specify the version you desire here + # See: https://circleci.com/developer/images/image/cimg/base + - image: cimg/base:current + + # Add steps to the job + # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps + steps: + # Checkout the code as the first step. + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" # Orchestrate jobs using workflows # See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows workflows: - sample: # This is the name of the workflow, feel free to change it to better match your workflow. + say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow. # Inside the workflow, you define the jobs you want to run. jobs: - - node/test: - # This is the node version to use for the `cimg/node` tag - # Relevant tags can be found on the CircleCI Developer Hub - # https://circleci.com/developer/images/image/cimg/node - version: '16.10' - # If you are using yarn, change the line below from "npm" to "yarn" - pkg-manager: npm \ No newline at end of file + - say-hello \ No newline at end of file