From 947c7f4634d299f37c590291d3224f4e1371ccdd Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Tue, 21 May 2024 22:47:08 -0700 Subject: [PATCH] fix CI --- package-lock.json | 486 ++++++++++----------- packages/dev-test/package.json | 2 +- packages/dev-test/test/interaction.test.js | 3 +- packages/flow-cadut/src/interactions.js | 2 +- 4 files changed, 237 insertions(+), 256 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c4dd77..3895beb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5889,147 +5889,6 @@ "resolved": "packages/flow-cadut-views", "link": true }, - "node_modules/@onflow/flow-js-testing": { - "version": "0.6.0-stable-cadence.2", - "resolved": "https://registry.npmjs.org/@onflow/flow-js-testing/-/flow-js-testing-0.6.0-stable-cadence.2.tgz", - "integrity": "sha512-zWHuTsqP+oV4BDmvCAKIVjOaaq3MdZDwcAPHXGVP0iSz2b2Si2mT5+RVRZlfwOpVJeYAfR2/H020gcTvufQr7A==", - "dev": true, - "dependencies": { - "@onflow/fcl": "^1.3.2", - "@onflow/fcl-config": "^0.0.1", - "@onflow/flow-cadut": "^0.3.0-stable-cadence.0", - "@onflow/types": "^1.0.5", - "elliptic": "^6.5.4", - "esm": "^3.2.25", - "jest-environment-uint8array": "^1.0.0", - "js-sha256": "^0.9.0", - "js-sha3": "^0.8.0", - "rimraf": "^3.0.2", - "rlp": "^2.2.6", - "yargs": "^17.0.1" - }, - "bin": { - "flow-js-testing": "bin/index.js" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", - "dev": true - }, - "node_modules/@onflow/flow-js-testing/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@onflow/flow-js-testing/node_modules/rlp": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", - "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", - "dev": true, - "dependencies": { - "bn.js": "^5.2.0" - }, - "bin": { - "rlp": "bin/rlp" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@onflow/flow-js-testing/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, "node_modules/@onflow/interaction": { "version": "0.0.11", "license": "Apache-2.0" @@ -20873,7 +20732,7 @@ "devDependencies": { "@babel/core": "^7.15.5", "@babel/preset-env": "^7.15.6", - "@onflow/flow-js-testing": "^0.6.0-stable-cadence.2", + "@onflow/flow-js-testing": "^0.4.0", "babel-jest": "^27.2.0", "elliptic": "^6.5.4", "jest": "^27.2.0", @@ -21109,6 +20968,116 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, + "packages/dev-test/node_modules/@onflow/config": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@onflow/config/-/config-0.0.2.tgz", + "integrity": "sha512-H/+yrAalzEnMWkubiWsDdWytKSzd+OfRCddTlaRUelxfXhcfw2QWegH9N8EzeKfKXcQ6PLzvu9vQwhFxCZTE8Q==", + "dev": true, + "dependencies": { + "@onflow/util-actor": "0.0.2" + } + }, + "packages/dev-test/node_modules/@onflow/flow-cadut": { + "version": "0.2.0-alpha.9", + "resolved": "https://registry.npmjs.org/@onflow/flow-cadut/-/flow-cadut-0.2.0-alpha.9.tgz", + "integrity": "sha512-eFKt/0inM7hyWLMnCyNojQ/oaueij5HEP9xJNlnoa3q3+qJCCb2Wr8FQxebGtrGM4z3IaAb9ah7X13q0TeBRgg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.18.6", + "@onflow/config": "0.0.2", + "@onflow/fcl": "^1.3.0-alpha.3", + "elliptic": "^6.5.4", + "esm": "^3.2.25", + "rimraf": "^3.0.2", + "rlp": "^3.0.0", + "sha3": "^2.1.4" + } + }, + "packages/dev-test/node_modules/@onflow/flow-js-testing": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@onflow/flow-js-testing/-/flow-js-testing-0.4.0.tgz", + "integrity": "sha512-YgmgKCXTN1iWlr2kB83kfEmd9RIXryD2YHW/RnE0CKLmU0eQJJhYjUZ9U3c0hmkXzsRGRruMkDYyO3PSeMrc9w==", + "dev": true, + "dependencies": { + "@onflow/fcl": "^1.3.2", + "@onflow/fcl-config": "^0.0.1", + "@onflow/flow-cadut": "0.2.0-alpha.9", + "@onflow/types": "^1.0.5", + "elliptic": "^6.5.4", + "esm": "^3.2.25", + "jest-environment-uint8array": "^1.0.0", + "js-sha256": "^0.9.0", + "js-sha3": "^0.8.0", + "rimraf": "^3.0.2", + "rlp": "^2.2.6", + "yargs": "^17.0.1" + }, + "bin": { + "flow-js-testing": "bin/index.js" + } + }, + "packages/dev-test/node_modules/@onflow/flow-js-testing/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "packages/dev-test/node_modules/@onflow/flow-js-testing/node_modules/rlp": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", + "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", + "dev": true, + "dependencies": { + "bn.js": "^5.2.0" + }, + "bin": { + "rlp": "bin/rlp" + } + }, + "packages/dev-test/node_modules/@onflow/flow-js-testing/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "packages/dev-test/node_modules/@onflow/flow-js-testing/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "packages/dev-test/node_modules/@onflow/util-actor": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@onflow/util-actor/-/util-actor-0.0.2.tgz", + "integrity": "sha512-NV3zPXQue3FqVgcIIMo6ifJOiP3hVSQTaR4ZrWLFU5iAZ/L73cTtBMbCB4BUFOe20ALtF2c9PFmpNVowCYV+nw==", + "dev": true, + "dependencies": { + "queue-microtask": "1.1.2" + } + }, "packages/dev-test/node_modules/@sinonjs/fake-timers": { "version": "8.1.0", "dev": true, @@ -21189,6 +21158,12 @@ "@babel/core": "^7.0.0" } }, + "packages/dev-test/node_modules/bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "dev": true + }, "packages/dev-test/node_modules/chalk": { "version": "4.1.2", "dev": true, @@ -21861,6 +21836,12 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "packages/dev-test/node_modules/queue-microtask": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.1.2.tgz", + "integrity": "sha512-F9wwNePtXrzZenAB3ax0Y8TSKGvuB7Qw16J30hspEUTbfUM+H827XyN3rlpwhVmtm5wuZtbKIHjOnwDn7MUxWQ==", + "dev": true + }, "packages/dev-test/node_modules/react-is": { "version": "17.0.2", "dev": true, @@ -28100,116 +28081,6 @@ "jest": "^28.1.3" } }, - "@onflow/flow-js-testing": { - "version": "0.6.0-stable-cadence.2", - "resolved": "https://registry.npmjs.org/@onflow/flow-js-testing/-/flow-js-testing-0.6.0-stable-cadence.2.tgz", - "integrity": "sha512-zWHuTsqP+oV4BDmvCAKIVjOaaq3MdZDwcAPHXGVP0iSz2b2Si2mT5+RVRZlfwOpVJeYAfR2/H020gcTvufQr7A==", - "dev": true, - "requires": { - "@onflow/fcl": "^1.3.2", - "@onflow/fcl-config": "^0.0.1", - "@onflow/flow-cadut": "^0.3.0-stable-cadence.0", - "@onflow/types": "^1.0.5", - "elliptic": "^6.5.4", - "esm": "^3.2.25", - "jest-environment-uint8array": "^1.0.0", - "js-sha256": "^0.9.0", - "js-sha3": "^0.8.0", - "rimraf": "^3.0.2", - "rlp": "^2.2.6", - "yargs": "^17.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", - "dev": true - }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "rlp": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", - "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", - "dev": true, - "requires": { - "bn.js": "^5.2.0" - } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "requires": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - } - }, - "yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true - } - } - }, "@onflow/interaction": { "version": "0.0.11" }, @@ -30124,7 +29995,7 @@ "@babel/core": "^7.15.5", "@babel/preset-env": "^7.15.6", "@onflow/fcl": "^1.10.1", - "@onflow/flow-js-testing": "^0.6.0-stable-cadence.2", + "@onflow/flow-js-testing": "^0.4.0", "babel-jest": "^27.2.0", "elliptic": "^6.5.4", "jest": "^27.2.0", @@ -30301,6 +30172,103 @@ "chalk": "^4.0.0" } }, + "@onflow/config": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@onflow/config/-/config-0.0.2.tgz", + "integrity": "sha512-H/+yrAalzEnMWkubiWsDdWytKSzd+OfRCddTlaRUelxfXhcfw2QWegH9N8EzeKfKXcQ6PLzvu9vQwhFxCZTE8Q==", + "dev": true, + "requires": { + "@onflow/util-actor": "0.0.2" + } + }, + "@onflow/flow-cadut": { + "version": "0.2.0-alpha.9", + "resolved": "https://registry.npmjs.org/@onflow/flow-cadut/-/flow-cadut-0.2.0-alpha.9.tgz", + "integrity": "sha512-eFKt/0inM7hyWLMnCyNojQ/oaueij5HEP9xJNlnoa3q3+qJCCb2Wr8FQxebGtrGM4z3IaAb9ah7X13q0TeBRgg==", + "dev": true, + "requires": { + "@babel/runtime": "^7.18.6", + "@onflow/config": "0.0.2", + "@onflow/fcl": "^1.3.0-alpha.3", + "elliptic": "^6.5.4", + "esm": "^3.2.25", + "rimraf": "^3.0.2", + "rlp": "^3.0.0", + "sha3": "^2.1.4" + } + }, + "@onflow/flow-js-testing": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@onflow/flow-js-testing/-/flow-js-testing-0.4.0.tgz", + "integrity": "sha512-YgmgKCXTN1iWlr2kB83kfEmd9RIXryD2YHW/RnE0CKLmU0eQJJhYjUZ9U3c0hmkXzsRGRruMkDYyO3PSeMrc9w==", + "dev": true, + "requires": { + "@onflow/fcl": "^1.3.2", + "@onflow/fcl-config": "^0.0.1", + "@onflow/flow-cadut": "0.2.0-alpha.9", + "@onflow/types": "^1.0.5", + "elliptic": "^6.5.4", + "esm": "^3.2.25", + "jest-environment-uint8array": "^1.0.0", + "js-sha256": "^0.9.0", + "js-sha3": "^0.8.0", + "rimraf": "^3.0.2", + "rlp": "^2.2.6", + "yargs": "^17.0.1" + }, + "dependencies": { + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "rlp": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", + "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", + "dev": true, + "requires": { + "bn.js": "^5.2.0" + } + }, + "yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + } + } + }, + "@onflow/util-actor": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@onflow/util-actor/-/util-actor-0.0.2.tgz", + "integrity": "sha512-NV3zPXQue3FqVgcIIMo6ifJOiP3hVSQTaR4ZrWLFU5iAZ/L73cTtBMbCB4BUFOe20ALtF2c9PFmpNVowCYV+nw==", + "dev": true, + "requires": { + "queue-microtask": "1.1.2" + } + }, "@sinonjs/fake-timers": { "version": "8.1.0", "dev": true, @@ -30354,6 +30322,12 @@ "babel-preset-current-node-syntax": "^1.0.0" } }, + "bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "dev": true + }, "chalk": { "version": "4.1.2", "dev": true, @@ -30832,6 +30806,12 @@ } } }, + "queue-microtask": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.1.2.tgz", + "integrity": "sha512-F9wwNePtXrzZenAB3ax0Y8TSKGvuB7Qw16J30hspEUTbfUM+H827XyN3rlpwhVmtm5wuZtbKIHjOnwDn7MUxWQ==", + "dev": true + }, "react-is": { "version": "17.0.2", "dev": true diff --git a/packages/dev-test/package.json b/packages/dev-test/package.json index 41347e5..70ae76c 100644 --- a/packages/dev-test/package.json +++ b/packages/dev-test/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@babel/core": "^7.15.5", "@babel/preset-env": "^7.15.6", - "@onflow/flow-js-testing": "^0.6.0-stable-cadence.2", + "@onflow/flow-js-testing": "^0.4.0", "babel-jest": "^27.2.0", "elliptic": "^6.5.4", "jest": "^27.2.0", diff --git a/packages/dev-test/test/interaction.test.js b/packages/dev-test/test/interaction.test.js index 7caca9f..27e1924 100644 --- a/packages/dev-test/test/interaction.test.js +++ b/packages/dev-test/test/interaction.test.js @@ -32,7 +32,8 @@ describe("arguments - scripts", () => { } ` - const [result] = await query({cadence, raw: true}) + const [result, err] = await query({cadence, raw: true}) + expect(err).toBe(null) expect(result.type).toBe("Struct") expect(result.value.id.includes("Info")).toBe(true) diff --git a/packages/flow-cadut/src/interactions.js b/packages/flow-cadut/src/interactions.js index 05f4704..62359a7 100644 --- a/packages/flow-cadut/src/interactions.js +++ b/packages/flow-cadut/src/interactions.js @@ -118,7 +118,7 @@ export const sendTransaction = async props => { ) if (wait) { const waitMethod = waitForStatus(wait) - const rawResult = await fcl.tx(response)[waitMethod]() + const rawResult = await fcl.tx(txId)[waitMethod]() const txResult = { txId, ...rawResult,