From de8f91a6f5595da644a61ab181faf6a2e9ee9f08 Mon Sep 17 00:00:00 2001 From: Justin Kaseman Date: Mon, 18 Mar 2024 10:52:52 -0700 Subject: [PATCH 1/4] Update to Functions Contracts v1.3.0 --- src/localFunctionsTestnet.ts | 17 +- src/simulationConfig.ts | 9 +- .../FunctionsCoordinator.ts | 264 +++++++++++++--- .../FunctionsCoordinatorTestHelper.ts | 282 ++++++++++++++---- .../TermsOfServiceAllowList.ts | 101 ++++++- test/integration/integration.test.ts | 2 +- 6 files changed, 563 insertions(+), 112 deletions(-) diff --git a/src/localFunctionsTestnet.ts b/src/localFunctionsTestnet.ts index 4b30b33..553e438 100644 --- a/src/localFunctionsTestnet.ts +++ b/src/localFunctionsTestnet.ts @@ -14,6 +14,7 @@ import { simulatedSecretsKeys, DEFAULT_MAX_ON_CHAIN_RESPONSE_BYTES, numberOfSimulatedNodeExecutions, + simulatedLinkUsdPrice, } from './simulationConfig' import { LinkTokenSource, @@ -367,9 +368,12 @@ export const deployFunctionsOracle = async (deployer: Wallet): Promise { donId, }) - expect(estimatedCostInJuels.toString()).toBe(BigInt('38923000000000000000').toString()) + expect(estimatedCostInJuels.toString()).toBe(BigInt('6487166666666666666').toString()) }) it('Throws an error for missing donId', async () => { From 595bf30fddcd24620a1a991e4c92a742fc0e9c4f Mon Sep 17 00:00:00 2001 From: Justin Kaseman Date: Mon, 18 Mar 2024 10:54:24 -0700 Subject: [PATCH 2/4] Add changeset --- .changeset/light-cooks-move.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/light-cooks-move.md diff --git a/.changeset/light-cooks-move.md b/.changeset/light-cooks-move.md new file mode 100644 index 0000000..cd51acf --- /dev/null +++ b/.changeset/light-cooks-move.md @@ -0,0 +1,5 @@ +--- +'@chainlink/functions-toolkit': minor +--- + +Update to Functions Contracts v1.3.0 From 8684b8b67278384d0791d616041ba3ad7f7f8258 Mon Sep 17 00:00:00 2001 From: Morgan Kuphal Date: Mon, 18 Mar 2024 14:42:45 -0500 Subject: [PATCH 3/4] Update lockfiles --- package-lock.json | 5 +++-- yarn.lock | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index f1525ab..a377d66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@chainlink/functions-toolkit", - "version": "0.2.7", + "version": "0.2.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@chainlink/functions-toolkit", - "version": "0.2.7", + "version": "0.2.8", "license": "MIT", "dependencies": { "axios": "^1.4.0", @@ -7027,6 +7027,7 @@ "version": "0.13.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, "engines": { "node": ">=12" }, diff --git a/yarn.lock b/yarn.lock index 46f987c..0da3778 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6507,9 +6507,9 @@ punycode@^1.3.2, punycode@^1.4.1: integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ== punycode@^2.1.0: - version "2.3.0" - resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" - integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== + version "2.1.1" + resolved "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== pure-rand@^6.0.0: version "6.0.2" From b5ac24b075dc494aa3e708b59ac397d06f4eee79 Mon Sep 17 00:00:00 2001 From: Morgan Kuphal Date: Mon, 18 Mar 2024 14:44:24 -0500 Subject: [PATCH 4/4] lint --- src/localFunctionsTestnet.ts | 4 +++- src/simulationConfig.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/localFunctionsTestnet.ts b/src/localFunctionsTestnet.ts index 553e438..c0562c7 100644 --- a/src/localFunctionsTestnet.ts +++ b/src/localFunctionsTestnet.ts @@ -405,7 +405,9 @@ export const deployFunctionsOracle = async (deployer: Wallet): Promise