From d40c7031954d97d2204203f1f93b97606da47b97 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Mon, 6 Nov 2023 16:39:57 -0700 Subject: [PATCH 1/8] get rid of local agents add deepEqual for principal --- package-lock.json | 170 +++++++++- package.json | 3 +- property_tests/arbitraries/canister_arb.ts | 1 + property_tests/tests/blob/package-lock.json | 178 ---------- property_tests/tests/blob/package.json | 1 - property_tests/tests/bool/package-lock.json | 178 ---------- property_tests/tests/bool/package.json | 1 - property_tests/tests/bool/test/test.ts | 3 +- .../tests/float32/package-lock.json | 178 ---------- property_tests/tests/float32/package.json | 1 - .../tests/float64/package-lock.json | 178 ---------- property_tests/tests/float64/package.json | 1 - property_tests/tests/func/package-lock.json | 178 ---------- property_tests/tests/func/package.json | 1 - property_tests/tests/int/package-lock.json | 178 ---------- property_tests/tests/int/package.json | 1 - property_tests/tests/int16/package-lock.json | 178 ---------- property_tests/tests/int16/package.json | 1 - property_tests/tests/int32/package-lock.json | 178 ---------- property_tests/tests/int32/package.json | 1 - property_tests/tests/int64/package-lock.json | 178 ---------- property_tests/tests/int64/package.json | 1 - property_tests/tests/int8/package-lock.json | 178 ---------- property_tests/tests/int8/package.json | 1 - property_tests/tests/nat/package-lock.json | 178 ---------- property_tests/tests/nat/package.json | 1 - property_tests/tests/nat16/package-lock.json | 178 ---------- property_tests/tests/nat16/package.json | 1 - property_tests/tests/nat32/package-lock.json | 178 ---------- property_tests/tests/nat32/package.json | 1 - property_tests/tests/nat64/package-lock.json | 178 ---------- property_tests/tests/nat64/package.json | 1 - property_tests/tests/nat8/package-lock.json | 178 ---------- property_tests/tests/nat8/package.json | 1 - property_tests/tests/null/package-lock.json | 180 +--------- property_tests/tests/null/package.json | 1 - property_tests/tests/opt/package-lock.json | 178 ---------- property_tests/tests/opt/package.json | 1 - property_tests/tests/opt/test/test.ts | 16 +- .../tests/principal/package-lock.json | 308 ++++-------------- property_tests/tests/principal/package.json | 1 - property_tests/tests/principal/test/test.ts | 4 +- .../tests/query_methods/package-lock.json | 178 ---------- .../tests/query_methods/package.json | 1 - property_tests/tests/record/package-lock.json | 178 ---------- property_tests/tests/record/package.json | 1 - property_tests/tests/text/package-lock.json | 180 +--------- property_tests/tests/text/package.json | 1 - property_tests/tests/tuple/package-lock.json | 178 ---------- property_tests/tests/tuple/package.json | 1 - .../tests/variant/package-lock.json | 178 ---------- property_tests/tests/variant/package.json | 1 - property_tests/tests/vec/package-lock.json | 178 ---------- property_tests/tests/vec/package.json | 1 - 54 files changed, 243 insertions(+), 4384 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9effead501..201a45609b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@dfinity/candid": "github:demergent-labs/candid#minimum_viable", - "@dfinity/principal": "^0.19.0", + "@dfinity/principal": "0.19.2", "@swc/core": "^1.3.86", "@types/uuid": "^9.0.4", "buffer": "^6.0.3", @@ -26,6 +26,7 @@ "azle": "bin.js" }, "devDependencies": { + "@dfinity/agent": "^0.19.2", "@types/fs-extra": "9.0.13", "eslint": "8.11.0", "eslint-config-prettier": "8.5.0", @@ -64,6 +65,22 @@ "node": ">=12" } }, + "node_modules/@dfinity/agent": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.2.tgz", + "integrity": "sha512-KLRWEjeU9SyyaS7IBVJ9ZUcufxufr55e/kRIyClK157+0pkTG9a8xKjUIMx3QzKvLsqqzXL238nWwdoP6jAD8g==", + "dev": true, + "dependencies": { + "@noble/hashes": "^1.3.1", + "base64-arraybuffer": "^0.2.0", + "borc": "^2.1.1", + "simple-cbor": "^0.4.1" + }, + "peerDependencies": { + "@dfinity/candid": "^0.19.2", + "@dfinity/principal": "^0.19.2" + } + }, "node_modules/@dfinity/candid": { "version": "0.19.2", "resolved": "git+ssh://git@github.com/demergent-labs/candid.git#5797fa906b1a7cc30c161dbb0eb919283ce2f80d", @@ -73,9 +90,9 @@ } }, "node_modules/@dfinity/principal": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", - "integrity": "sha512-+nixVvdGt7ECxRvLXDXsvU9q9sSPssBtDQ4bXa149SK6gcYcmZ6lfWIi3DJNqj3tGROxILVBsguel9tECappsA==", + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.2.tgz", + "integrity": "sha512-vsKN6BKya70bQUsjgKRDlR2lOpv/XpUkCMIiji6rjMtKHIuWEB5Eu3JqZsOuBmWo3A3TT/K/osT9VPm0k4qdYQ==", "dependencies": { "@noble/hashes": "^1.3.1" } @@ -837,6 +854,15 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, + "node_modules/base64-arraybuffer": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", + "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -856,6 +882,63 @@ } ] }, + "node_modules/bignumber.js": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/borc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", + "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", + "dev": true, + "dependencies": { + "bignumber.js": "^9.0.0", + "buffer": "^5.5.0", + "commander": "^2.15.0", + "ieee754": "^1.1.13", + "iso-url": "~0.4.7", + "json-text-sequence": "~0.1.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/borc/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/borc/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1044,6 +1127,12 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "node_modules/delimit-stream": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", + "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", + "dev": true + }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -1678,6 +1767,15 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "node_modules/iso-url": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", + "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", @@ -1713,6 +1811,15 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, + "node_modules/json-text-sequence": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", + "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", + "dev": true, + "dependencies": { + "delimit-stream": "0.1.0" + } + }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -2214,6 +2321,20 @@ } ] }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/regexpp": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", @@ -2278,6 +2399,26 @@ "tslib": "^2.1.0" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -2305,6 +2446,12 @@ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, + "node_modules/simple-cbor": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", + "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", + "dev": true + }, "node_modules/slice-ansi": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", @@ -2333,6 +2480,15 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/string-argv": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", @@ -2565,6 +2721,12 @@ "punycode": "^2.1.0" } }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/package.json b/package.json index 65a1a3b246..85581d6e8f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "homepage": "https://github.com/demergent-labs/azle#readme", "dependencies": { "@dfinity/candid": "github:demergent-labs/candid#minimum_viable", - "@dfinity/principal": "^0.19.0", + "@dfinity/principal": "0.19.2", "@swc/core": "^1.3.86", "@types/uuid": "^9.0.4", "buffer": "^6.0.3", @@ -39,6 +39,7 @@ "uuid": "^9.0.1" }, "devDependencies": { + "@dfinity/agent": "^0.19.2", "@types/fs-extra": "9.0.13", "eslint": "8.11.0", "eslint-config-prettier": "8.5.0", diff --git a/property_tests/arbitraries/canister_arb.ts b/property_tests/arbitraries/canister_arb.ts index 0753177340..a2ed2814d2 100644 --- a/property_tests/arbitraries/canister_arb.ts +++ b/property_tests/arbitraries/canister_arb.ts @@ -36,6 +36,7 @@ export function CanisterArb(testArb: fc.Arbitrary) { return { sourceCode: ` import { Canister, query, ${imports.join(', ')} } from 'azle'; + import { deepEqual } from 'fast-equals'; ${candidTypeDeclarations} diff --git a/property_tests/tests/blob/package-lock.json b/property_tests/tests/blob/package-lock.json index e43ae16581..4cbf6c4540 100644 --- a/property_tests/tests/blob/package-lock.json +++ b/property_tests/tests/blob/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/blob/package.json b/property_tests/tests/blob/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/blob/package.json +++ b/property_tests/tests/blob/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/bool/package-lock.json b/property_tests/tests/bool/package-lock.json index 06966d6942..bc35e32ec9 100644 --- a/property_tests/tests/bool/package-lock.json +++ b/property_tests/tests/bool/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/bool/package.json b/property_tests/tests/bool/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/bool/package.json +++ b/property_tests/tests/bool/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/bool/test/test.ts b/property_tests/tests/bool/test/test.ts index 236785d67b..84fa404e99 100644 --- a/property_tests/tests/bool/test/test.ts +++ b/property_tests/tests/bool/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { BoolArb } from '../../../arbitraries/candid/primitive/bool'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -93,7 +94,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnBool.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/float32/package-lock.json b/property_tests/tests/float32/package-lock.json index 46bdfdeb88..e3247aa837 100644 --- a/property_tests/tests/float32/package-lock.json +++ b/property_tests/tests/float32/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/float32/package.json b/property_tests/tests/float32/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/float32/package.json +++ b/property_tests/tests/float32/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/float64/package-lock.json b/property_tests/tests/float64/package-lock.json index f3fb782515..8373fbe42c 100644 --- a/property_tests/tests/float64/package-lock.json +++ b/property_tests/tests/float64/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/float64/package.json b/property_tests/tests/float64/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/float64/package.json +++ b/property_tests/tests/float64/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/func/package-lock.json b/property_tests/tests/func/package-lock.json index 035546be3f..d968c7d3e9 100644 --- a/property_tests/tests/func/package-lock.json +++ b/property_tests/tests/func/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/func/package.json b/property_tests/tests/func/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/func/package.json +++ b/property_tests/tests/func/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/int/package-lock.json b/property_tests/tests/int/package-lock.json index 62324090c9..693cd1d8c5 100644 --- a/property_tests/tests/int/package-lock.json +++ b/property_tests/tests/int/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/int/package.json b/property_tests/tests/int/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/int/package.json +++ b/property_tests/tests/int/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/int16/package-lock.json b/property_tests/tests/int16/package-lock.json index 0d9c69cf61..cd4cea1a97 100644 --- a/property_tests/tests/int16/package-lock.json +++ b/property_tests/tests/int16/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/int16/package.json b/property_tests/tests/int16/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/int16/package.json +++ b/property_tests/tests/int16/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/int32/package-lock.json b/property_tests/tests/int32/package-lock.json index 5135c2e33d..37e7e775a4 100644 --- a/property_tests/tests/int32/package-lock.json +++ b/property_tests/tests/int32/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/int32/package.json b/property_tests/tests/int32/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/int32/package.json +++ b/property_tests/tests/int32/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/int64/package-lock.json b/property_tests/tests/int64/package-lock.json index af549dcc6b..eef4ef1c75 100644 --- a/property_tests/tests/int64/package-lock.json +++ b/property_tests/tests/int64/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/int64/package.json b/property_tests/tests/int64/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/int64/package.json +++ b/property_tests/tests/int64/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/int8/package-lock.json b/property_tests/tests/int8/package-lock.json index 8fdd08fd9c..ae93df036d 100644 --- a/property_tests/tests/int8/package-lock.json +++ b/property_tests/tests/int8/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/int8/package.json b/property_tests/tests/int8/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/int8/package.json +++ b/property_tests/tests/int8/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/nat/package-lock.json b/property_tests/tests/nat/package-lock.json index a8e19d7558..d61f0cea5b 100644 --- a/property_tests/tests/nat/package-lock.json +++ b/property_tests/tests/nat/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/nat/package.json b/property_tests/tests/nat/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/nat/package.json +++ b/property_tests/tests/nat/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/nat16/package-lock.json b/property_tests/tests/nat16/package-lock.json index b05f4fc63b..2360681951 100644 --- a/property_tests/tests/nat16/package-lock.json +++ b/property_tests/tests/nat16/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/nat16/package.json b/property_tests/tests/nat16/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/nat16/package.json +++ b/property_tests/tests/nat16/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/nat32/package-lock.json b/property_tests/tests/nat32/package-lock.json index 36553cfa29..9da732ea9e 100644 --- a/property_tests/tests/nat32/package-lock.json +++ b/property_tests/tests/nat32/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/nat32/package.json b/property_tests/tests/nat32/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/nat32/package.json +++ b/property_tests/tests/nat32/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/nat64/package-lock.json b/property_tests/tests/nat64/package-lock.json index a61a5dab26..c96d39088a 100644 --- a/property_tests/tests/nat64/package-lock.json +++ b/property_tests/tests/nat64/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/nat64/package.json b/property_tests/tests/nat64/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/nat64/package.json +++ b/property_tests/tests/nat64/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/nat8/package-lock.json b/property_tests/tests/nat8/package-lock.json index 96b6e70bf7..d48fb3423c 100644 --- a/property_tests/tests/nat8/package-lock.json +++ b/property_tests/tests/nat8/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/nat8/package.json b/property_tests/tests/nat8/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/nat8/package.json +++ b/property_tests/tests/nat8/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/null/package-lock.json b/property_tests/tests/null/package-lock.json index 46bdfdeb88..e20dc602b2 100644 --- a/property_tests/tests/null/package-lock.json +++ b/property_tests/tests/null/package-lock.json @@ -1,5 +1,5 @@ { - "name": "float32", + "name": "null", "lockfileVersion": 3, "requires": true, "packages": { @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/null/package.json b/property_tests/tests/null/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/null/package.json +++ b/property_tests/tests/null/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/opt/package-lock.json b/property_tests/tests/opt/package-lock.json index 329cba2c5d..3f6a84195d 100644 --- a/property_tests/tests/opt/package-lock.json +++ b/property_tests/tests/opt/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/opt/package.json b/property_tests/tests/opt/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/opt/package.json +++ b/property_tests/tests/opt/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/opt/test/test.ts b/property_tests/tests/opt/test/test.ts index 1cdeb0524a..c7f13ebf0d 100644 --- a/property_tests/tests/opt/test/test.ts +++ b/property_tests/tests/opt/test/test.ts @@ -1,9 +1,6 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; -import { - createAreOptsEqualCodeDeclaration, - createAreOptsEqualCodeUsage -} from '../../../are_equal/opt'; import { Opt, OptArb } from '../../../arbitraries/candid/constructed/opt_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; import { TestSample } from '../../../arbitraries/test_sample_arb'; @@ -73,10 +70,7 @@ function generateBody( const areParamsCorrectlyOrdered = paramNames .map((paramName, index) => { - return `if (!${createAreOptsEqualCodeUsage( - paramName, - paramLiterals[index] - )}) throw new Error('${paramName} is incorrectly ordered')`; + return `if (false && !deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; }) .join('\n'); @@ -84,7 +78,6 @@ function generateBody( return ` ${areParamsOpts} - ${createAreOptsEqualCodeDeclaration()} ${areParamsCorrectlyOrdered} return ${returnStatement}; @@ -107,11 +100,8 @@ function generateTest( const result = await actor[functionName](...params); - const equals = - paramOpts.length > 0 ? paramOpts[0].equals : returnOpt.equals; - return { - Ok: equals(result, expectedResult) + Ok: deepEqual(expectedResult, result) }; } }; diff --git a/property_tests/tests/principal/package-lock.json b/property_tests/tests/principal/package-lock.json index 79c8c856f8..5c18f49993 100644 --- a/property_tests/tests/principal/package-lock.json +++ b/property_tests/tests/principal/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,36 +32,10 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", - "integrity": "sha512-+nixVvdGt7ECxRvLXDXsvU9q9sSPssBtDQ4bXa149SK6gcYcmZ6lfWIi3DJNqj3tGROxILVBsguel9tECappsA==", + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.2.tgz", + "integrity": "sha512-vsKN6BKya70bQUsjgKRDlR2lOpv/XpUkCMIiji6rjMtKHIuWEB5Eu3JqZsOuBmWo3A3TT/K/osT9VPm0k4qdYQ==", "dependencies": { "@noble/hashes": "^1.3.1" } @@ -434,9 +407,9 @@ } }, "node_modules/@swc/core": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.93.tgz", - "integrity": "sha512-690GRr1wUGmGYZHk7fUduX/JUwViMF2o74mnZYIWEcJaCcd9MQfkhsxPBtjeg6tF+h266/Cf3RPYhsFBzzxXcA==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.96.tgz", + "integrity": "sha512-zwE3TLgoZwJfQygdv2SdCK9mRLYluwDOM53I+dT6Z5ZvrgVENmY3txvWDvduzkV+/8IuvrRbVezMpxcojadRdQ==", "hasInstallScript": true, "dependencies": { "@swc/counter": "^0.1.1", @@ -450,16 +423,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.93", - "@swc/core-darwin-x64": "1.3.93", - "@swc/core-linux-arm-gnueabihf": "1.3.93", - "@swc/core-linux-arm64-gnu": "1.3.93", - "@swc/core-linux-arm64-musl": "1.3.93", - "@swc/core-linux-x64-gnu": "1.3.93", - "@swc/core-linux-x64-musl": "1.3.93", - "@swc/core-win32-arm64-msvc": "1.3.93", - "@swc/core-win32-ia32-msvc": "1.3.93", - "@swc/core-win32-x64-msvc": "1.3.93" + "@swc/core-darwin-arm64": "1.3.96", + "@swc/core-darwin-x64": "1.3.96", + "@swc/core-linux-arm-gnueabihf": "1.3.96", + "@swc/core-linux-arm64-gnu": "1.3.96", + "@swc/core-linux-arm64-musl": "1.3.96", + "@swc/core-linux-x64-gnu": "1.3.96", + "@swc/core-linux-x64-musl": "1.3.96", + "@swc/core-win32-arm64-msvc": "1.3.96", + "@swc/core-win32-ia32-msvc": "1.3.96", + "@swc/core-win32-x64-msvc": "1.3.96" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -471,9 +444,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.93.tgz", - "integrity": "sha512-gEKgk7FVIgltnIfDO6GntyuQBBlAYg5imHpRgLxB1zSI27ijVVkksc6QwISzFZAhKYaBWIsFSVeL9AYSziAF7A==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.96.tgz", + "integrity": "sha512-8hzgXYVd85hfPh6mJ9yrG26rhgzCmcLO0h1TIl8U31hwmTbfZLzRitFQ/kqMJNbIBCwmNH1RU2QcJnL3d7f69A==", "cpu": [ "arm64" ], @@ -486,9 +459,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.93.tgz", - "integrity": "sha512-ZQPxm/fXdDQtn3yrYSL/gFfA8OfZ5jTi33yFQq6vcg/Y8talpZ+MgdSlYM0FkLrZdMTYYTNFiuBQuuvkA+av+Q==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.96.tgz", + "integrity": "sha512-mFp9GFfuPg+43vlAdQZl0WZpZSE8sEzqL7sr/7Reul5McUHP0BaLsEzwjvD035ESfkY8GBZdLpMinblIbFNljQ==", "cpu": [ "x64" ], @@ -501,9 +474,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.93.tgz", - "integrity": "sha512-OYFMMI2yV+aNe3wMgYhODxHdqUB/jrK0SEMHHS44GZpk8MuBXEF+Mcz4qjkY5Q1EH7KVQqXb/gVWwdgTHpjM2A==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.96.tgz", + "integrity": "sha512-8UEKkYJP4c8YzYIY/LlbSo8z5Obj4hqcv/fUTHiEePiGsOddgGf7AWjh56u7IoN/0uEmEro59nc1ChFXqXSGyg==", "cpu": [ "arm" ], @@ -516,9 +489,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.93.tgz", - "integrity": "sha512-BT4dT78odKnJMNiq5HdjBsv29CiIdcCcImAPxeFqAeFw1LL6gh9nzI8E96oWc+0lVT5lfhoesCk4Qm7J6bty8w==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.96.tgz", + "integrity": "sha512-c/IiJ0s1y3Ymm2BTpyC/xr6gOvoqAVETrivVXHq68xgNms95luSpbYQ28rqaZC8bQC8M5zdXpSc0T8DJu8RJGw==", "cpu": [ "arm64" ], @@ -531,9 +504,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.93.tgz", - "integrity": "sha512-yH5fWEl1bktouC0mhh0Chuxp7HEO4uCtS/ly1Vmf18gs6wZ8DOOkgAEVv2dNKIryy+Na++ljx4Ym7C8tSJTrLw==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.96.tgz", + "integrity": "sha512-i5/UTUwmJLri7zhtF6SAo/4QDQJDH2fhYJaBIUhrICmIkRO/ltURmpejqxsM/ye9Jqv5zG7VszMC0v/GYn/7BQ==", "cpu": [ "arm64" ], @@ -546,9 +519,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.93.tgz", - "integrity": "sha512-OFUdx64qvrGJhXKEyxosHxgoUVgba2ztYh7BnMiU5hP8lbI8G13W40J0SN3CmFQwPP30+3oEbW7LWzhKEaYjlg==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.96.tgz", + "integrity": "sha512-USdaZu8lTIkm4Yf9cogct/j5eqtdZqTgcTib4I+NloUW0E/hySou3eSyp3V2UAA1qyuC72ld1otXuyKBna0YKQ==", "cpu": [ "x64" ], @@ -561,9 +534,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.93.tgz", - "integrity": "sha512-4B8lSRwEq1XYm6xhxHhvHmKAS7pUp1Q7E33NQ2TlmFhfKvCOh86qvThcjAOo57x8DRwmpvEVrqvpXtYagMN6Ig==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.96.tgz", + "integrity": "sha512-QYErutd+G2SNaCinUVobfL7jWWjGTI0QEoQ6hqTp7PxCJS/dmKmj3C5ZkvxRYcq7XcZt7ovrYCTwPTHzt6lZBg==", "cpu": [ "x64" ], @@ -576,9 +549,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.93.tgz", - "integrity": "sha512-BHShlxtkven8ZjjvZ5QR6sC5fZCJ9bMujEkiha6W4cBUTY7ce7qGFyHmQd+iPC85d9kD/0cCiX/Xez8u0BhO7w==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.96.tgz", + "integrity": "sha512-hjGvvAduA3Un2cZ9iNP4xvTXOO4jL3G9iakhFsgVhpkU73SGmK7+LN8ZVBEu4oq2SUcHO6caWvnZ881cxGuSpg==", "cpu": [ "arm64" ], @@ -591,9 +564,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.93.tgz", - "integrity": "sha512-nEwNWnz4JzYAK6asVvb92yeylfxMYih7eMQOnT7ZVlZN5ba9WF29xJ6kcQKs9HRH6MvWhz9+wRgv3FcjlU6HYA==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.96.tgz", + "integrity": "sha512-Far2hVFiwr+7VPCM2GxSmbh3ikTpM3pDombE+d69hkedvYHYZxtTF+2LTKl/sXtpbUnsoq7yV/32c9R/xaaWfw==", "cpu": [ "ia32" ], @@ -606,9 +579,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.93", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.93.tgz", - "integrity": "sha512-jibQ0zUr4kwJaQVwgmH+svS04bYTPnPw/ZkNInzxS+wFAtzINBYcU8s2PMWbDb2NGYiRSEeoSGyAvS9H+24JFA==", + "version": "1.3.96", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.96.tgz", + "integrity": "sha512-4VbSAniIu0ikLf5mBX81FsljnfqjoVGleEkCQv4+zRlyZtO3FHoDPkeLVoy6WRlj7tyrRcfUJ4mDdPkbfTO14g==", "cpu": [ "x64" ], @@ -651,12 +624,12 @@ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==" }, "node_modules/@types/node": { - "version": "20.8.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", - "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", + "version": "20.8.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.10.tgz", + "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", "peer": true, "dependencies": { - "undici-types": "~5.25.1" + "undici-types": "~5.26.4" } }, "node_modules/@types/uuid": { @@ -665,9 +638,9 @@ "integrity": "sha512-BT2Krtx4xaO6iwzwMFUYvWBWkV2pr37zD68Vmp1CDV196MzczBRxuEpD6Pr395HAgebC/co7hOphs53r8V7jew==" }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", "bin": { "acorn": "bin/acorn" }, @@ -676,9 +649,9 @@ } }, "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz", + "integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==", "engines": { "node": ">=0.4.0" } @@ -689,9 +662,9 @@ "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" }, "node_modules/azle": { - "version": "0.18.5", - "resolved": "https://registry.npmjs.org/azle/-/azle-0.18.5.tgz", - "integrity": "sha512-9lLhVKwexVCd8OOYMXgjk06L+Mu0q29Rpchmz07HYV6idwF5kg+8QCxzytpU9GpnUeoADTQNkEkyLABtkd2hCA==", + "version": "0.18.6", + "resolved": "https://registry.npmjs.org/azle/-/azle-0.18.6.tgz", + "integrity": "sha512-XEebokPOpNAQ0+B7x6fj6cPVSvmbEYm2p9/bSvFxuKQ4VcnzmsOdX7HCZyYYTKsD5eTc4XxuaHqqdagmdzbJPw==", "dependencies": { "@dfinity/candid": "github:demergent-labs/candid#minimum_viable", "@dfinity/principal": "^0.19.0", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1125,25 +953,19 @@ } }, "node_modules/undici-types": { - "version": "5.25.3", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", - "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", "peer": true }, "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "engines": { "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/principal/package.json b/property_tests/tests/principal/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/principal/package.json +++ b/property_tests/tests/principal/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/principal/test/test.ts b/property_tests/tests/principal/test/test.ts index e5349d8a92..2c618b1d6a 100644 --- a/property_tests/tests/principal/test/test.ts +++ b/property_tests/tests/principal/test/test.ts @@ -1,5 +1,5 @@ import fc from 'fast-check'; -import { deepEqual, shallowEqual } from 'fast-equals'; +import { deepEqual } from 'fast-equals'; import { arePrincipalsEqual } from '../../../are_equal/principal'; import { PrincipalArb } from '../../../arbitraries/candid/reference/principal_arb'; @@ -114,7 +114,7 @@ function generateTest( ...paramPrincipals.map((sample) => sample.value) ); - return { Ok: returnPrincipal.equals(result, expectedResult) }; + return { Ok: deepEqual(result, expectedResult) }; } }; } diff --git a/property_tests/tests/query_methods/package-lock.json b/property_tests/tests/query_methods/package-lock.json index 92cfb744fc..643fdcb66c 100644 --- a/property_tests/tests/query_methods/package-lock.json +++ b/property_tests/tests/query_methods/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/query_methods/package.json b/property_tests/tests/query_methods/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/query_methods/package.json +++ b/property_tests/tests/query_methods/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/record/package-lock.json b/property_tests/tests/record/package-lock.json index 59d1aae0b8..0b07073ad5 100644 --- a/property_tests/tests/record/package-lock.json +++ b/property_tests/tests/record/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/record/package.json b/property_tests/tests/record/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/record/package.json +++ b/property_tests/tests/record/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/text/package-lock.json b/property_tests/tests/text/package-lock.json index 46bdfdeb88..242787d403 100644 --- a/property_tests/tests/text/package-lock.json +++ b/property_tests/tests/text/package-lock.json @@ -1,5 +1,5 @@ { - "name": "float32", + "name": "text", "lockfileVersion": 3, "requires": true, "packages": { @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/text/package.json b/property_tests/tests/text/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/text/package.json +++ b/property_tests/tests/text/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/tuple/package-lock.json b/property_tests/tests/tuple/package-lock.json index 2972b1444e..7a372804da 100644 --- a/property_tests/tests/tuple/package-lock.json +++ b/property_tests/tests/tuple/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/tuple/package.json b/property_tests/tests/tuple/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/tuple/package.json +++ b/property_tests/tests/tuple/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/variant/package-lock.json b/property_tests/tests/variant/package-lock.json index 0467a176f5..25c12db742 100644 --- a/property_tests/tests/variant/package-lock.json +++ b/property_tests/tests/variant/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/variant/package.json b/property_tests/tests/variant/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/variant/package.json +++ b/property_tests/tests/variant/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } diff --git a/property_tests/tests/vec/package-lock.json b/property_tests/tests/vec/package-lock.json index ed320d6eda..7cf7332fb7 100644 --- a/property_tests/tests/vec/package-lock.json +++ b/property_tests/tests/vec/package-lock.json @@ -8,7 +8,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } @@ -33,32 +32,6 @@ "node": ">=12" } }, - "node_modules/@dfinity/agent": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/agent/-/agent-0.19.3.tgz", - "integrity": "sha512-q410aNLoOA1ZkwdAMgSo6t++pjISn9TfSybRXhPRI5Ume7eG6+6qYr/rlvcXy7Nb2+Ar7LTsHNn34IULfjni7w==", - "dev": true, - "dependencies": { - "@noble/hashes": "^1.3.1", - "base64-arraybuffer": "^0.2.0", - "borc": "^2.1.1", - "simple-cbor": "^0.4.1" - }, - "peerDependencies": { - "@dfinity/candid": "^0.19.3", - "@dfinity/principal": "^0.19.3" - } - }, - "node_modules/@dfinity/candid": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@dfinity/candid/-/candid-0.19.3.tgz", - "integrity": "sha512-yXfbLSWTeRd4G0bLLxYoDqpXH3Jim0P+1PPZOoktXNC1X1hB+ea3yrZebX75t4GVoQK7123F7mxWHiPjuV2tQQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "@dfinity/principal": "^0.19.3" - } - }, "node_modules/@dfinity/principal": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/@dfinity/principal/-/principal-0.19.3.tgz", @@ -769,15 +742,6 @@ } } }, - "node_modules/base64-arraybuffer": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz", - "integrity": "sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -797,57 +761,6 @@ } ] }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/borc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", - "integrity": "sha512-Sy9eoUi4OiKzq7VovMn246iTo17kzuyHJKomCfpWMlI6RpfN1gk95w7d7gH264nApVLg0HZfcpz62/g4VH1Y4w==", - "dev": true, - "dependencies": { - "bignumber.js": "^9.0.0", - "buffer": "^5.5.0", - "commander": "^2.15.0", - "ieee754": "^1.1.13", - "iso-url": "~0.4.7", - "json-text-sequence": "~0.1.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/borc/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -871,23 +784,11 @@ "ieee754": "^1.2.1" } }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" }, - "node_modules/delimit-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", - "integrity": "sha512-a02fiQ7poS5CnjiJBAsjGLPp5EwVoGHNeu9sziBd9huppRfsAFIpv5zNLv0V1gbop53ilngAf5Kf331AwcoRBQ==", - "dev": true - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -969,35 +870,11 @@ } ] }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/iso-url": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-0.4.7.tgz", - "integrity": "sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/js-sha256": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, - "node_modules/json-text-sequence": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", - "integrity": "sha512-L3mEegEWHRekSHjc7+sc8eJhba9Clq1PZ8kMkzf8OxElhXc8O4TS5MwcVlj9aEbm5dr81N90WHC5nAz3UO971w==", - "dev": true, - "dependencies": { - "delimit-stream": "0.1.0" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1014,55 +891,6 @@ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-cbor": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-cbor/-/simple-cbor-0.4.1.tgz", - "integrity": "sha512-rijcxtwx2b4Bje3sqeIqw5EeW7UlOIC4YfOdwqIKacpvRQ/D78bWg/4/0m5e0U91oKvlGh7LlJuZCu07ISCC7w==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/text-encoding": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz", @@ -1138,12 +966,6 @@ "node": ">= 10.0.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, "node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", diff --git a/property_tests/tests/vec/package.json b/property_tests/tests/vec/package.json index fd5d123560..e5b0aa2544 100644 --- a/property_tests/tests/vec/package.json +++ b/property_tests/tests/vec/package.json @@ -6,7 +6,6 @@ "azle": "^0.18.5" }, "devDependencies": { - "@dfinity/agent": "^0.19.3", "ts-node": "^10.9.1", "typescript": "^5.2.2" } From d7c41bd2c9746cb3a1f841510fb10ff09eb3aba3 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 09:19:36 -0700 Subject: [PATCH 2/8] move to deepEqual --- .../arbitraries/candid/candid_arb.ts | 7 +-- .../arbitraries/candid/constructed/opt_arb.ts | 41 +------------- .../candid/constructed/record_arb.ts | 42 +-------------- .../candid/constructed/tuple_arb.ts | 37 +------------ .../candid/constructed/variant_arb.ts | 33 +----------- .../arbitraries/candid/constructed/vec_arb.ts | 9 +--- .../arbitraries/candid/reference/func_arb.ts | 15 +----- .../candid/reference/principal_arb.ts | 3 +- property_tests/are_equal/float.ts | 3 -- property_tests/are_equal/opt.ts | 36 ------------- property_tests/are_equal/principal.ts | 3 -- property_tests/tests/blob/test/test.ts | 3 +- property_tests/tests/float32/test/test.ts | 10 ++-- property_tests/tests/float64/test/test.ts | 10 ++-- property_tests/tests/func/test/test.ts | 6 ++- property_tests/tests/int/test/test.ts | 3 +- property_tests/tests/int16/test/test.ts | 3 +- property_tests/tests/int32/test/test.ts | 3 +- property_tests/tests/int64/test/test.ts | 3 +- property_tests/tests/int8/test/test.ts | 3 +- property_tests/tests/nat/test/test.ts | 3 +- property_tests/tests/nat16/test/test.ts | 3 +- property_tests/tests/nat32/test/test.ts | 3 +- property_tests/tests/nat64/test/test.ts | 3 +- property_tests/tests/nat8/test/test.ts | 3 +- property_tests/tests/null/test/test.ts | 3 +- property_tests/tests/principal/test/test.ts | 9 ++-- property_tests/tests/record/test/test.ts | 54 +------------------ property_tests/tests/text/test/test.ts | 3 +- property_tests/tests/tuple/test/test.ts | 50 ++--------------- property_tests/tests/variant/test/test.ts | 5 +- property_tests/tests/vec/test/test.ts | 19 +------ 32 files changed, 57 insertions(+), 374 deletions(-) delete mode 100644 property_tests/are_equal/float.ts delete mode 100644 property_tests/are_equal/opt.ts delete mode 100644 property_tests/are_equal/principal.ts diff --git a/property_tests/arbitraries/candid/candid_arb.ts b/property_tests/arbitraries/candid/candid_arb.ts index 414dd32838..cd21c72a5e 100644 --- a/property_tests/arbitraries/candid/candid_arb.ts +++ b/property_tests/arbitraries/candid/candid_arb.ts @@ -11,14 +11,12 @@ export type CandidMeta = { imports: Set; valueLiteral: string; }; - equals(a: T, b: T): boolean; }; export const CandidMetaArb = ( arb: fc.Arbitrary, candidType: string, - toLiteral: (value: T) => string, - equals: (a: T, b: T) => boolean = (a: T, b: T) => deepEqual(a, b) + toLiteral: (value: T) => string ) => { return arb.map( (value): CandidMeta => ({ @@ -27,8 +25,7 @@ export const CandidMetaArb = ( imports: new Set([candidType]), valueLiteral: toLiteral(value) }, - value, - equals + value }) ); }; diff --git a/property_tests/arbitraries/candid/constructed/opt_arb.ts b/property_tests/arbitraries/candid/constructed/opt_arb.ts index 1ccdc63e1e..dca4d0b7ae 100644 --- a/property_tests/arbitraries/candid/constructed/opt_arb.ts +++ b/property_tests/arbitraries/candid/constructed/opt_arb.ts @@ -41,8 +41,7 @@ export const OptArb = fc imports: generateImports(recursiveOptArb), valueLiteral: generateValueLiteral(recursiveOptArb) }, - value: generateValue(recursiveOptArb), - equals: (a, b) => areOptsEqual(getBaseEquals(recursiveOptArb), a, b) + value: generateValue(recursiveOptArb) }; }); @@ -117,41 +116,3 @@ function calculateDepthAndValues(value: [any] | []): { const result = calculateDepthAndValues(value[0]); return { ...result, depth: result.depth + 1 }; } - -function getBaseEquals( - recursiveOpt: RecursiveOpt -): (a: any, b: any) => boolean { - if ('base' in recursiveOpt) { - // base case - if (recursiveOpt.base.someOrNone === 'Some') { - return recursiveOpt.base.candid.equals; - } else { - return (a: null, b: null) => a === b; - } - } else { - return getBaseEquals(recursiveOpt.nextLayer); - } -} - -function areOptsEqual( - equals: (a: any, b: any) => boolean, - opt1: any, - opt2: any -) { - const { depth: depth1, value: value1 } = calculateDepthAndValues(opt1); - const { depth: depth2, value: value2 } = calculateDepthAndValues(opt2); - - if (depth1 !== depth2) { - return false; - } - - if (isNone(value1) && isNone(value2)) { - return true; - } - - return equals(value1, value2); -} - -function isNone(value: any | []) { - return Array.isArray(value) && value.length === 0; -} diff --git a/property_tests/arbitraries/candid/constructed/record_arb.ts b/property_tests/arbitraries/candid/constructed/record_arb.ts index d3796737fb..2250e78d2d 100644 --- a/property_tests/arbitraries/candid/constructed/record_arb.ts +++ b/property_tests/arbitraries/candid/constructed/record_arb.ts @@ -27,8 +27,6 @@ export const RecordArb = fc const value = generateValue(fields); - const equals = generateEqualsMethod(fields); - return { src: { candidType: name, @@ -36,8 +34,7 @@ export const RecordArb = fc imports, valueLiteral }, - value, - equals + value }; }); @@ -82,40 +79,3 @@ function generateValueLiteral(fields: Field[]): string { ${fieldLiterals} }`; } - -function generateEqualsMethod( - fields: Field[] -): (a: Record, b: Record) => boolean { - return (a: Record, b: Record): boolean => { - if (typeof a !== typeof b) { - return false; - } - - const aFieldNames = Object.keys(a).sort(); - const bFieldNames = Object.keys(b).sort(); - if (aFieldNames.length !== bFieldNames.length) { - return false; - } - - const areFieldNamesTheSame = aFieldNames.reduce( - (acc, aFieldName, index) => - acc && aFieldName === bFieldNames[index], - true - ); - - if (!areFieldNamesTheSame) { - return false; - } - - const areFieldValuesTheSame = fields.reduce( - (acc, [fieldName, fieldCandidType]) => { - return ( - acc && fieldCandidType.equals(a[fieldName], b[fieldName]) - ); - }, - true - ); - - return areFieldValuesTheSame; - }; -} diff --git a/property_tests/arbitraries/candid/constructed/tuple_arb.ts b/property_tests/arbitraries/candid/constructed/tuple_arb.ts index e2ca939493..db79d341e5 100644 --- a/property_tests/arbitraries/candid/constructed/tuple_arb.ts +++ b/property_tests/arbitraries/candid/constructed/tuple_arb.ts @@ -21,8 +21,6 @@ export const TupleArb = fc const value = fields.map((field) => field.value); - const equals = generateEqualsMethod(fields); - return { src: { candidType: name, @@ -30,8 +28,7 @@ export const TupleArb = fc imports, valueLiteral }, - value, - equals + value }; }); @@ -49,35 +46,3 @@ function generateValueLiteral(fields: CandidMeta[]) { ${fieldLiterals} ]`; } - -function generateEqualsMethod( - fields: CandidMeta[] -): (a: Tuple, b: Tuple) => boolean { - return (a: Tuple, b: Tuple): boolean => { - if (typeof a !== typeof b) { - return false; - } - - const aFieldNames = Object.keys(a); - const bFieldNames = Object.keys(b); - if (aFieldNames.length !== bFieldNames.length) { - return false; - } - - const areFieldNamesTheSame = aFieldNames.reduce( - (acc, aFieldName, index) => - acc && aFieldName === bFieldNames[index], - true - ); - - if (!areFieldNamesTheSame) { - return false; - } - - const areFieldValuesTheSame = fields.reduce((acc, field, index) => { - return acc && field.equals(a[index], b[index]); - }, true); - - return areFieldValuesTheSame; - }; -} diff --git a/property_tests/arbitraries/candid/constructed/variant_arb.ts b/property_tests/arbitraries/candid/constructed/variant_arb.ts index 6a5bc92cf3..545048386c 100644 --- a/property_tests/arbitraries/candid/constructed/variant_arb.ts +++ b/property_tests/arbitraries/candid/constructed/variant_arb.ts @@ -31,8 +31,6 @@ export const VariantArb = fc const value = generateValue(randomIndex, fields); - const equals = generateEqualsMethod(fields); - return { src: { candidType: name, @@ -40,8 +38,7 @@ export const VariantArb = fc imports, valueLiteral }, - value, - equals + value }; }); @@ -81,31 +78,3 @@ function generateValueLiteral(index: number, fields: Field[]): string { ${fieldName}: ${fieldValue.src.valueLiteral} }`; } - -function generateEqualsMethod( - fields: Field[] -): (a: Variant, b: Variant) => boolean { - return (a: Variant, b: Variant): boolean => { - if (typeof a !== typeof b) { - return false; - } - - const aKeys = Object.keys(a); - const bKeys = Object.keys(b); - if (aKeys.length !== bKeys.length && aKeys.length !== 1) { - return false; - } - const aFieldName = aKeys[0]; - const bFieldName = bKeys[0]; - if (aFieldName !== bFieldName) { - return false; - } - - return fields.reduce((acc, [fieldName, fieldCandidType]) => { - if (fieldName !== aFieldName) { - return acc || false; - } - return fieldCandidType.equals(a[fieldName], b[fieldName]); - }, false); - }; -} diff --git a/property_tests/arbitraries/candid/constructed/vec_arb.ts b/property_tests/arbitraries/candid/constructed/vec_arb.ts index a90afaa271..819a1e8cb1 100644 --- a/property_tests/arbitraries/candid/constructed/vec_arb.ts +++ b/property_tests/arbitraries/candid/constructed/vec_arb.ts @@ -26,7 +26,6 @@ const VecInnerArb = ( return fc .tuple(fc.array(arb), arb) .map(([sample, src]): CandidMeta => { - const equals = generateEquals(sample); const valueLiteral = generateValueLiteral(sample); return { @@ -35,8 +34,7 @@ const VecInnerArb = ( candidType: `Vec(${src.src.candidType})`, imports: new Set([...src.src.imports, 'Vec']), valueLiteral - }, - equals + } }; }); }; @@ -48,11 +46,6 @@ function generateValueLiteral(sample: CandidMeta[]) { return `[${valueLiterals}]`; } -function generateEquals(sample: CandidMeta[]) { - return (a: T[], b: T[]) => - arraysAreEqual(a, b, sample[0]?.equals ?? deepEqual); -} - export const VecArb = fc.oneof( VecInnerArb(Float32Arb), VecInnerArb(Float64Arb), diff --git a/property_tests/arbitraries/candid/reference/func_arb.ts b/property_tests/arbitraries/candid/reference/func_arb.ts index 28563251a9..738afd97a8 100644 --- a/property_tests/arbitraries/candid/reference/func_arb.ts +++ b/property_tests/arbitraries/candid/reference/func_arb.ts @@ -49,8 +49,7 @@ export const FuncArb = ( imports, valueLiteral }, - value, - equals: funcsAreEqual + value }; }); @@ -64,15 +63,3 @@ function generateTypeDeclaration( return `const ${name} = Func([${params}], ${returnType}, '${mode}')`; } - -function funcsAreEqual(result: Func, expectedResult: Func): boolean { - if (result[0].toText() !== expectedResult[0].toText()) { - return false; - } - - if (result[1] !== expectedResult[1]) { - return false; - } - - return true; -} diff --git a/property_tests/arbitraries/candid/reference/principal_arb.ts b/property_tests/arbitraries/candid/reference/principal_arb.ts index 2807ac105b..caece7129e 100644 --- a/property_tests/arbitraries/candid/reference/principal_arb.ts +++ b/property_tests/arbitraries/candid/reference/principal_arb.ts @@ -11,6 +11,5 @@ export const PrincipalArb = CandidMetaArb( }) .map((sample) => Principal.fromUint8Array(sample)), 'Principal', - principalToSrcLiteral, - (a, b) => a.toText() === b.toText() + principalToSrcLiteral ); diff --git a/property_tests/are_equal/float.ts b/property_tests/are_equal/float.ts deleted file mode 100644 index 9223b22145..0000000000 --- a/property_tests/are_equal/float.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function areFloatsEqual(paramName: string, paramLiteral: string) { - return `((Number.isNaN(${paramName}) && Number.isNaN(${paramLiteral})) || ${paramName} === ${paramLiteral})`; -} diff --git a/property_tests/are_equal/opt.ts b/property_tests/are_equal/opt.ts deleted file mode 100644 index c372647c56..0000000000 --- a/property_tests/are_equal/opt.ts +++ /dev/null @@ -1,36 +0,0 @@ -export function createAreOptsEqualCodeDeclaration(): string { - return ` - function calculateDepthAndValues(value: any): { - depth: number; - value: any; - } { - if (value.None === null) { - return { depth: 0, value: null }; - } - if (value.Some === null || (value.Some.Some === undefined && value.Some.None === undefined)) { - // The value.Some is not an opt. return value.Some - return {depth: 0, value: JSON.stringify(value.Some, (key, value) => typeof value === 'bigint' ? value.toString() + "n" : value)} - } - - const result = calculateDepthAndValues(value.Some); - return { ...result, depth: result.depth + 1 }; - } - - function areOptsEqual(opt1: any, opt2: any) { - const { depth: depth1, value: value1 } = - calculateDepthAndValues(opt1); - const { depth: depth2, value: value2 } = - calculateDepthAndValues(opt2); - - return depth1 === depth2 && value1 === value2; - } - `; -} - -export function createAreOptsEqualCodeUsage( - paramName: string, - paramLiteral: string -): string { - // TODO this only works because right now both a and b are strings when they are bigints. Try changing the areOptsEqual with deepEqual and you will see - return `areOptsEqual(${paramName}, ${paramLiteral})`; -} diff --git a/property_tests/are_equal/principal.ts b/property_tests/are_equal/principal.ts deleted file mode 100644 index 028ecc6b23..0000000000 --- a/property_tests/are_equal/principal.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function arePrincipalsEqual(paramName: string, paramLiteral: string) { - return `(${paramName}.toText() === ${paramLiteral}.toText())`; -} diff --git a/property_tests/tests/blob/test/test.ts b/property_tests/tests/blob/test/test.ts index 9d40974a7f..aa96697781 100644 --- a/property_tests/tests/blob/test/test.ts +++ b/property_tests/tests/blob/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { BlobArb } from '../../../arbitraries/candid/constructed/blob_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -96,7 +97,7 @@ function generateTest( ); return { - Ok: returnBlob.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/float32/test/test.ts b/property_tests/tests/float32/test/test.ts index 7b73a530b1..01dc4a5e64 100644 --- a/property_tests/tests/float32/test/test.ts +++ b/property_tests/tests/float32/test/test.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; -import { areFloatsEqual } from '../../../are_equal/float'; import { Float32Arb } from '../../../arbitraries/candid/primitive/floats/float32_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; import { TestSample } from '../../../arbitraries/test_sample_arb'; @@ -66,11 +66,7 @@ function generateBody( ); const paramsCorrectlyOrdered = paramNames .map((paramName, index) => { - const areFloat32sEqual = areFloatsEqual( - paramName, - paramLiterals[index] - ); - return `if (!(${areFloat32sEqual})) throw new Error('${paramName} is incorrectly ordered')`; + return `if (!deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; }) .join('\n'); @@ -106,7 +102,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnFloat32.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/float64/test/test.ts b/property_tests/tests/float64/test/test.ts index c178659fa3..43f6906bc7 100644 --- a/property_tests/tests/float64/test/test.ts +++ b/property_tests/tests/float64/test/test.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; -import { areFloatsEqual } from '../../../are_equal/float'; import { Float64Arb } from '../../../arbitraries/candid/primitive/floats/float64_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; import { TestSample } from '../../../arbitraries/test_sample_arb'; @@ -66,11 +66,7 @@ function generateBody( ); const paramsCorrectlyOrdered = paramNames .map((paramName, index) => { - const areFloat64sEqual = areFloatsEqual( - paramName, - paramLiterals[index] - ); - return `if (!(${areFloat64sEqual})) throw new Error('${paramName} is incorrectly ordered')`; + return `if (!deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; }) .join('\n'); @@ -111,7 +107,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnFloat64.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/func/test/test.ts b/property_tests/tests/func/test/test.ts index 17aa0d22d3..5b863f8014 100644 --- a/property_tests/tests/func/test/test.ts +++ b/property_tests/tests/func/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { getActor, runPropTests } from '../../..'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; @@ -97,7 +98,8 @@ function generateBody( const methodNameIsCorrect = `${paramName}[1] === '${methodName}'`; const throwError = `throw new Error('${paramName} is incorrectly ordered')`; - return `if (!(${principalValueIsCorrect} && ${methodNameIsCorrect})) ${throwError}`; + const debug = `console.log(${paramName})\nconsole.log(${func.src.valueLiteral})\n`; + return `${debug}if (!deepEqual(${paramName}[0].toText(), ${func.src.valueLiteral}[0].toText())) ${throwError}`; }) .join('\n'); @@ -128,7 +130,7 @@ function generateTest( ); return { - Ok: returnFunc.equals(result, returnFunc.value) + Ok: deepEqual(result, returnFunc.value) }; } }; diff --git a/property_tests/tests/int/test/test.ts b/property_tests/tests/int/test/test.ts index e56811b83e..f67ea5fda7 100644 --- a/property_tests/tests/int/test/test.ts +++ b/property_tests/tests/int/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { IntArb } from '../../../arbitraries/candid/primitive/ints/int_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -91,7 +92,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnInt.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/int16/test/test.ts b/property_tests/tests/int16/test/test.ts index 6048748e77..233809107c 100644 --- a/property_tests/tests/int16/test/test.ts +++ b/property_tests/tests/int16/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Int16Arb } from '../../../arbitraries/candid/primitive/ints/int16_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -102,7 +103,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnInt16.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/int32/test/test.ts b/property_tests/tests/int32/test/test.ts index 11c736d144..3614cb0174 100644 --- a/property_tests/tests/int32/test/test.ts +++ b/property_tests/tests/int32/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Int32Arb } from '../../../arbitraries/candid/primitive/ints/int32_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -100,7 +101,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnInt32.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/int64/test/test.ts b/property_tests/tests/int64/test/test.ts index 0c432809b9..669023352f 100644 --- a/property_tests/tests/int64/test/test.ts +++ b/property_tests/tests/int64/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Int64Arb } from '../../../arbitraries/candid/primitive/ints/int64_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -100,7 +101,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: result === expectedResult + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/int8/test/test.ts b/property_tests/tests/int8/test/test.ts index 735652cc50..9c42200aea 100644 --- a/property_tests/tests/int8/test/test.ts +++ b/property_tests/tests/int8/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Int8Arb } from '../../../arbitraries/candid/primitive/ints/int8_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -94,7 +95,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: result === expectedResult + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/nat/test/test.ts b/property_tests/tests/nat/test/test.ts index 5466e9bfbc..856d8b1960 100644 --- a/property_tests/tests/nat/test/test.ts +++ b/property_tests/tests/nat/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { NatArb } from '../../../arbitraries/candid/primitive/nats/nat_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -91,7 +92,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: result === expectedResult + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/nat16/test/test.ts b/property_tests/tests/nat16/test/test.ts index 585209e7be..12d554ea6d 100644 --- a/property_tests/tests/nat16/test/test.ts +++ b/property_tests/tests/nat16/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Nat16Arb } from '../../../arbitraries/candid/primitive/nats/nat16_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -100,7 +101,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnNat16.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/nat32/test/test.ts b/property_tests/tests/nat32/test/test.ts index 3fd3bd2c0b..f5c7500ce1 100644 --- a/property_tests/tests/nat32/test/test.ts +++ b/property_tests/tests/nat32/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Nat32Arb } from '../../../arbitraries/candid/primitive/nats/nat32_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -101,7 +102,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnNat32.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/nat64/test/test.ts b/property_tests/tests/nat64/test/test.ts index 3b443ba58a..f6c4558210 100644 --- a/property_tests/tests/nat64/test/test.ts +++ b/property_tests/tests/nat64/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Nat64Arb } from '../../../arbitraries/candid/primitive/nats/nat64_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -99,7 +100,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnNat64.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/nat8/test/test.ts b/property_tests/tests/nat8/test/test.ts index 1c337c78e2..e8b788a262 100644 --- a/property_tests/tests/nat8/test/test.ts +++ b/property_tests/tests/nat8/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Nat8Arb } from '../../../arbitraries/candid/primitive/nats/nat8_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -94,7 +95,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnNat8.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/null/test/test.ts b/property_tests/tests/null/test/test.ts index c39527a259..fe96007001 100644 --- a/property_tests/tests/null/test/test.ts +++ b/property_tests/tests/null/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { NullArb } from '../../../arbitraries/candid/primitive/null'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -73,7 +74,7 @@ function generateTest( ); return { - Ok: returnNull.equals(result, null) + Ok: deepEqual(result, null) }; } }; diff --git a/property_tests/tests/principal/test/test.ts b/property_tests/tests/principal/test/test.ts index 2c618b1d6a..8d5990d443 100644 --- a/property_tests/tests/principal/test/test.ts +++ b/property_tests/tests/principal/test/test.ts @@ -1,7 +1,6 @@ import fc from 'fast-check'; import { deepEqual } from 'fast-equals'; -import { arePrincipalsEqual } from '../../../are_equal/principal'; import { PrincipalArb } from '../../../arbitraries/candid/reference/principal_arb'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; import { TestSample } from '../../../arbitraries/test_sample_arb'; @@ -78,10 +77,10 @@ function generateBody( const paramsCorrectlyOrdered = paramNames .map((paramName, index) => { - const areEqual = arePrincipalsEqual( - paramName, - paramPrincipals[index].src.valueLiteral - ); + const areEqual = `deepEqual( + ${paramName}.toText(), + ${paramPrincipals[index].src.valueLiteral}.toText() + )`; return `if (!${areEqual}) throw new Error('${paramName} is incorrectly ordered')`; }) diff --git a/property_tests/tests/record/test/test.ts b/property_tests/tests/record/test/test.ts index 30d5d04442..2d29e2b5e3 100644 --- a/property_tests/tests/record/test/test.ts +++ b/property_tests/tests/record/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { RecordArb, @@ -120,58 +121,7 @@ function generateTest( ...paramRecords.map((record) => record.value) ); - // Start by using the equals method defined by the return arbitrary - // This method works in all cases and if it should return true it - // will. It's weakness is that we don't always know why it returns - // false, so if that equals method returns false, then instead of - // just returning {Ok: false} we will use the equals function that - // has better reporting of why the test failed but isn't as robust - if (returnRecord.equals(result, returnRecord.value)) { - return { Ok: true }; - } - return recordsAreEqual(result, returnRecord.value); + return { Ok: deepEqual(result, returnRecord.value) }; } }; } - -function recordsAreEqual( - result: Record, - expectedResult: Record -): AzleResult { - if (typeof result !== 'object') { - return { Err: 'Result is not an object' }; - } - - if (typeof expectedResult !== 'object') { - return { Err: 'Expected Result is not an object' }; - } - - const resultKeys = Object.keys(result); - const resultEntries = Object.entries(result); - const expectedResultEntries = Object.entries(expectedResult); - - if (resultEntries.length !== expectedResultEntries.length) { - return { - Err: `The entries of result and expectedResult differ in length: ${resultEntries.length} & ${expectedResultEntries.length} respectively` - }; - } - - for (let i = 0; i < expectedResultEntries.length; i++) { - const [expectedResultKey, expectedResultValue] = - expectedResultEntries[i]; - - if (!resultKeys.includes(expectedResultKey)) { - return { - Err: `Result is missing key "${expectedResultKey}"` - }; - } - - if (result[expectedResultKey] !== expectedResultValue) { - return { - Err: `Expected result.${expectedResultKey} to be ${expectedResultValue} but got ${result[expectedResultKey]} instead` - }; - } - } - - return { Ok: true }; -} diff --git a/property_tests/tests/text/test/test.ts b/property_tests/tests/text/test/test.ts index 291a16f7d7..b227760c18 100644 --- a/property_tests/tests/text/test/test.ts +++ b/property_tests/tests/text/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { TextArb } from '../../../arbitraries/candid/primitive/text'; import { JsFunctionNameArb } from '../../../arbitraries/js_function_name_arb'; @@ -92,7 +93,7 @@ function generateTest( const result = await actor[functionName](...paramValues); return { - Ok: returnTexts.equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/tuple/test/test.ts b/property_tests/tests/tuple/test/test.ts index b869abf765..949f143a6f 100644 --- a/property_tests/tests/tuple/test/test.ts +++ b/property_tests/tests/tuple/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { TupleArb, @@ -7,7 +8,7 @@ import { import { TestSample } from '../../../arbitraries/test_sample_arb'; import { UniqueIdentifierArb } from '../../../arbitraries/unique_identifier_arb'; import { getActor, runPropTests } from '../../..'; -import { AzleResult, Test } from '../../../../test'; +import { Test } from '../../../../test'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; const TupleTestArb = fc @@ -114,52 +115,7 @@ function generateTest( ...paramTuples.map((tuple) => tuple.value) ); - // Start by using the equals method defined by the return arbitrary - // This method works in all cases and if it should return true it - // will. It's weakness is that we don't always know why it returns - // false, so if that equals method returns false, then instead of - // just returning {Ok: false} we will use the equals function that - // has better reporting of why the test failed but isn't as robust - if (returnTuple.equals(result, expectedResult)) { - return { Ok: true }; - } - - return tuplesAreEqual(result, expectedResult); + return { Ok: deepEqual(result, expectedResult) }; } }; } - -function tuplesAreEqual( - result: Tuple, - expectedResult: Tuple -): AzleResult { - if (typeof result !== 'object') { - return { Err: 'Result is not an object' }; - } - - if (typeof expectedResult !== 'object') { - return { Err: 'Expected result is not an object' }; - } - - const resultFieldsCount = Object.entries(result).length; - const expectedResultFieldsCount = Object.entries(expectedResult).length; - - if (resultFieldsCount !== expectedResultFieldsCount) { - return { - Err: `Result is not of the correct length: expected ${expectedResultFieldsCount}, received ${resultFieldsCount}` - }; - } - - for (let i = 0; i < expectedResultFieldsCount; i++) { - const expectedFieldValue = expectedResult[i]; - const actualFieldValue = result[i]; - - if (actualFieldValue !== expectedFieldValue) { - return { - Err: `Expected result[${i}] to be ${expectedFieldValue} but got ${actualFieldValue} instead` - }; - } - } - - return { Ok: true }; -} diff --git a/property_tests/tests/variant/test/test.ts b/property_tests/tests/variant/test/test.ts index 716edf272c..19e3329f68 100644 --- a/property_tests/tests/variant/test/test.ts +++ b/property_tests/tests/variant/test/test.ts @@ -1,4 +1,5 @@ import fc from 'fast-check'; +import { deepEqual } from 'fast-equals'; import { Variant, @@ -106,8 +107,6 @@ function generateTest( returnVariant: CandidMeta ): Test { const expectedResult = paramVariants[0]?.value ?? returnVariant.value; - const equals = - paramVariants[0]?.equals ?? ((a: any, b: any) => a.None === b.None); return { name: `variant ${functionName}`, test: async () => { @@ -118,7 +117,7 @@ function generateTest( ); return { - Ok: equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; diff --git a/property_tests/tests/vec/test/test.ts b/property_tests/tests/vec/test/test.ts index 231de60fcf..49f1efc0df 100644 --- a/property_tests/tests/vec/test/test.ts +++ b/property_tests/tests/vec/test/test.ts @@ -44,22 +44,6 @@ const VecTestArb = fc runPropTests(VecTestArb); -function blobsAreEqual(arr1: Uint8Array, arr2: Uint8Array) { - // Check if both arrays have the same length - if (arr1.length !== arr2.length) { - return false; - } - - // Loop through each element to check for equality - for (let i = 0; i < arr1.length; i++) { - if (!deepEqual(arr1[i], arr2[i])) { - return false; - } - } - - return true; -} - function generateBody( paramNames: string[], paramVecs: CandidMeta[], @@ -98,7 +82,6 @@ function generateTest( returnVec: CandidMeta ): Test { const expectedResult = paramVecs[0]?.value ?? returnVec.value; - const equals = paramVecs[0]?.equals ?? returnVec.equals; return { name: `vec ${functionName}`, @@ -109,7 +92,7 @@ function generateTest( const result = await actor[functionName](...params); return { - Ok: equals(result, expectedResult) + Ok: deepEqual(result, expectedResult) }; } }; From 4252577af5291ca1ad27a3b4415c724d066f4a4f Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 10:07:43 -0700 Subject: [PATCH 3/8] fix empty tuple tests --- property_tests/tests/tuple/test/test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/property_tests/tests/tuple/test/test.ts b/property_tests/tests/tuple/test/test.ts index 949f143a6f..6d0b6e1d36 100644 --- a/property_tests/tests/tuple/test/test.ts +++ b/property_tests/tests/tuple/test/test.ts @@ -115,6 +115,16 @@ function generateTest( ...paramTuples.map((tuple) => tuple.value) ); + if (!Array.isArray(result)) { + // Empty Tuple + return { + Ok: deepEqual( + Array.from(Object.values(result)), + expectedResult + ) + }; + } + return { Ok: deepEqual(result, expectedResult) }; } }; From 3c7d4c08a6192571845a90cbfe0937f14ce72b44 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 10:16:09 -0700 Subject: [PATCH 4/8] get rid of lingering equal method --- .../arbitraries/candid/constructed/vec_arb.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/property_tests/arbitraries/candid/constructed/vec_arb.ts b/property_tests/arbitraries/candid/constructed/vec_arb.ts index 819a1e8cb1..69bf58870b 100644 --- a/property_tests/arbitraries/candid/constructed/vec_arb.ts +++ b/property_tests/arbitraries/candid/constructed/vec_arb.ts @@ -65,23 +65,3 @@ export const VecArb = fc.oneof( VecInnerArb(BlobArb) // VecInnerArb(NullArb) ); - -function arraysAreEqual( - arr1: T[], - arr2: T[], - equals: (a: T, b: T) => boolean -) { - // Check if both arrays have the same length - if (arr1.length !== arr2.length) { - return false; - } - - // Loop through each element to check for equality - for (let i = 0; i < arr1.length; i++) { - if (!equals(arr1[i], arr2[i])) { - return false; - } - } - - return true; -} From aaf52b07787b214b4f780d67b95e85db716e6164 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 12:18:40 -0700 Subject: [PATCH 5/8] fix vec arb typing --- .../arbitraries/candid/candid_type_arb.ts | 10 ++- .../arbitraries/candid/constructed/vec_arb.ts | 64 ++++++++++++++++++- property_tests/tests/vec/test/test.ts | 2 +- 3 files changed, 71 insertions(+), 5 deletions(-) diff --git a/property_tests/arbitraries/candid/candid_type_arb.ts b/property_tests/arbitraries/candid/candid_type_arb.ts index ffdd5482b7..885ba6f5bd 100644 --- a/property_tests/arbitraries/candid/candid_type_arb.ts +++ b/property_tests/arbitraries/candid/candid_type_arb.ts @@ -37,7 +37,15 @@ export type CandidType = | Variant | Record | Tuple - | undefined; + | undefined + | Int16Array + | Int32Array + | Int8Array + | BigInt64Array + | Uint16Array + | Uint32Array + | Uint8Array + | BigUint64Array; /** * An arbitrary representing all possible Candid types. diff --git a/property_tests/arbitraries/candid/constructed/vec_arb.ts b/property_tests/arbitraries/candid/constructed/vec_arb.ts index 69bf58870b..fff832c1d3 100644 --- a/property_tests/arbitraries/candid/constructed/vec_arb.ts +++ b/property_tests/arbitraries/candid/constructed/vec_arb.ts @@ -16,20 +16,30 @@ import { Float32Arb } from '../primitive/floats/float32_arb'; import { Float64Arb } from '../primitive/floats/float64_arb'; import { NullArb } from '../primitive/null'; import { TextArb } from '../primitive/text'; -import { deepEqual } from 'fast-equals'; import { BlobArb } from './blob_arb'; import { CandidType } from '../candid_type_arb'; +type Vec = + | T[] + | Uint16Array + | Uint32Array + | Uint8Array + | Int16Array + | Int32Array + | Int8Array + | BigUint64Array + | BigInt64Array; + const VecInnerArb = ( arb: fc.Arbitrary> ) => { return fc .tuple(fc.array(arb), arb) - .map(([sample, src]): CandidMeta => { + .map(([sample, src]): CandidMeta> => { const valueLiteral = generateValueLiteral(sample); return { - value: sample.map((sample) => sample.value), + value: generateValue(sample, src.src.candidType), src: { candidType: `Vec(${src.src.candidType})`, imports: new Set([...src.src.imports, 'Vec']), @@ -39,6 +49,54 @@ const VecInnerArb = ( }); }; +function toNumberArray(array: T[]): number[] { + if (array.every((item) => typeof item === 'number')) { + return array as number[]; + } + throw new Error('array is not a number array'); +} + +function toBigintArray(array: T[]): bigint[] { + if (array.every((item) => typeof item === 'bigint')) { + return array as bigint[]; + } + throw new Error('array is not a bigint array'); +} + +function generateValue( + array: CandidMeta[], + candidType: string +): Vec { + const value = array.map((sample) => sample.value); + + if (candidType === 'int8') { + return new Int8Array(toNumberArray(value)); + } + if (candidType === 'int16') { + return new Int16Array(toNumberArray(value)); + } + if (candidType === 'int32') { + return new Int32Array(toNumberArray(value)); + } + if (candidType === 'int64') { + return new BigInt64Array(toBigintArray(value)); + } + if (candidType === 'nat8') { + return new Uint8Array(value as number[]); + } + if (candidType === 'nat16') { + return new Uint16Array(value as number[]); + } + if (candidType === 'nat32') { + return new Uint32Array(value as number[]); + } + if (candidType === 'nat64') { + return new BigUint64Array(value as bigint[]); + } + + return value; +} + function generateValueLiteral(sample: CandidMeta[]) { const valueLiterals = sample .map((sample) => sample.src.valueLiteral) diff --git a/property_tests/tests/vec/test/test.ts b/property_tests/tests/vec/test/test.ts index 49f1efc0df..4c4e3571e5 100644 --- a/property_tests/tests/vec/test/test.ts +++ b/property_tests/tests/vec/test/test.ts @@ -88,7 +88,7 @@ function generateTest( test: async () => { const actor = getActor('./tests/vec/test'); - const params = paramVecs.map((vec) => vec.value); + const params = paramVecs.map((vec) => [...vec.value]); const result = await actor[functionName](...params); return { From f412b8eead639dc6212f7989530403b421cad09b Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 13:59:36 -0700 Subject: [PATCH 6/8] fix principal check --- .../arbitraries/candid/constructed/vec_arb.ts | 61 ++++++++++++------- .../candid/to_src_literal/principal.ts | 2 +- property_tests/arbitraries/canister_arb.ts | 1 + property_tests/tests/func/test/test.ts | 7 +-- property_tests/tests/opt/test/test.ts | 2 +- property_tests/tests/principal/test/test.ts | 4 +- property_tests/tests/vec/test/test.ts | 2 +- 7 files changed, 47 insertions(+), 32 deletions(-) diff --git a/property_tests/arbitraries/candid/constructed/vec_arb.ts b/property_tests/arbitraries/candid/constructed/vec_arb.ts index fff832c1d3..f57ac8ed0a 100644 --- a/property_tests/arbitraries/candid/constructed/vec_arb.ts +++ b/property_tests/arbitraries/candid/constructed/vec_arb.ts @@ -36,7 +36,10 @@ const VecInnerArb = ( return fc .tuple(fc.array(arb), arb) .map(([sample, src]): CandidMeta> => { - const valueLiteral = generateValueLiteral(sample); + const valueLiteral = generateValueLiteral( + sample, + src.src.candidType + ); return { value: generateValue(sample, src.src.candidType), @@ -49,20 +52,6 @@ const VecInnerArb = ( }); }; -function toNumberArray(array: T[]): number[] { - if (array.every((item) => typeof item === 'number')) { - return array as number[]; - } - throw new Error('array is not a number array'); -} - -function toBigintArray(array: T[]): bigint[] { - if (array.every((item) => typeof item === 'bigint')) { - return array as bigint[]; - } - throw new Error('array is not a bigint array'); -} - function generateValue( array: CandidMeta[], candidType: string @@ -70,16 +59,16 @@ function generateValue( const value = array.map((sample) => sample.value); if (candidType === 'int8') { - return new Int8Array(toNumberArray(value)); + return new Int8Array(value as number[]); } if (candidType === 'int16') { - return new Int16Array(toNumberArray(value)); + return new Int16Array(value as number[]); } if (candidType === 'int32') { - return new Int32Array(toNumberArray(value)); + return new Int32Array(value as number[]); } if (candidType === 'int64') { - return new BigInt64Array(toBigintArray(value)); + return new BigInt64Array(value as bigint[]); } if (candidType === 'nat8') { return new Uint8Array(value as number[]); @@ -97,11 +86,41 @@ function generateValue( return value; } -function generateValueLiteral(sample: CandidMeta[]) { +function generateValueLiteral( + sample: CandidMeta[], + candidType: string +) { const valueLiterals = sample .map((sample) => sample.src.valueLiteral) .join(','); - return `[${valueLiterals}]`; + + const valueLiteral = `[${valueLiterals}]`; + + if (candidType === 'int32') { + return `Int32Array.from(${valueLiteral})`; + } + + if (candidType === 'int16') { + return `Int16Array.from(${valueLiteral})`; + } + + if (candidType === 'int8') { + return `Int8Array.from(${valueLiteral})`; + } + + if (candidType === 'nat32') { + return `Uint32Array.from(${valueLiteral})`; + } + + if (candidType === 'nat16') { + return `Uint16Array.from(${valueLiteral})`; + } + + if (candidType === 'nat8') { + return `Uint8Array.from(${valueLiteral})`; + } + + return valueLiteral; } export const VecArb = fc.oneof( diff --git a/property_tests/arbitraries/candid/to_src_literal/principal.ts b/property_tests/arbitraries/candid/to_src_literal/principal.ts index 2cc2cc61b4..b1663d2146 100644 --- a/property_tests/arbitraries/candid/to_src_literal/principal.ts +++ b/property_tests/arbitraries/candid/to_src_literal/principal.ts @@ -1,5 +1,5 @@ import { Principal } from '@dfinity/principal'; export function principalToSrcLiteral(value: Principal): string { - return `Principal.fromText('${value.toText()}')`; + return `DfinityPrincipal.fromText('${value.toText()}')`; } diff --git a/property_tests/arbitraries/canister_arb.ts b/property_tests/arbitraries/canister_arb.ts index a2ed2814d2..efcdeef17d 100644 --- a/property_tests/arbitraries/canister_arb.ts +++ b/property_tests/arbitraries/canister_arb.ts @@ -37,6 +37,7 @@ export function CanisterArb(testArb: fc.Arbitrary) { sourceCode: ` import { Canister, query, ${imports.join(', ')} } from 'azle'; import { deepEqual } from 'fast-equals'; + import { Principal as DfinityPrincipal } from '@dfinity/principal'; ${candidTypeDeclarations} diff --git a/property_tests/tests/func/test/test.ts b/property_tests/tests/func/test/test.ts index 5b863f8014..9c3dd74f8e 100644 --- a/property_tests/tests/func/test/test.ts +++ b/property_tests/tests/func/test/test.ts @@ -92,14 +92,9 @@ function generateBody( .map((func, paramIndex): string => { const paramName = `param${paramIndex}`; - const [principal, methodName] = func.value; - - const principalValueIsCorrect = `${paramName}[0].toText() === '${principal.toText()}'`; - const methodNameIsCorrect = `${paramName}[1] === '${methodName}'`; const throwError = `throw new Error('${paramName} is incorrectly ordered')`; - const debug = `console.log(${paramName})\nconsole.log(${func.src.valueLiteral})\n`; - return `${debug}if (!deepEqual(${paramName}[0].toText(), ${func.src.valueLiteral}[0].toText())) ${throwError}`; + return `if (!deepEqual(${paramName}, ${func.src.valueLiteral})) ${throwError}`; }) .join('\n'); diff --git a/property_tests/tests/opt/test/test.ts b/property_tests/tests/opt/test/test.ts index c7f13ebf0d..e7b4cb01c0 100644 --- a/property_tests/tests/opt/test/test.ts +++ b/property_tests/tests/opt/test/test.ts @@ -70,7 +70,7 @@ function generateBody( const areParamsCorrectlyOrdered = paramNames .map((paramName, index) => { - return `if (false && !deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; + return `if (!deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; }) .join('\n'); diff --git a/property_tests/tests/principal/test/test.ts b/property_tests/tests/principal/test/test.ts index 8d5990d443..065878b835 100644 --- a/property_tests/tests/principal/test/test.ts +++ b/property_tests/tests/principal/test/test.ts @@ -78,8 +78,8 @@ function generateBody( const paramsCorrectlyOrdered = paramNames .map((paramName, index) => { const areEqual = `deepEqual( - ${paramName}.toText(), - ${paramPrincipals[index].src.valueLiteral}.toText() + ${paramName}, + ${paramPrincipals[index].src.valueLiteral} )`; return `if (!${areEqual}) throw new Error('${paramName} is incorrectly ordered')`; diff --git a/property_tests/tests/vec/test/test.ts b/property_tests/tests/vec/test/test.ts index 4c4e3571e5..49f1efc0df 100644 --- a/property_tests/tests/vec/test/test.ts +++ b/property_tests/tests/vec/test/test.ts @@ -88,7 +88,7 @@ function generateTest( test: async () => { const actor = getActor('./tests/vec/test'); - const params = paramVecs.map((vec) => [...vec.value]); + const params = paramVecs.map((vec) => vec.value); const result = await actor[functionName](...params); return { From 912f404ab631b4f621f7234a820f9bd89d39e6b5 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 14:06:34 -0700 Subject: [PATCH 7/8] add comment about principal problem --- property_tests/arbitraries/candid/to_src_literal/principal.ts | 1 + property_tests/arbitraries/canister_arb.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/property_tests/arbitraries/candid/to_src_literal/principal.ts b/property_tests/arbitraries/candid/to_src_literal/principal.ts index b1663d2146..d4aa6e47ee 100644 --- a/property_tests/arbitraries/candid/to_src_literal/principal.ts +++ b/property_tests/arbitraries/candid/to_src_literal/principal.ts @@ -1,5 +1,6 @@ import { Principal } from '@dfinity/principal'; export function principalToSrcLiteral(value: Principal): string { + // TODO solve the underlying principal problem https://github.com/demergent-labs/azle/issues/1443 return `DfinityPrincipal.fromText('${value.toText()}')`; } diff --git a/property_tests/arbitraries/canister_arb.ts b/property_tests/arbitraries/canister_arb.ts index efcdeef17d..51109aaa1e 100644 --- a/property_tests/arbitraries/canister_arb.ts +++ b/property_tests/arbitraries/canister_arb.ts @@ -37,6 +37,7 @@ export function CanisterArb(testArb: fc.Arbitrary) { sourceCode: ` import { Canister, query, ${imports.join(', ')} } from 'azle'; import { deepEqual } from 'fast-equals'; + // TODO solve the underlying principal problem https://github.com/demergent-labs/azle/issues/1443 import { Principal as DfinityPrincipal } from '@dfinity/principal'; ${candidTypeDeclarations} From 64fd9773f91931a7f0a83f29f8333b8bb36fdd85 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 14:47:39 -0700 Subject: [PATCH 8/8] use deep equal for param order checks --- .../arbitraries/candid/constructed/vec_arb.ts | 8 +++++ .../are_params_correctly_ordered.ts | 18 +++++++++++ property_tests/tests/blob/test/test.ts | 17 +++------- property_tests/tests/bool/test/test.ts | 11 +++---- property_tests/tests/float32/test/test.ts | 11 +++---- property_tests/tests/float64/test/test.ts | 11 +++---- property_tests/tests/func/test/test.ts | 25 +++++++-------- property_tests/tests/int/test/test.ts | 11 +++---- property_tests/tests/int16/test/test.ts | 11 +++---- property_tests/tests/int32/test/test.ts | 11 +++---- property_tests/tests/int64/test/test.ts | 12 +++---- property_tests/tests/int8/test/test.ts | 12 +++---- property_tests/tests/nat/test/test.ts | 11 +++---- property_tests/tests/nat16/test/test.ts | 11 +++---- property_tests/tests/nat32/test/test.ts | 12 +++---- property_tests/tests/nat64/test/test.ts | 11 +++---- property_tests/tests/nat8/test/test.ts | 11 +++---- property_tests/tests/opt/test/test.ts | 14 ++++----- property_tests/tests/principal/test/test.ts | 15 +++------ property_tests/tests/record/test/test.ts | 31 ++++++------------- property_tests/tests/text/test/test.ts | 12 +++---- property_tests/tests/tuple/test/test.ts | 21 +++++-------- property_tests/tests/variant/test/test.ts | 14 +++------ property_tests/tests/vec/test/test.ts | 14 +++------ 24 files changed, 147 insertions(+), 188 deletions(-) create mode 100644 property_tests/are_params_correctly_ordered.ts diff --git a/property_tests/arbitraries/candid/constructed/vec_arb.ts b/property_tests/arbitraries/candid/constructed/vec_arb.ts index f57ac8ed0a..18da419b31 100644 --- a/property_tests/arbitraries/candid/constructed/vec_arb.ts +++ b/property_tests/arbitraries/candid/constructed/vec_arb.ts @@ -96,6 +96,10 @@ function generateValueLiteral( const valueLiteral = `[${valueLiterals}]`; + if (candidType === 'int64') { + return `BigInt64Array.from(${valueLiteral})`; + } + if (candidType === 'int32') { return `Int32Array.from(${valueLiteral})`; } @@ -108,6 +112,10 @@ function generateValueLiteral( return `Int8Array.from(${valueLiteral})`; } + if (candidType === 'nat64') { + return `BigUint64Array.from(${valueLiteral})`; + } + if (candidType === 'nat32') { return `Uint32Array.from(${valueLiteral})`; } diff --git a/property_tests/are_params_correctly_ordered.ts b/property_tests/are_params_correctly_ordered.ts new file mode 100644 index 0000000000..a02afc856f --- /dev/null +++ b/property_tests/are_params_correctly_ordered.ts @@ -0,0 +1,18 @@ +import { CandidMeta } from './arbitraries/candid/candid_arb'; +import { CandidType } from './arbitraries/candid/candid_type_arb'; + +export function areParamsCorrectlyOrdered( + paramNames: string[], + params: CandidMeta[] +) { + return paramNames + .map((paramName, index) => { + const areEqual = `deepEqual( + ${paramName}, + ${params[index].src.valueLiteral} + )`; + + return `if (!${areEqual}) throw new Error('${paramName} is incorrectly ordered')`; + }) + .join('\n'); +} diff --git a/property_tests/tests/blob/test/test.ts b/property_tests/tests/blob/test/test.ts index aa96697781..0d7927154e 100644 --- a/property_tests/tests/blob/test/test.ts +++ b/property_tests/tests/blob/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const BlobTestArb = fc .tuple( @@ -50,18 +51,10 @@ function generateBody( }) .join('\n'); - // TODO this ordering check is not perfect - // TODO but turning the vec into a string seems a bit difficult...we need to figure out how to check perfecly for the values that we want - // TODO maybe a global variable that we can write into and call would work - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - const paramIsCorrectLength = `${paramName}.length === ${paramBlobs[index].value.length}`; - - const throwError = `throw new Error('${paramName} is incorrectly ordered')`; - - return `if (!(${paramIsCorrectLength})) ${throwError};`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramBlobs + ); const returnStatement = `Uint8Array.from([${[...returnBlob.value]} ${ returnBlob.value.length > 0 ? ',' : '' diff --git a/property_tests/tests/bool/test/test.ts b/property_tests/tests/bool/test/test.ts index 84fa404e99..1140c08884 100644 --- a/property_tests/tests/bool/test/test.ts +++ b/property_tests/tests/bool/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const BoolTestArb = fc .tuple( @@ -55,12 +56,10 @@ function generateBody( }) .join('\n'); - const paramLiterals = paramBools.map((bool) => bool.src.valueLiteral); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramBools + ); const returnStatement = paramNames.reduce((acc, paramName) => { return `${acc} && ${paramName}`; diff --git a/property_tests/tests/float32/test/test.ts b/property_tests/tests/float32/test/test.ts index 01dc4a5e64..7d8cac3a91 100644 --- a/property_tests/tests/float32/test/test.ts +++ b/property_tests/tests/float32/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Float32TestArb = fc .tuple( @@ -61,14 +62,10 @@ function generateBody( }) .join('\n'); - const paramLiterals = paramFloat32s.map( - (float32s) => float32s.src.valueLiteral + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramFloat32s ); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (!deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); const returnStatement = paramFloat32s.length === 0 diff --git a/property_tests/tests/float64/test/test.ts b/property_tests/tests/float64/test/test.ts index 43f6906bc7..8fe7f909a1 100644 --- a/property_tests/tests/float64/test/test.ts +++ b/property_tests/tests/float64/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Float64TestArb = fc .tuple( @@ -61,14 +62,10 @@ function generateBody( }) .join('\n'); - const paramLiterals = paramFloat64s.map( - (float64) => float64.src.valueLiteral + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramFloat64s ); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (!deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); const sum = paramNames.reduce((acc, paramName) => { return `${acc} + ${paramName}`; diff --git a/property_tests/tests/func/test/test.ts b/property_tests/tests/func/test/test.ts index 9c3dd74f8e..c1265e5496 100644 --- a/property_tests/tests/func/test/test.ts +++ b/property_tests/tests/func/test/test.ts @@ -7,6 +7,7 @@ import { FuncArb, Func } from '../../../arbitraries/candid/reference/func_arb'; import { TestSample } from '../../../arbitraries/test_sample_arb'; import { UniqueIdentifierArb } from '../../../arbitraries/unique_identifier_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const FuncTestArb = fc .tuple( @@ -44,7 +45,7 @@ const FuncTestArb = fc const returnCandidType = returnFunc.src.candidType; - const body = generateBody(paramFuncs, returnFunc); + const body = generateBody(paramNames, paramFuncs, returnFunc); const test = generateTest(functionName, paramFuncs, returnFunc); @@ -63,12 +64,13 @@ const FuncTestArb = fc runPropTests(FuncTestArb); function generateBody( - funcs: CandidMeta[], + paramNames: string[], + paramFuncs: CandidMeta[], returnFunc: CandidMeta ): string { - const paramsAreFuncs = funcs + const paramsAreFuncs = paramFuncs .map((_, index) => { - const paramName = `param${index}`; + const paramName = paramNames[index]; const paramIsArray = `Array.isArray(${paramName})`; const paramHas2Fields = `${paramName}.length === 2`; @@ -88,18 +90,13 @@ function generateBody( }) .join('\n'); - const paramsCorrectlyOrdered = funcs - .map((func, paramIndex): string => { - const paramName = `param${paramIndex}`; - - const throwError = `throw new Error('${paramName} is incorrectly ordered')`; - - return `if (!deepEqual(${paramName}, ${func.src.valueLiteral})) ${throwError}`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramFuncs + ); const returnStatement = - funcs.length === 0 ? returnFunc.src.valueLiteral : `param0`; + paramFuncs.length === 0 ? returnFunc.src.valueLiteral : `param0`; return ` ${paramsAreFuncs} diff --git a/property_tests/tests/int/test/test.ts b/property_tests/tests/int/test/test.ts index f67ea5fda7..94b5139d3a 100644 --- a/property_tests/tests/int/test/test.ts +++ b/property_tests/tests/int/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const IntTestArb = fc .tuple( @@ -57,12 +58,10 @@ function generateBody( return `${acc} + ${paramName}`; }, returnInt.src.valueLiteral); - const paramLiterals = paramInts.map((sample) => sample.src.valueLiteral); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramInts + ); return ` ${paramsAreBigInts} diff --git a/property_tests/tests/int16/test/test.ts b/property_tests/tests/int16/test/test.ts index 233809107c..34a734244b 100644 --- a/property_tests/tests/int16/test/test.ts +++ b/property_tests/tests/int16/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Int16TestArb = fc .tuple( @@ -57,14 +58,10 @@ function generateBody( }) .join('\n'); - const paramValueLiterals = paramInt16s.map( - (sample) => sample.src.valueLiteral + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramInt16s ); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramValueLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); const sum = paramNames.reduce((acc, paramName) => { return `${acc} + ${paramName}`; diff --git a/property_tests/tests/int32/test/test.ts b/property_tests/tests/int32/test/test.ts index 3614cb0174..f1b8f07859 100644 --- a/property_tests/tests/int32/test/test.ts +++ b/property_tests/tests/int32/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Int32TestArb = fc .tuple( @@ -63,12 +64,10 @@ function generateBody( const count = paramInt32s.length + 1; const average = `Math.floor((${sum}) / ${count})`; - const paramLiterals = paramInt32s.map((sample) => sample.src.valueLiteral); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramInt32s + ); return ` ${paramsAreNumbers} diff --git a/property_tests/tests/int64/test/test.ts b/property_tests/tests/int64/test/test.ts index 669023352f..aa3f26154b 100644 --- a/property_tests/tests/int64/test/test.ts +++ b/property_tests/tests/int64/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Int64TestArb = fc .tuple( @@ -63,13 +64,10 @@ function generateBody( const count = paramInt64s.length + 1; const average = `(${sum}) / ${count}n`; - const paramLiterals = paramInt64s.map((sample) => sample.src.valueLiteral); - - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramInt64s + ); return ` ${paramsAreBigInts} diff --git a/property_tests/tests/int8/test/test.ts b/property_tests/tests/int8/test/test.ts index 9c42200aea..0c995a3671 100644 --- a/property_tests/tests/int8/test/test.ts +++ b/property_tests/tests/int8/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Int8TestArb = fc .tuple( @@ -59,13 +60,10 @@ function generateBody( const count = paramInt8s.length + 1; const average = `Math.floor((${sum}) / ${count})`; - const paramLiterals = paramInt8s.map((sample) => sample.src.valueLiteral); - - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramInt8s + ); return ` ${paramsAreNumbers} diff --git a/property_tests/tests/nat/test/test.ts b/property_tests/tests/nat/test/test.ts index 856d8b1960..606bb1eeb4 100644 --- a/property_tests/tests/nat/test/test.ts +++ b/property_tests/tests/nat/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const NatTestArb = fc .tuple( @@ -57,13 +58,11 @@ function generateBody( return `${acc} + ${paramName}`; }, returnNat.src.valueLiteral); - const paramLiterals = paramNats.map((sample) => sample.src.valueLiteral); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramNats + ); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); return ` ${paramsCorrectlyOrdered} diff --git a/property_tests/tests/nat16/test/test.ts b/property_tests/tests/nat16/test/test.ts index 12d554ea6d..6e9395ceb3 100644 --- a/property_tests/tests/nat16/test/test.ts +++ b/property_tests/tests/nat16/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Nat16TestArb = fc .tuple( @@ -63,12 +64,10 @@ function generateBody( const count = paramNat16s.length + 1; const average = `Math.floor((${sum}) / ${count})`; - const paramLiterals = paramNat16s.map((sample) => sample.src.valueLiteral); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramNat16s + ); return ` ${paramsAreNumbers} diff --git a/property_tests/tests/nat32/test/test.ts b/property_tests/tests/nat32/test/test.ts index f5c7500ce1..e0b4c425d7 100644 --- a/property_tests/tests/nat32/test/test.ts +++ b/property_tests/tests/nat32/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../..'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Nat32TestArb = fc .tuple( @@ -63,13 +64,10 @@ function generateBody( const count = paramNat32s.length + 1; const average = `Math.floor((${sum}) / ${count})`; - const paramLiterals = paramNat32s.map((sample) => sample.src.valueLiteral); - - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramNat32s + ); return ` ${paramsAreNumbers} diff --git a/property_tests/tests/nat64/test/test.ts b/property_tests/tests/nat64/test/test.ts index f6c4558210..be77549784 100644 --- a/property_tests/tests/nat64/test/test.ts +++ b/property_tests/tests/nat64/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Nat64TestArb = fc .tuple( @@ -63,12 +64,10 @@ function generateBody( const count = paramNat64s.length + 1; const average = `(${sum}) / ${count}n`; - const paramLiterals = paramNat64s.map((sample) => sample.src.valueLiteral); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiterals[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramNat64s + ); return ` ${paramsAreBigInts} diff --git a/property_tests/tests/nat8/test/test.ts b/property_tests/tests/nat8/test/test.ts index e8b788a262..4c317a8e8e 100644 --- a/property_tests/tests/nat8/test/test.ts +++ b/property_tests/tests/nat8/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const Nat8TestArb = fc .tuple( @@ -59,12 +60,10 @@ function generateBody( const count = paramNat8s.length + 1; const average = `Math.floor((${sum}) / ${count})`; - const paramLiteral = paramNat8s.map((sample) => sample.src.valueLiteral); - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramLiteral[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramNat8s + ); return ` ${paramsAreNumbers} diff --git a/property_tests/tests/opt/test/test.ts b/property_tests/tests/opt/test/test.ts index e7b4cb01c0..7c1da63cf1 100644 --- a/property_tests/tests/opt/test/test.ts +++ b/property_tests/tests/opt/test/test.ts @@ -8,6 +8,7 @@ import { createUniquePrimitiveArb } from '../../../arbitraries/unique_primitive_ import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const OptTestArb = fc .tuple( @@ -66,19 +67,16 @@ function generateBody( }) .join('\n'); - const paramLiterals = paramOpts.map((opt) => opt.src.valueLiteral); - - const areParamsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (!deepEqual(${paramName}, ${paramLiterals[index]})) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramOpts + ); const returnStatement = paramNames[0] ?? returnOpt.src.valueLiteral; return ` ${areParamsOpts} - ${areParamsCorrectlyOrdered} + ${paramsCorrectlyOrdered} return ${returnStatement}; `; diff --git a/property_tests/tests/principal/test/test.ts b/property_tests/tests/principal/test/test.ts index 065878b835..12a916341c 100644 --- a/property_tests/tests/principal/test/test.ts +++ b/property_tests/tests/principal/test/test.ts @@ -9,6 +9,7 @@ import { getActor, runPropTests } from '../../../../property_tests'; import { Principal } from '@dfinity/principal'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const PrincipalTestArb = fc .tuple( @@ -75,16 +76,10 @@ function generateBody( ? `param0` : returnPrincipal.src.valueLiteral; - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - const areEqual = `deepEqual( - ${paramName}, - ${paramPrincipals[index].src.valueLiteral} - )`; - - return `if (!${areEqual}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramPrincipals + ); return ` ${paramsArePrincipals} diff --git a/property_tests/tests/record/test/test.ts b/property_tests/tests/record/test/test.ts index 2d29e2b5e3..d43553b90f 100644 --- a/property_tests/tests/record/test/test.ts +++ b/property_tests/tests/record/test/test.ts @@ -8,8 +8,9 @@ import { import { TestSample } from '../../../arbitraries/test_sample_arb'; import { UniqueIdentifierArb } from '../../../arbitraries/unique_identifier_arb'; import { getActor, runPropTests } from '../../..'; -import { AzleResult, Test } from '../../../../test'; +import { Test } from '../../../../test'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const RecordTestArb = fc .tuple( @@ -40,7 +41,7 @@ const RecordTestArb = fc paramRecords.length === 0 ? defaultReturnRecord : paramRecords[0]; const returnCandidType = returnRecord.src.candidType; - const body = generateBody(paramRecords, returnRecord); + const body = generateBody(paramNames, paramRecords, returnRecord); const test = generateTest(functionName, paramRecords, returnRecord); @@ -59,12 +60,13 @@ const RecordTestArb = fc runPropTests(RecordTestArb); function generateBody( + paramNames: string[], paramRecords: CandidMeta[], returnRecord: CandidMeta ): string { const paramsAreRecords = paramRecords .map((record, index) => { - const paramName = `param${index}`; + const paramName = paramNames[index]; const fieldsCount = Object.keys(record.value).length; const paramIsObject = `typeof ${paramName} === 'object'`; @@ -75,25 +77,10 @@ function generateBody( }) .join('\n'); - const paramsCorrectlyOrdered = paramRecords - .map((record, index) => { - const paramName = `param${index}`; - - const fieldNamesMatch = Object.entries(record.value) - .map(([fieldName, _]) => { - return `Object.keys(${paramName}).includes('${fieldName}')`; - }) - .join(' && '); - - const throwError = `throw new Error('${paramName} is incorrectly ordered')`; - - if (Object.entries(record.value).length === 0) { - return `if (Object.keys(${paramName}).length !== 0) ${throwError}`; - } - - return `if (!(${fieldNamesMatch})) ${throwError}`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramRecords + ); const returnStatement = paramRecords.length === 0 ? returnRecord.src.valueLiteral : `param0`; diff --git a/property_tests/tests/text/test/test.ts b/property_tests/tests/text/test/test.ts index b227760c18..654acfa5c0 100644 --- a/property_tests/tests/text/test/test.ts +++ b/property_tests/tests/text/test/test.ts @@ -8,6 +8,7 @@ import { TestSample } from '../../../arbitraries/test_sample_arb'; import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const TextTestArb = fc .tuple( @@ -57,13 +58,10 @@ function generateBody( return `${acc} + ${paramName}`; }, returnText.src.valueLiteral); - const paramValues = paramTexts.map((text) => text.src.valueLiteral); - - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName} !== ${paramValues[index]}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramTexts + ); return ` ${paramsAreStrings} diff --git a/property_tests/tests/tuple/test/test.ts b/property_tests/tests/tuple/test/test.ts index 6d0b6e1d36..5b89da5d1d 100644 --- a/property_tests/tests/tuple/test/test.ts +++ b/property_tests/tests/tuple/test/test.ts @@ -10,6 +10,7 @@ import { UniqueIdentifierArb } from '../../../arbitraries/unique_identifier_arb' import { getActor, runPropTests } from '../../..'; import { Test } from '../../../../test'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const TupleTestArb = fc .tuple( @@ -40,7 +41,7 @@ const TupleTestArb = fc paramTuples.length === 0 ? defaultReturnTuple : paramTuples[0]; const returnCandidType = returnTuple.src.candidType; - const body = generateBody(paramTuples, returnTuple); + const body = generateBody(paramNames, paramTuples, returnTuple); const test = generateTest(functionName, paramTuples, returnTuple); @@ -59,12 +60,13 @@ const TupleTestArb = fc runPropTests(TupleTestArb); function generateBody( + paramNames: string[], paramTuples: CandidMeta[], returnTuple: CandidMeta ): string { const paramsAreTuples = paramTuples .map((tuple, index) => { - const paramName = `param${index}`; + const paramName = paramNames[index]; const fieldsCount = tuple.value.length; const paramIsArray = `Array.isArray(${paramName})`; @@ -75,17 +77,10 @@ function generateBody( }) .join('\n'); - const paramsCorrectlyOrdered = paramTuples - .map((tuple, paramIndex): string => { - const paramName = `param${paramIndex}`; - - const paramIsCorrectValue = `${paramName}.toString() === ${tuple.src.valueLiteral}.toString()`; - - const throwError = `throw new Error('${paramName} is incorrectly ordered.')`; - - return `if (!(${paramIsCorrectValue})) ${throwError}`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramTuples + ); const returnStatement = paramTuples.length === 0 ? returnTuple.src.valueLiteral : `param0`; diff --git a/property_tests/tests/variant/test/test.ts b/property_tests/tests/variant/test/test.ts index 19e3329f68..9e1ef0d35d 100644 --- a/property_tests/tests/variant/test/test.ts +++ b/property_tests/tests/variant/test/test.ts @@ -10,6 +10,7 @@ import { UniqueIdentifierArb } from '../../../arbitraries/unique_identifier_arb' import { getActor, runPropTests } from '../../../../property_tests'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const VariantTestArb = fc .tuple( @@ -78,15 +79,10 @@ function generateBody( }) .join('\n'); - const paramsCorrectlyOrdered = paramVariants - .map((variant, index) => { - const paramName = `param${index}`; - - return `if (Object.keys(${paramName})[0] !== "${ - Object.keys(variant.value)[0] - }") throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramVariants + ); const returnStatement = paramNames[0] ? `${paramNames[0]}` diff --git a/property_tests/tests/vec/test/test.ts b/property_tests/tests/vec/test/test.ts index 49f1efc0df..c71ced2965 100644 --- a/property_tests/tests/vec/test/test.ts +++ b/property_tests/tests/vec/test/test.ts @@ -8,6 +8,7 @@ import { getActor, runPropTests } from '../../../../property_tests'; import { deepEqual } from 'fast-equals'; import { CandidMeta } from '../../../arbitraries/candid/candid_arb'; import { Test } from '../../../../test'; +import { areParamsCorrectlyOrdered } from '../../../are_params_correctly_ordered'; const VecTestArb = fc .tuple( @@ -49,21 +50,16 @@ function generateBody( paramVecs: CandidMeta[], returnVec: CandidMeta ): string { - // TODO these checks should be much more precise probably, imagine checking the elements inside of the arrays const paramsAreArrays = paramNames .map((paramName) => { return `if (!Array.isArray(${paramName}) && !ArrayBuffer.isView(${paramName})) throw new Error('${paramName} must be an array');`; }) .join('\n'); - // TODO this ordering check is not perfect - // TODO but turning the vec into a string seems a bit difficult...we need to figure out how to check perfectly for the values that we want - // TODO maybe a global variable that we can write into and call would work - const paramsCorrectlyOrdered = paramNames - .map((paramName, index) => { - return `if (${paramName}.length !== ${paramVecs[index].value.length}) throw new Error('${paramName} is incorrectly ordered')`; - }) - .join('\n'); + const paramsCorrectlyOrdered = areParamsCorrectlyOrdered( + paramNames, + paramVecs + ); const returnValue = paramNames[0] ?? returnVec.src.valueLiteral;