diff --git a/examples/desktop/electron/package-lock.json b/examples/desktop/electron/package-lock.json index c457b5c6f..5c5d24a60 100644 --- a/examples/desktop/electron/package-lock.json +++ b/examples/desktop/electron/package-lock.json @@ -9,9 +9,9 @@ "version": "2.0.0", "license": "ISC", "devDependencies": { - "electron": "^31.3.1", - "electron-builder": "^24.13.3", - "electron-updater": "^6.2.1" + "electron": "^33.2.0", + "electron-builder": "^25.1.8", + "electron-updater": "^6.3.9" } }, "node_modules/@develar/schema-utils": { @@ -33,9 +33,9 @@ } }, "node_modules/@electron/asar": { - "version": "3.2.10", - "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.2.10.tgz", - "integrity": "sha512-mvBSwIBUeiRscrCeJE1LwctAriBj65eUDm0Pc11iE5gRwzkmsdbS7FnZ1XUWjpSeQWL1L5g12Fc/SchPM9DUOw==", + "version": "3.2.17", + "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.2.17.tgz", + "integrity": "sha512-OcWImUI686w8LkghQj9R2ynZ2ME693Ek6L1SiaAgqGKzBaTIZw3fHDqN82Rcl+EU1Gm9EgkJ5KLIY/q5DCRbbA==", "dev": true, "license": "MIT", "dependencies": { @@ -97,9 +97,9 @@ } }, "node_modules/@electron/notarize": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.2.1.tgz", - "integrity": "sha512-aL+bFMIkpR0cmmj5Zgy0LMKEpgy43/hw5zadEArgmAMWWlKc5buwFvFT9G/o/YJkvXAJm5q3iuTuLaiaXW39sg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz", + "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==", "dev": true, "license": "MIT", "dependencies": { @@ -151,9 +151,9 @@ } }, "node_modules/@electron/osx-sign": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.0.5.tgz", - "integrity": "sha512-k9ZzUQtamSoweGQDV2jILiRIHUu7lYlJ3c6IEmjv1hC17rclE+eb9U+f6UFlOOETo0JzY1HNlXy4YOlCvl+Lww==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.1.tgz", + "integrity": "sha512-BAfviURMHpmb1Yb50YbCxnOY0wfwaLXH5KJ4+80zS0gUkzDX3ec23naTlEqKsN+PwYn+a1cCzM7BJ4Wcd3sGzw==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -223,50 +223,118 @@ "node": ">= 10.0.0" } }, - "node_modules/@electron/universal": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-1.5.1.tgz", - "integrity": "sha512-kbgXxyEauPJiQQUNG2VgUeyfQNFk6hBF11ISN2PNI6agUgPl55pv4eQmaqHzTAzchBvqZ2tQuRVaPStGf0mxGw==", + "node_modules/@electron/rebuild": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-3.6.1.tgz", + "integrity": "sha512-f6596ZHpEq/YskUd8emYvOUne89ij8mQgjYFA5ru25QwbrRO+t1SImofdDv7kKOuWCmVOuU5tvfkbgGxIl3E/w==", "dev": true, "license": "MIT", "dependencies": { - "@electron/asar": "^3.2.1", - "@malept/cross-spawn-promise": "^1.1.0", - "debug": "^4.3.1", - "dir-compare": "^3.0.0", - "fs-extra": "^9.0.1", - "minimatch": "^3.0.4", - "plist": "^3.0.4" + "@malept/cross-spawn-promise": "^2.0.0", + "chalk": "^4.0.0", + "debug": "^4.1.1", + "detect-libc": "^2.0.1", + "fs-extra": "^10.0.0", + "got": "^11.7.0", + "node-abi": "^3.45.0", + "node-api-version": "^0.2.0", + "node-gyp": "^9.0.0", + "ora": "^5.1.0", + "read-binary-file-arch": "^1.0.6", + "semver": "^7.3.5", + "tar": "^6.0.5", + "yargs": "^17.0.1" + }, + "bin": { + "electron-rebuild": "lib/cli.js" }, "engines": { - "node": ">=8.6" + "node": ">=12.13.0" } }, - "node_modules/@electron/universal/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/@electron/rebuild/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dev": true, "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@electron/rebuild/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@electron/rebuild/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/rebuild/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@electron/universal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.1.tgz", + "integrity": "sha512-fKpv9kg4SPmt+hY7SVBnIYULE9QJl8L3sCfcBsnqbJwwBwAeTLokJ9TRt9y7bK0JAzIW2y78TVVjvnQEms/yyA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron/asar": "^3.2.7", + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.3.1", + "dir-compare": "^4.2.0", + "fs-extra": "^11.1.1", + "minimatch": "^9.0.3", + "plist": "^3.1.0" + }, + "engines": { + "node": ">=16.4" } }, "node_modules/@electron/universal/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", "dev": true, "license": "MIT", "dependencies": { - "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=14.14" } }, "node_modules/@electron/universal/node_modules/jsonfile": { @@ -283,16 +351,19 @@ } }, "node_modules/@electron/universal/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, "license": "ISC", "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.1" }, "engines": { - "node": "*" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@electron/universal/node_modules/universalify": { @@ -305,6 +376,13 @@ "node": ">= 10.0.0" } }, + "node_modules/@gar/promisify": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", + "dev": true, + "license": "MIT" + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -324,9 +402,9 @@ } }, "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, "license": "MIT", "engines": { @@ -409,9 +487,9 @@ } }, "node_modules/@malept/cross-spawn-promise": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", - "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz", + "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==", "dev": true, "funding": [ { @@ -428,7 +506,7 @@ "cross-spawn": "^7.0.1" }, "engines": { - "node": ">= 10" + "node": ">= 12.13.0" } }, "node_modules/@malept/flatpak-bundler": { @@ -486,6 +564,48 @@ "node": ">= 10.0.0" } }, + "node_modules/@npmcli/fs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz", + "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "@gar/promisify": "^1.1.3", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/@npmcli/fs/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@npmcli/move-file": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz", + "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==", + "deprecated": "This functionality has been moved to @npmcli/fs", + "dev": true, + "license": "MIT", + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -591,13 +711,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.14.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.14.tgz", - "integrity": "sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ==", + "version": "20.17.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.6.tgz", + "integrity": "sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.2" } }, "node_modules/@types/plist": { @@ -658,17 +778,51 @@ "dev": true, "license": "MIT" }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true, + "license": "ISC" + }, "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dev": true, "license": "MIT", "dependencies": { - "debug": "4" + "debug": "^4.3.4" }, "engines": { - "node": ">= 6.0.0" + "node": ">= 14" + } + }, + "node_modules/agentkeepalive": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", + "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", + "dev": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/ajv": { @@ -725,42 +879,47 @@ } }, "node_modules/app-builder-bin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-4.0.0.tgz", - "integrity": "sha512-xwdG0FJPQMe0M0UA4Tz0zEB8rBJTRA5a476ZawAqiBkMv16GRK5xpXThOjMaEOFnZ6zabejjG4J3da0SXG63KA==", + "version": "5.0.0-alpha.10", + "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-5.0.0-alpha.10.tgz", + "integrity": "sha512-Ev4jj3D7Bo+O0GPD2NMvJl+PGiBAfS7pUGawntBNpCbxtpncfUixqFj9z9Jme7V7s3LBGqsWZZP54fxBX3JKJw==", "dev": true, "license": "MIT" }, "node_modules/app-builder-lib": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-24.13.3.tgz", - "integrity": "sha512-FAzX6IBit2POXYGnTCT8YHFO/lr5AapAII6zzhQO3Rw4cEDOgK+t1xhLc5tNcKlicTHlo9zxIwnYCX9X2DLkig==", + "version": "25.1.8", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-25.1.8.tgz", + "integrity": "sha512-pCqe7dfsQFBABC1jeKZXQWhGcCPF3rPCXDdfqVKjIeWBcXzyC1iOWZdfFhGl+S9MyE/k//DFmC6FzuGAUudNDg==", "dev": true, "license": "MIT", "dependencies": { "@develar/schema-utils": "~2.6.5", - "@electron/notarize": "2.2.1", - "@electron/osx-sign": "1.0.5", - "@electron/universal": "1.5.1", + "@electron/notarize": "2.5.0", + "@electron/osx-sign": "1.3.1", + "@electron/rebuild": "3.6.1", + "@electron/universal": "2.0.1", "@malept/flatpak-bundler": "^0.4.0", "@types/fs-extra": "9.0.13", "async-exit-hook": "^2.0.1", "bluebird-lst": "^1.0.9", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "builder-util": "25.1.7", + "builder-util-runtime": "9.2.10", "chromium-pickle-js": "^0.2.0", + "config-file-ts": "0.2.8-rc1", "debug": "^4.3.4", + "dotenv": "^16.4.5", + "dotenv-expand": "^11.0.6", "ejs": "^3.1.8", - "electron-publish": "24.13.1", + "electron-publish": "25.1.7", "form-data": "^4.0.0", "fs-extra": "^10.1.0", "hosted-git-info": "^4.1.0", "is-ci": "^3.0.0", "isbinaryfile": "^5.0.0", "js-yaml": "^4.1.0", + "json5": "^2.2.3", "lazy-val": "^1.0.5", - "minimatch": "^5.1.1", - "read-config-file": "6.3.2", + "minimatch": "^10.0.0", + "resedit": "^1.7.0", "sanitize-filename": "^1.6.3", "semver": "^7.3.8", "tar": "^6.1.12", @@ -770,8 +929,8 @@ "node": ">=14.0.0" }, "peerDependencies": { - "dmg-builder": "24.13.3", - "electron-builder-squirrel-windows": "24.13.3" + "dmg-builder": "25.1.8", + "electron-builder-squirrel-windows": "25.1.8" } }, "node_modules/app-builder-lib/node_modules/fs-extra": { @@ -825,6 +984,13 @@ "node": ">= 10.0.0" } }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", + "dev": true, + "license": "ISC" + }, "node_modules/archiver": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz", @@ -904,6 +1070,21 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/are-we-there-yet": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "deprecated": "This package is no longer supported.", + "dev": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -934,9 +1115,9 @@ } }, "node_modules/async": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", - "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", "dev": true, "license": "MIT" }, @@ -1001,7 +1182,6 @@ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", @@ -1029,6 +1209,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "dev": true, "license": "MIT", "optional": true @@ -1078,19 +1259,6 @@ "node": "*" } }, - "node_modules/buffer-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.1.tgz", - "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -1099,23 +1267,23 @@ "license": "MIT" }, "node_modules/builder-util": { - "version": "24.13.1", - "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-24.13.1.tgz", - "integrity": "sha512-NhbCSIntruNDTOVI9fdXz0dihaqX2YuE1D6zZMrwiErzH4ELZHE6mdiB40wEgZNprDia+FghRFgKoAqMZRRjSA==", + "version": "25.1.7", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-25.1.7.tgz", + "integrity": "sha512-7jPjzBwEGRbwNcep0gGNpLXG9P94VA3CPAZQCzxkFXiV2GMQKlziMbY//rXPI7WKfhsvGgFXjTcXdBEwgXw9ww==", "dev": true, "license": "MIT", "dependencies": { "@types/debug": "^4.1.6", "7zip-bin": "~5.2.0", - "app-builder-bin": "4.0.0", + "app-builder-bin": "5.0.0-alpha.10", "bluebird-lst": "^1.0.9", - "builder-util-runtime": "9.2.4", + "builder-util-runtime": "9.2.10", "chalk": "^4.1.2", "cross-spawn": "^7.0.3", "debug": "^4.3.4", "fs-extra": "^10.1.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", "is-ci": "^3.0.0", "js-yaml": "^4.1.0", "source-map-support": "^0.5.19", @@ -1124,9 +1292,9 @@ } }, "node_modules/builder-util-runtime": { - "version": "9.2.4", - "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.4.tgz", - "integrity": "sha512-upp+biKpN/XZMLim7aguUyW8s0FUpDvOtK6sbanMFDAMBzpHDqdhgVYm6zc9HJ6nWo7u2Lxk60i2M6Jd3aiNrA==", + "version": "9.2.10", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.10.tgz", + "integrity": "sha512-6p/gfG1RJSQeIbz8TK5aPNkoztgY1q5TgmGFMAXcY8itsGW6Y2ld1ALsZ5UJn8rog7hKF3zHx5iQbNQ8uLcRlw==", "dev": true, "license": "MIT", "dependencies": { @@ -1175,6 +1343,80 @@ "node": ">= 10.0.0" } }, + "node_modules/cacache": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz", + "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^2.1.0", + "@npmcli/move-file": "^2.0.0", + "chownr": "^2.0.0", + "fs-minipass": "^2.1.0", + "glob": "^8.0.1", + "infer-owner": "^1.0.4", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "mkdirp": "^1.0.4", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^9.0.0", + "tar": "^6.1.11", + "unique-filename": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/cacache/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cacache/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/cacache/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/cacheable-lookup": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", @@ -1254,6 +1496,42 @@ "node": ">=8" } }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/cli-truncate": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", @@ -1287,6 +1565,16 @@ "node": ">=12" } }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, "node_modules/clone-response": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", @@ -1320,6 +1608,16 @@ "dev": true, "license": "MIT" }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -1378,14 +1676,14 @@ "license": "MIT" }, "node_modules/config-file-ts": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.6.tgz", - "integrity": "sha512-6boGVaglwblBgJqGyxm4+xCmEGcWgnWHSWHY5jad58awQhB6gftq0G8HbzU39YqCIYHMLAiL1yjwiZ36m/CL8w==", + "version": "0.2.8-rc1", + "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.8-rc1.tgz", + "integrity": "sha512-GtNECbVI82bT4RiDIzBSVuTKoSHufnU7Ce7/42bkWZJZFLjmDF2WBpVsvRkhKCfKBnTBb3qZrBwPpFBU/Myvhg==", "dev": true, "license": "MIT", "dependencies": { - "glob": "^10.3.10", - "typescript": "^5.3.3" + "glob": "^10.3.12", + "typescript": "^5.4.3" } }, "node_modules/config-file-ts/node_modules/glob": { @@ -1435,6 +1733,13 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", + "dev": true, + "license": "ISC" + }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -1483,9 +1788,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -1498,13 +1803,13 @@ } }, "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dev": true, "license": "MIT", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -1544,7 +1849,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/defer-to-connect": { + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", @@ -1602,6 +1920,23 @@ "node": ">=0.4.0" } }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, "node_modules/detect-node": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", @@ -1611,14 +1946,14 @@ "optional": true }, "node_modules/dir-compare": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-3.3.0.tgz", - "integrity": "sha512-J7/et3WlGUCxjdnD3HAAzQ6nsnc0WL6DD7WcwJb7c39iH1+AWfg+9OqzJNaI6PkBwBvm1mhZNL9iY/nRiZXlPg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz", + "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==", "dev": true, "license": "MIT", "dependencies": { - "buffer-equal": "^1.0.0", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5", + "p-limit": "^3.1.0 " } }, "node_modules/dir-compare/node_modules/brace-expansion": { @@ -1646,15 +1981,15 @@ } }, "node_modules/dmg-builder": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-24.13.3.tgz", - "integrity": "sha512-rcJUkMfnJpfCboZoOOPf4L29TRtEieHNOeAbYPWPxlaBw/Z1RKrRA86dOI9rwaI4tQSc/RD82zTNHprfUHXsoQ==", + "version": "25.1.8", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-25.1.8.tgz", + "integrity": "sha512-NoXo6Liy2heSklTI5OIZbCgXC1RzrDQsZkeEwXhdOro3FT1VBOvbubvscdPnjVuQ4AMwwv61oaH96AbiYg9EnQ==", "dev": true, "license": "MIT", "dependencies": { - "app-builder-lib": "24.13.3", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "app-builder-lib": "25.1.8", + "builder-util": "25.1.7", + "builder-util-runtime": "9.2.10", "fs-extra": "^10.1.0", "iconv-lite": "^0.6.2", "js-yaml": "^4.1.0" @@ -1729,21 +2064,33 @@ } }, "node_modules/dotenv": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", - "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "dev": true, "license": "BSD-2-Clause", "engines": { - "node": ">=10" + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" } }, "node_modules/dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", + "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", "dev": true, - "license": "BSD-2-Clause" + "license": "BSD-2-Clause", + "dependencies": { + "dotenv": "^16.4.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } }, "node_modules/eastasianwidth": { "version": "0.2.0", @@ -1769,9 +2116,9 @@ } }, "node_modules/electron": { - "version": "31.3.1", - "resolved": "https://registry.npmjs.org/electron/-/electron-31.3.1.tgz", - "integrity": "sha512-9fiuWlRhBfygtcT+auRd/WdBK/f8LZZcrpx0RjpXhH2DPTP/PfnkC4JB1PW55qCbGbh4wAgkYbf4ExIag8oGCA==", + "version": "33.2.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-33.2.0.tgz", + "integrity": "sha512-PVw1ICAQDPsnnsmpNFX/b1i/49h67pbSPxuIENd9K9WpGO1tsRaQt+K2bmXqTuoMJsbzIc75Ce8zqtuwBPqawA==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -1788,21 +2135,20 @@ } }, "node_modules/electron-builder": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-24.13.3.tgz", - "integrity": "sha512-yZSgVHft5dNVlo31qmJAe4BVKQfFdwpRw7sFp1iQglDRCDD6r22zfRJuZlhtB5gp9FHUxCMEoWGq10SkCnMAIg==", + "version": "25.1.8", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-25.1.8.tgz", + "integrity": "sha512-poRgAtUHHOnlzZnc9PK4nzG53xh74wj2Jy7jkTrqZ0MWPoHGh1M2+C//hGeYdA+4K8w4yiVCNYoLXF7ySj2Wig==", "dev": true, "license": "MIT", "dependencies": { - "app-builder-lib": "24.13.3", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "app-builder-lib": "25.1.8", + "builder-util": "25.1.7", + "builder-util-runtime": "9.2.10", "chalk": "^4.1.2", - "dmg-builder": "24.13.3", + "dmg-builder": "25.1.8", "fs-extra": "^10.1.0", "is-ci": "^3.0.0", "lazy-val": "^1.0.5", - "read-config-file": "6.3.2", "simple-update-notifier": "2.0.0", "yargs": "^17.6.2" }, @@ -1815,16 +2161,16 @@ } }, "node_modules/electron-builder-squirrel-windows": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-24.13.3.tgz", - "integrity": "sha512-oHkV0iogWfyK+ah9ZIvMDpei1m9ZRpdXcvde1wTpra2U8AFDNNpqJdnin5z+PM1GbQ5BoaKCWas2HSjtR0HwMg==", + "version": "25.1.8", + "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-25.1.8.tgz", + "integrity": "sha512-2ntkJ+9+0GFP6nAISiMabKt6eqBB0kX1QqHNWFWAXgi0VULKGisM46luRFpIBiU3u/TDmhZMM8tzvo2Abn3ayg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "app-builder-lib": "24.13.3", + "app-builder-lib": "25.1.8", "archiver": "^5.3.1", - "builder-util": "24.13.1", + "builder-util": "25.1.7", "fs-extra": "^10.1.0" } }, @@ -1908,15 +2254,15 @@ } }, "node_modules/electron-publish": { - "version": "24.13.1", - "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-24.13.1.tgz", - "integrity": "sha512-2ZgdEqJ8e9D17Hwp5LEq5mLQPjqU3lv/IALvgp+4W8VeNhryfGhYEQC/PgDPMrnWUp+l60Ou5SJLsu+k4mhQ8A==", + "version": "25.1.7", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-25.1.7.tgz", + "integrity": "sha512-+jbTkR9m39eDBMP4gfbqglDd6UvBC7RLh5Y0MhFSsc6UkGHj9Vj9TWobxevHYMMqmoujL11ZLjfPpMX+Pt6YEg==", "dev": true, "license": "MIT", "dependencies": { "@types/fs-extra": "^9.0.11", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "builder-util": "25.1.7", + "builder-util-runtime": "9.2.10", "chalk": "^4.1.2", "fs-extra": "^10.1.0", "lazy-val": "^1.0.5", @@ -1962,36 +2308,22 @@ } }, "node_modules/electron-updater": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/electron-updater/-/electron-updater-6.3.2.tgz", - "integrity": "sha512-bEpuZ1IRnMtvZZaWeYi9ocX90Cnk+/impZ/08r6GQkfOMqECtKC2IjvxHcDk2VpWO8QZzK0+MUNaBiO81CGvQQ==", + "version": "6.3.9", + "resolved": "https://registry.npmjs.org/electron-updater/-/electron-updater-6.3.9.tgz", + "integrity": "sha512-2PJNONi+iBidkoC5D1nzT9XqsE8Q1X28Fn6xRQhO3YX8qRRyJ3mkV4F1aQsuRnYPqq6Hw+E51y27W75WgDoofw==", "dev": true, "license": "MIT", "dependencies": { - "builder-util-runtime": "9.2.5", + "builder-util-runtime": "9.2.10", "fs-extra": "^10.1.0", "js-yaml": "^4.1.0", "lazy-val": "^1.0.5", "lodash.escaperegexp": "^4.1.2", "lodash.isequal": "^4.5.0", - "semver": "^7.3.8", + "semver": "^7.6.3", "tiny-typed-emitter": "^2.1.0" } }, - "node_modules/electron-updater/node_modules/builder-util-runtime": { - "version": "9.2.5", - "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.5.tgz", - "integrity": "sha512-HjIDfhvqx/8B3TDN4GbABQcgpewTU4LMRTQPkVpKYV3lsuxEJoIfvg09GyWTNmfVNSUAYf+fbTN//JX4TH20pg==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4", - "sax": "^1.2.4" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/electron-updater/node_modules/fs-extra": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", @@ -2050,6 +2382,17 @@ "dev": true, "license": "MIT" }, + "node_modules/encoding": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -2111,9 +2454,9 @@ "optional": true }, "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "license": "MIT", "engines": { @@ -2134,6 +2477,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/exponential-backoff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", + "integrity": "sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==", + "dev": true, + "license": "Apache-2.0" + }, "node_modules/extract-zip": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", @@ -2200,6 +2550,19 @@ "minimatch": "^5.0.1" } }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/foreground-child": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", @@ -2217,10 +2580,23 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", "dev": true, "license": "MIT", "dependencies": { @@ -2268,19 +2644,6 @@ "node": ">= 8" } }, - "node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -2299,6 +2662,27 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/gauge": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "deprecated": "This package is no longer supported.", + "dev": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -2542,6 +2926,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", + "dev": true, + "license": "ISC" + }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -2577,18 +2968,17 @@ "license": "BSD-2-Clause" }, "node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dev": true, "license": "MIT", "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" + "agent-base": "^7.1.0", + "debug": "^4.3.4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/http2-wrapper": { @@ -2606,17 +2996,27 @@ } }, "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", + "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", "dev": true, "license": "MIT", "dependencies": { - "agent-base": "6", + "agent-base": "^7.0.2", "debug": "4" }, "engines": { - "node": ">= 6" + "node": ">= 14" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" } }, "node_modules/iconv-corefoundation": { @@ -2671,6 +3071,33 @@ ], "license": "BSD-3-Clause" }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "dev": true, + "license": "ISC" + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -2690,6 +3117,20 @@ "dev": true, "license": "ISC" }, + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, "node_modules/is-ci": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", @@ -2713,6 +3154,36 @@ "node": ">=8" } }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-lambda": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -2722,9 +3193,9 @@ "peer": true }, "node_modules/isbinaryfile": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.2.tgz", - "integrity": "sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.4.tgz", + "integrity": "sha512-YKBKVkKhty7s8rxddb40oOkuP0NbaeXrQvLin6QMHL7Ypiy2RW9LwOVrVgZRyOrhQlayMd9t+D8yDy8MKFTSDQ==", "dev": true, "license": "MIT", "engines": { @@ -2813,6 +3284,13 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "dev": true, + "license": "MIT" + }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", @@ -2986,6 +3464,23 @@ "license": "MIT", "peer": true }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/lowercase-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", @@ -3009,6 +3504,86 @@ "node": ">=10" } }, + "node_modules/make-fetch-happen": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz", + "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==", + "dev": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^16.1.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^2.0.3", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^9.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/make-fetch-happen/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/make-fetch-happen/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, "node_modules/matcher": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", @@ -3059,6 +3634,16 @@ "node": ">= 0.6" } }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/mimic-response": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", @@ -3070,18 +3655,21 @@ } }, "node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" - } - }, + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/minimist": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", @@ -3093,42 +3681,102 @@ } }, "node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dev": true, "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, "engines": { "node": ">=8" } }, - "node_modules/minizlib": { + "node_modules/minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-fetch": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz", + "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==", "dev": true, "license": "MIT", "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" + "minipass": "^3.1.6", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" }, "engines": { "node": ">= 8" } }, - "node_modules/minizlib/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "node_modules/minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", "dev": true, "license": "ISC", "dependencies": { - "yallist": "^4.0.0" + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-sized": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", + "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" }, "engines": { "node": ">=8" } }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", @@ -3143,12 +3791,48 @@ } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true, "license": "MIT" }, + "node_modules/negotiator": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", + "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-abi": { + "version": "3.71.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.71.0.tgz", + "integrity": "sha512-SZ40vRiy/+wRTf21hxkkEjPJZpARzUMVcJoQse2EF8qkUWbbO2z7vd5oA/H6bVH6SZQ5STGcu0KRDS7biNRfxw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-abi/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/node-addon-api": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", @@ -3157,6 +3841,84 @@ "license": "MIT", "optional": true }, + "node_modules/node-api-version": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.0.tgz", + "integrity": "sha512-fthTTsi8CxaBXMaBAD7ST2uylwvsnYxh2PfaScwpMhos6KlSFajXQPcM4ogNE1q2s3Lbz9GCGqeIHC+C6OZnKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + } + }, + "node_modules/node-api-version/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-gyp": { + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.4.1.tgz", + "integrity": "sha512-OQkWKbjQKbGkMf/xqI1jjy3oCTgMKJac58G2+bjZb3fza6gW2YrCSdMQYaoTb70crvE//Gngr4f0AgVHmqHvBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^10.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^12.13 || ^14.13 || >=16" + } + }, + "node_modules/node-gyp/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/nopt": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz", + "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -3181,6 +3943,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/npmlog": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "deprecated": "This package is no longer supported.", + "dev": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -3202,6 +3981,46 @@ "wrappy": "1" } }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-cancelable": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", @@ -3212,10 +4031,42 @@ "node": ">=8" } }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", "dev": true, "license": "BlueOak-1.0.0" }, @@ -3263,6 +4114,31 @@ "dev": true, "license": "ISC" }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/pe-library": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz", + "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" + } + }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -3303,6 +4179,13 @@ "node": ">=0.4.0" } }, + "node_modules/promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", + "dev": true, + "license": "ISC" + }, "node_modules/promise-retry": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", @@ -3318,9 +4201,9 @@ } }, "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", "dev": true, "license": "MIT", "dependencies": { @@ -3351,22 +4234,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-config-file": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-6.3.2.tgz", - "integrity": "sha512-M80lpCjnE6Wt6zb98DoW8WHR09nzMSpu8XHtPkiTHrJ5Az9CybfeQhTJ8D7saeBHpGhLPIVyA8lcL6ZmdKwY6Q==", + "node_modules/read-binary-file-arch": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz", + "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==", "dev": true, "license": "MIT", "dependencies": { - "config-file-ts": "^0.2.4", - "dotenv": "^9.0.2", - "dotenv-expand": "^5.1.0", - "js-yaml": "^4.1.0", - "json5": "^2.2.0", - "lazy-val": "^1.0.4" + "debug": "^4.3.4" }, - "engines": { - "node": ">=12.0.0" + "bin": { + "read-binary-file-arch": "cli.js" } }, "node_modules/readable-stream": { @@ -3375,7 +4253,6 @@ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -3396,6 +4273,20 @@ "minimatch": "^5.1.0" } }, + "node_modules/readdir-glob/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -3406,6 +4297,24 @@ "node": ">=0.10.0" } }, + "node_modules/resedit": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz", + "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pe-library": "^0.4.1" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" + } + }, "node_modules/resolve-alpn": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", @@ -3426,6 +4335,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", @@ -3436,6 +4359,23 @@ "node": ">= 4" } }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/roarr": { "version": "2.15.4", "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", @@ -3474,8 +4414,7 @@ "url": "https://feross.org/support" } ], - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/safer-buffer": { "version": "2.1.2", @@ -3536,6 +4475,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true, + "license": "ISC" + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -3560,17 +4506,11 @@ } }, "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "license": "ISC" }, "node_modules/simple-update-notifier": { "version": "2.0.0", @@ -3620,12 +4560,54 @@ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true, "license": "MIT", - "optional": true, "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" } }, + "node_modules/socks": { + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", + "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz", + "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/socks-proxy-agent/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -3652,8 +4634,20 @@ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", "dev": true, - "license": "BSD-3-Clause", - "optional": true + "license": "BSD-3-Clause" + }, + "node_modules/ssri": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", + "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } }, "node_modules/stat-mode": { "version": "1.0.0", @@ -3671,7 +4665,6 @@ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "safe-buffer": "~5.2.0" } @@ -3796,6 +4789,16 @@ "node": ">=6" } }, + "node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, "node_modules/temp-file": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz", @@ -3897,9 +4900,9 @@ } }, "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "dev": true, "license": "Apache-2.0", "bin": { @@ -3911,12 +4914,38 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "dev": true, "license": "MIT" }, + "node_modules/unique-filename": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz", + "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==", + "dev": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/unique-slug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz", + "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", @@ -3949,8 +4978,7 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/verror": { "version": "1.10.1", @@ -3968,6 +4996,16 @@ "node": ">=0.6.0" } }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "dev": true, + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -3984,6 +5022,16 @@ "node": ">= 8" } }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -4095,6 +5143,19 @@ "fd-slicer": "~1.1.0" } }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/zip-stream": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz", diff --git a/examples/desktop/electron/package.json b/examples/desktop/electron/package.json index 423e5b601..7031a02d5 100644 --- a/examples/desktop/electron/package.json +++ b/examples/desktop/electron/package.json @@ -11,14 +11,14 @@ "author": "", "license": "ISC", "devDependencies": { - "electron": "^31.3.1", - "electron-builder": "^24.13.3", - "electron-updater": "^6.2.1" + "electron": "^33.2.0", + "electron-builder": "^25.1.8", + "electron-updater": "^6.3.9" }, "build": { "appId": "com.example.myapp", "productName": "Casper Webclient", - "compression": "maximum", + "compression": "store", "directories": { "output": "release" }, diff --git a/examples/desktop/electron/release/Casper Webclient 2.0.0.exe b/examples/desktop/electron/release/Casper Webclient 2.0.0.exe index 46d0d4c6b..25686329a 100644 --- a/examples/desktop/electron/release/Casper Webclient 2.0.0.exe +++ b/examples/desktop/electron/release/Casper Webclient 2.0.0.exe @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:06f52596a8fd68f59b0fa055534ff68d36f79bbac76597c17656dbfbbc3b2bda -size 72526550 +oid sha256:aba8252413d17d39a45391793bb1b5f80f5f39a9d5cb9c14ff40abdb1be8cc34 +size 287684479 diff --git a/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage b/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage index b87a25b43..e7efc5ce8 100755 --- a/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage +++ b/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5d509080dd91d918e0d8c943a23d39ef3ef41b86a8c072c29649b8ba92519685 -size 84019641 +oid sha256:8b30743c1d9453d66c91cb3d28cd7d37168df7929e4a0ec549ccb961330e9811 +size 109930047 diff --git a/examples/desktop/electron/release/builder-debug.yml b/examples/desktop/electron/release/builder-debug.yml index c841e4d80..1e1152c0f 100644 --- a/examples/desktop/electron/release/builder-debug.yml +++ b/examples/desktop/electron/release/builder-debug.yml @@ -34,4 +34,4 @@ x64: - index.js - favicon.png nsis: - script: "!include \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include/StdUtils.nsh\"\n!addincludedir \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include\"\n!macro _isUpdated _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"updated\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isUpdated `\"\" isUpdated \"\"`\n\n!macro _isForceRun _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"force-run\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForceRun `\"\" isForceRun \"\"`\n\n!macro _isKeepShortcuts _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"keep-shortcuts\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isKeepShortcuts `\"\" isKeepShortcuts \"\"`\n\n!macro _isNoDesktopShortcut _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"no-desktop-shortcut\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isNoDesktopShortcut `\"\" isNoDesktopShortcut \"\"`\n\n!macro _isDeleteAppData _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"delete-app-data\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isDeleteAppData `\"\" isDeleteAppData \"\"`\n\n!macro _isForAllUsers _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"allusers\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForAllUsers `\"\" isForAllUsers \"\"`\n\n!macro _isForCurrentUser _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"currentuser\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForCurrentUser `\"\" isForCurrentUser \"\"`\n\n!macro addLangs\n !insertmacro MUI_LANGUAGE \"English\"\n !insertmacro MUI_LANGUAGE \"German\"\n !insertmacro MUI_LANGUAGE \"French\"\n !insertmacro MUI_LANGUAGE \"SpanishInternational\"\n !insertmacro MUI_LANGUAGE \"SimpChinese\"\n !insertmacro MUI_LANGUAGE \"TradChinese\"\n !insertmacro MUI_LANGUAGE \"Japanese\"\n !insertmacro MUI_LANGUAGE \"Korean\"\n !insertmacro MUI_LANGUAGE \"Italian\"\n !insertmacro MUI_LANGUAGE \"Dutch\"\n !insertmacro MUI_LANGUAGE \"Danish\"\n !insertmacro MUI_LANGUAGE \"Swedish\"\n !insertmacro MUI_LANGUAGE \"Norwegian\"\n !insertmacro MUI_LANGUAGE \"Finnish\"\n !insertmacro MUI_LANGUAGE \"Russian\"\n !insertmacro MUI_LANGUAGE \"Portuguese\"\n !insertmacro MUI_LANGUAGE \"PortugueseBR\"\n !insertmacro MUI_LANGUAGE \"Polish\"\n !insertmacro MUI_LANGUAGE \"Ukrainian\"\n !insertmacro MUI_LANGUAGE \"Czech\"\n !insertmacro MUI_LANGUAGE \"Slovak\"\n !insertmacro MUI_LANGUAGE \"Hungarian\"\n !insertmacro MUI_LANGUAGE \"Arabic\"\n !insertmacro MUI_LANGUAGE \"Turkish\"\n !insertmacro MUI_LANGUAGE \"Thai\"\n !insertmacro MUI_LANGUAGE \"Vietnamese\"\n!macroend\n\n!addplugindir /x86-unicode \"/home/greg/.cache/electron-builder/nsis/nsis-resources-3.4.1/plugins/x86-unicode\"\n!include \"/tmp/t-Vw3RU9/0-messages.nsh\"\n\n!include \"common.nsh\"\n!include \"extractAppPackage.nsh\"\n\n# https://github.com/electron-userland/electron-builder/issues/3972#issuecomment-505171582\nCRCCheck off\nWindowIcon Off\nAutoCloseWindow True\nRequestExecutionLevel ${REQUEST_EXECUTION_LEVEL}\n\nFunction .onInit\n !ifndef SPLASH_IMAGE\n SetSilent silent\n !endif\n\n !insertmacro check64BitAndSetRegView\nFunctionEnd\n\nFunction .onGUIInit\n InitPluginsDir\n\n !ifdef SPLASH_IMAGE\n File /oname=$PLUGINSDIR\\splash.bmp \"${SPLASH_IMAGE}\"\n BgImage::SetBg $PLUGINSDIR\\splash.bmp\n BgImage::Redraw\n !endif\nFunctionEnd\n\nSection\n !ifdef SPLASH_IMAGE\n HideWindow\n !endif\n\n StrCpy $INSTDIR \"$PLUGINSDIR\\app\"\n !ifdef UNPACK_DIR_NAME\n StrCpy $INSTDIR \"$TEMP\\${UNPACK_DIR_NAME}\"\n !endif\n\n RMDir /r $INSTDIR\n SetOutPath $INSTDIR\n\n !ifdef APP_DIR_64\n !ifdef APP_DIR_ARM64\n !ifdef APP_DIR_32\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${elseif} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_64}\\*.*\"\n {endIf}\n !endif\n !else\n !ifdef APP_DIR_32\n ${if} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n File /r \"${APP_DIR_64}\\*.*\"\n !endif\n !endif\n !else\n !ifdef APP_DIR_32\n File /r \"${APP_DIR_32}\\*.*\"\n !else\n !insertmacro extractEmbeddedAppPackage\n !endif\n !endif\n\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_DIR\", \"$EXEDIR\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_FILE\", \"$EXEPATH\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_APP_FILENAME\", \"${APP_FILENAME}\").r0'\n ${StdUtils.GetAllParameters} $R0 0\n\n !ifdef SPLASH_IMAGE\n BgImage::Destroy\n !endif\n\n\tExecWait \"$INSTDIR\\${APP_EXECUTABLE_FILENAME} $R0\" $0\n SetErrorLevel $0\n\n SetOutPath $EXEDIR\n\tRMDir /r $INSTDIR\nSectionEnd\n" + script: "!include \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include/StdUtils.nsh\"\n!addincludedir \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include\"\n!macro _isUpdated _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"updated\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isUpdated `\"\" isUpdated \"\"`\n\n!macro _isForceRun _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"force-run\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForceRun `\"\" isForceRun \"\"`\n\n!macro _isKeepShortcuts _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"keep-shortcuts\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isKeepShortcuts `\"\" isKeepShortcuts \"\"`\n\n!macro _isNoDesktopShortcut _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"no-desktop-shortcut\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isNoDesktopShortcut `\"\" isNoDesktopShortcut \"\"`\n\n!macro _isDeleteAppData _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"delete-app-data\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isDeleteAppData `\"\" isDeleteAppData \"\"`\n\n!macro _isForAllUsers _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"allusers\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForAllUsers `\"\" isForAllUsers \"\"`\n\n!macro _isForCurrentUser _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"currentuser\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForCurrentUser `\"\" isForCurrentUser \"\"`\n\n!macro addLangs\n !insertmacro MUI_LANGUAGE \"English\"\n !insertmacro MUI_LANGUAGE \"German\"\n !insertmacro MUI_LANGUAGE \"French\"\n !insertmacro MUI_LANGUAGE \"SpanishInternational\"\n !insertmacro MUI_LANGUAGE \"SimpChinese\"\n !insertmacro MUI_LANGUAGE \"TradChinese\"\n !insertmacro MUI_LANGUAGE \"Japanese\"\n !insertmacro MUI_LANGUAGE \"Korean\"\n !insertmacro MUI_LANGUAGE \"Italian\"\n !insertmacro MUI_LANGUAGE \"Dutch\"\n !insertmacro MUI_LANGUAGE \"Danish\"\n !insertmacro MUI_LANGUAGE \"Swedish\"\n !insertmacro MUI_LANGUAGE \"Norwegian\"\n !insertmacro MUI_LANGUAGE \"Finnish\"\n !insertmacro MUI_LANGUAGE \"Russian\"\n !insertmacro MUI_LANGUAGE \"Portuguese\"\n !insertmacro MUI_LANGUAGE \"PortugueseBR\"\n !insertmacro MUI_LANGUAGE \"Polish\"\n !insertmacro MUI_LANGUAGE \"Ukrainian\"\n !insertmacro MUI_LANGUAGE \"Czech\"\n !insertmacro MUI_LANGUAGE \"Slovak\"\n !insertmacro MUI_LANGUAGE \"Hungarian\"\n !insertmacro MUI_LANGUAGE \"Arabic\"\n !insertmacro MUI_LANGUAGE \"Turkish\"\n !insertmacro MUI_LANGUAGE \"Thai\"\n !insertmacro MUI_LANGUAGE \"Vietnamese\"\n!macroend\n\n!addplugindir /x86-unicode \"/home/greg/.cache/electron-builder/nsis/nsis-resources-3.4.1/plugins/x86-unicode\"\n!include \"/tmp/t-coNQ8r/0-messages.nsh\"\n\n!include \"common.nsh\"\n!include \"extractAppPackage.nsh\"\n\n# https://github.com/electron-userland/electron-builder/issues/3972#issuecomment-505171582\nCRCCheck off\nWindowIcon Off\nAutoCloseWindow True\nRequestExecutionLevel ${REQUEST_EXECUTION_LEVEL}\n\nFunction .onInit\n !ifndef SPLASH_IMAGE\n SetSilent silent\n !endif\n\n !insertmacro check64BitAndSetRegView\nFunctionEnd\n\nFunction .onGUIInit\n InitPluginsDir\n\n !ifdef SPLASH_IMAGE\n File /oname=$PLUGINSDIR\\splash.bmp \"${SPLASH_IMAGE}\"\n BgImage::SetBg $PLUGINSDIR\\splash.bmp\n BgImage::Redraw\n !endif\nFunctionEnd\n\nSection\n !ifdef SPLASH_IMAGE\n HideWindow\n !endif\n\n StrCpy $INSTDIR \"$PLUGINSDIR\\app\"\n !ifdef UNPACK_DIR_NAME\n StrCpy $INSTDIR \"$TEMP\\${UNPACK_DIR_NAME}\"\n !endif\n\n RMDir /r $INSTDIR\n SetOutPath $INSTDIR\n\n !ifdef APP_DIR_64\n !ifdef APP_DIR_ARM64\n !ifdef APP_DIR_32\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${elseif} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_64}\\*.*\"\n {endIf}\n !endif\n !else\n !ifdef APP_DIR_32\n ${if} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n File /r \"${APP_DIR_64}\\*.*\"\n !endif\n !endif\n !else\n !ifdef APP_DIR_32\n File /r \"${APP_DIR_32}\\*.*\"\n !else\n !insertmacro extractEmbeddedAppPackage\n !endif\n !endif\n\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_DIR\", \"$EXEDIR\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_FILE\", \"$EXEPATH\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_APP_FILENAME\", \"${APP_FILENAME}\").r0'\n ${StdUtils.GetAllParameters} $R0 0\n\n !ifdef SPLASH_IMAGE\n BgImage::Destroy\n !endif\n\n\tExecWait \"$INSTDIR\\${APP_EXECUTABLE_FILENAME} $R0\" $0\n SetErrorLevel $0\n\n SetOutPath $EXEDIR\n\tRMDir /r $INSTDIR\nSectionEnd\n" diff --git a/examples/desktop/electron/release/builder-effective-config.yaml b/examples/desktop/electron/release/builder-effective-config.yaml index 4afc6dde1..7712e77ec 100644 --- a/examples/desktop/electron/release/builder-effective-config.yaml +++ b/examples/desktop/electron/release/builder-effective-config.yaml @@ -3,7 +3,7 @@ directories: buildResources: build appId: com.example.myapp productName: Casper Webclient -compression: maximum +compression: store win: target: portable icon: favicon.png @@ -20,4 +20,4 @@ files: extraFiles: - from: ./../../frontend/angular/dist/casper to: frontend/angular/dist/casper -electronVersion: 31.3.1 +electronVersion: 33.2.0 diff --git a/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap b/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap index 67f82503a..3129b5024 100644 --- a/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap +++ b/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:268fa6bb07f745a6eac85a246a03c1ab55890bf8975a4fe87f0794515ea122b4 -size 92352512 +oid sha256:26fec8f241c5d48e720aa20711bea88dd408f27130b7d4920cfa5f77de20f1b2 +size 93220864 diff --git a/examples/desktop/node/package-lock.json b/examples/desktop/node/package-lock.json index 48f825a14..5dafca956 100644 --- a/examples/desktop/node/package-lock.json +++ b/examples/desktop/node/package-lock.json @@ -12,8 +12,8 @@ "casper-sdk": "file:../../../pkg-nodejs" }, "devDependencies": { - "@types/node": "^22.1.0", - "typescript": "^5.5.4" + "@types/node": "^22.9.1", + "typescript": "^5.6.3" } }, "../../../pkg-nodejs": { @@ -22,9 +22,9 @@ "license": "Apache-2.0" }, "node_modules/@types/node": { - "version": "22.8.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.1.tgz", - "integrity": "sha512-k6Gi8Yyo8EtrNtkHXutUu2corfDf9su95VYVP10aGYMMROM6SAItZi0w1XszA6RtWTHSVp5OeFof37w0IEqCQg==", + "version": "22.9.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.1.tgz", + "integrity": "sha512-p8Yy/8sw1caA8CdRIQBG5tiLHmxtQKObCijiAa9Ez+d4+PRffM4054xbju0msf+cvhJpnFEeNjxmVT/0ipktrg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/examples/desktop/node/package.json b/examples/desktop/node/package.json index 8277df16b..72621db5a 100644 --- a/examples/desktop/node/package.json +++ b/examples/desktop/node/package.json @@ -13,7 +13,7 @@ "casper-sdk": "file:../../../pkg-nodejs" }, "devDependencies": { - "@types/node": "^22.1.0", - "typescript": "^5.5.4" + "@types/node": "^22.9.1", + "typescript": "^5.6.3" } } \ No newline at end of file diff --git a/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm index 6015330a3..dfe55b593 100644 Binary files a/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm and b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm differ diff --git a/examples/frontend/angular/dist/casper/index.html b/examples/frontend/angular/dist/casper/index.html index 137ceca41..4b752779c 100644 --- a/examples/frontend/angular/dist/casper/index.html +++ b/examples/frontend/angular/dist/casper/index.html @@ -11,5 +11,5 @@ - + diff --git a/examples/frontend/angular/dist/casper/main.e8c18faf31fe4873.js b/examples/frontend/angular/dist/casper/main.e8c18faf31fe4873.js deleted file mode 100644 index aaad7a280..000000000 --- a/examples/frontend/angular/dist/casper/main.e8c18faf31fe4873.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[792],{8787:(f,s,a)=>{var u=a(467);function g(e,n){return Object.is(e,n)}let y=null,v=!1,E=1;const k=Symbol("SIGNAL");function M(e){const n=y;return y=e,n}const ce={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function le(e){if(v)throw new Error("");if(null===y)return;y.consumerOnSignalRead(e);const n=y.nextProducerIndex++;Dn(y),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Sn(e){Dn(e);for(let n=0;n0}function Dn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ar(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function cr(e){return void 0!==e.producerNode}const xi=Symbol("UNSET"),Li=Symbol("COMPUTING"),Es=Symbol("ERRORED"),fu={...ce,value:xi,dirty:!0,error:null,equal:g,producerMustRecompute:e=>e.value===xi||e.value===Li,producerRecomputeValue(e){if(e.value===Li)throw new Error("Detected cycle in computations.");const n=e.value;e.value=Li;const t=En(e);let r;try{r=e.computation()}catch(i){r=Es,e.error=i}finally{Bn(e,t)}n!==xi&&n!==Es&&r!==Es&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let Ca=function pu(){throw new Error};function gg(){Ca()}let Da=null;function hg(e,n){kt()||gg(),e.equal(e.value,n)||(e.value=n,function XD(e){e.version++,function rt(){E++}(),nt(e),Da?.()}(e))}const YD={...ce,equal:g,value:void 0};function Ve(e){return"function"==typeof e}function wg(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const gu=wg(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function hu(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Jt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Ve(r))try{r()}catch(o){n=o instanceof gu?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{vg(o)}catch(c){n=n??[],c instanceof gu?n=[...n,...c.errors]:n.push(c)}}if(n)throw new gu(n)}}add(n){var t;if(n&&n!==this)if(this.closed)vg(n);else{if(n instanceof Jt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&hu(t,n)}remove(n){const{_finalizers:t}=this;t&&hu(t,n),n instanceof Jt&&n._removeParent(this)}}Jt.EMPTY=(()=>{const e=new Jt;return e.closed=!0,e})();const yg=Jt.EMPTY;function bg(e){return e instanceof Jt||e&&"closed"in e&&Ve(e.remove)&&Ve(e.add)&&Ve(e.unsubscribe)}function vg(e){Ve(e)?e():e.unsubscribe()}const Or={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ta={setTimeout(e,n,...t){const{delegate:r}=Ta;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Ta;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Eg(e){Ta.setTimeout(()=>{const{onUnhandledError:n}=Or;if(!n)throw e;n(e)})}function Sg(){}const tT=mu("C",void 0,void 0);function mu(e,n,t){return{kind:e,value:n,error:t}}let xr=null;function Ia(e){if(Or.useDeprecatedSynchronousErrorHandling){const n=!xr;if(n&&(xr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=xr;if(xr=null,t)throw r}}else e()}class wu extends Jt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,bg(n)&&n.add(this)):this.destination=cT}static create(n,t,r){return new bu(n,t,r)}next(n){this.isStopped?vu(function rT(e){return mu("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?vu(function nT(e){return mu("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?vu(tT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const iT=Function.prototype.bind;function yu(e,n){return iT.call(e,n)}class oT{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Ma(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Ma(r)}else Ma(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Ma(t)}}}class bu extends wu{constructor(n,t,r){let i;if(super(),Ve(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Or.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&yu(n.next,o),error:n.error&&yu(n.error,o),complete:n.complete&&yu(n.complete,o)}):i=n}this.destination=new oT(i)}}function Ma(e){Or.useDeprecatedSynchronousErrorHandling?function sT(e){Or.useDeprecatedSynchronousErrorHandling&&xr&&(xr.errorThrown=!0,xr.error=e)}(e):Eg(e)}function vu(e,n){const{onStoppedNotification:t}=Or;t&&Ta.setTimeout(()=>t(e,n))}const cT={closed:!0,next:Sg,error:function aT(e){throw e},complete:Sg},Eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function lT(e){return e}let At=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function _T(e){return e&&e instanceof wu||function uT(e){return e&&Ve(e.next)&&Ve(e.error)&&Ve(e.complete)}(e)&&bg(e)}(t)?t:new bu(t,r,i);return Ia(()=>{const{operator:c,source:l}=this;o.add(c?c.call(o,l):l?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Dg(r))((i,o)=>{const c=new bu({next:l=>{try{t(l)}catch(_){o(_),c.unsubscribe()}},error:o,complete:i});this.subscribe(c)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Eu](){return this}pipe(...t){return function Cg(e){return 0===e.length?lT:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=Dg(t))((r,i)=>{let o;this.subscribe(c=>o=c,c=>i(c),()=>r(o))})}}return e.create=n=>new e(n),e})();function Dg(e){var n;return null!==(n=e??Or.Promise)&&void 0!==n?n:Promise}const dT=wg(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Lr=(()=>{class e extends At{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Tg(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new dT}next(t){Ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?yg:(this.currentObservers=null,o.push(t),new Jt(()=>{this.currentObservers=null,hu(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new At;return t.source=this,t}}return e.create=(n,t)=>new Tg(n,t),e})();class Tg extends Lr{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:yg}}class Su extends Lr{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function Pr(e){return n=>{if(function fT(e){return Ve(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function lr(e,n,t,r,i){return new pT(e,n,t,r,i)}class pT extends wu{constructor(n,t,r,i,o,c){super(n),this.onFinalize=o,this.shouldUnsubscribe=c,this._next=t?function(l){try{t(l)}catch(_){n.error(_)}}:super._next,this._error=i?function(l){try{i(l)}catch(_){n.error(_)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ur(e,n){return Pr((t,r)=>{let i=0;t.subscribe(lr(r,o=>{r.next(e.call(n,o,i++))}))})}const Ig="https://g.co/ng/security#xss";class F extends Error{constructor(n,t){super(function Ss(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function zn(e){return{toString:e}.toString()}const Ds="__parameters__";function Is(e,n,t){return zn(()=>{const r=function Cu(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const c=new i(...o);return l.annotation=c,l;function l(_,d,p){const h=_.hasOwnProperty(Ds)?_[Ds]:Object.defineProperty(_,Ds,{value:[]})[Ds];for(;h.length<=p;)h.push(null);return(h[p]=h[p]||[]).push(c),_}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const Ae=globalThis;function be(e){for(let n in e)if(e[n]===be)return n;throw Error("Could not find renamed property on target object.")}function gT(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Du(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const hT=be({__forward_ref__:be});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return Ke(this())},e}function K(e){return ka(e)?e():e}function ka(e){return"function"==typeof e&&e.hasOwnProperty(hT)&&e.__forward_ref__===Te}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Un(e){return{providers:e.providers||[],imports:e.imports||[]}}function Aa(e){return Ag(e,Ra)||Ag(e,Fg)}function Ag(e,n){return e.hasOwnProperty(n)?e[n]:null}function Fa(e){return e&&(e.hasOwnProperty(Tu)||e.hasOwnProperty(vT))?e[Tu]:null}const Ra=be({\u0275prov:be}),Tu=be({\u0275inj:be}),Fg=be({ngInjectableDef:be}),vT=be({ngInjectorDef:be});class V{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=J({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Au(e){return e&&!!e.\u0275providers}const Pi=be({\u0275cmp:be}),Fu=be({\u0275dir:be}),Ru=be({\u0275pipe:be}),$n=be({\u0275fac:be}),Vi=be({__NG_ELEMENT_ID__:be}),xg=be({__NG_ENV_ID__:be});function ee(e){return"string"==typeof e?e:null==e?"":String(e)}function Ou(e,n){throw new F(-201,!1)}var ue=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ue||{});let xu;function Lg(){return xu}function Ft(e){const n=xu;return xu=e,n}function Pg(e,n,t){const r=Aa(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ue.Optional?null:void 0!==n?n:void Ou()}const Wi={},Lu="__NG_DI_FLAG__",Oa="ngTempTokenPath",IT=/\n/gm,Vg="__source";let Ms;function dr(e){const n=Ms;return Ms=e,n}function kT(e,n=ue.Default){if(void 0===Ms)throw new F(-203,!1);return null===Ms?Pg(e,void 0,n):Ms.get(e,n&ue.Optional?null:void 0,n)}function U(e,n=ue.Default){return(Lg()||kT)(K(e),n)}function H(e,n=ue.Default){return U(e,xa(n))}function xa(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Pu(e){const n=[];for(let t=0;tArray.isArray(t)?Ns(t,n):n(t))}function jg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function La(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function jt(e,n,t){let r=ks(e,n);return r>=0?e[1|r]=t:(r=~r,function Bg(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Bu(e,n){const t=ks(e,n);if(t>=0)return e[1|t]}function ks(e,n){return function Hg(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),c=e[o<n?i=o:r=o+1}return~(i<n){c=o-1;break}}}for(;o-1){let o;for(;++io?"":i[p+1].toLowerCase(),2&r&&d!==h){if(_n(r))return!1;c=!0}}}}else{if(!c&&!_n(r)&&!_n(_))return!1;if(c&&_n(_))continue;c=!1,r=_|1&r}}return _n(r)||c}function _n(e){return!(1&e)}function HT(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+l+'"':"")+"]"}else 8&r?i+="."+c:4&r&&(i+=" "+c);else""!==i&&!_n(c)&&(n+=Jg(o,i),i=""),r=c,o=o||!_n(r);t++}return""!==i&&(n+=Jg(o,i)),n}function ct(e){return zn(()=>{const n=Qg(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Wa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||un.Emulated,styles:e.styles||pe,_:null,schemas:e.schemas||null,tView:null,id:""};Yg(t);const r=e.dependencies;return t.directiveDefs=ja(r,!1),t.pipeDefs=ja(r,!0),t.id=function XT(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function ZT(e){return ae(e)||Je(e)}function QT(e){return null!==e}function pr(e){return zn(()=>({type:e.type,bootstrap:e.bootstrap||pe,declarations:e.declarations||pe,imports:e.imports||pe,exports:e.exports||pe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Zg(e,n){if(null==e)return Tn;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,c,l=fr.None;Array.isArray(i)?(l=i[0],o=i[1],c=i[2]??o):(o=i,c=i),n?(t[o]=l!==fr.None?[r,l]:r,n[o]=c):t[o]=r}return t}function ne(e){return zn(()=>{const n=Qg(e);return Yg(n),n})}function ae(e){return e[Pi]||null}function Je(e){return e[Fu]||null}function st(e){return e[Ru]||null}function Qg(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Tn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||pe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Zg(e.inputs,n),outputs:Zg(e.outputs),debugInfo:null}}function Yg(e){e.features?.forEach(n=>n(e))}function ja(e,n){if(!e)return null;const t=n?st:ZT;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(QT)}function Xg(...e){return{\u0275providers:$u(0,e),\u0275fromNgModule:!0}}function $u(e,...n){const t=[],r=new Set;let i;const o=c=>{t.push(c)};return Ns(n,c=>{const l=c;Ba(l,o,[],r)&&(i||=[],i.push(l))}),void 0!==i&&eh(i,o),t}function eh(e,n){for(let t=0;t{n(o,r)})}}function Ba(e,n,t,r){if(!(e=K(e)))return!1;let i=null,o=Fa(e);const c=!o&&ae(e);if(o||c){if(c&&!c.standalone)return!1;i=e}else{const _=e.ngModule;if(o=Fa(_),!o)return!1;i=_}const l=r.has(i);if(c){if(l)return!1;if(r.add(i),c.dependencies){const _="function"==typeof c.dependencies?c.dependencies():c.dependencies;for(const d of _)Ba(d,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!l){let d;r.add(i);try{Ns(o.imports,p=>{Ba(p,n,t,r)&&(d||=[],d.push(p))})}finally{}void 0!==d&&eh(d,n)}if(!l){const d=Vr(i)||(()=>new i);n({provide:i,useFactory:d,deps:pe},i),n({provide:Hu,useValue:i,multi:!0},i),n({provide:qn,useValue:()=>U(i),multi:!0},i)}const _=o.providers;if(null!=_&&!l){const d=e;qu(_,p=>{n(p,d)})}}}return i!==e&&void 0!==e.providers}function qu(e,n){for(let t of e)Au(t)&&(t=t.\u0275providers),Array.isArray(t)?qu(t,n):n(t)}const e1=be({provide:String,useValue:be});function Gu(e){return null!==e&&"object"==typeof e&&e1 in e}function jr(e){return"function"==typeof e}const Ku=new V(""),Ha={},n1={};let Ju;function za(){return void 0===Ju&&(Ju=new Va),Ju}class Zt{}class As extends Zt{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qu(n,c=>this.processProvider(c)),this.records.set(zg,Fs(void 0,this)),i.has("environment")&&this.records.set(Zt,Fs(void 0,this));const o=this.records.get(Ku);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Hu,pe,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=M(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=dr(this),r=Ft(void 0);try{return n()}finally{dr(t),Ft(r)}}get(n,t=Wi,r=ue.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(xg))return n[xg](this);r=xa(r);const o=dr(this),c=Ft(void 0);try{if(!(r&ue.SkipSelf)){let _=this.records.get(n);if(void 0===_){const d=function a1(e){return"function"==typeof e||"object"==typeof e&&e instanceof V}(n)&&Aa(n);_=d&&this.injectableDefInScope(d)?Fs(Zu(n),Ha):null,this.records.set(n,_)}if(null!=_)return this.hydrate(n,_)}return(r&ue.Self?za():this.parent).get(n,t=r&ue.Optional&&t===Wi?null:t)}catch(l){if("NullInjectorError"===l.name){if((l[Oa]=l[Oa]||[]).unshift(Ke(n)),o)throw l;return function FT(e,n,t,r){const i=e[Oa];throw n[Vg]&&i.unshift(n[Vg]),e.message=function RT(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Ke(n);if(Array.isArray(n))i=n.map(Ke).join(" -> ");else if("object"==typeof n){let o=[];for(let c in n)if(n.hasOwnProperty(c)){let l=n[c];o.push(c+":"+("string"==typeof l?JSON.stringify(l):Ke(l)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(IT,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Oa]=null,e}(l,n,"R3InjectorError",this.source)}throw l}finally{Ft(c),dr(o)}}resolveInjectorInitializers(){const n=M(null),t=dr(this),r=Ft(void 0);try{const o=this.get(qn,pe,ue.Self);for(const c of o)c()}finally{dr(t),Ft(r),M(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ke(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(n){let t=jr(n=K(n))?n:K(n&&n.provide);const r=function s1(e){return Gu(e)?Fs(void 0,e.useValue):Fs(rh(e),Ha)}(n);if(!jr(n)&&!0===n.multi){let i=this.records.get(t);i||(i=Fs(void 0,Ha,!0),i.factory=()=>Pu(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=M(null);try{return t.value===Ha&&(t.value=n1,t.value=t.factory()),"object"==typeof t.value&&t.value&&function o1(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{M(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=K(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Zu(e){const n=Aa(e),t=null!==n?n.factory:Vr(e);if(null!==t)return t;if(e instanceof V)throw new F(204,!1);if(e instanceof Function)return function r1(e){if(e.length>0)throw new F(204,!1);const t=function bT(e){return e&&(e[Ra]||e[Fg])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new F(204,!1)}function rh(e,n,t){let r;if(jr(e)){const i=K(e);return Vr(i)||Zu(i)}if(Gu(e))r=()=>K(e.useValue);else if(function nh(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Pu(e.deps||[]));else if(function th(e){return!(!e||!e.useExisting)}(e))r=()=>U(K(e.useExisting));else{const i=K(e&&(e.useClass||e.provide));if(!function i1(e){return!!e.deps}(e))return Vr(i)||Zu(i);r=()=>new i(...Pu(e.deps))}return r}function Fs(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Qu(e,n){for(const t of e)Array.isArray(t)?Qu(t,n):t&&Au(t)?Qu(t.\u0275providers,n):n(t)}const Oe=0,R=1,$=2,ze=3,dn=4,it=5,vt=6,Os=7,Ie=8,Ue=9,In=10,Z=11,Ui=12,oh=13,xs=14,xe=15,Br=16,Ls=17,Gn=18,Ps=19,ah=20,gr=21,$a=22,Qt=23,z=25,e_=1,Mn=7,Vs=9,We=10;var Ga=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ga||{});function Qe(e){return Array.isArray(e)&&"object"==typeof e[e_]}function ut(e){return Array.isArray(e)&&!0===e[e_]}function t_(e){return!!(4&e.flags)}function Hr(e){return e.componentOffset>-1}function Ka(e){return!(1&~e.flags)}function fn(e){return!!e.template}function qi(e){return!!(512&e[$])}class b1{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function dh(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Kn(){return fh}function fh(e){return e.type.prototype.ngOnChanges&&(e.setInput=E1),v1}function v1(){const e=gh(this),n=e?.current;if(n){const t=e.previous;if(t===Tn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function E1(e,n,t,r,i){const o=this.declaredInputs[r],c=gh(e)||function S1(e,n){return e[ph]=n}(e,{previous:Tn,current:null}),l=c.current||(c.current={}),_=c.previous,d=_[o];l[o]=new b1(d&&d.currentValue,t,_===Tn),dh(e,n,i,t)}Kn.ngInherit=!0;const ph="__ngSimpleChanges__";function gh(e){return e[ph]||null}const Nn=function(e,n,t){},hh="svg";function ge(e){for(;Array.isArray(e);)e=e[Oe];return e}function Gi(e,n){return ge(n[e])}function Et(e,n){return ge(n[e.index])}function Ki(e,n){return e.data[n]}function Bt(e,n){const t=n[e];return Qe(t)?t:t[Oe]}function o_(e){return!(128&~e[$])}function Yt(e,n){return null==n?null:e[n]}function wh(e){e[Ls]=0}function yh(e){1024&e[$]||(e[$]|=1024,o_(e)&&Za(e))}function Ja(e){return!!(9216&e[$]||e[Qt]?.dirty)}function a_(e){e[In].changeDetectionScheduler?.notify(8),64&e[$]&&(e[$]|=1024),Ja(e)&&Za(e)}function Za(e){e[In].changeDetectionScheduler?.notify(0);let n=Jn(e);for(;null!==n&&!(8192&n[$])&&(n[$]|=8192,o_(n));)n=Jn(n)}function Qa(e,n){if(!(256&~e[$]))throw new F(911,!1);null===e[gr]&&(e[gr]=[]),e[gr].push(n)}function Jn(e){const n=e[ze];return ut(n)?n[ze]:n}const Q={lFrame:Fh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let vh=!1;function Eh(){return Q.bindingsEnabled}function Ur(){return null!==Q.skipHydrationRootTNode}function I(){return Q.lFrame.lView}function se(){return Q.lFrame.tView}function _e(e){return Q.lFrame.contextLView=e,e[Ie]}function de(e){return Q.lFrame.contextLView=null,e}function ve(){let e=Sh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Sh(){return Q.lFrame.currentTNode}function pn(e,n){const t=Q.lFrame;t.currentTNode=e,t.isParent=n}function u_(){return Q.lFrame.isParent}function __(){Q.lFrame.isParent=!1}function Th(){return vh}function Ih(e){vh=e}function St(){const e=Q.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function gn(){return Q.lFrame.bindingIndex++}function Qn(e){const n=Q.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function P1(e,n){const t=Q.lFrame;t.bindingIndex=t.bindingRootIndex=e,d_(n)}function d_(e){Q.lFrame.currentDirectiveIndex=e}function p_(){return Q.lFrame.currentQueryIndex}function Xa(e){Q.lFrame.currentQueryIndex=e}function W1(e){const n=e[R];return 2===n.type?n.declTNode:1===n.type?e[it]:null}function kh(e,n,t){if(t&ue.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&ue.Host||(i=W1(o),null===i||(o=o[xs],10&i.type))););if(null===i)return!1;n=i,e=o}const r=Q.lFrame=Ah();return r.currentTNode=n,r.lView=e,!0}function g_(e){const n=Ah(),t=e[R];Q.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Ah(){const e=Q.lFrame,n=null===e?null:e.child;return null===n?Fh(e):n}function Fh(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function Rh(){const e=Q.lFrame;return Q.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Oh=Rh;function h_(){const e=Rh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ot(){return Q.lFrame.selectedIndex}function $r(e){Q.lFrame.selectedIndex=e}function Me(){const e=Q.lFrame;return Ki(e.tView,e.selectedIndex)}function ec(){Q.lFrame.currentNamespace=hh}let Ph=!0;function Zi(){return Ph}function kn(e){Ph=e}function tc(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[_]<0&&(e[Ls]+=65536),(l>14>16&&(3&e[$])===n&&(e[$]+=16384,Wh(l,o)):Wh(l,o)}const Ws=-1;class Qi{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const y_={};class qr{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=xa(r);const i=this.injector.get(n,y_,r);return i!==y_||t===y_?i:this.parentInjector.get(n,t,r)}}function b_(e){return e!==Ws}function Yi(e){return 32767&e}function Xi(e,n){let t=function J1(e){return e>>16}(e),r=n;for(;t>0;)r=r[xs],t--;return r}let v_=!0;function sc(e){const n=v_;return v_=e,n}const Bh=255,Hh=5;let Q1=0;const An={};function ic(e,n){const t=zh(e,n);if(-1!==t)return t;const r=n[R];r.firstCreatePass&&(e.injectorIndex=n.length,E_(r.data,e),E_(n,null),E_(r.blueprint,null));const i=oc(e,n),o=e.injectorIndex;if(b_(i)){const c=Yi(i),l=Xi(i,n),_=l[R].data;for(let d=0;d<8;d++)n[o+d]=l[c+d]|_[c+d]}return n[o+8]=i,o}function E_(e,n){e.push(0,0,0,0,0,0,0,0,n)}function zh(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function oc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=Zh(i),null===r)return Ws;if(t++,i=i[xs],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Ws}function S_(e,n,t){!function Y1(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Vi)&&(r=t[Vi]),null==r&&(r=t[Vi]=Q1++);const i=r&Bh;n.data[e+(i>>Hh)]|=1<=0?n&Bh:nI:n}(t);if("function"==typeof o){if(!kh(n,e,r))return r&ue.Host?Uh(i,0,r):$h(n,t,r,i);try{let c;if(c=o(r),null!=c||r&ue.Optional)return c;Ou()}finally{Oh()}}else if("number"==typeof o){let c=null,l=zh(e,n),_=Ws,d=r&ue.Host?n[xe][it]:null;for((-1===l||r&ue.SkipSelf)&&(_=-1===l?oc(e,n):n[l+8],_!==Ws&&Jh(r,!1)?(c=n[R],l=Yi(_),n=Xi(_,n)):l=-1);-1!==l;){const p=n[R];if(Kh(o,l,p.data)){const h=eI(l,n,t,c,r,d);if(h!==An)return h}_=n[l+8],_!==Ws&&Jh(r,n[R].data[l+8]===d)&&Kh(o,l,n)?(c=p,l=Yi(_),n=Xi(_,n)):l=-1}}return i}function eI(e,n,t,r,i,o){const c=n[R],l=c.data[e+8],p=ac(l,c,t,null==r?Hr(l)&&v_:r!=c&&!!(3&l.type),i&ue.Host&&o===l);return null!==p?Gr(n,c,p,l):An}function ac(e,n,t,r,i){const o=e.providerIndexes,c=n.data,l=1048575&o,_=e.directiveStart,p=o>>20,m=i?l+p:e.directiveEnd;for(let w=r?l:l+p;w=_&&b.type===t)return w}if(i){const w=c[_];if(w&&fn(w)&&w.type===t)return _}return null}function Gr(e,n,t,r){let i=e[t];const o=n.data;if(function $1(e){return e instanceof Qi}(i)){const c=i;c.resolving&&function CT(e,n){throw n&&n.join(" > "),new F(-200,e)}(function me(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ee(e)}(o[t]));const l=sc(c.canSeeViewProviders);c.resolving=!0;const d=c.injectImpl?Ft(c.injectImpl):null;kh(e,r,ue.Default);try{i=e[t]=c.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function z1(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const c=fh(n);(t.preOrderHooks??=[]).push(e,c),(t.preOrderCheckHooks??=[]).push(e,c)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==d&&Ft(d),sc(l),c.resolving=!1,Oh()}}return i}function Kh(e,n,t){return!!(t[n+(e>>Hh)]&1<{const n=e.prototype.constructor,t=n[$n]||C_(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[$n]||C_(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function C_(e){return ka(e)?()=>{const n=C_(K(e));return n&&n()}:Vr(e)}function Zh(e){const n=e[R],t=n.type;return 2===t?n.declTNode:1===t?e[it]:null}function tm(e,n=null,t=null,r){const i=function nm(e,n=null,t=null,r,i=new Set){const o=[t||pe,Xg(e)];return r=r||("object"==typeof e?void 0:Ke(e)),new As(o,n||za(),r||null,i)}(e,n,t,r);return i.resolveInjectorInitializers(),i}class dt{static{this.THROW_IF_NOT_FOUND=Wi}static{this.NULL=new Va}static create(n,t){if(Array.isArray(n))return tm({name:""},t,n,"");{const r=n.name??"";return tm({name:r},n.parent,n.providers,r)}}static{this.\u0275prov=J({token:dt,providedIn:"any",factory:()=>U(zg)})}static{this.__NG_ELEMENT_ID__=-1}}new V("").__NG_ELEMENT_ID__=e=>{const n=ve();if(null===n)throw new F(204,!1);if(2&n.type)return n.value;if(e&ue.Optional)return null;throw new F(204,!1)};function T_(e){return e.ngOriginalError}const sm=!0;let eo=(()=>{class e{static{this.__NG_ELEMENT_ID__=fI}static{this.__NG_ENV_ID__=t=>t}}return e})();class dI extends eo{constructor(n){super(),this._lView=n}onDestroy(n){return Qa(this._lView,n),()=>function c_(e,n){if(null===e[gr])return;const t=e[gr].indexOf(n);-1!==t&&e[gr].splice(t,1)}(this._lView,n)}}function fI(){return new dI(I())}let hr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Su(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=J({token:e,providedIn:"root",factory:()=>new e})}}return e})();const Fe=class pI extends Lr{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,function sh(){return void 0!==Lg()||null!=function NT(){return Ms}()}()&&(this.destroyRef=H(eo,{optional:!0})??void 0,this.pendingTasks=H(hr,{optional:!0})??void 0)}emit(n){const t=M(null);try{super.next(n)}finally{M(t)}}subscribe(n,t,r){let i=n,o=t||(()=>null),c=r;if(n&&"object"==typeof n){const _=n;i=_.next?.bind(_),o=_.error?.bind(_),c=_.complete?.bind(_)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),c&&(c=this.wrapInTimeout(c)));const l=super.subscribe({next:i,error:o,complete:c});return n instanceof Jt&&n.add(l),l}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function uc(...e){}function im(e){let n,t;function r(){e=uc;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function om(e){return queueMicrotask(()=>e()),()=>{e=uc}}const I_="isAngularZone",_c=I_+"_ID";let gI=0;class Ee{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=sm}=n;if(typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const c=this;c._nesting=0,c._outer=c._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(c._inner=c._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(c._inner=c._inner.fork(Zone.longStackTraceZoneSpec)),c.shouldCoalesceEventChangeDetection=!i&&r,c.shouldCoalesceRunChangeDetection=i,c.callbackScheduled=!1,c.scheduleInRootZone=o,function wI(e){const n=()=>{!function mI(e){function n(){im(()=>{e.callbackScheduled=!1,N_(e),e.isCheckStableRunning=!0,M_(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),N_(e))}(e)},t=gI++;e._inner=e._inner.fork({name:"angular",properties:{[I_]:!0,[_c]:t,[_c+t]:!0},onInvokeTask:(r,i,o,c,l,_)=>{if(function yI(e){return lm(e,"__ignore_ng_zone__")}(_))return r.invokeTask(o,c,l,_);try{return am(e),r.invokeTask(o,c,l,_)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&n(),cm(e)}},onInvoke:(r,i,o,c,l,_,d)=>{try{return am(e),r.invoke(o,c,l,_,d)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function bI(e){return lm(e,"__scheduler_tick__")}(_)&&n(),cm(e)}},onHasTask:(r,i,o,c)=>{r.hasTask(o,c),i===o&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,N_(e),M_(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,i,o,c)=>(r.handleError(o,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(c)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(I_)}static assertInAngularZone(){if(!Ee.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(Ee.isInAngularZone())throw new F(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,c=o.scheduleEventTask("NgZoneEvent: "+i,n,hI,uc,uc);try{return o.runTask(c,t,r)}finally{o.cancelTask(c)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const hI={};function M_(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function N_(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function am(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function cm(e){e._nesting--,M_(e)}class k_{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe,this.onMicrotaskEmpty=new Fe,this.onStable=new Fe,this.onError=new Fe}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}function lm(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Fn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&T_(n);for(;t&&T_(t);)t=T_(t);return t||null}}const EI=new V("",{providedIn:"root",factory:()=>{const e=H(Ee),n=H(Fn);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function SI(){return Hs(ve(),I())}function Hs(e,n){return new Xt(Et(e,n))}let Xt=(()=>{class e{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=SI}}return e})();function _m(e){return e instanceof Xt?e.nativeElement:e}function CI(){return this._results[Symbol.iterator]()}class A_{get changes(){return this._changes??=new Fe}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=A_.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=CI)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const r=function Rt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function PT(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r$I}),$I="ng",Am=new V(""),wr=new V("",{providedIn:"platform",factory:()=>"unknown"}),Fm=new V("",{providedIn:"root",factory:()=>mr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Rm=()=>null;function z_(e,n,t=!1){return Rm(e,n,t)}const Bm=new V("",{providedIn:"root",factory:()=>!1});let bc,vc;function qs(e){return function K_(){if(void 0===bc&&(bc=null,Ae.trustedTypes))try{bc=Ae.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bc}()?.createHTML(e)||e}function Um(e){return function J_(){if(void 0===vc&&(vc=null,Ae.trustedTypes))try{vc=Ae.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vc}()?.createHTML(e)||e}class Gm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ig})`}}function yr(e){return e instanceof Gm?e.changingThisBreaksApplicationSecurity:e}class _M{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(qs(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class dM{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=qs(n),t}}const pM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Yn(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function _o(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const Jm=Yn("area,br,col,hr,img,wbr"),Zm=Yn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Qm=Yn("rp,rt"),Q_=_o(Jm,_o(Zm,Yn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),_o(Qm,Yn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),_o(Qm,Zm)),Y_=Yn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ym=_o(Y_,Yn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),gM=Yn("script,style,template");class hM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=yM(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=wM(t);if(o){t=o;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=Xm(n).toLowerCase();if(!Q_.hasOwnProperty(t))return this.sanitizedSomething=!0,!gM.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i"),!0}endElement(n){const t=Xm(n).toLowerCase();Q_.hasOwnProperty(t)&&!Jm.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(tw(n))}}function wM(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw ew(n);return n}function yM(e){const n=e.firstChild;if(n&&function mM(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw ew(n);return n}function Xm(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function ew(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vM=/([^\#-~ |!])/g;function tw(e){return e.replace(/&/g,"&").replace(bM,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(vM,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Ec;function X_(e){return"content"in e&&function SM(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Gs=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Gs||{});function nw(e){const n=function fo(){const e=I();return e&&e[In].sanitizer}();return n?Um(n.sanitize(Gs.HTML,e)||""):function uo(e,n){const t=function uM(e){return e instanceof Gm&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Ig})`)}return t===n}(e,"HTML")?Um(yr(e)):function EM(e,n){let t=null;try{Ec=Ec||function Km(e){const n=new dM(e);return function fM(){try{return!!(new window.DOMParser).parseFromString(qs(""),"text/html")}catch{return!1}}()?new _M(n):n}(e);let r=n?String(n):"";t=Ec.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=Ec.getInertBodyElement(r)}while(r!==o);return qs((new hM).sanitizeChildren(X_(t)||t))}finally{if(t){const r=X_(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}(mr(),ee(e))}const kM=/^>|^->||--!>|)/g,FM="\u200b$1\u200b";var br=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(br||{});let nd;function rd(e,n){return nd(e,n)}function Js(e,n,t,r,i){if(null!=r){let o,c=!1;ut(r)?o=r:Qe(r)&&(c=!0,r=r[Oe]);const l=ge(r);0===e&&null!==t?null==i?mw(n,t,l):Jr(n,t,l,i||null,!0):1===e&&null!==t?Jr(n,t,l,i||null,!0):2===e?function go(e,n,t){e.removeChild(null,n,t)}(n,l,c):3===e&&n.destroyNode(l),null!=o&&function YM(e,n,t,r,i){const o=t[Mn];o!==ge(t)&&Js(n,e,r,o,i);for(let l=We;ln.replace(AM,FM))}(n))}function Dc(e,n,t){return e.createElement(n,t)}function pw(e,n){n[In].changeDetectionScheduler?.notify(9),Mc(e,n,n[Z],2,null,null)}function gw(e,n){const t=e[Vs],r=n[ze];(Qe(r)||n[xe]!==r[ze][xe])&&(e[$]|=Ga.HasTransplantedViews),null===t?e[Vs]=[n]:t.push(n)}function od(e,n){const t=e[Vs],r=t.indexOf(n);t.splice(r,1)}function po(e,n){if(e.length<=We)return;const t=We+n,r=e[t];if(r){const i=r[Br];null!==i&&i!==e&&od(i,r),n>0&&(e[t-1][dn]=r[dn]);const o=La(e,We+n);!function UM(e,n){pw(e,n),n[Oe]=null,n[it]=null}(r[R],r);const c=o[Gn];null!==c&&c.detachView(o[R]),r[ze]=null,r[dn]=null,r[$]&=-129}return r}function Tc(e,n){if(!(256&n[$])){const t=n[Z];t.destroyNode&&Mc(e,n,t,3,null,null),function qM(e){let n=e[Ui];if(!n)return ad(e[R],e);for(;n;){let t=null;if(Qe(n))t=n[Ui];else{const r=n[We];r&&(t=r)}if(!t){for(;n&&!n[dn]&&n!==e;)Qe(n)&&ad(n[R],n),n=n[ze];null===n&&(n=e),Qe(n)&&ad(n[R],n),t=n&&n[dn]}n=t}}(n)}}function ad(e,n){if(256&n[$])return;const t=M(null);try{n[$]&=-129,n[$]|=256,n[Qt]&&Hn(n[Qt]),function JM(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[c]():r[-c].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[Os]=null);const i=n[gr];if(null!==i){n[gr]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===un.None||o===un.Emulated)return null}return Et(r,t)}}(e,n.parent,t)}function Jr(e,n,t,r,i){e.insertBefore(n,t,r,i)}function mw(e,n,t){e.appendChild(n,t)}function ww(e,n,t,r,i){null!==r?Jr(e,n,t,r,i):mw(e,n,t)}function ld(e,n){return e.parentNode(n)}function yw(e,n,t){return vw(e,n,t)}let ud,vw=function bw(e,n,t){return 40&e.type?Et(e,t):null};function Ic(e,n,t,r){const i=cd(e,r,n),o=n[Z],l=yw(r.parent||n[it],r,n);if(null!=i)if(Array.isArray(t))for(let _=0;_z&&Mw(e,n,z,!1),Nn(c?2:0,i),t(r,i)}finally{$r(o),Nn(c?3:1,i)}}function pd(e,n,t){if(t_(n)){const r=M(null);try{const o=n.directiveEnd;for(let c=n.directiveStart;cnull;function Rw(e,n,t,r,i){for(let o in n){if(!n.hasOwnProperty(o))continue;const c=n[o];if(void 0===c)continue;r??={};let l,_=fr.None;Array.isArray(c)?(l=c[0],_=c[1]):l=c;let d=o;if(null!==i){if(!i.hasOwnProperty(o))continue;d=i[o]}0===e?Ow(r,t,d,l,_):Ow(r,t,d,l)}return r}function Ow(e,n,t,r,i){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,r):o=e[t]=[n,r],void 0!==i&&o.push(i)}function Lt(e,n,t,r,i,o,c,l){const _=Et(n,t);let p,d=n.inputs;!l&&null!=d&&(p=d[r])?(Ed(e,t,p,r,i),Hr(n)&&function dN(e,n){const t=Bt(n,e);16&t[$]||(t[$]|=64)}(t,n.index)):3&n.type&&(r=function _N(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=c?c(i,n.value||"",r):i,o.setProperty(_,r,i))}function wd(e,n,t,r){if(Eh()){const i=null===r?null:{"":-1},o=function wN(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(c)!=l&&c.push(l),c.push(t,r,o)}}(e,n,r,ho(e,t,i.hostVars,te),i)}function Rn(e,n,t,r,i,o){const c=Et(e,n);!function bd(e,n,t,r,i,o,c){if(null==o)e.removeAttribute(n,i,t);else{const l=null==c?ee(o):c(o,r||"",i);e.setAttribute(n,i,l,t)}}(n[Z],c,o,e.value,t,r,i)}function CN(e,n,t,r,i,o){const c=o[n];if(null!==c)for(let l=0;l0&&(t[i-1][dn]=n),r{Za(e.lView)},consumerOnSignalRead(){this.lView[Qt]=this}},ON={...ce,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=Jn(e.lView);for(;n&&!$w(n[R]);)n=Jn(n);n&&yh(n)},consumerOnSignalRead(){this.lView[Qt]=this}};function $w(e){return 2!==e.type}const xN=100;function Fc(e,n=!0,t=0){const r=e[In],i=r.rendererFactory;i.begin?.();try{!function LN(e,n){const t=Th();try{Ih(!0),Dd(e,n);let r=0;for(;Ja(e);){if(r===xN)throw new F(103,!1);r++,Dd(e,1)}}finally{Ih(t)}}(e,t)}catch(c){throw n&&Ac(e,c),c}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function PN(e,n,t,r){const i=n[$];if(!(256&~i))return;n[In].inlineEffectRunner?.flush(),g_(n);let l=!0,_=null,d=null;$w(e)?(d=function NN(e){return e[Qt]??function kN(e){const n=Uw.pop()??Object.create(FN);return n.lView=e,n}(e)}(n),_=En(d)):null===function j(){return y}()?(l=!1,d=function RN(e){const n=e[Qt]??Object.create(ON);return n.lView=e,n}(n),_=En(d)):n[Qt]&&(Hn(n[Qt]),n[Qt]=null);try{wh(n),function Mh(e){return Q.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&kw(e,n,t,2,r);const p=!(3&~i);if(p){const w=e.preOrderCheckHooks;null!==w&&nc(n,w,null)}else{const w=e.preOrderHooks;null!==w&&rc(n,w,0,null),m_(n,0)}if(function VN(e){for(let n=vm(e);null!==n;n=Em(n)){if(!(n[$]&Ga.HasTransplantedViews))continue;const t=n[Vs];for(let r=0;r-1&&(po(n,r),La(t,r))}this._attachedToViewContainer=!1}Tc(this._lView[R],this._lView)}onDestroy(n){Qa(this._lView,n)}markForCheck(){wo(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[$]&=-129}reattach(){a_(this._lView),this._lView[$]|=128}detectChanges(){this._lView[$]|=1024,Fc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=qi(this._lView),t=this._lView[Br];null!==t&&!n&&od(t,this._lView),pw(this._lView[R],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=n;const t=qi(this._lView),r=this._lView[Br];null!==r&&!t&&gw(r,this._lView),a_(this._lView)}}let er=(()=>{class e{static{this.__NG_ELEMENT_ID__=HN}}return e})();const jN=er,BN=class extends jN{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=Zs(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new yo(i)}};function HN(){return Rc(ve(),I())}function Rc(e,n){return 4&e.type?new BN(n,e,Hs(e,n)):null}let hy=()=>null;function es(e,n){return hy(e,n)}class Xs{}const Io=new V("",{providedIn:"root",factory:()=>!1}),my=new V(""),Ld=new V("");class Ok{}class wy{}class Lk{resolveComponentFactory(n){throw function xk(e){const n=Error(`No component factory found for ${Ke(e)}.`);return n.ngComponent=e,n}(n)}}class Wc{static{this.NULL=new Lk}}class Pd{}let ts=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Pk(){const e=I(),t=Bt(ve().index,e);return(Qe(t)?t:e)[Z]}()}}return e})(),Vk=(()=>{class e{static{this.\u0275prov=J({token:e,providedIn:"root",factory:()=>null})}}return e})();function Bc(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let c=0;c0&&Tw(e,t,o.join(" "))}}(m,he,b,r),void 0!==t&&function Kk(e,n,t){const r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=Zk}}return e})();function Zk(){return Ty(ve(),I())}const Qk=On,Cy=class extends Qk{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Hs(this._hostTNode,this._hostLView)}get injector(){return new Ye(this._hostTNode,this._hostLView)}get parentInjector(){const n=oc(this._hostTNode,this._hostLView);if(b_(n)){const t=Xi(n,this._hostLView),r=Yi(n);return new Ye(t[R].data[r+8],t)}return new Ye(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=Dy(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-We}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const c=es(this._lContainer,n.ssrId),l=n.createEmbeddedViewImpl(t||{},o,c);return this.insertImpl(l,i,Yr(this._hostTNode,c)),l}createComponent(n,t,r,i,o){const c=n&&!function zi(e){return"function"==typeof e}(n);let l;if(c)l=t;else{const b=t||{};l=b.index,r=b.injector,i=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef}const _=c?n:new ko(ae(n)),d=r||this.parentInjector;if(!o&&null==_.ngModule){const S=(c?d:this.parentInjector).get(Zt,null);S&&(o=S)}const p=ae(_.componentType??{}),h=es(this._lContainer,p?.id??null),w=_.create(d,i,h?.firstChild??null,o);return this.insertImpl(w.hostView,l,Yr(this._hostTNode,h)),w}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function I1(e){return ut(e[ze])}(i)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const _=i[ze],d=new Cy(_,_[it],_[ze]);d.detach(d.indexOf(n))}}const o=this._adjustIndex(t),c=this._lContainer;return Qs(c,i,o,r),n.attachToViewContainerRef(),jg(jd(c),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=Dy(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=po(this._lContainer,t);r&&(La(jd(this._lContainer),t),Tc(r[R],r))}detach(n){const t=this._adjustIndex(n,-1),r=po(this._lContainer,t);return r&&null!=La(jd(this._lContainer),t)?new yo(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function Dy(e){return e[8]}function jd(e){return e[8]||(e[8]=[])}function Ty(e,n){let t;const r=n[e.index];return ut(r)?t=r:(t=Pw(r,n,null,e),n[e.index]=t,kc(n,t)),Iy(t,n,e,r),new Cy(t,e,n)}let Iy=function Ny(e,n,t,r){if(e[Mn])return;let i;i=8&t.type?ge(r):function Yk(e,n){const t=e[Z],r=t.createComment(""),i=Et(n,e);return Jr(t,ld(t,i),r,function ZM(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[Mn]=i},Bd=()=>!1;class Hd{constructor(n){this.queryList=n,this.matches=null}clone(){return new Hd(this.queryList)}setDirty(){this.queryList.setDirty()}}class zd{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,i=[];for(let o=0;on.trim())}(n):n}}class Ud{constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r0)r.push(c[l/2]);else{const d=o[l+1],p=n[-_];for(let h=We;h(le(n),n.value);return t[k]=n,t}(e),r=t[k];return n?.equal&&(r.equal=n.equal),t.set=i=>hg(r,i),t.update=i=>function QD(e,n){kt()||gg(),hg(e,n(e.value))}(r,i),t.asReadonly=Wy.bind(t),t}function Wy(){const e=this[k];if(void 0===e.readonlyFn){const n=()=>this();n[k]=e,e.readonlyFn=n}return e.readonlyFn}function Se(e){let n=function Qy(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(fn(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new F(903,!1);i=n.\u0275dir}if(i){if(t){r.push(i);const c=e;c.inputs=zc(e.inputs),c.inputTransforms=zc(e.inputTransforms),c.declaredInputs=zc(e.declaredInputs),c.outputs=zc(e.outputs);const l=i.hostBindings;l&&vA(e,l);const _=i.viewQuery,d=i.contentQueries;if(_&&yA(e,_),d&&bA(e,d),mA(e,i),gT(e.outputs,i.outputs),fn(i)&&i.data.animation){const p=e.data;p.animation=(p.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let c=0;c=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Bi(i.hostAttrs,t=Bi(t,i.hostAttrs))}}(r)}function mA(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=n.inputTransforms[i]}}}function zc(e){return e===Tn?{}:e===pe?[]:e}function yA(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function bA(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function vA(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class rs{}class tb extends rs{constructor(n){super(),this.componentFactoryResolver=new Ey(this),this.instance=null;const t=new As([...n.providers,{provide:rs,useValue:this},{provide:Wc,useValue:this.componentFactoryResolver}],n.parent||za(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Uc(e){return!!function Yd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function xn(e,n,t){return e[n]=t}function je(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function ss(e,n,t,r){const i=je(e,n,t);return je(e,n+1,r)||i}function Ro(e,n,t,r,i,o,c,l,_,d){const p=t+z,h=n.firstCreatePass?function xA(e,n,t,r,i,o,c,l,_){const d=n.consts,p=Qr(n,e,4,c||null,l||null);wd(n,t,p,Yt(d,_)),tc(n,p);const h=p.tView=md(2,p,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,d,null);return null!==n.queries&&(n.queries.template(n,p),h.queries=n.queries.embeddedTView(p)),p}(p,n,e,r,i,o,c,l,_):n.data[p];pn(h,!1);const m=rb(n,e,h,t);Zi()&&Ic(n,e,m,h),ft(m,e);const w=Pw(m,e,m,h);return e[p]=w,kc(e,w),function My(e,n,t){return Bd(e,n,t)}(w,h,e),Ka(h)&&gd(n,e,h),null!=_&&hd(e,h,d),h}function ie(e,n,t,r,i,o,c,l){const _=I(),d=se();return Ro(_,d,e,n,t,r,i,Yt(d.consts,o),c,l),ie}let rb=function sb(e,n,t,r){return kn(!0),n[Z].createComment("")};var si=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(si||{});let ub=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=J({token:e,providedIn:"root",factory:()=>new e})}}return e})();class Lo{constructor(){this.ngZone=H(Ee),this.scheduler=H(Xs),this.errorHandler=H(Fn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[si.EarlyRead,si.Write,si.MixedReadWrite,si.Read]}execute(){this.executing=!0;for(const n of Lo.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(r){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static{this.\u0275prov=J({token:Lo,providedIn:"root",factory:()=>new Lo})}}function Dt(e,n,t,r){const i=I();return je(i,gn(),n)&&(se(),Rn(Me(),i,e,n,t,r)),Dt}function _i(e,n,t,r){return je(e,gn(),t)?n+ee(t)+r:te}function di(e,n,t,r,i,o){const l=ss(e,function Zn(){return Q.lFrame.bindingIndex}(),t,i);return Qn(2),l?n+ee(t)+r+ee(i)+o:te}function Qc(e,n){return e<<17|n<<2}function Sr(e){return e>>17&32767}function df(e){return 2|e}function os(e){return(131068&e)>>2}function ff(e,n){return-131069&e|n<<2}function pf(e){return 1|e}function Vb(e,n,t,r){const i=e[t+1],o=null===n;let c=r?Sr(i):os(i),l=!1;for(;0!==c&&(!1===l||o);){const d=e[c+1];SF(e[c],n)&&(l=!0,e[c+1]=r?pf(d):df(d)),c=r?Sr(d):os(d)}l&&(e[t+1]=r?df(i):pf(i))}function SF(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&ks(e,n)>=0}const Xe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Wb(e){return e.substring(Xe.key,Xe.keyEnd)}function jb(e,n){const t=Xe.textEnd;return t===n?-1:(n=Xe.keyEnd=function IF(e,n,t){for(;n32;)n++;return n}(e,Xe.key=n,t),yi(e,n,t))}function yi(e,n,t){for(;n=0;t=jb(n,t))jt(e,Wb(n),!0)}function qb(e,n){return n>=e.expandoStartIndex}function Gb(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[ot()],c=qb(e,t);Qb(o,r)&&null===n&&!c&&(n=!1),n=function AF(e,n,t,r){const i=function f_(e){const n=Q.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Vo(t=hf(null,e,n,t,r),n.attrs,r),o=null);else{const c=n.directiveStylingLast;if(-1===c||e[c]!==i)if(t=hf(i,e,n,t,r),null===o){let _=function FF(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==os(r))return e[Sr(r)]}(e,n,r);void 0!==_&&Array.isArray(_)&&(_=hf(null,e,n,_[1],r),_=Vo(_,n.attrs,r),function RF(e,n,t,r){e[Sr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,_))}else o=function OF(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(d=!0)):p=t,i)if(0!==_){const m=Sr(e[l+1]);e[r+1]=Qc(m,l),0!==m&&(e[m+1]=ff(e[m+1],r)),e[l+1]=function yF(e,n){return 131071&e|n<<17}(e[l+1],r)}else e[r+1]=Qc(l,0),0!==l&&(e[l+1]=ff(e[l+1],r)),l=r;else e[r+1]=Qc(_,0),0===l?l=r:e[_+1]=ff(e[_+1],r),_=r;d&&(e[r+1]=df(e[r+1])),Vb(e,p,r,!0),Vb(e,p,r,!1),function EF(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&ks(o,n)>=0&&(t[r+1]=pf(t[r+1]))}(n,p,e,r,o),c=Qc(l,_),o?n.classBindings=c:n.styleBindings=c}(i,o,n,t,c,r)}}function hf(e,n,t,r,i){let o=null;const c=t.directiveEnd;let l=t.directiveStylingLast;for(-1===l?l=t.directiveStart:l++;l0;){const _=e[i],d=Array.isArray(_),p=d?_[1]:_,h=null===p;let m=t[i+1];m===te&&(m=h?pe:void 0);let w=h?Bu(m,r):p===r?m:void 0;if(d&&!el(w)&&(w=Bu(_,r)),el(w)&&(l=w,c))return l;const b=e[i+1];i=c?Sr(b):os(b)}if(null!==n){let _=o?n.residualClasses:n.residualStyles;null!=_&&(l=Bu(_,r))}return l}function el(e){return void 0!==e}function Qb(e,n){return!!(e.flags&(n?8:16))}function x(e,n,t,r){const i=I(),o=se(),c=z+e,l=i[Z],_=o.firstCreatePass?function aR(e,n,t,r,i,o){const c=n.consts,_=Qr(n,e,2,r,Yt(c,i));return wd(n,t,_,Yt(c,o)),null!==_.attrs&&Bc(_,_.attrs,!1),null!==_.mergedAttrs&&Bc(_,_.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,_),_}(c,o,i,n,t,r):o.data[c],d=tv(o,i,_,l,n,e);i[c]=d;const p=Ka(_);return pn(_,!0),Iw(l,d,_),!function ni(e){return!(32&~e.flags)}(_)&&Zi()&&Ic(o,i,d,_),0===function M1(){return Q.lFrame.elementDepthCount}()&&ft(d,i),function N1(){Q.lFrame.elementDepthCount++}(),p&&(gd(o,i,_),pd(o,_,i)),null!==r&&hd(i,_),x}function L(){let e=ve();u_()?__():(e=e.parent,pn(e,!1));const n=e;(function A1(e){return Q.skipHydrationRootTNode===e})(n)&&function x1(){Q.skipHydrationRootTNode=null}(),function k1(){Q.lFrame.elementDepthCount--}();const t=se();return t.firstCreatePass&&(tc(t,e),t_(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function G1(e){return!!(8&e.flags)}(n)&&gf(t,n,I(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function K1(e){return!!(16&e.flags)}(n)&&gf(t,n,I(),n.stylesWithoutHost,!1),L}function pt(e,n,t,r){return x(e,n,t,r),L(),pt}let tv=(e,n,t,r,i,o)=>(kn(!0),Dc(r,i,function Lh(){return Q.lFrame.currentNamespace}()));function $t(e,n,t){const r=I(),i=se(),o=e+z,c=i.firstCreatePass?function uR(e,n,t,r,i){const o=n.consts,c=Yt(o,r),l=Qr(n,e,8,"ng-container",c);return null!==c&&Bc(l,c,!0),wd(n,t,l,Yt(o,i)),null!==n.queries&&n.queries.elementStart(n,l),l}(o,i,r,n,t):i.data[o];pn(c,!0);const l=nv(i,r,c,e);return r[o]=l,Zi()&&Ic(i,r,l,c),ft(l,r),Ka(c)&&(gd(i,r,c),pd(i,c,r)),null!=t&&hd(r,c),$t}function qt(){let e=ve();const n=se();return u_()?__():(e=e.parent,pn(e,!1)),n.firstCreatePass&&(tc(n,e),t_(e)&&n.queries.elementEnd(e)),qt}function as(e,n,t){return $t(e,n,t),qt(),as}let nv=(e,n,t,r)=>(kn(!0),id(n[Z],""));function Re(){return I()}const nl="en-US";let av=nl,Dv=(e,n,t)=>{};function X(e,n,t,r){const i=I(),o=se(),c=ve();return function Ef(e,n,t,r,i,o,c){const l=Ka(r),d=e.firstCreatePass&&jw(e),p=n[Ie],h=Ww(n);let m=!0;if(3&r.type||c){const S=Et(r,n),C=c?c(S):S,N=h.length,D=c?q=>c(ge(q[r.index])):r.index;let W=null;if(!c&&l&&(W=function rO(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;o_?l[_]:null}"string"==typeof c&&(o+=2)}return null}(e,n,i,r.index)),null!==W)(W.__ngLastListenerFn__||W).__ngNextListenerFn__=o,W.__ngLastListenerFn__=o,m=!1;else{o=Nv(r,n,p,o),Dv(S,i,o);const q=t.listen(C,i,o);h.push(o,q),d&&d.push(i,D,N,N+1)}}else o=Nv(r,n,p,o);const w=r.outputs;let b;if(m&&null!==w&&(b=w[i])){const S=b.length;if(S)for(let C=0;C-1?Bt(e.index,n):n,5);let l=Mv(n,t,r,o),_=i.__ngNextListenerFn__;for(;_;)l=Mv(n,t,_,o)&&l,_=_.__ngNextListenerFn__;return l}}function B(e=1){return function j1(e){return(Q.lFrame.contextLView=function bh(e,n){for(;e>0;)n=n[xs],e--;return n}(e,Q.lFrame.contextLView))[Ie]}(e)}function sO(e,n){let t=null;const r=function zT(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let i=0;i(kn(!0),function sd(e,n){return e.createText(n)}(n[Z],r));function us(e){return at("",e,""),us}function at(e,n,t){const r=I(),i=_i(r,e,n,t);return i!==te&&Xn(r,ot(),i),at}function Uo(e,n,t,r,i){const o=I(),c=di(o,e,n,t,r,i);return c!==te&&Xn(o,ot(),c),Uo}function Tf(e,n,t,r,i){if(e=K(e),Array.isArray(e))for(let o=0;o>20;if(jr(e)||!e.multi){const w=new Qi(d,i,T),b=Mf(_,n,i?p:p+m,h);-1===b?(S_(ic(l,c),o,_),If(o,e,n.length),n.push(_),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),t.push(w),c.push(w)):(t[b]=w,c[b]=w)}else{const w=Mf(_,n,p+m,h),b=Mf(_,n,p,p+m),C=b>=0&&t[b];if(i&&!C||!i&&!(w>=0&&t[w])){S_(ic(l,c),o,_);const N=function IO(e,n,t,r,i){const o=new Qi(e,t,T);return o.multi=[],o.index=n,o.componentProviders=0,c0(o,i,r&&!t),o}(i?TO:DO,t.length,i,r,d);!i&&C&&(t[b].providerFactory=N),If(o,e,n.length,0),n.push(_),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),t.push(N),c.push(N)}else If(o,e,w>-1?w:b,c0(t[i?b:w],d,!i&&r));!i&&r&&C&&t[b].componentProviders++}}}function If(e,n,t,r){const i=jr(n),o=function t1(e){return!!e.useClass}(n);if(i||o){const _=(o?K(n.useClass):n).prototype.ngOnDestroy;if(_){const d=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const p=d.indexOf(t);-1===p?d.push(t,[r,_]):d[p+1].push(r,_)}else d.push(t,_)}}}function c0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Mf(e,n,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function CO(e,n,t){const r=se();if(r.firstCreatePass){const i=fn(e);Tf(t,r.data,r.blueprint,i,!0),Tf(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let MO=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=$u(0,t.type),i=r.length>0?function nb(e,n,t=null){return new tb({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=J({token:e,providedIn:"environment",factory:()=>new e(U(Zt))})}}return e})();function wt(e){Ct("NgStandalone"),e.getStandaloneInjector=n=>n.get(MO).getOrCreateStandaloneInjector(e)}function cl(e,n,t){const r=St()+e,i=I();return i[r]===te?xn(i,r,t?n.call(t):n()):function Fo(e,n){return e[n]}(i,r)}function tn(e,n,t,r){return function d0(e,n,t,r,i,o){const c=n+t;return je(e,c,i)?xn(e,c+1,o?r.call(o,i):r(i)):$o(e,c+1)}(I(),St(),e,n,t,r)}function vi(e,n,t,r,i){return function f0(e,n,t,r,i,o,c){const l=n+t;return ss(e,l,i,o)?xn(e,l+2,c?r.call(c,i,o):r(i,o)):$o(e,l+2)}(I(),St(),e,n,t,r,i)}function _0(e,n,t,r,i,o){return function p0(e,n,t,r,i,o,c,l){const _=n+t;return function $c(e,n,t,r,i){const o=ss(e,n,t,r);return je(e,n+2,i)||o}(e,_,i,o,c)?xn(e,_+3,l?r.call(l,i,o,c):r(i,o,c)):$o(e,_+3)}(I(),St(),e,n,t,r,i,o)}function $o(e,n){const t=e[n];return t===te?void 0:t}function _s(e,n){return Rc(e,n)}const L0=new V("");function fl(e){return!!e&&"function"==typeof e.then}function P0(e){return!!e&&"function"==typeof e.subscribe}const V0=new V("");let Vf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=H(V0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(fl(o))t.push(o);else if(P0(o)){const c=new Promise((l,_)=>{o.subscribe({complete:l,error:_})});t.push(c)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Wf=new V("");let tr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=H(EI),this.afterRenderManager=H(ub),this.zonelessEnabled=H(Io),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Lr,this.afterTick=new Lr,this.componentTypes=[],this.components=[],this.isStable=H(hr).hasPendingTasks.pipe(ur(t=>!t)),this._injector=H(Zt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof wy;if(!this._injector.get(Vf).done)throw!i&&function Wr(e){const n=ae(e)||Je(e)||st(e);return null!==n&&n.standalone}(t),new F(405,!1);let c;c=i?t:this._injector.get(Wc).resolveComponentFactory(t),this.componentTypes.push(c.componentType);const l=function Wx(e){return e.isBoundToModule}(c)?void 0:this._injector.get(rs),d=c.create(dt.NULL,[],r||c.selector,l),p=d.location.nativeElement,h=d.injector.get(L0,null);return h?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),pl(this.components,d),h?.unregisterApplication(p)}),this._loadComponent(d),d}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new F(101,!1);const t=M(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,M(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(Pd,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)Hx(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>Ja(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;pl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Wf,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>pl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new F(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pl(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Hx(e,n,t,r){(t||Ja(e))&&Fc(e,n,t&&!r?0:1)}let qx=(()=>{class e{constructor(){this.zone=H(Ee),this.changeDetectionScheduler=H(Xs),this.applicationRef=H(tr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function jf({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new Ee({...Bf(),scheduleInRootZone:t}),[{provide:Ee,useFactory:e},{provide:qn,multi:!0,useFactory:()=>{const r=H(qx,{optional:!0});return()=>r.initialize()}},{provide:qn,multi:!0,useFactory:()=>{const r=H(Kx);return()=>{r.initialize()}}},!0===n?{provide:my,useValue:!0}:[],{provide:Ld,useValue:t??sm}]}function Bf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Kx=(()=>{class e{constructor(){this.subscription=new Jt,this.initialized=!1,this.zone=H(Ee),this.pendingTasks=H(hr)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ee.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ee.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Jo=(()=>{class e{constructor(){this.appRef=H(tr),this.taskService=H(hr),this.ngZone=H(Ee),this.zonelessEnabled=H(Io),this.disableScheduling=H(my,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Jt,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(_c):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(H(Ld,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof k_||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?om:im;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(_c+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,om(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Cr=new V("",{providedIn:"root",factory:()=>H(Cr,ue.Optional|ue.SkipSelf)||function Jx(){return typeof $localize<"u"&&$localize.locale||nl}()}),hl=new V("");function ml(e){return!e.moduleRef}let Dr=null;let Gt=(()=>{class e{static{this.__NG_ELEMENT_ID__=iL}}return e})();function iL(e){return function oL(e,n,t){if(Hr(e)&&!t){const r=Bt(e.index,n);return new yo(r,r)}return 175&e.type?new yo(n[xe],n):null}(ve(),I(),!(16&~e))}class tE{constructor(){}supports(n){return Uc(n)}create(n){return new _L(n)}}const uL=(e,n)=>n;class _L{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||uL}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const c=!r||t&&t.currentIndex{c=this._trackByFn(i,l),null!==t&&Object.is(t.trackById,c)?(r&&(t=this._verifyReinsertion(t,l,c,i)),Object.is(t.item,l)||this._addIdentityChange(t,l)):(t=this._mismatch(t,l,c,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new dL(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new nE),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nE),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class dL{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class fL{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class nE{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new fL,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function rE(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{class e{static{this.\u0275prov=J({token:e,providedIn:"root",factory:iE})}constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||iE()),deps:[[e,new Wu,new Vu]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new F(901,!1)}}return e})();function NL(e){try{const{rootComponent:n,appProviders:t,platformProviders:r}=e,i=function sL(e=[]){if(Dr)return Dr;const n=function J0(e=[],n){return dt.create({name:n,providers:[{provide:Ku,useValue:"platform"},{provide:hl,useValue:new Set([()=>Dr=null])},...e]})}(e);return Dr=n,function W0(){!function JD(e){Ca=e}(()=>{throw new F(600,!1)})}(),function Z0(e){e.get(Am,null)?.forEach(t=>t())}(n),n}(r),o=[jf({}),{provide:Xs,useExisting:Jo},...t||[]];return function q0(e){const n=ml(e)?e.r3Injector:e.moduleRef.injector,t=n.get(Ee);return t.run(()=>{ml(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(Fn,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:o=>{r.handleError(o)}})}),ml(e)){const o=()=>n.destroy(),c=e.platformInjector.get(hl);c.add(o),n.onDestroy(()=>{i.unsubscribe(),c.delete(o)})}else{const o=()=>e.moduleRef.destroy(),c=e.platformInjector.get(hl);c.add(o),e.moduleRef.onDestroy(()=>{pl(e.allPlatformModules,e.moduleRef),i.unsubscribe(),c.delete(o)})}return function Bx(e,n,t){try{const r=t();return fl(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(r,t,()=>{const o=n.get(Vf);return o.runInitializers(),o.donePromise.then(()=>{if(function yR(e){"string"==typeof e&&(av=e.toLowerCase().replace(/_/g,"-"))}(n.get(Cr,nl)||nl),ml(e)){const l=n.get(tr);return void 0!==e.rootComponent&&l.bootstrap(e.rootComponent),l}return function tL(e,n){const t=e.injector.get(tr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new F(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new tb({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:n})}catch(n){return Promise.reject(n)}}function Xo(e,n){Ct("NgSignals");const t=function du(e){const n=Object.create(fu);n.computation=e;const t=()=>{if(tt(n),le(n),n.value===Es)throw n.error;return n.value};return t[k]=n,t}(e);return n?.equal&&(t[k].equal=n.equal),t}function Vn(e){const n=M(null);try{return e()}finally{M(n)}}function Yf(e){return e[e.length-1]}function Tr(e){return this instanceof Tr?(this.v=e,this):new Tr(e)}function FE(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function np(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(c){return new Promise(function(l,_){!function i(o,c,l,_){Promise.resolve(_).then(function(d){o({value:d,done:l})},c)}(l,_,(c=e[o](c)).done,c.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const RE=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function OE(e){return Ve(e?.then)}function xE(e){return Ve(e[Eu])}function LE(e){return Symbol.asyncIterator&&Ve(e?.[Symbol.asyncIterator])}function PE(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const VE=function kP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function WE(e){return Ve(e?.[VE])}function jE(e){return function AE(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",function c(w){return function(b){return Promise.resolve(b).then(w,h)}}),i[Symbol.asyncIterator]=function(){return this},i;function l(w,b){r[w]&&(i[w]=function(S){return new Promise(function(C,N){o.push([w,S,C,N])>1||_(w,S)})},b&&(i[w]=b(i[w])))}function _(w,b){try{!function d(w){w.value instanceof Tr?Promise.resolve(w.value.v).then(p,h):m(o[0][2],w)}(r[w](b))}catch(S){m(o[0][3],S)}}function p(w){_("next",w)}function h(w){_("throw",w)}function m(w,b){w(b),o.shift(),o.length&&_(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Tr(t.read());if(i)return yield Tr(void 0);yield yield Tr(r)}}finally{t.releaseLock()}})}function BE(e){return Ve(e?.getReader)}function fs(e){if(e instanceof At)return e;if(null!=e){if(xE(e))return function AP(e){return new At(n=>{const t=e[Eu]();if(Ve(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(RE(e))return function FP(e){return new At(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Eg)})}(e);if(LE(e))return HE(e);if(WE(e))return function OP(e){return new At(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(BE(e))return function xP(e){return HE(jE(e))}(e)}throw PE(e)}function HE(e){return new At(n=>{(function LP(e,n){var t,r,i,o;return function NE(e,n,t,r){return new(t||(t=Promise))(function(o,c){function l(p){try{d(r.next(p))}catch(h){c(h)}}function _(p){try{d(r.throw(p))}catch(h){c(h)}}function d(p){p.done?o(p.value):function i(o){return o instanceof t?o:new t(function(c){c(o)})}(p.value).then(l,_)}d((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=FE(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(c){i={error:c}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Ir(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function zE(e,n=0){return Pr((t,r)=>{t.subscribe(lr(r,i=>Ir(r,e,()=>r.next(i),n),()=>Ir(r,e,()=>r.complete(),n),i=>Ir(r,e,()=>r.error(i),n)))})}function UE(e,n=0){return Pr((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function $E(e,n){if(!e)throw new Error("Iterable cannot be null");return new At(t=>{Ir(t,n,()=>{const r=e[Symbol.asyncIterator]();Ir(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function rp(e,n){return n?function HP(e,n){if(null!=e){if(xE(e))return function PP(e,n){return fs(e).pipe(UE(n),zE(n))}(e,n);if(RE(e))return function WP(e,n){return new At(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(OE(e))return function VP(e,n){return fs(e).pipe(UE(n),zE(n))}(e,n);if(LE(e))return $E(e,n);if(WE(e))return function jP(e,n){return new At(t=>{let r;return Ir(t,n,()=>{r=e[VE](),Ir(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(c){return void t.error(c)}o?t.complete():t.next(i)},0,!0)}),()=>Ve(r?.return)&&r.return()})}(e,n);if(BE(e))return function BP(e,n){return $E(jE(e),n)}(e,n)}throw PE(e)}(e,n):fs(e)}function qE(...e){return rp(e,function rP(e){return function tP(e){return e&&Ve(e.schedule)}(Yf(e))?e.pop():void 0}(e))}function sp(e,n,t=1/0){return Ve(n)?sp((r,i)=>ur((o,c)=>n(r,o,i,c))(fs(e(r,i))),t):("number"==typeof n&&(t=n),Pr((r,i)=>function zP(e,n,t,r,i,o,c,l){const _=[];let d=0,p=0,h=!1;const m=()=>{h&&!_.length&&!d&&n.complete()},w=S=>d{o&&n.next(S),d++;let C=!1;fs(t(S,p++)).subscribe(lr(n,N=>{i?.(N),o?w(N):n.next(N)},()=>{C=!0},void 0,()=>{if(C)try{for(d--;_.length&&db(N)):b(N)}m()}catch(N){n.error(N)}}))};return e.subscribe(lr(n,w,()=>{h=!0,m()})),()=>{l?.()}}(r,i,e,t)))}function GE(e){return Pr((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}let KE=null;function ea(){return KE}class KP{}const wn=new V("");function rS(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}const pp=/\s+/,sS=[];let sr=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=sS,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(pp):sS}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(pp):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(pp).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||e)(T(Xt),T(ts))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();class xV{constructor(n,t,r,i){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let na=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,c)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new xV(i.item,this._ngForOf,-1,-1),null===c?void 0:c);else if(null==c)r.remove(null===o?void 0:o);else if(null!==o){const l=r.get(o);r.move(l,c),oS(l,i)}});for(let i=0,o=r.length;i{oS(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(T(On),T(er),T(Kf))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function oS(e,n){e.context.$implicit=n.item}let sn=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new LV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){aS("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){aS("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(T(On),T(er))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class LV{constructor(){this.$implicit=null,this.ngIf=null}}function aS(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ke(n)}'.`)}let lS=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||e)(T(On))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Kn]})}}return e})(),Ge=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({})}}return e})();function dS(e){return"server"===e}class fS{}class Bl{}class Hl{}class on{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),c=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(c):this.headers.set(o,[c])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof on?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new on;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof on?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let c=this.headers.get(t);if(!c)return;c=c.filter(l=>-1===o.indexOf(l)),0===c.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,c)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class V2{encodeKey(n){return CS(n)}encodeValue(n){return CS(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const j2=/%(\d[a-f0-9])/gi,B2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function CS(e){return encodeURIComponent(e).replace(j2,(n,t)=>B2[t]??n)}function zl(e){return`${e}`}class Mr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new V2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function W2(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[c,l]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],_=t.get(c)||[];_.push(l),t.set(c,_)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map(zl):[zl(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Mr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(zl(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(zl(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class H2{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function DS(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function TS(e){return typeof Blob<"u"&&e instanceof Blob}function IS(e){return typeof FormData<"u"&&e instanceof FormData}class ia{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function z2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new on,this.context??=new H2,this.params){const c=this.params.toString();if(0===c.length)this.urlWithParams=t;else{const l=t.indexOf("?");this.urlWithParams=t+(-1===l?"?":lm.set(w,n.setHeaders[w]),d)),n.setParams&&(p=Object.keys(n.setParams).reduce((m,w)=>m.set(w,n.setParams[w]),p)),new ia(t,r,c,{params:p,headers:d,context:h,reportProgress:_,responseType:i,withCredentials:l,transferCache:o})}}var Nr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Nr||{});class Ep{constructor(n,t=200,r="OK"){this.headers=n.headers||new on,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Ul extends Ep{constructor(n={}){super(n),this.type=Nr.ResponseHeader}clone(n={}){return new Ul({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ps extends Ep{constructor(n={}){super(n),this.type=Nr.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ps({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ti extends Ep{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Sp(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let G2=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof ia)o=t;else{let _,d;_=i.headers instanceof on?i.headers:new on(i.headers),i.params&&(d=i.params instanceof Mr?i.params:new Mr({fromObject:i.params})),o=new ia(t,r,void 0!==i.body?i.body:null,{headers:_,context:i.context,params:d,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const c=qE(o).pipe(function UP(e,n){return Ve(n)?sp(e,n,1):sp(e,1)}(_=>this.handler.handle(_)));if(t instanceof ia||"events"===i.observe)return c;const l=c.pipe(function $P(e,n){return Pr((t,r)=>{let i=0;t.subscribe(lr(r,o=>e.call(n,o,i++)&&r.next(o)))})}(_=>_ instanceof ps));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(ur(_=>{if(null!==_.body&&!(_.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return _.body}));case"blob":return l.pipe(ur(_=>{if(null!==_.body&&!(_.body instanceof Blob))throw new Error("Response is not a Blob.");return _.body}));case"text":return l.pipe(ur(_=>{if(null!==_.body&&"string"!=typeof _.body)throw new Error("Response is not a string.");return _.body}));default:return l.pipe(ur(_=>_.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Mr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Sp(i,r))}post(t,r,i={}){return this.request("POST",t,Sp(i,r))}put(t,r,i={}){return this.request("PUT",t,Sp(i,r))}static{this.\u0275fac=function(r){return new(r||e)(U(Bl))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const K2=/^\)\]\}',?\n/;function NS(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let Cp=(()=>{class e{constructor(){this.fetchImpl=H(Z2,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=H(Ee)}handle(t){return new At(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(Dp,o=>r.error(new Ti({error:o}))),()=>i.abort()})}doRequest(t,r,i){var o=this;return(0,u.A)(function*(){const c=o.createRequestInit(t);let l;try{const b=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:r,...c}));(function Q2(e){e.then(Dp,Dp)})(b),i.next({type:Nr.Sent}),l=yield b}catch(b){return void i.error(new Ti({error:b,status:b.status??0,statusText:b.statusText,url:t.urlWithParams,headers:b.headers}))}const _=new on(l.headers),d=l.statusText,p=NS(l)??t.urlWithParams;let h=l.status,m=null;if(t.reportProgress&&i.next(new Ul({headers:_,status:h,statusText:d,url:p})),l.body){const b=l.headers.get("content-length"),S=[],C=l.body.getReader();let D,W,N=0;const q=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular((0,u.A)(function*(){for(;;){const{done:he,value:Pe}=yield C.read();if(he)break;if(S.push(Pe),N+=Pe.length,t.reportProgress){W="text"===t.responseType?(W??"")+(D??=new TextDecoder).decode(Pe,{stream:!0}):void 0;const ir=()=>i.next({type:Nr.DownloadProgress,total:b?+b:void 0,loaded:N,partialText:W});q?q.run(ir):ir()}}}));const oe=o.concatChunks(S,N);try{const he=l.headers.get("Content-Type")??"";m=o.parseBody(t,oe,he)}catch(he){return void i.error(new Ti({error:he,headers:new on(l.headers),status:l.status,statusText:l.statusText,url:NS(l)??t.urlWithParams}))}}0===h&&(h=m?200:0),h>=200&&h<300?(i.next(new ps({body:m,headers:_,status:h,statusText:d,url:p})),i.complete()):i.error(new Ti({error:m,headers:_,status:h,statusText:d,url:p}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const o=(new TextDecoder).decode(r).replace(K2,"");return""===o?null:JSON.parse(o);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,c)=>r[o]=c.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let o=0;for(const c of t)i.set(c,o),o+=c.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();class Z2{}function Dp(){}function kS(e,n){return n(e)}function Y2(e,n){return(t,r)=>n.intercept(t,{handle:i=>e(i,r)})}const eW=new V(""),oa=new V(""),AS=new V(""),FS=new V("",{providedIn:"root",factory:()=>!0});function tW(){let e=null;return(n,t)=>{null===e&&(e=(H(eW,{optional:!0})??[]).reduceRight(Y2,kS));const r=H(hr);if(H(FS)){const o=r.add();return e(n,t).pipe(GE(()=>r.remove(o)))}return e(n,t)}}let RS=(()=>{class e extends Bl{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=H(hr),this.contributeToStability=H(FS)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(oa),...this.injector.get(AS,[])]));this.chain=r.reduceRight((i,o)=>function X2(e,n,t){return(r,i)=>function c1(e,n){e instanceof As&&e.assertNotDestroyed();const r=dr(e),i=Ft(void 0);try{return n()}finally{dr(r),Ft(i)}}(t,()=>n(r,o=>e(o,i)))}(i,o,this.injector),kS)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(GE(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(U(Hl),U(Zt))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const oW=/^\)\]\}',?\n/;let xS=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new F(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?rp(r.\u0275loadImpl()):qE(null)).pipe(function qP(e,n){return Pr((t,r)=>{let i=null,o=0,c=!1;const l=()=>c&&!i&&r.complete();t.subscribe(lr(r,_=>{i?.unsubscribe();let d=0;const p=o++;fs(e(_,p)).subscribe(i=lr(r,h=>r.next(n?n(_,h,p,d++):h),()=>{i=null,l()}))},()=>{c=!0,l()}))})}(()=>new At(o=>{const c=r.build();if(c.open(t.method,t.urlWithParams),t.withCredentials&&(c.withCredentials=!0),t.headers.forEach((S,C)=>c.setRequestHeader(S,C.join(","))),t.headers.has("Accept")||c.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const S=t.detectContentTypeHeader();null!==S&&c.setRequestHeader("Content-Type",S)}if(t.responseType){const S=t.responseType.toLowerCase();c.responseType="json"!==S?S:"text"}const l=t.serializeBody();let _=null;const d=()=>{if(null!==_)return _;const S=c.statusText||"OK",C=new on(c.getAllResponseHeaders()),N=function aW(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(c)||t.url;return _=new Ul({headers:C,status:c.status,statusText:S,url:N}),_},p=()=>{let{headers:S,status:C,statusText:N,url:D}=d(),W=null;204!==C&&(W=typeof c.response>"u"?c.responseText:c.response),0===C&&(C=W?200:0);let q=C>=200&&C<300;if("json"===t.responseType&&"string"==typeof W){const oe=W;W=W.replace(oW,"");try{W=""!==W?JSON.parse(W):null}catch(he){W=oe,q&&(q=!1,W={error:he,text:W})}}q?(o.next(new ps({body:W,headers:S,status:C,statusText:N,url:D||void 0})),o.complete()):o.error(new Ti({error:W,headers:S,status:C,statusText:N,url:D||void 0}))},h=S=>{const{url:C}=d(),N=new Ti({error:S,status:c.status||0,statusText:c.statusText||"Unknown Error",url:C||void 0});o.error(N)};let m=!1;const w=S=>{m||(o.next(d()),m=!0);let C={type:Nr.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(C.total=S.total),"text"===t.responseType&&c.responseText&&(C.partialText=c.responseText),o.next(C)},b=S=>{let C={type:Nr.UploadProgress,loaded:S.loaded};S.lengthComputable&&(C.total=S.total),o.next(C)};return c.addEventListener("load",p),c.addEventListener("error",h),c.addEventListener("timeout",h),c.addEventListener("abort",h),t.reportProgress&&(c.addEventListener("progress",w),null!==l&&c.upload&&c.upload.addEventListener("progress",b)),c.send(l),o.next({type:Nr.Sent}),()=>{c.removeEventListener("error",h),c.removeEventListener("abort",h),c.removeEventListener("load",p),c.removeEventListener("timeout",h),t.reportProgress&&(c.removeEventListener("progress",w),null!==l&&c.upload&&c.upload.removeEventListener("progress",b)),c.readyState!==c.DONE&&c.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(U(fS))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const Tp=new V(""),LS=new V("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),PS=new V("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class VS{}let uW=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=rS(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(U(wn),U(wr),U(LS))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();function _W(e,n){const t=e.url.toLowerCase();if(!H(Tp)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=H(VS).getToken(),i=H(PS);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var kr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(kr||{});const WS=new V("");class EW extends KP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ip extends EW{static makeCurrent(){!function GP(e){KE??=e}(new Ip)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function SW(){return aa=aa||document.querySelector("base"),aa?aa.getAttribute("href"):null}();return null==t?null:function CW(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){aa=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return rS(document.cookie,n)}}let aa=null,TW=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const Mp=new V("");let GS=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new F(5101,!1);return this._eventNameToPlugin.set(t,r),r}static{this.\u0275fac=function(r){return new(r||e)(U(Mp),U(Ee))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();class KS{constructor(n){this._doc=n}}const Np="ng-app-id";let JS=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=dS(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Np}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(Np),o;{const c=this.doc.createElement("style");return this.nonce&&c.setAttribute("nonce",this.nonce),c.textContent=r,this.platformIsServer&&c.setAttribute(Np,this.appId),t.appendChild(c),c}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),o=this.styleRef,c=o.get(r)?.elements;c?c.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(U(wn),U(so),U(Fm,8),U(wr))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const kp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ap=/%COMP%/g,kW=new V("",{providedIn:"root",factory:()=>!0});function QS(e,n){return n.map(t=>t.replace(Ap,e))}let YS=(()=>{class e{constructor(t,r,i,o,c,l,_,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=c,this.platformId=l,this.ngZone=_,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=dS(l),this.defaultRenderer=new Fp(t,c,_,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===un.ShadowDom&&(r={...r,encapsulation:un.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof eC?i.applyToHost(t):i instanceof Rp&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const c=this.doc,l=this.ngZone,_=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case un.Emulated:o=new eC(_,d,r,this.appId,p,c,l,h);break;case un.ShadowDom:return new OW(_,d,t,r,c,l,this.nonce,h);default:o=new Rp(_,d,r,p,c,l,h)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(U(GS),U(JS),U(so),U(kW),U(wn),U(wr),U(Ee),U(Fm))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();class Fp{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(kp[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(XS(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(XS(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new F(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=kp[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=kp[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(br.DashCase|br.Important)?n.style.setProperty(t,r,i&br.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&br.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=ea().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function XS(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class OW extends Fp{constructor(n,t,r,i,o,c,l,_){super(n,o,c,_),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=QS(i.id,i.styles);for(const p of d){const h=document.createElement("style");l&&h.setAttribute("nonce",l),h.textContent=p,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Rp extends Fp{constructor(n,t,r,i,o,c,l,_){super(n,o,c,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=_?QS(_,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class eC extends Rp{constructor(n,t,r,i,o,c,l,_){const d=i+"-"+r.id;super(n,t,r,o,c,l,_,d),this.contentAttr=function AW(e){return"_ngcontent-%COMP%".replace(Ap,e)}(d),this.hostAttr=function FW(e){return"_nghost-%COMP%".replace(Ap,e)}(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}const tC=["alt","control","meta","shift"],LW={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},PW={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};function nC(e){return{appProviders:[...$W,...e?.providers??[]],platformProviders:zW}}const zW=[{provide:wr,useValue:"browser"},{provide:Am,useValue:function jW(){Ip.makeCurrent()},multi:!0},{provide:wn,useFactory:function HW(){return function UI(e){L_=e}(document),document},deps:[]}],$W=[{provide:Ku,useValue:"root"},{provide:Fn,useFactory:function BW(){return new Fn},deps:[]},{provide:Mp,useClass:(()=>{class e extends KS{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})(),multi:!0,deps:[wn,Ee,wr]},{provide:Mp,useClass:(()=>{class e extends KS{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),c=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ea().onAndCancel(t,o.domEventName,c))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let c="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),c="code."),tC.forEach(d=>{const p=r.indexOf(d);p>-1&&(r.splice(p,1),c+=d+".")}),c+=o,0!=r.length||0===o.length)return null;const _={};return _.domEventName=i,_.fullKey=c,_}static matchEventFullKeyCode(t,r){let i=LW[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),tC.forEach(c=>{c!==i&&(0,PW[c])(t)&&(o+=c+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static{this.\u0275fac=function(r){return new(r||e)(U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})(),multi:!0,deps:[wn]},YS,JS,GS,{provide:Pd,useExisting:YS},{provide:fS,useClass:TW,deps:[]},[]];var A=a(8825);const Ii=new V("SDK"),iC=new V("wasm_asset_path"),oC=new V("rpc_address"),aC=new V("node_address"),cC=new V("verbosity"),QW=function ZW(e,n){const t={value:void 0};return[{provide:V0,useFactory:(r,i,o,c)=>(0,u.A)(function*(){return t.value=yield n({wasm_asset_path:r,rpc_address:i,node_address:o,verbosity:c})}),multi:!0,deps:[iC,oC,aC,cC]},{provide:e,useFactory:()=>{if(!H(Vf).done)throw new Error(`Cannot inject ${e} until bootstrap is complete.`);return t.value}}]}(Ii,function(){var e=(0,u.A)(function*(n){return(yield(0,A.Ay)(n.wasm_asset_path))&&new A.hp(n.rpc_address,n.node_address,n.verbosity)});return function(t){return e.apply(this,arguments)}}());let YW=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({providers:QW,imports:[Ge]})}}return e})();const Wn=new V("EnvironmentConfig"),Op=new V("EnvironmentConfig"),lC=["deploy","transfer","put_deploy","speculative_deploy","speculative_transfer","speculative_exec_deploy","sign_deploy","call_entrypoint_deploy","install"],XW=["make_deploy","make_transfer",...lC],an={wasm_asset_path:"assets/casper_rust_wasm_sdk_bg.wasm",default_action:"get_node_status",verbosity:A.WT.High,minimum_transfer:"2500000000",TTL:"30m",standard_payment_amount:"100000000",default_pricing_mode:A.MK.Fixed,default_gas_price_tolerance:"1",default_additional_computation_factor:"0",default_is_install_upgrade:!0,action_needs_secret_key:lC,action_needs_public_key:XW,networks:{"js-node-launcher":{rpc_address:"http://localhost:7777",node_address:"localhost:7779",stream_address:"http://localhost:9999/events/main",chain_name:"casper-net-1"},ntcl:{rpc_address:"http://localhost:11101",node_address:"localhost:4300",stream_address:"http://localhost:18101/events/main",chain_name:"casper-net-1"},integration:{rpc_address:"https://rpc.integration.casperlabs.io",node_address:"localhost:7779",stream_address:"https://events.integration.casperlabs.io/events/main",chain_name:"integration-test"},testnet:{rpc_address:"https://rpc.testnet.casperlabs.io",node_address:"localhost:7779",stream_address:"https://events.testnet.casperlabs.io/events/main",chain_name:"casper-test"},mainnet:{rpc_address:"https://rpc.mainnet.casperlabs.io",node_address:"localhost:7779",stream_address:"https://events.mainnet.casperlabs.io/events/main",chain_name:"casper"},custom:{rpc_address:"http://3.136.227.9:7777",node_address:"localhost:4300",stream_address:"http://3.136.227.9:9999/events/main",chain_name:"casper-test"},dev:{rpc_address:"http://localhost:4200",node_address:"localhost:4300",stream_address:"http://localhost:4200/events/main",chain_name:"casper-net-1"}},localhost:"localhost",app_port:"4200",default_port:"7777",default_protocol:"http://"},xp={production:!0,default_network:"integration",localhost_to_gateway:!1},{isArray:ej}=Array,{getPrototypeOf:tj,prototype:nj,keys:rj}=Object;const{isArray:oj}=Array;function lj(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function uj(...e){const n=function nP(e){return Ve(Yf(e))?e.pop():void 0}(e),{args:t,keys:r}=function sj(e){if(1===e.length){const n=e[0];if(ej(n))return{args:n,keys:null};if(function ij(e){return e&&"object"==typeof e&&tj(e)===nj}(n)){const t=rj(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new At(o=>{const{length:c}=t;if(!c)return void o.complete();const l=new Array(c);let _=c,d=c;for(let p=0;p{h||(h=!0,d--),l[p]=m},()=>_--,void 0,()=>{(!_||!h)&&(d||o.next(r?lj(r,l):l),o.complete())}))}});return n?i.pipe(function cj(e){return ur(n=>function aj(e,n){return oj(n)?e(...n):e(n)}(e,n))}(n)):i}let uC=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(r){return new(r||e)(T(ts),T(Xt))}}static{this.\u0275dir=ne({type:e})}}return e})(),ms=(()=>{class e extends uC{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,features:[Se]})}}return e})();const jn=new V(""),_j={provide:jn,useExisting:Te(()=>Lp),multi:!0};let Lp=(()=>{class e extends ms{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&X("change",function(c){return i.onChange(c.target.checked)})("blur",function(){return i.onTouched()})},features:[Le([_j]),Se]})}}return e})();const dj={provide:jn,useExisting:Te(()=>ca),multi:!0},pj=new V("");let ca=(()=>{class e extends uC{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function fj(){const e=ea()?ea().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(r){return new(r||e)(T(ts),T(Xt),T(pj,8))}}static{this.\u0275dir=ne({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&X("input",function(c){return i._handleInput(c.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(c){return i._compositionEnd(c.target.value)})},features:[Le([dj]),Se]})}}return e})();function Ar(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function _C(e){return null!=e&&"number"==typeof e.length}const yt=new V(""),Fr=new V(""),gj=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class hj{static min(n){return function dC(e){return n=>{if(Ar(n.value)||Ar(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(Ar(n.value)||Ar(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function pC(e){return Ar(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function gC(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function hC(e){return Ar(e.value)||gj.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function mC(e){return n=>Ar(n.value)||!_C(n.value)?null:n.value.length_C(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function yC(e){if(!e)return Gl;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Ar(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function Gl(e){return null}function bC(e){return null!=e}function vC(e){return fl(e)?rp(e):e}function EC(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function SC(e,n){return n.map(t=>t(e))}function CC(e){return e.map(n=>function mj(e){return!e.validate}(n)?n:t=>n.validate(t))}function DC(e){if(!e)return null;const n=e.filter(bC);return 0==n.length?null:function(t){return EC(SC(t,n))}}function Pp(e){return null!=e?DC(CC(e)):null}function TC(e){if(!e)return null;const n=e.filter(bC);return 0==n.length?null:function(t){return uj(SC(t,n).map(vC)).pipe(ur(EC))}}function Vp(e){return null!=e?TC(CC(e)):null}function IC(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function MC(e){return e._rawValidators}function NC(e){return e._rawAsyncValidators}function Wp(e){return e?Array.isArray(e)?e:[e]:[]}function Kl(e,n){return Array.isArray(e)?e.includes(n):e===n}function kC(e,n){const t=Wp(n);return Wp(e).forEach(i=>{Kl(t,i)||t.push(i)}),t}function AC(e,n){return Wp(n).filter(t=>!Kl(e,t))}class FC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Pp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Vp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Nt extends FC{get formDirective(){return null}get path(){return null}}class Rr extends FC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class RC{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Jl=(()=>{class e extends RC{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(T(Rr,2))}}static{this.\u0275dir=ne({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Yc("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Se]})}}return e})(),la=(()=>{class e extends RC{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(T(Nt,10))}}static{this.\u0275dir=ne({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Yc("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Se]})}}return e})();const ua="VALID",Ql="INVALID",Mi="PENDING",_a="DISABLED";class Ni{}class xC extends Ni{constructor(n,t){super(),this.value=n,this.source=t}}class Hp extends Ni{constructor(n,t){super(),this.pristine=n,this.source=t}}class zp extends Ni{constructor(n,t){super(),this.touched=n,this.source=t}}class Yl extends Ni{constructor(n,t){super(),this.status=n,this.source=t}}class Ej extends Ni{constructor(n){super(),this.source=n}}class Sj extends Ni{constructor(n){super(),this.source=n}}function Up(e){return(Xl(e)?e.validators:e)||null}function $p(e,n){return(Xl(n)?n.asyncValidators:e)||null}function Xl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function LC(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new F(1e3,"");if(!r[t])throw new F(1001,"")}function PC(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new F(1002,"")})}class eu{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Xo(()=>this.statusReactive()),this.statusReactive=ei(void 0),this._pristine=Xo(()=>this.pristineReactive()),this.pristineReactive=ei(!0),this._touched=Xo(()=>this.touchedReactive()),this.touchedReactive=ei(!1),this._events=new Lr,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Vn(this.statusReactive)}set status(n){Vn(()=>this.statusReactive.set(n))}get valid(){return this.status===ua}get invalid(){return this.status===Ql}get pending(){return this.status==Mi}get disabled(){return this.status===_a}get enabled(){return this.status!==_a}get pristine(){return Vn(this.pristineReactive)}set pristine(n){Vn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Vn(this.touchedReactive)}set touched(n){Vn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(kC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(kC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(AC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(AC(n,this._rawAsyncValidators))}hasValidator(n){return Kl(this._rawValidators,n)}hasAsyncValidator(n){return Kl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new zp(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new zp(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Hp(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new Hp(!0,r))}markAsPending(n={}){this.status=Mi;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new Yl(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=_a,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new xC(this.value,r)),this._events.next(new Yl(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ua,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ua||this.status===Mi)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new xC(this.value,t)),this._events.next(new Yl(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_a:ua}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Mi,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=vC(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new Yl(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new Fe,this.statusChanges=new Fe}_calculateStatus(){return this._allControlsDisabled()?_a:this.errors?Ql:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mi)?Mi:this._anyControlsHaveStatus(Ql)?Ql:ua}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),i&&this._events.next(new Hp(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new zp(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Xl(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Cj(e){return Array.isArray(e)?Pp(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function Dj(e){return Array.isArray(e)?Vp(e):e||null}(this._rawAsyncValidators)}}class da extends eu{constructor(n,t,r){super(Up(t),$p(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){PC(this,0,n),Object.keys(n).forEach(r=>{LC(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class VC extends da{}const ki=new V("CallSetDisabledState",{providedIn:"root",factory:()=>tu}),tu="always";function fa(e,n,t=tu){qp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function Ij(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&WC(e,n)})}(e,n),function Nj(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function Mj(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&WC(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function Tj(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function ru(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),iu(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function su(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function qp(e,n){const t=MC(e);null!==n.validator?e.setValidators(IC(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=NC(e);null!==n.asyncValidator?e.setAsyncValidators(IC(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();su(n._rawValidators,i),su(n._rawAsyncValidators,i)}function iu(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=MC(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(c=>c!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=NC(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(c=>c!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return su(n._rawValidators,r),su(n._rawAsyncValidators,r),t}function WC(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function HC(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function zC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Ai=class extends eu{constructor(n=null,t,r){super(Up(t),$p(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xl(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=zC(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){HC(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){HC(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){zC(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};Promise.resolve();let KC=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ne({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();const Qp=new V(""),zj={provide:Nt,useExisting:Te(()=>ws)};let ws=(()=>{class e extends Nt{get submitted(){return Vn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=Xo(()=>this._submittedReactive()),this._submittedReactive=ei(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Fe,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(iu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return fa(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){ru(t.control||null,t,!1),function Rj(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function BC(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Ej(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new Sj(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(ru(r||null,t),(e=>e instanceof Ai)(i)&&(fa(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function jC(e,n){qp(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function kj(e,n){return iu(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qp(this.form,this),this._oldForm&&iu(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(r){return new(r||e)(T(yt,10),T(Fr,10),T(ki,8))}}static{this.\u0275dir=ne({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&X("submit",function(c){return i.onSubmit(c)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Le([zj]),Se,Kn]})}}return e})();const qj={provide:Rr,useExisting:Te(()=>ga)};let ga=(()=>{class e extends Rr{set isDisabled(t){}static{this._ngModelWarningSentOnce=!1}constructor(t,r,i,o,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.name=null,this.update=new Fe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function Jp(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===ca?t=o:function Fj(e){return Object.getPrototypeOf(e.constructor)===ms}(o)?r=o:i=o}),i||r||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function Kp(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function nu(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(r){return new(r||e)(T(Nt,13),T(yt,10),T(Fr,10),T(jn,10),T(Qp,8))}}static{this.\u0275dir=ne({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Le([qj]),Se,Kn]})}}return e})();const Gj={provide:jn,useExisting:Te(()=>ou),multi:!0};function eD(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let ou=(()=>{class e extends ms{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=eD(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function Kj(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){1&r&&X("change",function(c){return i.onChange(c.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Le([Gj]),Se]})}}return e})(),tD=(()=>{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(eD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(T(Xt),T(ts),T(ou,9))}}static{this.\u0275dir=ne({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();const Jj={provide:jn,useExisting:Te(()=>eg),multi:!0};function nD(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let eg=(()=>{class e extends ms{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(o=>this._getOptionId(o));r=(o,c)=>{o._setSelected(i.indexOf(c.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const c=o;for(let l=0;l{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){1&r&&X("change",function(c){return i.onChange(c.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Le([Jj]),Se]})}}return e})(),rD=(()=>{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(nD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(nD(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(T(Xt),T(ts),T(eg,9))}}static{this.\u0275dir=ne({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();let ys=(()=>{class e{constructor(){this._validator=Gl}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Gl,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ne({type:e,features:[Kn]})}}return e})();const rB={provide:yt,useExisting:Te(()=>ng),multi:!0};let ng=(()=>{class e extends ys{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function sD(e){return"number"==typeof e?e:parseInt(e,10)}(t),this.createValidator=t=>wC(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Dt("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Le([rB]),Se]})}}return e})();const sB={provide:yt,useExisting:Te(()=>rg),multi:!0};let rg=(()=>{class e extends ys{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>yC(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Dt("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},features:[Le([sB]),Se]})}}return e})(),iB=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({})}}return e})();class _D extends eu{constructor(n,t,r){super(Up(t),$p(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){PC(this,0,n),n.forEach((r,i)=>{LC(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function dD(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let oB=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return dD(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new da(i,o)}record(t,r=null){const i=this._reduceControls(t);return new VC(i,r)}control(t,r,i){let o={};return this.useNonNullable?(dD(r)?o=r:(o.validators=r,o.asyncValidators=i),new Ai(t,{...o,nonNullable:!0})):new Ai(t,r,i)}array(t,r,i){const o=t.map(c=>this._createControl(c));return new _D(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Ai||t instanceof eu?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),bs=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Qp,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ki,useValue:t.callSetDisabledState??tu}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({imports:[iB]})}}return e})();const fD={id:"eraId",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Era Id",name:"era_id",controlName:"eraId",placeholder:"Era Id",e2e:"eraIdElt"},pD={id:"validatorKey",type:"search",wrap_class:"col-lg-9 mb-2",class:"form-control",label:"Validator Key",name:"validator_key",controlName:"validatorKey",placeholder:"Validator Key",e2e:"validatorKeyElt"},gD={id:"key",type:"search",wrap_class:"col-lg-9 mb-2",class:"form-control",label:"Key",name:"key",controlName:"key",placeholder:"Key",e2e:"KeyElt"},Fi={id:"stateRootHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"State Root Hash",name:"state_root_hash",controlName:"stateRootHash",placeholder:"0x",e2e:"stateRootHashElt"},ha={id:"paymentAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Payment Amount",name:"payment_amount",controlName:"paymentAmount",placeholder:"",e2e:"paymentAmountElt",change:"motesToCSPR"},Ri={id:"TTLElt",type:"search",wrap_class:"col-lg-2 mb-2",class:"form-control",label:"TTL",name:"ttl",controlName:"TTL",e2e:"TTLElt",config_name:"TTL"},hD={id:"sessionHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Smart Contract hash or Package hash",name:"session_hash",controlName:"sessionHash",placeholder:"Contract Hash or Package Hash",e2e:"sessionHashElt",disabled_when:["has_wasm","sessionName.value"]},mD={id:"entityHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Entity hash or Package hash",name:"entity_hash",controlName:"entityHash",placeholder:"Entity Hash (entity-contract-0x) or Package Hash (package-0x)",e2e:"entityHashElt",disabled_when:["has_wasm","entityAlias.value"]},au={id:"callPackageElt",type:"checkbox",wrap_class:"col-xl-1 col-lg-2 mb-2",class:"form-check-input mt-0",label:"Call Package",name:"call_package",controlName:"callPackage",placeholder:"",e2e:"callPackageElt",label_class:"form-label",disabled_when:["has_wasm"]},cu={id:"versionElt",type:"search",wrap_class:"col-xl-3 mb-2",class:"form-control",label:"Version",name:"version",controlName:"version",placeholder:"1, empty last",e2e:"versionElt",disabled_when:["has_wasm"]},ma={id:"gasPriceToleranceElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Gas Price Tolerance",name:"gas_price_tolerance",controlName:"gasPriceTolerance",placeholder:"1, empty default",e2e:"gasPriceToleranceElt"},sg={id:"additionalComputationFactorElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Computation Factor",name:"additional_computation_factor",controlName:"additionalComputationFactor",placeholder:"0, empty default",e2e:"additionalComputationFactorElt",disabled_when:["fixedPricingMode"]},wD={id:"sessionNameElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Smart Contract name or Package name",name:"session_name",controlName:"sessionName",placeholder:"Counter",e2e:"sessionNameElt",disabled_when:["has_wasm","sessionHash.value"]},yD={id:"entityAliasElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity alias or Package alias",name:"entity_alias",controlName:"entityAlias",placeholder:"Counter",e2e:"entityAliasElt",disabled_when:["has_wasm","entityHash.value"]},lu={id:"entryPointElt",type:"search",wrap_class:"col-lg-5 mb-2",class:"form-control",label:"Entry point",name:"entry_point",controlName:"entryPoint",placeholder:"counter_inc",e2e:"entryPointElt",disabled_when:["has_wasm"]},wa={id:"argsSimpleElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args",name:"args_simple",controlName:"argsSimple",placeholder:"foo:Bool='true', bar:String='value'",e2e:"argsSimpleElt",disabled_when:["argsJson.value"],storage_name:"args_simple"},ya={id:"argsJsonElt",type:"textarea",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args Json",name:"args_json",controlName:"argsJson",placeholder:'Args as Json [{ "name": "foo", "type": "U256", "value": 1 }]',e2e:"argsJsonElt",disabled_when:["argsSimple.value"],storage_name:"args_json"},bD={id:"finalizedApprovalsElt",type:"checkbox",wrap_class:"col-lg-3 mt-3 mt-xl-0",class:"form-check-input mt-0",label:"Finalized approvals",name:"finalized_approvals",controlName:"finalizedApprovals",placeholder:"",e2e:"finalizedApprovalsElt",label_class:"form-label"},vD={id:"seedEntityHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity Hash",name:"seed_entity_hash",controlName:"seedEntityHash",placeholder:"entity-contract-0x",e2e:"seedEntityHashElt",enabled_when:["newFromEntityInfo"]},ED={id:"seedNameElt",type:"search",wrap_class:"col-lg-6 mb-2",class:"form-control",label:"Dictionary Name",name:"seed_name",controlName:"seedName",placeholder:"events",e2e:"seedNameElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromEntityInfo"]},SD={id:"itemKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Item key",name:"item_key",controlName:"itemKey",placeholder:"Item key string",e2e:"itemKeyElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromSeedUref","newFromEntityInfo"]},CD={id:"queryKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Key",name:"query_key",controlName:"queryKey",placeholder:"uref-0x || hash-0x || account-hash-0x",e2e:"queryKeyElt"},SB={...CD,label:"Contract Hash",placeholder:"hash-0x"},ig={id:"queryPathElt",type:"search",wrap_class:"col-lg-4 mb-2",class:"form-control",label:"Path",name:"query_path",controlName:"queryPath",placeholder:"counter/count",e2e:"queryPathElt"},og={id:"deployJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Deploy as Json string",name:"deploy_json",controlName:"deployJson",placeholder:"Deploy as Json string",e2e:"deployJsonElt",state_name:["deploy_json"]},ag={id:"transactionJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Transaction as Json string",name:"transaction_json",controlName:"transactionJson",placeholder:"Transaction as Json string",e2e:"transactionJsonElt",state_name:["transaction_json"]},cg={id:"selectPricingMode",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Pricing mode",label_class:"input-group-text",name:"pricing_mode",controlName:"selectPricingMode",e2e:"selectPricingModeElt",options:[{value:A.MK.Classic.toString(),label:"Classic",default:an.default_pricing_mode===A.MK.Classic},{value:A.MK.Fixed.toString(),label:"Fixed",default:an.default_pricing_mode===A.MK.Fixed}]},lg={id:"selectTransactionCategory",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Category",label_class:"input-group-text",name:"transaction_category",controlName:"selectTransactionCategory",e2e:"selectTransactionCategoryElt",options:[{value:"true",label:"Install & Upgrade",default:!0===an.default_is_install_upgrade},{value:"false",label:"Session",default:!1===an.default_is_install_upgrade}],enabled_when:["has_wasm"]},bt=[[{input:{id:"blockIdentifierHeightElt",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Block Height",name:"block_identifier_height",controlName:"blockIdentifierHeight",placeholder:"Block Height",e2e:"blockIdentifierHeightElt"}},{input:{id:"blockIdentifierHashElt",type:"search",wrap_class:"col-lg-9 col-xl-8 mb-2",class:"form-control",label:"Block Hash",name:"block_identifier_hash",controlName:"blockIdentifierHash",placeholder:"Block Hash",e2e:"blockIdentifierHashElt"}}]],DB=[...bt,[{input:{id:"accountIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Account identifier",name:"account_identifier",controlName:"accountIdentifier",placeholder:"Public Key, AccountHash",e2e:"accountIdentifierElt",state_name:["account_hash","public_key"]},required:!0}]],TB=[...bt,[{input:{id:"entityIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Entity identifier",name:"entity_identifier",controlName:"entityIdentifier",placeholder:"Public Key, AccountHash, Entity",e2e:"entityIdentifierElt",state_name:["account_hash","public_key","entity"]},required:!0}]],IB=[[{input:Fi}],[{input:{id:"purseUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Uref",name:"purse_uref",controlName:"purseUref",placeholder:"uref-0x",e2e:"purseUrefElt",state_name:["main_purse"]},required:!0}]],DD=[...bt,[{input:Fi}],[{input:{id:"purseIdentifierElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Identifier",name:"purse_identifier",controlName:"purseIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"purseIdentifierElt",state_name:["main_purse","account_hash","public_key"]},required:!0}]],MB=[...bt,[{input:Fi}],[{input:CD,required:!0}],[{input:ig}]],NB=[[{input:Fi}],[{input:vD,required:!0}],[{input:ED,required:!0}],[{input:SD,required:!0}]],kB=[...bt,[{input:SB,required:!0}],[{input:ig,required:!0}]],AB=[[{input:Fi}],[{select:{id:"selectDictIdentifierElt",type:"select",wrap_class:"mt-3 col-lg-5 mb-4",class:"form-select form-control form-control-sm",label:"Dictionary identifier",label_class:"input-group-text",name:"select_dict_identifier",controlName:"selectDictIdentifier",e2e:"selectDictIdentifierElt",state_name:["select_dict_identifier"],options:[{value:"newFromSeedUref",label:"From Dictionary Uref"},{value:"newFromContractInfo",label:"From Contract Info (depr.)"},{value:"newFromEntityInfo",label:"From Entity Info",default:!0},{value:"newFromAccountInfo",label:"From Account Info"},{value:"newFromDictionaryKey",label:"From Dictionary Key"}]}}],[{input:{id:"seedContractHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Contract Hash",name:"seed_contract_hash",controlName:"seedContractHash",placeholder:"hash-0x",e2e:"seedContractHashElt",enabled_when:["newFromContractInfo"]},required:!0}],[{input:vD,required:!0}],[{input:{id:"seedAccountHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Account Hash",name:"seed_account_hash",controlName:"seedAccountHash",placeholder:"account-hash-0x",e2e:"seedAccountHashElt",enabled_when:["newFromAccountInfo"]},required:!0}],[{input:{id:"seedUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Uref",name:"seed_uref",controlName:"seedUref",placeholder:"uref-0x",e2e:"seedUrefElt",enabled_when:["newFromSeedUref"]},required:!0}],[{input:ED,required:!0}],[{input:SD,required:!0}],[{input:{id:"seedKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Key",name:"seed_key",controlName:"seedKey",placeholder:"dictionary-0x",e2e:"seedKeyElt",enabled_when:["newFromDictionaryKey"]},required:!0}]],FB=[[{input:{id:"deployHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Deploy Hash",name:"deploy_hash",controlName:"deployHash",placeholder:"0x",e2e:"deployHashElt"},required:!0},{input:bD}]],TD=[[{input:{id:"transactionHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Transaction Hash",name:"transaction_hash",controlName:"transactionHash",placeholder:"0x",e2e:"transactionHashElt"},required:!0},{input:bD}]],ba=[[{input:{id:"transferAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Transfer Amount",name:"transfer_amount",controlName:"transferAmount",e2e:"transferAmountElt",config_name:"minimum_transfer",maxlength:"28",pattern:"\\d*",change:"motesToCSPR"},required:!0},{input:Ri}],[{input:{id:"targetAccountElt",type:"search",wrap_class:"col-xl-9",class:"form-control",label:"Target Account",name:"target_account",controlName:"targetAccount",placeholder:"Public Key, AccountHash, Purse URef",e2e:"targetAccountElt"},required:!0}]],ID=[...bt,...ba],MD=[[{input:ha,required:!0},{input:Ri},{input:ma},{select:cg},{input:sg}],[{wasm_button:!0},{select:lg}],[{input:wa}],[{textarea:ya}]],ug=[[{input:ha,required:!0},{input:Ri},{input:ma}],[{wasm_button:!0},{select:lg}],[{input:hD,required:!0},{input:au},{input:cu}],[{input:wD,required:!0}],[{input:lu,required:!0}],[{input:wa}],[{textarea:ya}]],va=[[{input:ha,required:!0},{input:Ri},{input:ma},{select:cg},{input:sg}],[{wasm_button:!0},{select:lg}],[{input:mD,required:!0},{input:au},{input:cu}],[{input:yD,required:!0}],[{input:lu,required:!0}],[{input:wa}],[{textarea:ya}]],RB=[...ug],OB=[...va],xB=[[{input:ha,required:!0},{input:Ri},{input:ma},{select:cg},{input:sg}],[{input:mD},{input:au},{input:cu}],[{input:yD}],[{input:lu}],[{input:wa}],[{textarea:ya}]],LB=[[{input:ha,required:!0},{input:Ri},{input:ma}],[{input:hD},{input:au},{input:cu}],[{input:wD}],[{input:lu}],[{input:wa}],[{textarea:ya}]],PB=[[{file_button:!0}],[{textarea:og,required:!0}]],VB=[[{file_button:!0}],[{textarea:ag,required:!0}]],WB=[[{file_button:!0}],[{textarea:og,required:!0}]],jB=[[{file_button:!0}],[{textarea:ag,required:!0}]],BB=[[{file_button:!0}],[{textarea:og,required:!0}]],HB=[[{file_button:!0}],[{textarea:ag,required:!0}]],zB=[...bt,[{input:fD}],[{input:pD,required:!0}]],UB=[...bt,[{input:fD}],[{input:pD,required:!0}],[{input:{id:"delegatorKey",type:"search",wrap_class:"col-lg-9 mb-2",class:"form-control",label:"Delegator Key",name:"delegator_key",controlName:"delegatorKey",placeholder:"Delegator Key",e2e:"delegatorKeyElt"},required:!0}]],$B=[[{input:{id:"recordId",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Record Id",name:"record_id",controlName:"recordId",placeholder:"Record Id",e2e:"recordIdElt"},required:!0}],[{input:gD,required:!0}]],qB=[...bt,[{input:Fi}],[{input:gD,required:!0}],[{input:ig}]],uu=new Map([["call_entrypoint",xB],["call_entrypoint_deploy",LB],["deploy",ug],["get_account",DB],["get_balance",IB],["get_block",bt],["get_block_transfers",bt],["get_deploy",FB],["get_dictionary_item",AB],["get_era_info",bt],["get_era_summary",bt],["get_entity",TB],["get_state_root_hash",bt],["get_transaction",TD],["install",MD],["install_deploy",MD],["make_deploy",ug],["make_transaction",va],["make_transfer",ba],["make_transfer_transaction",ba],["put_deploy",WB],["put_transaction",jB],["query_balance",DD],["query_balance_details",DD],["query_contract_dict",NB],["query_contract_key",kB],["query_global_state",MB],["sign_deploy",BB],["sign_transaction",HB],["speculative_deploy",RB],["speculative_exec_deploy",PB],["speculative_exec",VB],["speculative_transaction",OB],["speculative_transfer",ID],["speculative_transfer_transaction",ID],["transaction",va],["transfer",ba],["transfer_transaction",ba],["get_binary_block_header",bt],["get_binary_signed_block",bt],["get_binary_transaction",TD],["get_binary_validator_reward",zB],["get_binary_delegator_reward",UB],["get_binary_read_record",$B],["get_binary_global_state_item",qB],["get_binary_try_accept_transaction",va],["get_binary_try_speculative_execution",va]]);let cn=(()=>{class e{constructor(){this.state=new Su({})}setState(t){const i={...this.state.getValue(),...t};this.state.next(i)}getState(){return this.state.asObservable()}getValue(){return this.state.getValue()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ea=(()=>{class e{constructor(t){this.document=t,this.prefix="casper-client",this.window=this.document.defaultView}setState(t){const i={...JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}"),...t};this.window?.localStorage.setItem(this.prefix,JSON.stringify(i))}get(t){return(JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}")||{})[t]}static{this.\u0275fac=function(r){return new(r||e)(U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vs=(()=>{class e{constructor(t,r,i,o){this.config=t,this.formBuilder=r,this.stateService=i,this.storageService=o,this.stateService.getState().subscribe(c=>{this.has_wasm=!!c?.has_wasm,c?.select_dict_identifier&&(this.select_dict_identifier=c.select_dict_identifier),c?.action&&this.action!==c.action&&(c.action&&(this.action=c.action),this.initializeForm()),c&&(this.state=c),this.action&&this.updateForm()}),this.form=this.defaultForm}get defaultForm(){const t={};return uu.forEach(r=>{r.forEach(i=>{i.forEach(({input:o,textarea:c,select:l})=>{const _=o?.controlName||c?.controlName||l?.controlName||"";if(_&&(t[_]=new Ai(this.getDefaultOptionValue(l?.options))),l?.options&&"selectDictIdentifier"===_){const d=l?.options.find(p=>p.default)?.value||"";this.stateService.setState({select_dict_identifier:d})}})})}),this.formBuilder.group(t)}getDefaultOptionValue(t){const r=t&&t.find(i=>i.default);return r?r.value:null}initializeForm(){Object.values(this.form.controls).forEach(r=>{r.clearValidators(),r.markAsPristine(),r.disable()});const t=this.action&&uu.get(this.action);t&&t.forEach(r=>{r.forEach(({input:i,textarea:o,select:c,required:l})=>{if(!i&&!o&&!c)return;const d=this.form.get(i?.controlName||o?.controlName||c?.controlName||"");if(!d)return;const p=i?.state_name||o?.state_name||c?.state_name||[],h=p&&p.find(b=>this.state[b]),m=i?.storage_name||o?.storage_name||c?.storage_name||"";let w=h?this.state[h]:"";if(w=m?this.storageService.get(m):w,w)w&&d.setValue(w);else if(i?.config_name){const b=this.config[i?.config_name]||"";b&&d.setValue(b),b&&(i.placeholder_config_value=b)}d.enable(),l&&(i&&(i.required=!0),o&&(o.required=!0),d.setValidators([hj.required]))})})}updateForm(){const t=this.action&&uu.get(this.action);if(!t)return;const r=[];t.forEach(i=>{i.forEach(({input:o,textarea:c,select:l})=>{const _=o?.controlName||c?.controlName||l?.controlName||"";if(!_)return;const d=this.form.get(_);if(d){if(c){const p=c?.state_name||[],h=p&&p.find(w=>this.state[w]),m=h?this.state[h]:"";if(m&&d.setValue(m),c.disabled_when){const w=d.value&&c.disabled_when?.find(C=>C.includes("value")),b=w&&w.split(".")[0],S=b&&this.form?.get(b);S&&(S.disable(),r.push(b)),r.includes(c.controlName)||d.enable()}}else if(l&&l.enabled_when)this.has_wasm&&l.enabled_when?.includes("has_wasm")?d.enable():d.disable();else if(o){const p=o?.state_name||[],h=p&&p.find(w=>this.state[w]),m=h?this.state[h]:"";if(m&&d.setValue(m),o.enabled_when)"get_dictionary_item"===this.action&&this.select_dict_identifier&&!o.enabled_when?.includes(this.select_dict_identifier)?d.disable():this.select_dict_identifier&&d.enable();else if(o.disabled_when){const w=d.value&&o.disabled_when?.find(N=>N.includes("value")),b=w&&w.split(".")[0],S=b&&this.form?.get(b);S&&(S.disable(),r.push(b)),this.has_wasm&&o?.disabled_when?.includes("has_wasm")?(d.reset(),d.disable()):r.includes(o.controlName)||d.enable();const C=A.MK[this.state.pricing_mode]===A.MK.Classic;o?.disabled_when?.includes("fixedPricingMode")&&C&&(d.reset(),d.disable())}}if(o||c){const p=o?.storage_name||c?.storage_name||"";p&&this.storageService.setState({[p]:d.value})}}})})}get formFields(){return uu}static{this.\u0275fac=function(r){return new(r||e)(U(Wn),U(oB),U(cn),U(Ea))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const GB=["template"],KB=(e,n)=>[e,n],JB=(e,n,t)=>[e,n,t];function ZB(e,n){if(1&e&&(x(0,"span",10),re(1),L()),2&e){let t;const r=B(2),i=r.inputField,o=r.parentForm,c=B();P(),at("(",c.motesToCSPR(null==(t=o.get(i.controlName))?null:t.value)," CSPR)")}}function QB(e,n){if(1&e){const t=Re();$t(0,3),x(1,"input",11),X("change",function(){_e(t);const i=B(2).inputField;return de(B().onChange(i))}),L(),qt()}if(2&e){const t=B(2),r=t.inputField,i=t.parentForm,o=B();O("formGroup",i),P(),O("id",r.id)("type",r.type)("name",r.name)("maxlength",r.maxlength||"")("pattern",r.pattern||"")("formControlName",r.controlName)("placeholder",r.placeholder_config_value?"e.g. "+r.placeholder_config_value:r.placeholder||"")("ngClass",_0(10,JB,r.class||"form-control",o.isInvalid(r.controlName)?"is-invalid":"",o.isRequired(r)?"is-required":"")),Dt("e2e-id",r.e2e)}}function YB(e,n){if(1&e&&(x(0,"label",12),re(1),L()),2&e){const t=B(2).inputField;O("for",t.id),P(),at("e.g. ",t.placeholder,"")}}function XB(e,n){if(1&e&&(x(0,"label",12),re(1),L()),2&e){const t=B(2).inputField;O("for",t.id),P(),at("e.g. ",t.placeholder_config_value,"")}}function eH(e,n){if(1&e&&(x(0,"div",4)(1,"label",5),re(2),ie(3,ZB,2,1,"span",6),L(),x(4,"div",7),ie(5,QB,2,14,"ng-container",8)(6,YB,2,2,"label",9)(7,XB,2,2,"label",9),L()()),2&e){let t,r;const i=B(),o=i.inputField,c=i.parentForm,l=ls(2);O("ngClass",o.wrap_class),P(),O("for",o.id)("ngClass",vi(10,KB,o.label_class||"",null!=(t=c.get(o.controlName))&&t.disabled?"disabled":"")),P(),Uo("",o.label,"",o.required?" *":""," "),P(),O("ngIf",(null==o.change?null:o.change.includes("motesToCSPR"))&&(null==(r=c.get(o.controlName))?null:r.value)),P(2),O("ngIf","checkbox"!==o.type)("ngIfElse",l),P(),O("ngIf",o.placeholder),P(),O("ngIf",o.placeholder_config_value)}}function tH(e,n){if(1&e&&pt(0,"input",13),2&e){const t=B().inputField;O("id",t.id)("name",t.name)("formControlName",t.controlName),Dt("e2e-id",t.e2e)}}function nH(e,n){if(1&e&&ie(0,eH,8,13,"div",2)(1,tH,1,4,"ng-template",3,1,_s),2&e){let t;const r=n.inputField,i=n.parentForm;O("ngIf",!(B().hidden_when_disabled&&null!=(t=i.get(r.controlName))&&t.disabled)),P(),O("formGroup",i)}}let ND=(()=>{class e{constructor(t){this.formService=t}onChange(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}isInvalid(t){const r=this.parentForm?.get(t);return!(!r?.enabled||!r?.dirty||r?.value||r?.valid)}isRequired(t){const r=this.parentForm?.get(t.controlName);return!(!r?.enabled||r?.dirty||r?.value||!t.required)}motesToCSPR(t){if(t)return t=this.parse_commas(t),(0,A.S3)(t)}parse_commas(t){return t.replace(/[,.]/g,"")}static{this.\u0275fac=function(r){return new(r||e)(T(vs))}}static{this.\u0275cmp=ct({type:e,selectors:[["ui-input"]],viewQuery:function(r,i){if(1&r&>(GB,7),2&r){let o;ht(o=mt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm",hidden_when_disabled:"hidden_when_disabled"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["checkboxContent",""],[3,"ngClass",4,"ngIf"],[3,"formGroup"],[3,"ngClass"],[3,"for","ngClass"],["class","fw-light small text-nowrap",4,"ngIf"],[1,"form-floating"],[3,"formGroup",4,"ngIf","ngIfElse"],[3,"for",4,"ngIf"],[1,"fw-light","small","text-nowrap"],[3,"change","id","type","name","maxlength","pattern","formControlName","placeholder","ngClass"],[3,"for"],["type","checkbox",3,"id","name","formControlName"]],template:function(r,i){1&r&&ie(0,nH,3,2,"ng-template",null,0,_s)},dependencies:[Ge,sr,sn,bs,ca,Lp,Jl,la,ng,rg,ws,ga],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return e})();const rH=["template"],kD=e=>[e];function sH(e,n){if(1&e&&(x(0,"option",7),re(1),L()),2&e){const t=n.$implicit,r=B(2);Sf("value",t.value),O("selected",t.default||r.select_dict_identifier===t.value),P(),at(" ",t.label," ")}}function iH(e,n){if(1&e){const t=Re();x(0,"div",1)(1,"div",2)(2,"label",3),re(3),L(),$t(4,4),x(5,"select",5),X("change",function(i){return _e(t),de(B().onChange(i))}),ie(6,sH,2,3,"option",6),L(),qt(),L()()}if(2&e){const t=n.inputField,r=n.parentForm;O("ngClass",t.wrap_class),P(2),O("for",t.id)("ngClass",tn(11,kD,t.label_class||"")),P(),us(t.label),P(),O("formGroup",r),P(),O("id",t.id)("name",t.name)("ngClass",tn(13,kD,t.class||"form-control"))("formControlName",t.controlName),Dt("e2e-id",t.e2e),P(),O("ngForOf",t.options)}}let AD=(()=>{class e{constructor(t,r,i){this.config=t,this.stateService=r,this.changeDetectorRef=i}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{setTimeout(()=>{t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier),this.changeDetectorRef.markForCheck()})})}onChange(t){const r=t.target?.value,i=t.target?.name;"select_dict_identifier"===i&&this.stateService.setState({select_dict_identifier:r}),"pricing_mode"===i&&this.stateService.setState({pricing_mode:A.MK[r].toString()})}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["ui-select"]],viewQuery:function(r,i){if(1&r&>(rH,7),2&r){let o;ht(o=mt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"input-group"],[3,"for","ngClass"],[3,"formGroup"],[3,"change","id","name","ngClass","formControlName"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(r,i){1&r&&ie(0,iH,7,15,"ng-template",null,0,_s)},dependencies:[Ge,sr,na,bs,tD,rD,ou,Jl,la,ws,ga],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}[_ngcontent-%COMP%]:disabled{color:#d3d3d3}"],changeDetection:0})}}return e})();const oH=["template"],aH=(e,n)=>[e,n];function cH(e,n){if(1&e&&(x(0,"label",6),re(1),L()),2&e){const t=B().inputField,r=B();O("for",t.id),P(),us(r.currentPlaceholder||t.placeholder)}}function lH(e,n){if(1&e){const t=Re();x(0,"div",1)(1,"div",2),$t(2,3),x(3,"textarea",4),X("change",function(i){const o=_e(t).inputField;return de(B().onChange(i,o))})("focus",function(i){return _e(t),de(B().onFocus(i))})("blur",function(i){return _e(t),de(B().onBlur(i))}),re(4," "),L(),ie(5,cH,2,2,"label",5),qt(),L()()}if(2&e){const t=n.inputField,r=n.parentForm,i=B();O("ngClass",t.wrap_class),P(2),O("formGroup",r),P(),O("id",t.id)("name",t.name)("formControlName",t.controlName)("placeholder",i.currentPlaceholder||t.placeholder||"")("ngClass",vi(9,aH,t.class||"form-control",i.isInvalid(t.controlName)?"is-invalid":"")),Dt("e2e-id",t.e2e),P(2),O("ngIf",t.placeholder)}}let FD=(()=>{class e{constructor(t){this.formService=t,this.update_deploy_json=new Fe,this.update_transaction_json=new Fe,this.jsonPattern=/\[\{.*?\}\]/g}ngOnInit(){this.originalPlaceholder=this.inputField.placeholder||""}ngAfterViewInit(){this.initializePlaceholder()}isInvalid(t){const r=this.parentForm?.get(t);return!!this.parentForm?.touched&&!!r?.invalid}onChange(t,r){const i=t.target;i.name.includes("deploy")?this.update_deploy_json.emit(i.value):i.name.includes("transaction")?this.update_transaction_json.emit(i.value):this.updateForm(r)}onFocus(t){this.currentPlaceholder=this.removeJsonParts(t.target.placeholder)}onBlur(t){t.target.value||(this.currentPlaceholder=this.originalPlaceholder)}updateForm(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}removeJsonParts(t){return t.replace(this.jsonPattern,"").trim()}initializePlaceholder(){const t=this.parentForm.get(this.inputField.controlName);this.currentPlaceholder=t&&t.value?this.removeJsonParts(this.originalPlaceholder):this.originalPlaceholder}static{this.\u0275fac=function(r){return new(r||e)(T(vs))}}static{this.\u0275cmp=ct({type:e,selectors:[["ui-textarea"]],viewQuery:function(r,i){if(1&r&>(oH,7),2&r){let o;ht(o=mt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},outputs:{update_deploy_json:"update_deploy_json",update_transaction_json:"update_transaction_json"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"form-floating","mt-3"],[3,"formGroup"],[3,"change","focus","blur","id","name","formControlName","placeholder","ngClass"],[3,"for",4,"ngIf"],[3,"for"]],template:function(r,i){1&r&&ie(0,lH,6,12,"ng-template",null,0,_s)},dependencies:[Ge,sr,sn,bs,ca,Jl,la,ws,ga],styles:["textarea[_ngcontent-%COMP%]{min-height:350px!important;white-space:pre-wrap}@media (max-width: 767px){textarea[_ngcontent-%COMP%]{min-height:200px!important}}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return e})();const uH=["wasmElt"],_H=["template"];function dH(e,n){if(1&e){const t=Re();x(0,"button",6),X("click",function(){return _e(t),de(B(2).onWasmClick())}),re(1," Wasm Module Bytes "),L()}}function fH(e,n){if(1&e){const t=Re();x(0,"span",7),X("click",function(){return _e(t),de(B(2).resetWasmClick())}),re(1),ec(),x(2,"svg",8),pt(3,"path",9),L()()}if(2&e){const t=B(2);P(),at(" ",t.file_name," ")}}function pH(e,n){if(1&e){const t=Re();x(0,"div",2)(1,"input",3,1),X("change",function(i){return _e(t),de(B().onWasmSelected(i))}),L(),ie(3,dH,2,0,"button",4)(4,fH,4,1,"span",5),L()}if(2&e){const t=B();P(3),O("ngIf",!t.file_name),P(),O("ngIf",t.file_name)}}let RD=(()=>{class e{constructor(){this.select_wasm=new Fe}onWasmSelected(t){var r=this;return(0,u.A)(function*(){r.file_name=r.wasmElt?.nativeElement.value.split("\\").pop();const i=t.target.files?.item(0),o=yield i?.arrayBuffer();r.wasm=o&&new Uint8Array(o),r.wasm?.buffer||r.resetWasmClick(),r.select_wasm.emit(r.wasm)})()}onWasmClick(){this.wasmElt.nativeElement.click()}resetWasmClick(){this.wasmElt.nativeElement.value="",this.wasm=void 0,this.file_name="",this.select_wasm.emit(void 0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-submit-wasm"]],viewQuery:function(r,i){if(1&r&&(gt(uH,5),gt(_H,7)),2&r){let o;ht(o=mt())&&(i.wasmElt=o.first),ht(o=mt())&&(i.template=o.first)}},outputs:{select_wasm:"select_wasm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["wasmElt",""],[1,"col-sm-2","mb-3","mt-3"],["name","wasm","type","file","id","wasmElt","accept",".wasm","e2e-id","wasmElt",1,"visually-hidden",3,"change"],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","btn btn-light","e2e-id","wasmName",3,"click",4,"ngIf"],[1,"btn","btn-secondary",3,"click"],["e2e-id","wasmName",1,"btn","btn-light",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","ml-1","cursor-pointer","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"]],template:function(r,i){1&r&&ie(0,pH,5,2,"ng-template",null,0,_s)},dependencies:[Ge,sn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return e})(),Oi=(()=>{class e{constructor(){this.error=new Su("")}setError(t){this.error.getValue()!==t&&this.error.next(t)}getError(){return this.error.asObservable()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const gH=["template"],hH=["deployFileElt"],mH=["transactionFileElt"];function wH(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"input",5,1),X("change",function(i){return _e(t),de(B(2).onDeployFileSelected(i))}),L(),x(3,"button",6),X("click",function(){return _e(t),de(B(2).deployFileClick())}),re(4," Load deploy file "),L()()}}function yH(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"input",7,2),X("change",function(i){return _e(t),de(B(2).onTransactionFileSelected(i))}),L(),x(3,"button",6),X("click",function(){return _e(t),de(B(2).transactionFileClick())}),re(4," Load transaction file "),L()()}}function bH(e,n){if(1&e&&ie(0,wH,5,0,"div",3)(1,yH,5,0,"div",3),2&e){const t=B();O("ngIf","deploy"===t.type),P(),O("ngIf","transaction"===t.type)}}let OD=(()=>{class e{constructor(t){this.errorService=t,this.select_deploy=new Fe,this.select_transaction=new Fe,this.type="deploy"}onDeployFileSelected(t){var r=this;return(0,u.A)(function*(){const i=t.target.files?.item(0);let o;if(r.deploy_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const c=JSON.parse(o);r.deploy_json=c}catch{const c="Error parsing deploy";console.error(c),r.errorService.setError(c)}}r.select_deploy.emit(r.deploy_json),r.deployFileElt.nativeElement.value=""})()}onTransactionFileSelected(t){var r=this;return(0,u.A)(function*(){const i=t.target.files?.item(0);let o;if(r.transaction_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const c=JSON.parse(o);r.transaction_json=c}catch{const c="Error parsing transaction";console.error(c),r.errorService.setError(c)}}r.select_transaction.emit(r.transaction_json),r.transactionFileElt.nativeElement.value=""})()}deployFileClick(){this.deployFileElt.nativeElement.click()}transactionFileClick(){this.transactionFileElt.nativeElement.click()}static{this.\u0275fac=function(r){return new(r||e)(T(Oi))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-submit-file"]],viewQuery:function(r,i){if(1&r&&(gt(gH,7),gt(hH,5),gt(mH,5)),2&r){let o;ht(o=mt())&&(i.template=o.first),ht(o=mt())&&(i.deployFileElt=o.first),ht(o=mt())&&(i.transactionFileElt=o.first)}},inputs:{type:"type"},outputs:{select_deploy:"select_deploy",select_transaction:"select_transaction"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["deployFileElt",""],["transactionFileElt",""],["class","col-sm-2 mt-2",4,"ngIf"],[1,"col-sm-2","mt-2"],["name","deploy_file","type","file","id","deployFileElt","accept",".json, .txt, .deploy","e2e-id","deployFileElt",1,"visually-hidden",3,"change"],[1,"btn","btn-secondary",3,"click"],["name","transaction_file","type","file","id","transactionFileElt","accept",".json, .txt, .deploy","e2e-id","transactionFileElt",1,"visually-hidden",3,"change"]],template:function(r,i){1&r&&ie(0,bH,2,2,"ng-template",null,0,_s)},dependencies:[Ge,sn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return e})();const _g=(e,n)=>({parentForm:e,inputField:n});function vH(e,n){1&e&&as(0)}function EH(e,n){if(1&e&&($t(0),pt(1,"ui-input",7,0),ie(3,vH,1,0,"ng-container",8),qt()),2&e){const t=ls(2),r=B().$implicit,i=B(3);P(),O("parentForm",i.form)("inputField",r.input)("hidden_when_disabled","get_dictionary_item"===i.action),P(2),O("ngTemplateOutlet",t.template)("ngTemplateOutletContext",vi(5,_g,i.form,r.input))}}function SH(e,n){1&e&&as(0)}function CH(e,n){if(1&e){const t=Re();$t(0),x(1,"ui-textarea",9,0),X("update_deploy_json",function(i){return _e(t),de(B(4).updateDeployJson(i))})("update_transaction_json",function(i){return _e(t),de(B(4).updateTransactionJson(i))}),L(),ie(3,SH,1,0,"ng-container",8),qt()}if(2&e){const t=ls(2),r=B().$implicit,i=B(3);P(),O("parentForm",i.form)("inputField",r.textarea),P(2),O("ngTemplateOutlet",t.template)("ngTemplateOutletContext",vi(4,_g,i.form,r.textarea))}}function DH(e,n){1&e&&as(0)}function TH(e,n){if(1&e&&($t(0),pt(1,"ui-select",10,0),ie(3,DH,1,0,"ng-container",8),qt()),2&e){const t=ls(2),r=B().$implicit,i=B(3);P(),O("parentForm",i.form)("inputField",r.select),P(2),O("ngTemplateOutlet",t.template)("ngTemplateOutletContext",vi(4,_g,i.form,r.select))}}function IH(e,n){1&e&&as(0)}function MH(e,n){if(1&e){const t=Re();$t(0),x(1,"comp-submit-wasm",11,1),X("select_wasm",function(i){return _e(t),de(B(4).onWasmSelected(i))}),L(),ie(3,IH,1,0,"ng-container",12),qt()}if(2&e){const t=ls(2);P(3),O("ngTemplateOutlet",t.template)}}function NH(e,n){1&e&&as(0)}function kH(e,n){if(1&e){const t=Re();$t(0),x(1,"comp-submit-file",13,1),X("select_deploy",function(i){return _e(t),de(B(4).onDeployFileSelected(i))})("select_transaction",function(i){return _e(t),de(B(4).onTransactionFileSelected(i))}),L(),ie(3,NH,1,0,"ng-container",12),qt()}if(2&e){const t=ls(2),r=B(4);P(),O("type",r.action.includes("transaction")?"transaction":"deploy"),P(2),O("ngTemplateOutlet",t.template)}}function AH(e,n){if(1&e&&($t(0),ie(1,EH,4,8,"ng-container",6)(2,CH,4,7,"ng-container",6)(3,TH,4,7,"ng-container",6)(4,MH,4,1,"ng-container",6)(5,kH,4,2,"ng-container",6),qt()),2&e){const t=n.$implicit;P(),O("ngIf",t.input),P(),O("ngIf",t.textarea),P(),O("ngIf",t.select),P(),O("ngIf",t.wasm_button),P(),O("ngIf",t.file_button)}}function FH(e,n){if(1&e&&($t(0),x(1,"div",5),ie(2,AH,6,5,"ng-container",4),L(),qt()),2&e){const t=n.$implicit;P(2),O("ngForOf",t)}}function RH(e,n){if(1&e&&(x(0,"form",3),ie(1,FH,3,1,"ng-container",4),L()),2&e){const t=B();O("formGroup",t.form),P(),O("ngForOf",t.formFields.get(t.action))}}let xD=(()=>{class e{constructor(t,r,i,o){this.config=t,this.formService=r,this.stateService=i,this.changeDetectorRef=o,this.formFields=this.formService.formFields,this.wasm_selected=new Fe,this.verbosity=this.config.verbosity}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}onWasmSelected(t){var r=this;return(0,u.A)(function*(){t&&r.wasm_selected.emit(t),r.stateService.setState({has_wasm:!!t})})()}onDeployFileSelected(t){var r=this;return(0,u.A)(function*(){t=t&&(0,A.mL)(new A.m9(t).toJson(),r.verbosity),r.updateDeployJson(t)})()}onTransactionFileSelected(t){var r=this;return(0,u.A)(function*(){t=t&&(0,A.mL)(new A.ZX(t).toJson(),r.verbosity),r.updateTransactionJson(t)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(vs),T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-form"]],inputs:{form:"form"},outputs:{wasm_selected:"wasm_selected"},standalone:!0,features:[wt],decls:1,vars:1,consts:[["inputTemplate",""],["submitTemplate",""],["class","mt-3",3,"formGroup",4,"ngIf"],[1,"mt-3",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"row","align-items-end"],[4,"ngIf"],[3,"parentForm","inputField","hidden_when_disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"update_deploy_json","update_transaction_json","parentForm","inputField"],[3,"parentForm","inputField"],[3,"select_wasm"],[4,"ngTemplateOutlet"],[3,"select_deploy","select_transaction","type"]],template:function(r,i){1&r&&ie(0,RH,2,2,"form",2),2&r&&O("ngIf",i.action&&i.formFields&&i.formFields.has(i.action))},dependencies:[Ge,na,sn,lS,bs,KC,la,ws,ND,RD,OD,FD,AD],changeDetection:0})}}return e})();const LD=new V("highlight");var OH=a(7278),xH=a.n(OH);let PD=(()=>{class e{constructor(t){this.highlightWebworkerFactory=t}highlightMessage(t){var r=this;return(0,u.A)(function*(){r.activateWorker();const i=r.hightlightWebworker&&(yield r.hightlightWebworker.postMessage(t).catch(o=>{console.error(o)}));return r.terminateWorker(),i})()}activateWorker(){if(this.webworker)return;const t=this.highlightWebworkerFactory();this.webworker=t[0],this.hightlightWebworker=t[1]}terminateWorker(){this.webworker&&(this.webworker.terminate(),delete this.webworker)}static{this.\u0275fac=function(r){return new(r||e)(U(LD))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const LH={provide:LD,useValue:function(){const e=new Worker(a.tu(new URL(a.p+a.u(755),a.b)),{name:"highlight.worker",type:void 0});return[e,new(xH())(e)]}};let VD=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({providers:[LH,PD],imports:[Ge]})}}return e})(),Sa=(()=>{class e{constructor(t,r){this.highlightService=t,this.document=r,this.result=new Lr,this.window=this.document.defaultView}getResult(){return this.result.asObservable()}setResult(t){var r=this;return(0,u.A)(function*(){const i=t,o=yield r.highlightService.highlightMessage(i),c="string"==typeof t;r.result.next({result:c?i:JSON.stringify(i),resultHtml:c?i:o})})()}copyClipboard(t){this.window?.navigator.clipboard.writeText(t).catch(r=>console.error(r))}static{this.\u0275fac=function(r){return new(r||e)(U(PD),U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),PH=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({providers:[Sa],imports:[Ge,VD]})}}return e})();const VH=["resultElt"],WH=["codeElt"];function jH(e,n){if(1&e&&(x(0,"div",15,0)(2,"div",16),pt(3,"code",17,1),L()()),2&e){const t=B(2);P(3),O("innerHtml",t.resultHtml,nw)}}function BH(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"div",5)(2,"span"),ec(),x(3,"svg",6),X("click",function(){_e(t);const i=B();return de(i.copy(i.result))}),pt(4,"rect",7)(5,"path",8),L()(),function xh(){!function H1(){Q.lFrame.currentNamespace=null}()}(),x(6,"span",9),X("click",function(){return _e(t),de(B().reset())}),ec(),x(7,"svg",10),pt(8,"path",11)(9,"path",12)(10,"path",13),L()()(),ie(11,jH,5,1,"div",14),L()}if(2&e){const t=B();P(11),O("ngIf",t.resultHtml)}}let WD=(()=>{class e{constructor(t,r){this.resultService=t,this.changeDetectorRef=r}ngAfterViewInit(){this.getResultSubscription=this.resultService.getResult().subscribe(t=>{this.result=t.result,this.resultHtml=t.resultHtml,this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.getResultSubscription&&this.getResultSubscription.unsubscribe()}copy(t){this.resultService.copyClipboard((0,A.mL)(JSON.parse(t),A.WT.High))}reset(){this.result="",this.resultHtml="",this.resultService.setResult("")}static{this.\u0275fac=function(r){return new(r||e)(T(Sa),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-result"]],viewQuery:function(r,i){if(1&r&&(gt(VH,5),gt(WH,5,Xt)),2&r){let o;ht(o=mt())&&(i.resultElt=o.first),ht(o=mt())&&(i.contentChildren=o.first)}},standalone:!0,features:[wt],decls:2,vars:1,consts:[["resultElt",""],["codeElt",""],[1,"mt-3"],["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","d-flex","flex-row","justify-content-between","mb-2"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shrink-0","ml-2","w-5","min-w-5","text-gray-500","cursor-pointer",3,"click"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["e2e-id","clear result",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-journal-x","cursor-pointer"],["fill-rule","evenodd","d","M6.146 6.146a.5.5 0 0 1 .708 0L8 7.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 8l1.147 1.146a.5.5 0 0 1-.708.708L8 8.707 6.854 9.854a.5.5 0 0 1-.708-.708L7.293 8 6.146 6.854a.5.5 0 0 1 0-.708z"],["d","M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"],["d","M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],[1,"card"],["e2e-id","result",1,"card-body",3,"innerHtml"]],template:function(r,i){1&r&&(x(0,"section",2),ie(1,BH,12,1,"div",3),L()),2&r&&(P(),O("ngIf",i.result))},dependencies:[Ge,sn,VD],styles:["code[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-x:hidden;word-wrap:break-word;max-width:100%}.card[_ngcontent-%COMP%]{max-height:calc(95vh - 20px);overflow-y:auto;margin-bottom:20px}@media (max-width: 767px){[_nghost-%COMP%] .hljs-string{overflow-wrap:break-word;word-break:break-all;max-width:100%}}[_nghost-%COMP%] .hljs-attr{font-weight:700}@media (max-width: 767px){code[_ngcontent-%COMP%]{font-size:.8em}}"],changeDetection:0})}}return e})();const HH=["selectNetworkElt"],zH=["nodeAddressElt"],dg=e=>[e];function UH(e,n){if(1&e&&(x(0,"option",20),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",null==t?null:t.name)("selected",t.rpc_address===r.rpc_address),P(),Uo(" ",null==t?null:t.name," (",t.rpc_address,") ")}}function $H(e,n){if(1&e&&(x(0,"option",20),re(1),L()),2&e){const t=n.$implicit,r=B(2);O("value",r.changePort(t))("selected",r.changePort(t)===r.rpc_address),P(),Uo(" ",r.changePort(t)," (",r.chain_name,") ")}}function qH(e,n){if(1&e&&(x(0,"optgroup",21),ie(1,$H,2,4,"option",17),L()),2&e){const t=B();P(),O("ngForOf",t.peers)}}function GH(e,n){if(1&e){const t=Re();x(0,"div",22)(1,"div",23)(2,"label",24)(3,"span",25),re(4,"Net."),L(),x(5,"span",26),re(6,"Network"),L()(),x(7,"input",27,1),X("change",function(i){return _e(t),de(B().onCustomNetworkChange(i))}),L()(),x(9,"div",28)(10,"label",29)(11,"span",25),re(12,"Chai."),L(),x(13,"span",26),re(14,"Chain"),L()(),x(15,"input",30,2),X("change",function(i){return _e(t),de(B().onCcustomChainChange(i))}),L()()()}if(2&e){const t=B();P(7),O("value",t.rpc_address||"")("ngClass",tn(4,dg,t.isCustomNetworkInvalid()?"is-invalid":"")),P(8),O("value",t.chain_name||"")("ngClass",tn(6,dg,t.iscustomChainInvalid()?"is-invalid":""))}}function KH(e,n){if(1&e){const t=Re();x(0,"div",22)(1,"div",23)(2,"label",31),X("click",function(){_e(t);const i=B();return de(i.is_network_tab_open=!i.is_network_tab_open)}),re(3," WS"),L(),x(4,"input",32,3),X("change",function(i){return _e(t),de(B().onNodeAddressChange(i))}),L()()()}if(2&e){const t=B();P(4),O("value",t.node_address||"")("ngClass",tn(2,dg,t.isNodeAddressInvalid()?"is-invalid":""))}}let jD=(()=>{class e{constructor(t,r,i,o,c,l,_){this.sdk=t,this.config=r,this.env=i,this.document=o,this.stateService=c,this.storageService=l,this.changeDetectorRef=_,this.networks=this.config.networks,this.network=this.config.network,this.chain_name=this.network.chain_name,this.rpc_address=this.network.rpc_address,this.node_address=this.network.node_address,this.is_production=this.env.production,this.localhost_to_gateway=this.env.localhost_to_gateway,this.window=this.document.defaultView,this.is_electron=this.isElectron()}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.storageService.get("chain_name")&&t.storageService.get("rpc_address")&&(t.chain_name=t.storageService.get("chain_name")||t.chain_name,t.rpc_address=t.storageService.get("rpc_address")||t.rpc_address,t.node_address=t.storageService.get("node_address")||t.node_address,t.network=t.networks.find(r=>r.rpc_address==t.rpc_address)||t.network),t.stateService.setState({chain_name:t.chain_name,rpc_address:t.rpc_address,node_address:t.node_address}),t.setRPCAddress(),t.changeDetectorRef.markForCheck()})()}selectNetwork(t){let r=t.target?.value||this.selectNetworkElt.nativeElement.value;r=r&&this.networks.find(i=>i.name==r),this.network=r,this.chain_name=r.chain_name,this.rpc_address=r.rpc_address,this.node_address=r.node_address,this.setRPCAddress(),this.setNodeAddress(),this.stateService.setState({chain_name:r.chain_name}),this.storageService.setState({rpc_address:this.rpc_address,node_address:this.node_address,chain_name:this.chain_name})}changePort(t){const r=t.address.split(":");return[this.config.default_protocol,r.shift(),":",this.config.default_port].join("")}onCustomNetworkChange(t){this.rpc_address=t.target?.value||this.network.rpc_address,this.node_address=this.nodeAddressElt.nativeElement.value||"";const r=this.networks.find(i=>"custom"===i.name);r&&(r.rpc_address=this.rpc_address,this.sdk.setRPCAddress(this.rpc_address),this.sdk.setNodeAddress(this.node_address),this.stateService.setState({rpc_address:this.rpc_address,node_address:this.node_address}),this.storageService.setState({rpc_address:this.rpc_address,node_address:this.node_address}))}isCustomNetworkInvalid(){return!1}onCcustomChainChange(t){this.chain_name=t.target?.value||this.network.chain_name;const r=this.networks.find(i=>"custom"===i.name);r&&(r.chain_name=this.chain_name,this.stateService.setState({chain_name:this.chain_name}),this.storageService.setState({chain_name:this.chain_name}))}onNodeAddressChange(t){this.node_address=t.target?.value||"",this.setNodeAddress()}iscustomChainInvalid(){return!1}isNodeAddressInvalid(){return!1}isElectron(){return typeof this.window<"u"&&window.location?.origin?.startsWith("file://")}setRPCAddress(){try{if(this.is_electron)this.sdk.setRPCAddress(this.rpc_address),this.sdk.setNodeAddress(this.node_address);else{const t=this.networks.find(r=>r.rpc_address==this.rpc_address);this.is_production&&!this.localhost_to_gateway&&t&&["ntcl","node-launcher"].includes(t?.name)?(this.sdk.setRPCAddress(this.rpc_address),this.sdk.setNodeAddress(this.node_address)):t&&this.sdk.setRPCAddress([this.window?.location?.href,t?.name].join(""))}}catch(t){console.error(t)}}setNodeAddress(){try{this.sdk.setNodeAddress(this.node_address)}catch(t){console.error(t)}}onSubmit(t){return t.preventDefault(),!1}static{this.\u0275fac=function(r){return new(r||e)(T(Ii),T(Wn),T(Op),T(wn),T(cn),T(Ea),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-header"]],viewQuery:function(r,i){if(1&r&&(gt(HH,5),gt(zH,5)),2&r){let o;ht(o=mt())&&(i.selectNetworkElt=o.first),ht(o=mt())&&(i.nodeAddressElt=o.first)}},inputs:{peers:"peers"},standalone:!0,features:[wt],decls:21,vars:8,consts:[["selectNetworkElt",""],["customNetworkElt",""],["customChainElt",""],["nodeAddressElt",""],[1,"navbar","navbar-light"],[1,"col-5","col-md-2"],[1,"navbar-brand"],["src","assets/logo.svg","alt","Casper Ecosystem"],[1,"col-7","col-md-4","col-lg-4","col-xl-5","d-flex","flex-column","flex-xl-row","justify-content-end","px-2","pt-2"],["e2e-id","chain_name",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],["e2e-id","rpc_address",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],[1,"col-12","col-md-6","col-lg-5"],[1,"form-inline",3,"submit"],[1,"input-group"],["for","selectActionElt","for","selectNetworkElt",1,"input-group-text",3,"click"],["id","selectNetworkElt","e2e-id","selectNetworkElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","default"],[3,"value","selected",4,"ngFor","ngForOf"],["label","fetched",4,"ngIf"],["class","input-group mt-2 justify-content-between",4,"ngIf"],[3,"value","selected"],["label","fetched"],[1,"input-group","mt-2","justify-content-between"],[1,"col-7"],["for","customNetworkElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","customNetwork","id","customNetworkElt","e2e-id","customNetworkElt",1,"form-control","form-control-xs",3,"change","value","ngClass"],[1,"col-4"],["for","customChainElt",1,"input-group-text"],["type","search","name","customChain","id","customChainElt","e2e-id","customChainElt",1,"form-control","form-control-xs",3,"change","value","ngClass"],["for","nodeAddressElt",1,"input-group-text",3,"click"],["type","search","name","nodeAddress","id","nodeAddressElt","e2e-id","nodeAddressElt",1,"form-control","form-control-xs",3,"change","value","ngClass"]],template:function(r,i){if(1&r){const o=Re();x(0,"nav",4)(1,"div",5)(2,"a",6),pt(3,"img",7),L()(),x(4,"div",8)(5,"span",9),re(6),L(),x(7,"span",10),re(8),L()(),x(9,"div",11)(10,"form",12),X("submit",function(l){return _e(o),de(i.onSubmit(l))}),x(11,"div",13)(12,"label",14),X("click",function(){return _e(o),de(i.is_network_tab_open=!i.is_network_tab_open)}),re(13,"RPC"),L(),x(14,"select",15,0),X("change",function(l){return _e(o),de(i.selectNetwork(l))}),x(16,"optgroup",16),ie(17,UH,2,4,"option",17),L(),ie(18,qH,2,1,"optgroup",18),L()(),ie(19,GH,17,8,"div",19)(20,KH,6,4,"div",19),L()()()}2&r&&(P(5),O("hidden",!i.chain_name),P(),us(i.chain_name),P(),O("hidden",!i.rpc_address),P(),us(i.rpc_address),P(9),O("ngForOf",i.networks),P(),O("ngIf",i.peers),P(),O("ngIf","custom"===(null==i.network?null:i.network.name)),P(),O("ngIf",i.is_network_tab_open))},dependencies:[Ge,sr,na,sn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}"],changeDetection:0})}}return e})();function JH(e,n){if(1&e&&(x(0,"section",1)(1,"pre",2),re(2),L()()),2&e){const t=B();P(2),us(t.error)}}let BD=(()=>{class e{constructor(t,r){this.errorService=t,this.changeDetectorRef=r}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.seterrorSubscription()})()}ngOnDestroy(){this.errorSubscription&&this.errorSubscription.unsubscribe()}seterrorSubscription(){var t=this;this.errorSubscription=this.errorService.getError().subscribe(function(){var r=(0,u.A)(function*(i){t.error!==i&&(t.error=i,t.changeDetectorRef.markForCheck())});return function(i){return r.apply(this,arguments)}}())}static{this.\u0275fac=function(r){return new(r||e)(T(Oi),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-error"]],standalone:!0,features:[wt],decls:1,vars:1,consts:[["class","mt-3","e2e-id","error",4,"ngIf"],["e2e-id","error",1,"mt-3"],[1,"error","alert","alert-warning","d-flex"]],template:function(r,i){1&r&&ie(0,JH,3,1,"section",0),2&r&&O("ngIf",i.error)},dependencies:[Ge,sn],styles:[".error[_ngcontent-%COMP%]{display:block;font-family:monospace;white-space:pre-wrap;word-break:break-word}"],changeDetection:0})}}return e})();function ZH(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"span",5),re(2),L(),x(3,"button",6),X("click",function(){return _e(t),de(B().get_state_root_hash())}),re(4,"Refresh"),L()()}if(2&e){const t=B();P(2),at("state root hash is ",t.state_root_hash,"")}}function QH(e,n){if(1&e&&(x(0,"div",7)(1,"span",8),re(2),L()()),2&e){const t=B();P(2),at("account hash is ",t.account_hash,"")}}function YH(e,n){if(1&e&&(x(0,"div",7)(1,"span",9),re(2),L()()),2&e){const t=B();P(2),at("main purse is ",t.main_purse,"")}}let HD=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.get_state_root_hash_output=new Fe}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.account_hash&&(this.account_hash=t.account_hash),t.main_purse&&(this.main_purse=t.main_purse),t.state_root_hash&&(this.state_root_hash=t.state_root_hash),t&&this.changeDetectorRef.markForCheck()})}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}get_state_root_hash(){this.get_state_root_hash_output.emit(!0)}static{this.\u0275fac=function(r){return new(r||e)(T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-status"]],outputs:{get_state_root_hash_output:"get_state_root_hash_output"},standalone:!0,features:[wt],decls:5,vars:3,consts:[[1,"row"],[1,"col-sm-12"],["class","alert alert-success d-flex flex-md-row flex-column justify-content-between align-items-center mb-1 mb-md-3",4,"ngIf"],["class","alert alert-warning d-flex mb-1 mb-md-3",4,"ngIf"],[1,"alert","alert-success","d-flex","flex-md-row","flex-column","justify-content-between","align-items-center","mb-1","mb-md-3"],["e2e-id","state_root_hash",1,"ellipsis-container"],[1,"btn","me-0",3,"click"],[1,"alert","alert-warning","d-flex","mb-1","mb-md-3"],["e2e-id","account_hash",1,"ellipsis-container"],["e2e-id","main_purse",1,"ellipsis-container"]],template:function(r,i){1&r&&(x(0,"div",0)(1,"div",1),ie(2,ZH,5,1,"div",2)(3,QH,3,1,"div",3)(4,YH,3,1,"div",3),L()()),2&r&&(P(2),O("ngIf",i.state_root_hash),P(),O("ngIf",i.account_hash),P(),O("ngIf",i.main_purse))},dependencies:[Ge,sn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;font-size:.8em;max-width:260px}@media (min-width: 380px){.ellipsis-container[_ngcontent-%COMP%]{max-width:320px}}@media (min-width: 425px){.ellipsis-container[_ngcontent-%COMP%]{max-width:360px}}@media (min-width: 576px){.ellipsis-container[_ngcontent-%COMP%]{max-width:480px}}@media (min-width: 768px){.ellipsis-container[_ngcontent-%COMP%]{max-width:none;font-size:1em}}.btn[_ngcontent-%COMP%]{white-space:nowrap}@media (max-width: 767px){.btn[_ngcontent-%COMP%]{font-size:.8em;padding-bottom:0}}"],changeDetection:0})}}return e})();const fg=e=>({deprecated:e});function XH(e,n){if(1&e&&(x(0,"option",12),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t)("ngClass",tn(4,fg,r.sdk_deprecated.includes(t))),P(),at(" ",t," ")}}function ez(e,n){if(1&e&&(x(0,"option",13),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t),P(),at(" ",t," ")}}function tz(e,n){if(1&e&&(x(0,"option",13),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t),P(),at(" ",t," ")}}function nz(e,n){if(1&e&&(x(0,"option",13),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t),P(),at(" ",t," ")}}function rz(e,n){if(1&e&&(x(0,"option",12),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t)("ngClass",tn(4,fg,r.sdk_deprecated.includes(t))),P(),at(" ",t," ")}}function sz(e,n){if(1&e&&(x(0,"option",12),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t)("ngClass",tn(4,fg,r.sdk_deprecated.includes(t))),P(),at(" ",t," ")}}let zD=(()=>{class e{constructor(t,r,i){this.sdk=t,this.stateService=r,this.changeDetectorRef=i,this.select_action=new Fe}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.sdk_methods=Object.getOwnPropertyNames(Object.getPrototypeOf(t.sdk)).filter(o=>"function"==typeof t.sdk[o]).filter(o=>!["free","constructor","__destroy_into_raw","getRPCAddress","setRPCAddress","getNodeAddress","setNodeAddress","getVerbosity","setVerbosity","watchDeploy","waitDeploy"].includes(o)).filter(o=>!o.endsWith("_options")).filter(o=>!o.startsWith("chain_")).filter(o=>!o.startsWith("state_")).filter(o=>!o.startsWith("info_")).filter(o=>!o.startsWith("account_")).filter(o=>!o.startsWith("wait")).filter(o=>!o.startsWith("watch")).sort(),t.sdk_deploy_methods=t.sdk_methods.filter(o=>["deploy","speculative_deploy","speculative_transfer","transfer"].includes(o)),t.sdk_deploy_utils_methods=t.sdk_methods.filter(o=>["make_deploy","make_transfer","sign_deploy","put_deploy","call_entrypoint_deploy","install_deploy"].includes(o)),t.sdk_transaction_methods=t.sdk_methods.filter(o=>["transaction","speculative_transaction","speculative_transfer_transaction","transfer_transaction"].includes(o)),t.sdk_transaction_utils_methods=t.sdk_methods.filter(o=>["make_transaction","make_transfer_transaction","sign_transaction","put_transaction","call_entrypoint","install","query_contract_dict","query_contract_key"].includes(o)),t.sdk_deprecated=t.sdk_methods.filter(o=>["get_account","get_deploy","get_era_info","put_deploy","speculative_exec_deploy","sign_deploy","make_deploy","make_transfer","speculative_deploy","speculative_transfer","deploy","transfer","call_entrypoint_deploy","install_deploy","get_balance"].includes(o)),t.sdk_binary_methods=t.sdk_methods.filter(o=>o.startsWith("get_binary"));const r=new Set,i=new Set;t.sdk_binary_methods=[...new Set(t.sdk_binary_methods.filter(o=>{if(o.endsWith("_hash")||o.endsWith("_height")||o.endsWith("_era")||o.endsWith("_state_root_hash")){i.add(o);const l=o.slice(0,o.lastIndexOf("_")).replace(/(_by_block|_by_state_root|_by)$/,"");return r.add(l),!1}return!0}))],t.sdk_binary_methods=[...t.sdk_binary_methods,...Array.from(r)],t.sdk_binary_methods=[...new Set(t.sdk_binary_methods.sort())],t.sdk_rpc_methods=t.sdk_methods.filter(o=>![...t.sdk_binary_methods,...Array.from(i),...t.sdk_deploy_methods,...t.sdk_deploy_utils_methods,...t.sdk_transaction_utils_methods,...t.sdk_transaction_methods].includes(o)),t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}selectAction(t){this.select_action.emit(t.target.value)}static{this.\u0275fac=function(r){return new(r||e)(T(Ii),T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-action"]],outputs:{select_action:"select_action"},standalone:!0,features:[wt],decls:18,vars:6,consts:[["selectActionElt",""],[1,"input-group"],["for","selectActionElt",1,"input-group-text"],["id","selectActionElt","e2e-id","selectActionElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","rpc"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["label","transaction"],[3,"value","selected",4,"ngFor","ngForOf"],["label","utils"],["label","binary"],["label","deploy",1,"deprecated"],["label","deploy utils",1,"deprecated"],[3,"value","selected","ngClass"],[3,"value","selected"]],template:function(r,i){if(1&r){const o=Re();x(0,"div",1)(1,"label",2),re(2,"Action"),L(),x(3,"select",3,0),X("change",function(l){return _e(o),de(i.selectAction(l))}),pt(5,"option"),x(6,"optgroup",4),ie(7,XH,2,6,"option",5),L(),x(8,"optgroup",6),ie(9,ez,2,3,"option",7),L(),x(10,"optgroup",8),ie(11,tz,2,3,"option",7),L(),x(12,"optgroup",9),ie(13,nz,2,3,"option",7),L(),x(14,"optgroup",10),ie(15,rz,2,6,"option",5),L(),x(16,"optgroup",11),ie(17,sz,2,6,"option",5),L()()()}2&r&&(P(7),O("ngForOf",i.sdk_rpc_methods),P(2),O("ngForOf",i.sdk_transaction_methods),P(2),O("ngForOf",i.sdk_transaction_utils_methods),P(2),O("ngForOf",i.sdk_binary_methods),P(2),O("ngForOf",i.sdk_deploy_methods),P(2),O("ngForOf",i.sdk_deploy_utils_methods))},dependencies:[Ge,sr,na],styles:["[_nghost-%COMP%] .deprecated[_ngcontent-%COMP%]{font-style:italic;color:#d3d3d3}"],changeDetection:0})}}return e})();const iz=["*"],oz=e=>[e];let UD=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.submit_action=new Fe}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}submitAction(t){this.submit_action.emit(t)}static{this.\u0275fac=function(r){return new(r||e)(T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-submit-action"]],inputs:{class:"class",e2e:"e2e"},outputs:{submit_action:"submit_action"},standalone:!0,features:[wt],ngContentSelectors:iz,decls:2,vars:4,consts:[["type","button",1,"btn",3,"click","ngClass"]],template:function(r,i){1&r&&(function kv(e){const n=I()[xe][it];if(!n.projection){const r=n.projection=function Pa(e,n){const t=[];for(let r=0;r{class e{constructor(t,r,i,o,c,l){this.config=t,this.sdk=r,this.resultService=i,this.formService=o,this.errorService=c,this.stateService=l,this.verbosity=A.WT.High,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.chain_name&&(this.chain_name=t.chain_name),t.public_key&&(this.public_key=t.public_key),t.secret_key&&(this.secret_key=t.secret_key),t.deploy_json&&(this.deploy_json=t.deploy_json),t.verbosity&&(this.verbosity=t.verbosity),t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier)})}get_account(t){var r=this;return(0,u.A)(function*(){let i;if(i=t||r.getIdentifier("accountIdentifier")?.value?.trim(),!i){const c="account_identifier is missing";return void(c&&r.errorService.setError(c.toString()))}const o=r.sdk.get_account_options({account_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const c=yield r.sdk.get_account(o);return t||r.resultService.setResult(c.toJson()),c}catch(c){return r.errorService.setError(c.toString()),c}}else{const c="get_account_options is missing";c&&r.errorService.setError(c.toString())}})()}get_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("deployHash")?.value?.trim();if(!i){const c="deploy_hash is missing";return void(c&&t.errorService.setError(c.toString()))}const o=t.sdk.get_deploy_options({deploy_hash_as_string:i});o.finalized_approvals=r;try{const c=yield t.sdk.get_deploy(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}get_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("transactionHash")?.value?.trim();if(!i){const c="transaction_hash is missing";return void(c&&t.errorService.setError(c.toString()))}const o=t.sdk.get_transaction_options({transaction_hash_as_string:i});o.finalized_approvals=r;try{const c=yield t.sdk.get_transaction(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}get_entity(t){var r=this;return(0,u.A)(function*(){let i;if(i=t||r.getIdentifier("entityIdentifier")?.value?.trim(),!i){const c="entity_identifier is missing";return void(c&&r.errorService.setError(c.toString()))}const o=r.sdk.get_entity_options({entity_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const c=yield r.sdk.get_entity(o);return t||r.resultService.setResult(c.toJson()),c}catch(c){return r.errorService.setError(c.toString()),c}}else{const c="get_entity_options is missing";c&&r.errorService.setError(c.toString())}})()}get_peers(){var t=this;return(0,u.A)(function*(){let r=[];try{const i=yield t.sdk.get_peers();i&&t.resultService.setResult(i.toJson()),i&&(r=i.peers)}catch(i){i&&t.errorService.setError(i.toString())}return r})()}get_node_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_node_status();return r&&t.resultService.setResult(r.toJson()),r})()}get_state_root_hash(t){var r=this;return(0,u.A)(function*(){let i="";const o=r.sdk.get_state_root_hash_options({});if(!o){const c="get_state_root_hash options are missing";c&&r.errorService.setError(c.toString())}if(t)i=(yield r.sdk.get_state_root_hash(o)).toString();else{r.getIdentifieBlock(o);const c=yield r.sdk.get_state_root_hash(o);c&&r.resultService.setResult(c.toJson())}return i})()}get_auction_info(){var t=this;return(0,u.A)(function*(){try{const r=t.sdk.get_auction_info_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_auction_info(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_balance(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("purseUref")?.value?.trim(),i=t.getIdentifier("stateRootHash")?.value?.trim();if(r)try{const o=t.sdk.get_balance_options({state_root_hash_as_string:i||"",purse_uref_as_string:r}),c=yield t.sdk.get_balance(o);c&&t.resultService.setResult(c.toJson())}catch(o){o&&t.errorService.setError(o.toString())}else{const o="purse_uref is missing";o&&t.errorService.setError(o.toString())}})()}get_block(){var t=this;return(0,u.A)(function*(){try{const r=t.sdk.get_block_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_block_transfers(){var t=this;return(0,u.A)(function*(){try{const r=t.sdk.get_block_transfers_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block_transfers(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_chainspec(){var t=this;return(0,u.A)(function*(){try{const r=yield t.sdk.get_chainspec(),i=(0,A.IQ)(r?.chainspec_bytes.chainspec_bytes);i&&t.resultService.setResult(i)}catch(r){r&&t.errorService.setError(r.toString())}})()}get_era_info(){var t=this;return(0,u.A)(function*(){const r=t.sdk.get_era_info_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_info(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_era_summary(){var t=this;return(0,u.A)(function*(){const r=t.sdk.get_era_summary_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_summary(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_validator_changes(){var t=this;return(0,u.A)(function*(){try{const r=yield t.sdk.get_validator_changes();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}list_rpcs(){var t=this;return(0,u.A)(function*(){try{const r=yield t.sdk.list_rpcs();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}query_balance(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance(i);o&&t.resultService.setResult(o.balance)}catch(o){o&&t.errorService.setError(o.toString())}})()}query_balance_details(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_details_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance_details(i);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}query_global_state(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("queryPath")?.value?.trim()||"",i=t.getIdentifier("queryKey")?.value?.trim();if(!i){const c="key is missing";return void(c&&t.errorService.setError(c.toString()))}const o=t.sdk.query_global_state_options({key_as_string:i,path_as_string:r});t.getGlobalIdentifier(o);try{const c=yield t.sdk.query_global_state(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}deploy(t=!0,r,i){var o=this;return(0,u.A)(function*(){const c=(0,A.lg)(),l=o.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!o.public_key)return void o.errorService.setError("public_key is missing".toString());if(t&&!o.secret_key)return void o.errorService.setError("secret_key is missing".toString());const _=new A.Bh(o.chain_name,o.public_key,o.secret_key,c,l),d=new A.q1,p=o.getIdentifier("paymentAmount")?.value?.trim();if(!p){const m="paymentAmount is missing";return void(m&&o.errorService.setError(m.toString()))}d.payment_amount=p;const h=o.get_session_params(i);try{let m;if(m=r?yield o.sdk.speculative_deploy(_,h,d):t?yield o.sdk.deploy(_,h,d):o.sdk.make_deploy(_,h,d),m){const w=m.toJson();o.deploy_json=(0,A.mL)(w,o.verbosity),o.deploy_json&&o.resultService.setResult(w),!t&&o.updateDeployJson(o.deploy_json)}return m}catch(m){return void(m&&o.errorService.setError(m))}})()}transaction(t=!0,r,i){var o=this;return(0,u.A)(function*(){const c=(0,A.lg)(),l=o.getIdentifier("TTL")?.value?.trim()||"",_=o.getIdentifier("gasPriceTolerance")?.value?.trim()||"",d=o.getIdentifier("selectPricingMode")?.value?.trim()||"",p=o.getIdentifier("additionalComputationFactor")?.value?.trim()||"";if(!t&&!o.public_key){const b="public_key is missing";return void(b&&o.errorService.setError(b.toString()))}if(t&&!o.secret_key){const b="secret_key is missing";return void(b&&o.errorService.setError(b.toString()))}let h,m;try{const b=o.get_builder_params(i);if(!b){const S="builder params are missing";throw S&&o.errorService.setError(S.toString()),S}h=b}catch(b){return void(b&&o.errorService.setError(b.toString()))}m=new A.kD(o.chain_name,o.public_key,o.secret_key,c,l),_&&(m.gas_price_tolerance=_),d&&(m.pricing_mode=d),d==A.MK.Fixed&&(m.additional_computation_factor=p);const w=o.getIdentifier("paymentAmount")?.value?.trim();if(w){m.payment_amount=w,m=o.addTransactionArgs(m);try{let b;if(b=r&&t?yield o.sdk.speculative_transaction(h,m):t?yield o.sdk.transaction(h,m):o.sdk.make_transaction(h,m),b){const S=b.toJson();o.transaction_json=(0,A.mL)(S,o.verbosity),o.transaction_json&&o.resultService.setResult(S),!t&&o.updateTransactionJson(o.transaction_json)}return b}catch(b){return void(b&&o.errorService.setError(b))}}else{const b="paymentAmount is missing";b&&o.errorService.setError(b.toString())}})()}install_deploy(t){var r=this;return(0,u.A)(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const _="paymentAmount is missing";return void(_&&r.errorService.setError(_.toString()))}if(!r.secret_key){const _="secret_key is missing";return void(_&&r.errorService.setError(_.toString()))}if(!t?.buffer){const _="wasmBuffer is missing";_&&r.errorService.setError(_.toString())}const c=new A.Bh(r.chain_name,r.public_key,r.secret_key),l=r.get_session_params(t);try{const _=yield r.sdk.install_deploy(c,l,i);_&&r.resultService.setResult(_.toJson())}catch(_){_&&r.errorService.setError(_.toString())}})()}install(t){var r=this;return(0,u.A)(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const l="paymentAmount is missing";return void(l&&r.errorService.setError(l.toString()))}if(!r.secret_key){const l="secret_key is missing";return void(l&&r.errorService.setError(l.toString()))}if(!t?.buffer){const l="wasmBuffer is missing";l&&r.errorService.setError(l.toString())}let c=new A.kD(r.chain_name,r.public_key,r.secret_key);c.payment_amount=i,c=r.addTransactionArgs(c);try{const l=t&&(yield r.sdk.install(c,A.Ix.fromUint8Array(t)));l&&r.resultService.setResult(l.toJson())}catch(l){l&&r.errorService.setError(l.toString())}})()}transfer(t=!0,r){var i=this;return(0,u.A)(function*(){const o=(0,A.lg)(),c=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const l=new A.Bh(i.chain_name,i.public_key,i.secret_key,o,c),_=new A.q1;_.payment_amount=i.config.standard_payment_amount.toString();const d=i.getIdentifier("transferAmount")?.value?.trim(),p=i.getIdentifier("targetAccount")?.value?.trim();if(d&&p)try{let h;if(h=r?yield i.sdk.speculative_transfer(d,p,void 0,l,_):t?yield i.sdk.transfer(d,p,void 0,l,_):yield i.sdk.make_transfer(d,p,void 0,l,_),h){const m=h.toJson();i.deploy_json=(0,A.mL)(m,i.verbosity),i.deploy_json&&i.resultService.setResult(m),!t&&i.updateDeployJson(i.deploy_json)}return h}catch(h){return void(h&&i.errorService.setError(h))}else{const h="transfer_amount or target_account is missing";h&&i.errorService.setError(h.toString())}})()}transfer_transaction(t=!0,r){var i=this;return(0,u.A)(function*(){const o=(0,A.lg)(),c=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const l=new A.kD(i.chain_name,i.public_key,i.secret_key,o,c),_=i.getIdentifier("transferAmount")?.value?.trim(),d=i.getIdentifier("targetAccount")?.value?.trim();if(!_||!d){const h="transfer_amount or target_account is missing";return void(h&&i.errorService.setError(h.toString()))}const p=i.config.standard_payment_amount.toString();l.payment_amount=p;try{let h;if(h=r?yield i.sdk.speculative_transfer_transaction(void 0,d,_,l,void 0):t?yield i.sdk.transfer_transaction(void 0,d,_,l):yield i.sdk.make_transfer_transaction(void 0,d,_,l),h){const m=h.toJson();i.transaction_json=(0,A.mL)(m,i.verbosity),i.transaction_json&&i.resultService.setResult(m),!t&&i.updateTransactionJson(i.transaction_json)}return h}catch(h){return void(h&&i.errorService.setError(h))}})()}put_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const c="deployJson is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new A.m9(JSON.parse(r)),o=yield t.sdk.put_deploy(i);return o&&t.resultService.setResult(o.toJson()),o})()}put_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const c="deployJson is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new A.ZX(JSON.parse(r)),o=yield t.sdk.put_transaction(i);return o&&t.resultService.setResult(o.toJson()),o})()}speculative_exec_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const l="signed_deploy is missing";return void(l&&t.errorService.setError(l.toString()))}const i=new A.m9(JSON.parse(r)),o=t.sdk.get_speculative_exec_deploy_options({deploy:i.toJson()}),c=yield t.sdk.speculative_exec_deploy(o);return c&&t.resultService.setResult(c.toJson()),c})()}speculative_exec(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const l="signed_transaction is missing";return void(l&&t.errorService.setError(l.toString()))}const i=new A.ZX(JSON.parse(r)),o=t.sdk.get_speculative_exec_options({transaction:i.toJson()}),c=yield t.sdk.speculative_exec(o);return c&&t.resultService.setResult(c.toJson()),c})()}sign_deploy(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const o="signed_deploy is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new A.m9(JSON.parse(r))}catch{const o="Error parsing deploy";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.deploy_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json);else{const o="signed_deploy is missing";o&&t.errorService.setError(o.toString())}})()}sign_transaction(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const o="signed_transaction is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new A.ZX(JSON.parse(r))}catch{const o="Error parsing transaction";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.transaction_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json);else{const o="signed_transaction is missing";o&&t.errorService.setError(o.toString())}})()}wallet_sign_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r)return void t.errorService.setError("deploy_to_sign is missing".toString());let i;try{i=new A.m9(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new A._e).signDeploy(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.deploy_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json)})()}wallet_sign_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r)return void t.errorService.setError("transaction_to_sign is missing".toString());let i;try{i=new A.ZX(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new A._e).signTransaction(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.transaction_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}make_deploy(t){var r=this;return(0,u.A)(function*(){yield r.deploy(!1,!1,t)})()}make_transaction(t){var r=this;return(0,u.A)(function*(){yield r.transaction(!1,!1,t)})()}make_transfer(){var t=this;return(0,u.A)(function*(){yield t.transfer(!1)})()}make_transfer_transaction(){var t=this;return(0,u.A)(function*(){yield t.transfer_transaction(!1)})()}speculative_transfer(){var t=this;return(0,u.A)(function*(){yield t.transfer(!1,!0)})()}speculative_transfer_transaction(){var t=this;return(0,u.A)(function*(){yield t.transfer(!1,!0)})()}speculative_deploy(t){var r=this;return(0,u.A)(function*(){yield r.deploy(!1,!0,t)})()}speculative_transaction(t){var r=this;return(0,u.A)(function*(){yield r.transaction(!1,!0,t)})()}call_entrypoint_deploy(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const c="secret_key is missing";return void(c&&t.errorService.setError(c.toString()))}const r=new A.Bh(t.chain_name,t.public_key,t.secret_key),i=t.get_session_params(),o=t.getIdentifier("paymentAmount")?.value?.trim();if(o)try{const c=yield t.sdk.call_entrypoint_deploy(r,i,o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}else{const c="paymentAmount is missing";c&&t.errorService.setError(c.toString())}})()}call_entrypoint(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const c="secret_key is missing";return void(c&&t.errorService.setError(c.toString()))}let r=new A.kD(t.chain_name,t.public_key,t.secret_key);const i=t.getIdentifier("paymentAmount")?.value?.trim();if(!i){const c="paymentAmount is missing";return void(c&&t.errorService.setError(c.toString()))}r.payment_amount=i,r=t.addTransactionArgs(r);const o=t.get_builder_params();try{const c=o&&(yield t.sdk.call_entrypoint(o,r));c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}query_contract_dict(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim();if(!i){const d="itemKey is missing";return void(d&&t.errorService.setError(d.toString()))}const o=t.getIdentifier("seedEntityHash")?.value?.trim()||"",c=t.getIdentifier("seedName")?.value?.trim();if(!c){const d="seedName is missing";return void(d&&t.errorService.setError(d.toString()))}let l;if(o&&(l=new A.NX,l.setEntityNamedKey(o,c,i)),!l){const d="dictionary_item_params is missing";return void(d&&t.errorService.setError(d.toString()))}const _=t.sdk.query_contract_dict_options({state_root_hash_as_string:r||""});_.dictionary_item_params=l;try{const d=yield t.sdk.query_contract_dict(_);d&&t.resultService.setResult(d.toJson())}catch(d){d&&t.errorService.setError(d.toString())}})()}query_contract_key(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("queryKey")?.value?.trim();if(!r){const c="key is missing";return void(c&&t.errorService.setError(c.toString()))}const i=t.getIdentifier("queryPath")?.value?.toString().trim().replace(/^\/+|\/+$/g,""),o=t.sdk.query_contract_key_options({entity_identifier_as_string:r,path_as_string:i});t.getIdentifieBlock(o);try{const c=yield t.sdk.query_contract_key(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}get_dictionary_item(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim(),o=t.getIdentifier("seedKey")?.value?.trim();if(!i&&!o){const d="seedKey or itemKey is missing";return void(d&&t.errorService.setError(d.toString()))}const c=t.getIdentifier("seedUref")?.value?.trim();let l;if(c&&"newFromSeedUref"===t.select_dict_identifier)l=A.bL.newFromSeedUref(c,i);else if(o&&"newFromDictionaryKey"===t.select_dict_identifier)l=A.bL.newFromDictionaryKey(o);else{const d=t.getIdentifier("seedContractHash")?.value?.trim(),p=t.getIdentifier("seedEntityHash")?.value?.trim(),h=t.getIdentifier("seedAccountHash")?.value?.trim(),m=t.getIdentifier("seedName")?.value?.trim();if(!m){const w="seed_name is missing";return void(w&&t.errorService.setError(w.toString()))}d&&"newFromContractInfo"===t.select_dict_identifier&&(l=A.bL.newFromContractInfo(d,m,i)),p&&"newFromEntityInfo"===t.select_dict_identifier?l=A.bL.newFromEntityInfo(p,m,i):h&&"newFromAccountInfo"===t.select_dict_identifier&&(l=A.bL.newFromAccountInfo(h,m,i))}if(!l){const d="dictionary_item_identifier is missing";return void(d&&t.errorService.setError(d.toString()))}const _=t.sdk.get_dictionary_item_options({state_root_hash_as_string:r||""});_.dictionary_item_identifier=l;try{const d=yield t.sdk.state_get_dictionary_item(_);d&&t.resultService.setResult(d.toJson())}catch(d){d&&t.errorService.setError(d.toString())}})()}getIdentifier(t){return this.formService.form.get(t)}getIdentifieBlock(t){const r=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=this.getIdentifier("blockIdentifierHash")?.value?.trim();if(i)t.maybe_block_id_as_string=i,t.maybe_block_identifier=void 0;else if(r){const o=A.z$.fromHeight(BigInt(r));t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=o}else t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=void 0}getGlobalIdentifier(t){const r=this.getIdentifier("stateRootHash")?.value?.trim();let i;if(r)i=A.eg.fromStateRootHash(new A.np(r));else{const o=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),c=this.getIdentifier("blockIdentifierHash")?.value?.trim();c?i=A.eg.fromBlockHash(new A.Iy(c)):o&&(i=A.eg.fromBlockHeight(BigInt(o)))}i&&(t.global_state_identifier=i)}get_session_params(t){const r=new A.Qt,i=this.getIdentifier("entryPoint")?.value?.trim();i&&(r.session_entry_point=i);const o=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(h=>h.trim()).filter(h=>""!==h),c=this.getIdentifier("argsJson")?.value?.trim();o?.length?r.session_args_simple=o:c&&(r.session_args_json=c);const l=this.getIdentifier("callPackage")?.value,_=this.getIdentifier("sessionHash")?.value?.trim(),d=this.getIdentifier("sessionName")?.value?.trim();l?_?r.session_package_hash=_:d&&(r.session_package_name=d):_?r.session_hash=_:d&&(r.session_name=d),t&&(r.session_bytes=A.Ix.fromUint8Array(t));const p=this.getIdentifier("version")?.value?.trim();return p&&(r.session_version=p),r}get_builder_params(t){let r=new A.C_;const i=this.getIdentifier("entityHash")?.value?.trim(),o=this.getIdentifier("entityAlias")?.value?.trim(),c=this.getIdentifier("entryPoint")?.value?.trim();if(this.getIdentifier("callPackage")?.value){const _=this.getIdentifier("version")?.value?.trim();if(o)r=A.C_.newPackageAlias(o,c,_);else{let d=null;try{d=A.Vt.fromFormattedStr(i)}catch{try{d=new A.Vt(i)}catch{const m="package_hash could not be parsed";throw this.errorService.setError(m.toString()),m}}d&&(r=A.C_.newPackage(d,c,_))}}else if(o)r=A.C_.newInvocableEntityAlias(o,c);else if(i){let _=null,d=null;try{_=A.xM.fromFormattedStr(i),d=new A.Ep(_.toHexString())}catch{try{d=new A.Ep(i)}catch{const m="entity_hash could not be parsed";throw this.errorService.setError(m.toString()),m}}d&&(r=A.C_.newInvocableEntity(d,c))}if(t){const _="true"===this.getIdentifier("selectTransactionCategory")?.value?.trim();r=A.C_.newSession(A.Ix.fromUint8Array(t),_)}return r}addTransactionArgs(t){const r=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(o=>o.trim()).filter(o=>""!==o),i=this.getIdentifier("argsJson")?.value?.trim();return r?.length?t.session_args_simple=r:i&&(t.session_args_json=i),t}static{this.\u0275fac=function(r){return new(r||e)(U(Wn),U(Ii),U(Sa),U(vs),U(Oi),U(cn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const az=["publicKeyElt"],cz=e=>[e];let qD=(()=>{class e{constructor(t,r,i,o,c,l){this.config=t,this.stateService=r,this.clientService=i,this.storageService=o,this.changeDetectorRef=c,this.formService=l}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription(),t.public_key=t.storageService.get("public_key")||t.public_key,t.public_key&&(yield t.updateAccount(),t.stateService.setState({public_key:t.public_key}))})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,u.A)(function*(i){i.action&&(t.action=i.action),i.public_key&&t.public_key!=i.public_key?(i.public_key&&(t.public_key=i.public_key),i.secret_key&&(t.secret_key=i.secret_key),yield t.updateAccount()):i.public_key&&i.public_key&&(t.public_key=i.public_key),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onPublicKeyChange(){var t=this;return(0,u.A)(function*(){const r=t.publicKeyElt&&t.publicKeyElt.nativeElement.value.toString().trim();t.public_key="",t.stateService.setState({public_key:r,secret_key:""}),t.storageService.setState({public_key:r})})()}isInvalid(){return!(this.config.action_needs_public_key&&!this.config.action_needs_public_key?.includes(this.action)||this.publicKeyElt?.nativeElement.value?.trim())}updateAccount(){var t=this;return(0,u.A)(function*(){const r=yield t.clientService.get_entity(t.public_key);if(!r.entity_result)return;const i=r?.entity_result?.AddressableEntity?.entity.entity_kind.Account,o=r?.entity_result?.AddressableEntity?.entity.main_purse;t.stateService.setState({account_hash:i,main_purse:o}),t.storageService.setState({account_hash:i,main_purse:o}),i&&t.formService.updateForm()})()}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(cn),T($D),T(Ea),T(Gt),T(vs))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-public-key"]],viewQuery:function(r,i){if(1&r&>(az,5),2&r){let o;ht(o=mt())&&(i.publicKeyElt=o.first)}},standalone:!0,features:[wt],decls:7,vars:4,consts:[["publicKeyElt",""],["for","publicKeyElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","public_key","placeholder","e.g. 0x","id","publicKeyElt","e2e-id","publicKeyElt",1,"form-control","form-control-xs",3,"input","value","ngClass"]],template:function(r,i){if(1&r){const o=Re();x(0,"label",1)(1,"span",2),re(2,"Pub. Key"),L(),x(3,"span",3),re(4,"Public Key"),L()(),x(5,"input",4,0),X("input",function(){return _e(o),de(i.onPublicKeyChange())}),L()}2&r&&(P(5),O("value",i.public_key||"")("ngClass",tn(2,cz,i.isInvalid()?"is-invalid":"")))},dependencies:[Ge,sr],changeDetection:0})}}return e})();const lz=["secretKeyElt"],uz=e=>[e];function _z(e,n){if(1&e){const t=Re();x(0,"button",4),X("click",function(){return _e(t),de(B().onSecretKeyClick())}),re(1," Load Secret Key\n"),L()}if(2&e){const t=B();O("ngClass",tn(1,uz,t.isInvalid()?"btn-warning":"btn-secondary"))}}function dz(e,n){if(1&e){const t=Re();x(0,"button",5),X("click",function(){return _e(t),de(B().onSecretKeyClick())}),re(1," Secret Key Loaded\n"),L()}}let GD=(()=>{class e{constructor(t,r,i,o,c){this.config=t,this.stateService=r,this.errorService=i,this.storageService=o,this.changeDetectorRef=c}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,u.A)(function*(i){i.action&&(t.action=i.action),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onSecretKeyClick(){this.secretKeyElt.nativeElement.click()}onPemSelected(t){var r=this;return(0,u.A)(function*(){const i=t.target.files?.item(0);let o="";if(i){let c=yield i.text();if(!c.trim())return;c=c.trim(),r.errorService.setError("");try{o=(0,A.kw)(c)}catch(l){r.errorService.setError(l)}o&&(r.secret_key=c)}else r.secret_key="";r.stateService.setState({public_key:o,secret_key:r.secret_key}),r.storageService.setState({public_key:o}),r.secretKeyElt.nativeElement.value="",r.changeDetectorRef.markForCheck()})()}isInvalid(){return!(this.config.action_needs_secret_key&&!this.config.action_needs_secret_key?.includes(this.action)||this.secret_key)}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(cn),T(Oi),T(Ea),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-secret-key"]],viewQuery:function(r,i){if(1&r&>(lz,5),2&r){let o;ht(o=mt())&&(i.secretKeyElt=o.first)}},standalone:!0,features:[wt],decls:4,vars:2,consts:[["secretKeyElt",""],["name","secret_key","type","file","id","secretKeyElt","accept",".pem","e2e-id","secretKeyElt",1,"visually-hidden",3,"change"],["class","btn",3,"ngClass","click",4,"ngIf"],["class","btn btn-light",3,"click",4,"ngIf"],[1,"btn",3,"click","ngClass"],[1,"btn","btn-light",3,"click"]],template:function(r,i){if(1&r){const o=Re();x(0,"input",1,0),X("change",function(l){return _e(o),de(i.onPemSelected(l))}),L(),ie(2,_z,2,3,"button",2)(3,dz,2,0,"button",3)}2&r&&(P(2),O("ngIf",!i.secret_key),P(),O("ngIf",i.secret_key))},dependencies:[Ge,sr,sn],changeDetection:0})}}return e})(),fz=(()=>{class e{constructor(t,r,i,o,c,l){this.config=t,this.sdk=r,this.resultService=i,this.formService=o,this.errorService=c,this.stateService=l,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.public_key&&(this.public_key=t.public_key),t.secret_key&&(this.secret_key=t.secret_key)})}get_binary_latest_switch_block_header(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_latest_switch_block_header();return r&&t.resultService.setResult(r),r})()}get_binary_latest_block_header(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_latest_block_header();return r&&t.resultService.setResult(r),r})()}get_binary_block_header(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(i){const o=yield t.sdk.get_binary_block_header_by_hash(new A.Iy(i));return o&&t.resultService.setResult(o),o}if(r){const o=yield t.sdk.get_binary_block_header_by_height(BigInt(r));return o&&t.resultService.setResult(o),o}return t.get_binary_latest_block_header()})()}get_binary_latest_signed_block(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_latest_signed_block();return r&&t.resultService.setResult(r),r})()}get_binary_signed_block(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(i){const o=yield t.sdk.get_binary_signed_block_by_hash(new A.Iy(i));return o&&t.resultService.setResult(o),o}if(r){const o=yield t.sdk.get_binary_signed_block_by_height(BigInt(r));return o&&t.resultService.setResult(o),o}return t.get_binary_latest_signed_block()})()}get_binary_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionHash")?.value?.trim(),i=t.getIdentifier("finalizedApprovals")?.value,o=yield t.sdk.get_binary_transaction_by_hash(new A.nQ(r),i);return o&&t.resultService.setResult(o),o})()}get_binary_peers(){var t=this;return(0,u.A)(function*(){let r=[];try{const i=yield t.sdk.get_binary_peers();i&&t.resultService.setResult(i),i&&(r=i.peers)}catch(i){i&&t.errorService.setError(i.toString())}return r})()}get_binary_uptime(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_uptime();return r&&t.resultService.setResult(r),r})()}get_binary_last_progress(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_last_progress();return r&&t.resultService.setResult(r),r})()}get_binary_reactor_state(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_reactor_state();return r&&t.resultService.setResult(r),r})()}get_binary_network_name(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_network_name();return r&&t.resultService.setResult(r),r})()}get_binary_consensus_validator_changes(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_consensus_validator_changes();return r&&t.resultService.setResult(r),r})()}get_binary_block_synchronizer_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_block_synchronizer_status();return r&&t.resultService.setResult(r),r})()}get_binary_available_block_range(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_available_block_range();return r&&t.resultService.setResult(r),r})()}get_binary_next_upgrade(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_next_upgrade();return r&&t.resultService.setResult(r),r})()}get_binary_consensus_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_consensus_status();return r&&t.resultService.setResult(r),r})()}get_binary_chainspec_raw_bytes(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_chainspec_raw_bytes();return r&&t.resultService.setResult(r),r})()}get_binary_node_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_node_status();return r&&t.resultService.setResult(r),r})()}get_binary_validator_reward_by_era(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("eraId")?.value?.trim(),o=yield t.sdk.get_binary_validator_reward_by_era(new A.J3(r),new A.M3(BigInt(i)));return o&&t.resultService.setResult(o),o})()}get_binary_validator_reward(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),o=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(o){const c=yield t.sdk.get_binary_validator_reward_by_block_hash(new A.J3(r),new A.Iy(o));return c&&t.resultService.setResult(c),c}if(i){const c=yield t.sdk.get_binary_validator_reward_by_block_height(new A.J3(r),BigInt(i));return c&&t.resultService.setResult(c),c}t.get_binary_validator_reward_by_era()})()}get_binary_delegator_reward_by_era(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("delegatorKey")?.value?.trim(),o=t.getIdentifier("eraId")?.value?.trim(),c=yield t.sdk.get_binary_delegator_reward_by_era(new A.J3(r),new A.J3(i),new A.M3(BigInt(o)));return c&&t.resultService.setResult(c),c})()}get_binary_delegator_reward(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("delegatorKey")?.value?.trim(),o=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),c=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(c){const l=yield t.sdk.get_binary_delegator_reward_by_block_hash(new A.J3(r),new A.J3(i),new A.Iy(c));return l&&t.resultService.setResult(l),l}if(o){const l=yield t.sdk.get_binary_delegator_reward_by_block_height(new A.J3(r),new A.J3(i),BigInt(o));return l&&t.resultService.setResult(l),l}t.get_binary_delegator_reward_by_era()})()}get_binary_read_record(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("recordId")?.value?.trim(),i=t.getIdentifier("key")?.value?.trim(),o=yield t.sdk.get_binary_read_record(new A.Fg(r),(0,A.AS)(i));return o&&t.resultService.setResult(o),o})()}get_binary_global_state_item(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("key")?.value?.trim(),i=t.getIdentifier("queryPath")?.value?.toString().trim().replace(/^\/+|\/+$/g,"").split("/")||[],o=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),c=t.getIdentifier("blockIdentifierHash")?.value?.trim(),l=t.getIdentifier("stateRootHash")?.value?.trim();if(c){const _=yield t.sdk.get_binary_global_state_item_by_block_hash(new A.Iy(c),A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}if(o){const _=yield t.sdk.get_binary_global_state_item_by_block_height(BigInt(o),A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}if(l){const _=yield t.sdk.get_binary_global_state_item_by_state_root_hash(A.np.fromString(l),A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}{const _=yield t.sdk.get_binary_global_state_item(A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}})()}get_binary_try_accept_transaction(t){var r=this;return(0,u.A)(function*(){if(!r.public_key)return void r.errorService.setError("public_key is missing".toString());if(!r.secret_key)return void r.errorService.setError("secret_key is missing".toString());if(!t)return void r.errorService.setError("transaction is missing".toString());const i=yield r.sdk.get_binary_try_accept_transaction(t);return i&&r.resultService.setResult(i),i})()}get_binary_try_speculative_execution(t){var r=this;return(0,u.A)(function*(){if(!r.public_key)return void r.errorService.setError("public_key is missing".toString());if(!r.secret_key)return void r.errorService.setError("secret_key is missing".toString());if(!t)return void r.errorService.setError("transaction is missing".toString());const i=yield r.sdk.get_binary_try_speculative_execution(t);return i&&r.resultService.setResult(i),i})()}get_binary_protocol_version(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_protocol_version();return r&&t.resultService.setResult(r),r})()}getIdentifier(t){return this.formService.form.get(t)}static{this.\u0275fac=function(r){return new(r||e)(U(Wn),U(Ii),U(Sa),U(vs),U(Oi),U(cn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const pz=["selectDictIdentifierElt"],pg=()=>["sign_deploy","sign_transaction"];function gz(e,n){if(1&e){const t=Re();x(0,"comp-submit-action",12),X("submit_action",function(i){return _e(t),de(B().submitAction(i))}),re(1,"Go"),L()}2&e&&(Xc("btn-success ms-1 ms-sm-2 ms-xl-3"),O("e2e","submit"))}function hz(e,n){if(1&e){const t=Re();x(0,"comp-submit-action",12),X("submit_action",function(i){return _e(t),de(B().submitAction(i))}),re(1,"Sign "),L()}2&e&&(Xc("btn-warning mt-3"),O("e2e","sign"))}function mz(e,n){if(1&e){const t=Re();x(0,"button",13),X("click",function(i){_e(t);const o=B();return de(o.walletSign(i,o.action))}),re(1," Casper Wallet Sign "),L()}2&e&&(Xc("btn-warning mt-3 ms-3"),Dt("e2e","wallet_sign"))}let wz=(()=>{class e{constructor(t,r,i,o,c,l,_,d,p,h){this.sdk=t,this.config=r,this.env=i,this.clientService=o,this.binaryService=c,this.resultService=l,this.stateService=_,this.formService=d,this.errorService=p,this.storageService=h,this.form=this.formService.form,this.setStateSubscription()}ngOnInit(){var t=this;return(0,u.A)(function*(){console.info(t.sdk)})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action)})}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){const i=t.storageService.get("action")||t.config.default_action.toString();try{i==t.config.default_action.toString()&&(yield t.handleAction(i,!0)),yield t.get_state_root_hash(!0)}catch(o){console.error(o),t.errorService.setError(o)}t.stateService.setState({action:i}),t.setStateSubscription()})()}selectAction(t){var r=this;return(0,u.A)(function*(){yield r.cleanResult(),r.stateService.setState({action:t}),yield r.handleAction(t),r.storageService.setState({action:t})})()}submitAction(t){var r=this;return(0,u.A)(function*(){yield r.cleanResult(),(r.form.disabled||r.form.valid)&&(yield r.handleAction(t,!0))})()}walletSign(t,r){var i=this;return(0,u.A)(function*(){i.clientService.wallet_sign_deploy()})()}handleAction(t,r=!1){var i=this;return(0,u.A)(function*(){const o=l=>l[t]?.bind(l),c=o(i)||o(i.clientService)||o(i.binaryService);if(c&&"function"==typeof c){if(r)try{yield c()}catch(l){i.errorService.setError(l)}}else{const l=`Method ${t} is not defined on the component or clientService.`;console.error(l),i.errorService.setError(l)}})()}onWasmSelected(t){var r=this;return(0,u.A)(function*(){t&&(r.wasm=t)})()}cleanResult(){var t=this;return(0,u.A)(function*(){t.errorService.setError(""),yield t.resultService.setResult("")})()}deploy(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.deploy(t,r,i.wasm)})()}transaction(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.transaction(t,r,i.wasm)})()}get_account(t){var r=this;return(0,u.A)(function*(){return yield r.clientService.get_account(t)})()}get_entity(t){var r=this;return(0,u.A)(function*(){return yield r.clientService.get_entity(t)})()}get_state_root_hash(t){var r=this;return(0,u.A)(function*(){const i=yield r.clientService.get_state_root_hash(t);return r.stateService.setState({state_root_hash:i}),i})()}transfer(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.transfer(t,r)})()}transfer_transaction(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.transfer_transaction(t,r)})()}get_binary_try_accept_transaction(){var t=this;return(0,u.A)(function*(){let r=yield t.clientService.transaction(!1,!1,t.wasm);return yield t.binaryService.get_binary_try_accept_transaction(r)})()}get_binary_try_speculative_execution(){var t=this;return(0,u.A)(function*(){let r=yield t.clientService.transaction(!1,!0,t.wasm);return yield t.binaryService.get_binary_try_speculative_execution(r)})()}static{this.\u0275fac=function(r){return new(r||e)(T(Ii),T(Wn),T(Op),T($D),T(fz),T(Sa),T(cn),T(vs),T(Oi),T(Ea))}}static{this.\u0275cmp=ct({type:e,selectors:[["app-root"]],viewQuery:function(r,i){if(1&r&>(pz,5),2&r){let o;ht(o=mt())&&(i.selectDictIdentifierElt=o.first)}},standalone:!0,features:[wt],decls:16,vars:8,consts:[[1,"container"],[3,"peers"],[3,"get_state_root_hash_output"],[1,"row","flex-column-reverse","flex-column-reverse","flex-md-row"],[1,"col-12","col-md-6","col-lg-5","my-1","my-md-0","d-flex","justify-content-between"],[1,"w-100",3,"select_action"],[3,"class","e2e","submit_action",4,"ngIf"],[1,"col-12","col-md-6","col-lg-7","my-1","my-md-0","d-flex","justify-content-end","ps-md-0"],[1,"input-group"],[1,"d-flex","justify-content-end","ms-1","ms-sm-2","ms-xl-3"],[3,"wasm_selected","form"],["type","button","class","btn",3,"class","click",4,"ngIf"],[3,"submit_action","e2e"],["type","button",1,"btn",3,"click"]],template:function(r,i){1&r&&(x(0,"main",0),pt(1,"comp-header",1),x(2,"comp-status",2),X("get_state_root_hash_output",function(c){return i.get_state_root_hash(c)}),L(),x(3,"div",3)(4,"div",4)(5,"comp-action",5),X("select_action",function(c){return i.selectAction(c)}),L(),ie(6,gz,2,3,"comp-submit-action",6),L(),x(7,"div",7),pt(8,"comp-public-key",8),x(9,"div",9),pt(10,"comp-secret-key"),L()()(),pt(11,"comp-error"),x(12,"comp-form",10),X("wasm_selected",function(c){return i.onWasmSelected(c)}),L(),ie(13,hz,2,3,"comp-submit-action",6)(14,mz,2,3,"button",11),pt(15,"comp-result"),L()),2&r&&(P(),O("peers",i.peers),P(5),O("ngIf",!cl(5,pg).includes(i.action)),P(6),O("form",i.form),P(),O("ngIf",cl(6,pg).includes(i.action)),P(),O("ngIf",cl(7,pg).includes(i.action)))},dependencies:[Ge,sn,bs,xD,WD,jD,BD,HD,zD,UD,qD,GD],changeDetection:0})}}return e})(),_u=Object.entries(an.networks).map(([e,n])=>({name:e,...n}));xp.production&&(_u=_u.filter(e=>"dev"!==e.name)),an.networks=_u,an.network=_u.find(e=>e.name==xp.default_network.toString()),function WW(e,n){return NL({rootComponent:e,...nC(n)})}(wz,{providers:[{provide:Op,useValue:xp},{provide:Wn,useValue:an},{provide:iC,useValue:an.wasm_asset_path},{provide:oC,useValue:an.network?.rpc_address},{provide:aC,useValue:an.network?.node_address},{provide:cC,useValue:A.WT[an.verbosity]},Xg([function dW(...e){const n=[G2,xS,RS,{provide:Bl,useExisting:RS},{provide:Hl,useFactory:()=>H(Cp,{optional:!0})??H(xS)},{provide:oa,useValue:_W,multi:!0},{provide:Tp,useValue:!0},{provide:VS,useClass:uW}];for(const t of e)n.push(...t.\u0275providers);return function Hi(e){return{\u0275providers:e}}(n)}(function fW(){return function gs(e,n){return{\u0275kind:e,\u0275providers:n}}(kr.LegacyInterceptors,[{provide:WS,useFactory:tW},{provide:oa,useExisting:WS,multi:!0}])}()),YW,PH])]}).then(()=>{}).catch(()=>{})},7278:f=>{var s=0;function a(g,y){var v=y.data;if(Array.isArray(v)&&!(v.length<2)){var E=v[0],k=v[1],M=v[2],j=g._callbacks[E];j&&(delete g._callbacks[E],j(k,M))}}function u(g){var y=this;y._worker=g,y._callbacks={},g.addEventListener("message",function(v){a(y,v)})}u.prototype.postMessage=function(g){var y=this,v=s++,E=[v,g];return new Promise(function(k,M){if(y._callbacks[v]=function(Y,fe){if(Y)return M(new Error(Y.message));k(fe)},typeof y._worker.controller<"u"){var j=new MessageChannel;j.port1.onmessage=function(Y){a(y,Y)},y._worker.controller.postMessage(E,[j.port2])}else y._worker.postMessage(E)})},f.exports=u},8825:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{AS:()=>hexToUint8Array,Ay:()=>__WEBPACK_DEFAULT_EXPORT__,Bh:()=>DeployStrParams,C_:()=>TransactionBuilderParams,Ep:()=>AddressableEntityHash,Fg:()=>RecordId,IQ:()=>hexToString,Ix:()=>Bytes,Iy:()=>BlockHash,J3:()=>PublicKey,M3:()=>EraId,MK:()=>PricingMode,NX:()=>DictionaryItemStrParams,Qt:()=>SessionStrParams,S3:()=>motesToCSPR,Uz:()=>Key,Vt:()=>PackageHash,WT:()=>Verbosity,ZX:()=>Transaction,_e:()=>CasperWallet,bL:()=>DictionaryItemIdentifier,eg:()=>GlobalStateIdentifier,hp:()=>SDK,kD:()=>TransactionStrParams,kw:()=>publicKeyFromSecretKey,lg:()=>getTimestamp,m9:()=>Deploy,mL:()=>jsonPrettyPrint,nQ:()=>TransactionHash,np:()=>Digest,q1:()=>PaymentStrParams,xM:()=>EntityAddr,z$:()=>BlockIdentifier});var _opt2_casper_rustSDK_examples_frontend_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(467);let wasm;const cachedTextDecoder=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&cachedTextDecoder.decode();let cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return(null===cachedUint8ArrayMemory0||0===cachedUint8ArrayMemory0.byteLength)&&(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}function getStringFromWasm0(f,s){return f>>>=0,cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(f,f+s))}let WASM_VECTOR_LEN=0;const cachedTextEncoder=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},encodeString="function"==typeof cachedTextEncoder.encodeInto?function(f,s){return cachedTextEncoder.encodeInto(f,s)}:function(f,s){const a=cachedTextEncoder.encode(f);return s.set(a),{read:f.length,written:a.length}};function passStringToWasm0(f,s,a){if(void 0===a){const E=cachedTextEncoder.encode(f),k=s(E.length,1)>>>0;return getUint8ArrayMemory0().subarray(k,k+E.length).set(E),WASM_VECTOR_LEN=E.length,k}let u=f.length,g=s(u,1)>>>0;const y=getUint8ArrayMemory0();let v=0;for(;v127)break;y[g+v]=E}if(v!==u){0!==v&&(f=f.slice(v)),g=a(g,u,u=v+3*f.length,1)>>>0;const E=getUint8ArrayMemory0().subarray(g+v,g+u);v+=encodeString(f,E).written,g=a(g,u,v,1)>>>0}return WASM_VECTOR_LEN=v,g}function isLikeNone(f){return null==f}let cachedDataViewMemory0=null;function getDataViewMemory0(){return(null===cachedDataViewMemory0||!0===cachedDataViewMemory0.buffer.detached||void 0===cachedDataViewMemory0.buffer.detached&&cachedDataViewMemory0.buffer!==wasm.memory.buffer)&&(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}function debugString(f){const s=typeof f;if("number"==s||"boolean"==s||null==f)return`${f}`;if("string"==s)return`"${f}"`;if("symbol"==s){const g=f.description;return null==g?"Symbol":`Symbol(${g})`}if("function"==s){const g=f.name;return"string"==typeof g&&g.length>0?`Function(${g})`:"Function"}if(Array.isArray(f)){const g=f.length;let y="[";g>0&&(y+=debugString(f[0]));for(let v=1;v1))return toString.call(f);if(u=a[1],"Object"==u)try{return"Object("+JSON.stringify(f)+")"}catch{return"Object"}return f instanceof Error?`${f.name}: ${f.message}\n${f.stack}`:u}const CLOSURE_DTORS=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>{wasm.__wbindgen_export_3.get(f.dtor)(f.a,f.b)});function makeMutClosure(f,s,a,u){const g={a:f,b:s,cnt:1,dtor:a},y=(...v)=>{g.cnt++;const E=g.a;g.a=0;try{return u(E,g.b,...v)}finally{0==--g.cnt?(wasm.__wbindgen_export_3.get(g.dtor)(E,g.b),CLOSURE_DTORS.unregister(g)):g.a=E}};return y.original=g,CLOSURE_DTORS.register(y,g,g),y}function __wbg_adapter_38(f,s){wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae2e6541fe204983(f,s)}function __wbg_adapter_41(f,s,a){wasm.closure969_externref_shim(f,s,a)}function __wbg_adapter_48(f,s,a){wasm.closure1166_externref_shim(f,s,a)}function __wbg_adapter_51(f,s,a){wasm.closure1174_externref_shim(f,s,a)}function passArray8ToWasm0(f,s){const a=s(1*f.length,1)>>>0;return getUint8ArrayMemory0().set(f,a/1),WASM_VECTOR_LEN=f.length,a}function takeFromExternrefTable0(f){const s=wasm.__wbindgen_export_2.get(f);return wasm.__externref_table_dealloc(f),s}function getArrayU8FromWasm0(f,s){return f>>>=0,getUint8ArrayMemory0().subarray(f/1,f/1+s)}function _assertClass(f,s){if(!(f instanceof s))throw new Error(`expected instance of ${s.name}`);return f.ptr}function addToExternrefTable0(f){const s=wasm.__externref_table_alloc();return wasm.__wbindgen_export_2.set(s,f),s}function hexToString(f){let s,a;try{const u=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.hexToString(u,WASM_VECTOR_LEN);return s=y[0],a=y[1],getStringFromWasm0(y[0],y[1])}finally{wasm.__wbindgen_free(s,a,1)}}function hexToUint8Array(f){const s=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),u=wasm.hexToUint8Array(s,WASM_VECTOR_LEN);var g=getArrayU8FromWasm0(u[0],u[1]).slice();return wasm.__wbindgen_free(u[0],1*u[1],1),g}function uint8ArrayToBytes(f){const s=wasm.uint8ArrayToBytes(f);return Bytes.__wrap(s)}function motesToCSPR(f){let s,a;try{const y=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.motesToCSPR(y,WASM_VECTOR_LEN);var u=E[0],g=E[1];if(E[3])throw u=0,g=0,takeFromExternrefTable0(E[2]);return s=u,a=g,getStringFromWasm0(u,g)}finally{wasm.__wbindgen_free(s,a,1)}}function jsonPrettyPrint(f,s){const a=wasm.jsonPrettyPrint(f,isLikeNone(s)?3:s);if(a[2])throw takeFromExternrefTable0(a[1]);return takeFromExternrefTable0(a[0])}function publicKeyFromSecretKey(f){const s=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),u=wasm.publicKeyFromSecretKey(s,WASM_VECTOR_LEN);if(u[2])throw takeFromExternrefTable0(u[1]);return takeFromExternrefTable0(u[0])}function generateSecretKey(){const f=wasm.generateSecretKey();if(f[2])throw takeFromExternrefTable0(f[1]);return takeFromExternrefTable0(f[0])}function generateSecretKey_secp256k1(){const f=wasm.generateSecretKey_secp256k1();if(f[2])throw takeFromExternrefTable0(f[1]);return takeFromExternrefTable0(f[0])}function accountHashToBase64Key(f){let s,a;try{const y=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.accountHashToBase64Key(y,WASM_VECTOR_LEN);var u=E[0],g=E[1];if(E[3])throw u=0,g=0,takeFromExternrefTable0(E[2]);return s=u,a=g,getStringFromWasm0(u,g)}finally{wasm.__wbindgen_free(s,a,1)}}function getTimestamp(){return wasm.getTimestamp()}function encodeLowerBlake2b(f){const s=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.encodeLowerBlake2b(s,WASM_VECTOR_LEN)}function makeDictionaryItemKey(f,s){let a,u;try{_assertClass(f,Key);var g=f.__destroy_into_raw();const E=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=wasm.makeDictionaryItemKey(g,E,WASM_VECTOR_LEN);var y=M[0],v=M[1];if(M[3])throw y=0,v=0,takeFromExternrefTable0(M[2]);return a=y,u=v,getStringFromWasm0(y,v)}finally{wasm.__wbindgen_free(a,u,1)}}function passArrayJsValueToWasm0(f,s){const a=s(4*f.length,4)>>>0,u=getDataViewMemory0();for(let g=0;g{throw new Error(`${f} is not defined`)}}function handleError(f,s){try{return f.apply(this,s)}catch(a){const u=addToExternrefTable0(a);wasm.__wbindgen_exn_store(u)}}function getArrayJsValueFromWasm0(f,s){f>>>=0;const a=getDataViewMemory0(),u=[];for(let g=f;g"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_accessrights_free(f>>>0,1));class AccessRights{static __wrap(s){s>>>=0;const a=Object.create(AccessRights.prototype);return a.__wbg_ptr=s,AccessRightsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AccessRightsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_accessrights_free(s,0)}static NONE(){return wasm.accessrights_NONE()}static READ(){return wasm.accessrights_READ()}static WRITE(){return wasm.accessrights_WRITE()}static ADD(){return wasm.accessrights_ADD()}static READ_ADD(){return wasm.accessrights_READ_ADD()}static READ_WRITE(){return wasm.accessrights_READ_WRITE()}static ADD_WRITE(){return wasm.accessrights_ADD_WRITE()}static READ_ADD_WRITE(){return wasm.accessrights_READ_ADD_WRITE()}constructor(s){const a=wasm.accessrights_new(s);if(a[2])throw takeFromExternrefTable0(a[1]);return this.__wbg_ptr=a[0]>>>0,AccessRightsFinalization.register(this,this.__wbg_ptr,this),this}static from_bits(s,a,u){const g=wasm.accessrights_from_bits(s,a,u);return AccessRights.__wrap(g)}is_readable(){return 0!==wasm.accessrights_is_readable(this.__wbg_ptr)}is_writeable(){return 0!==wasm.accessrights_is_writeable(this.__wbg_ptr)}is_addable(){return 0!==wasm.accessrights_is_addable(this.__wbg_ptr)}is_none(){return 0!==wasm.accessrights_is_none(this.__wbg_ptr)}}const AccountHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_accounthash_free(f>>>0,1));class AccountHash{static __wrap(s){s>>>=0;const a=Object.create(AccountHash.prototype);return a.__wbg_ptr=s,AccountHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AccountHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_accounthash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accounthash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,AccountHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accounthash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return AccountHash.__wrap(g[0])}static fromPublicKey(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.accounthash_fromPublicKey(a);return AccountHash.__wrap(u)}toFormattedString(){let s,a;try{const u=wasm.accounthash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toHexString(){let s,a;try{const u=wasm.accounthash_toHexString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.accounthash_fromUint8Array(a,WASM_VECTOR_LEN);return AccountHash.__wrap(g)}toJson(){return wasm.accounthash_toJson(this.__wbg_ptr)}}const AccountIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_accountidentifier_free(f>>>0,1));class AccountIdentifier{static __wrap(s){s>>>=0;const a=Object.create(AccountIdentifier.prototype);return a.__wbg_ptr=s,AccountIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AccountIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_accountidentifier_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accountidentifier_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,AccountIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accountidentifier_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return AccountIdentifier.__wrap(g[0])}static fromPublicKey(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromPublicKey(a);return AccountIdentifier.__wrap(u)}static fromAccountHash(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromAccountHash(a);return AccountIdentifier.__wrap(u)}toJson(){return wasm.accountidentifier_toJson(this.__wbg_ptr)}}const AddressableEntityHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_addressableentityhash_free(f>>>0,1));class AddressableEntityHash{static __wrap(s){s>>>=0;const a=Object.create(AddressableEntityHash.prototype);return a.__wbg_ptr=s,AddressableEntityHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AddressableEntityHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_addressableentityhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.addressableentityhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,AddressableEntityHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.addressableentityhash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return AddressableEntityHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.addressableentityhash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.addressableentityhash_fromUint8Array(a,WASM_VECTOR_LEN);return AddressableEntityHash.__wrap(g)}}const ArgsSimpleFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_argssimple_free(f>>>0,1));class ArgsSimple{static __wrap(s){s>>>=0;const a=Object.create(ArgsSimple.prototype);return a.__wbg_ptr=s,ArgsSimpleFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ArgsSimpleFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_argssimple_free(s,0)}}const BlockHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_blockhash_free(f>>>0,1));class BlockHash{static __wrap(s){s>>>=0;const a=Object.create(BlockHash.prototype);return a.__wbg_ptr=s,BlockHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BlockHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_blockhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.blockhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,BlockHashFinalization.register(this,this.__wbg_ptr,this),this}static fromDigest(s){_assertClass(s,Digest);var a=s.__destroy_into_raw();const u=wasm.blockhash_fromDigest(a);if(u[2])throw takeFromExternrefTable0(u[1]);return BlockHash.__wrap(u[0])}toJson(){return wasm.blockhash_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.blockhash_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const BlockIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_blockidentifier_free(f>>>0,1));class BlockIdentifier{static __wrap(s){s>>>=0;const a=Object.create(BlockIdentifier.prototype);return a.__wbg_ptr=s,BlockIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BlockIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_blockidentifier_free(s,0)}constructor(s){_assertClass(s,BlockIdentifier);var a=s.__destroy_into_raw();const u=wasm.blockidentifier_new(a);return this.__wbg_ptr=u>>>0,BlockIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static from_hash(s){_assertClass(s,BlockHash);var a=s.__destroy_into_raw();const u=wasm.blockidentifier_from_hash(a);return BlockIdentifier.__wrap(u)}static fromHeight(s){const a=wasm.blockidentifier_fromHeight(s);return BlockIdentifier.__wrap(a)}toJson(){return wasm.blockidentifier_toJson(this.__wbg_ptr)}}const BodyFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_body_free(f>>>0,1));class Body{static __wrap(s){s>>>=0;const a=Object.create(Body.prototype);return a.__wbg_ptr=s,BodyFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BodyFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_body_free(s,0)}get transaction_processed(){const s=wasm.__wbg_get_body_transaction_processed(this.__wbg_ptr);return 0===s?void 0:TransactionProcessed.__wrap(s)}set transaction_processed(s){let a=0;isLikeNone(s)||(_assertClass(s,TransactionProcessed),a=s.__destroy_into_raw()),wasm.__wbg_set_body_transaction_processed(this.__wbg_ptr,a)}get get_deploy_processed(){const s=wasm.body_get_deploy_processed(this.__wbg_ptr);return 0===s?void 0:TransactionProcessed.__wrap(s)}get get_transaction_processed(){const s=wasm.body_get_deploy_processed(this.__wbg_ptr);return 0===s?void 0:TransactionProcessed.__wrap(s)}}const BytesFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_bytes_free(f>>>0,1));class Bytes{static __wrap(s){s>>>=0;const a=Object.create(Bytes.prototype);return a.__wbg_ptr=s,BytesFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BytesFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_bytes_free(s,0)}constructor(){const s=wasm.bytes_new();return this.__wbg_ptr=s>>>0,BytesFinalization.register(this,this.__wbg_ptr,this),this}static fromUint8Array(s){const a=wasm.bytes_fromUint8Array(s);return Bytes.__wrap(a)}}const CasperWalletFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_casperwallet_free(f>>>0,1));class CasperWallet{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,CasperWalletFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_casperwallet_free(s,0)}constructor(){const s=wasm.casperwallet_new();return this.__wbg_ptr=s>>>0,CasperWalletFinalization.register(this,this.__wbg_ptr,this),this}signDeploy(s,a){_assertClass(s,Deploy);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signDeploy(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}signTransaction(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signTransaction(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}signDeployHash(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signDeployHash(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}signTransactionHash(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signTransactionHash(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}signMessage(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signMessage(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}connect(){return wasm.casperwallet_connect(this.__wbg_ptr)}disconnect(){return wasm.casperwallet_disconnect(this.__wbg_ptr)}isConnected(){return wasm.casperwallet_isConnected(this.__wbg_ptr)}getVersion(){return wasm.casperwallet_getVersion(this.__wbg_ptr)}getActivePublicKey(){return wasm.casperwallet_getActivePublicKey(this.__wbg_ptr)}switchAccount(){return wasm.casperwallet_switchAccount(this.__wbg_ptr)}}const ContractHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_contracthash_free(f>>>0,1));class ContractHash{static __wrap(s){s>>>=0;const a=Object.create(ContractHash.prototype);return a.__wbg_ptr=s,ContractHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ContractHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_contracthash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contracthash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,ContractHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contracthash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return ContractHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.contracthash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.contracthash_fromUint8Array(a,WASM_VECTOR_LEN);return ContractHash.__wrap(g)}}const ContractPackageHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_contractpackagehash_free(f>>>0,1));class ContractPackageHash{static __wrap(s){s>>>=0;const a=Object.create(ContractPackageHash.prototype);return a.__wbg_ptr=s,ContractPackageHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ContractPackageHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_contractpackagehash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contractpackagehash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,ContractPackageHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contractpackagehash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return ContractPackageHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.contractpackagehash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.contractpackagehash_fromUint8Array(a,WASM_VECTOR_LEN);return ContractPackageHash.__wrap(g)}}const DeployFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_deploy_free(f>>>0,1));class Deploy{static __wrap(s){s>>>=0;const a=Object.create(Deploy.prototype);return a.__wbg_ptr=s,DeployFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DeployFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_deploy_free(s,0)}constructor(s){const a=wasm.deploy_new(s);return this.__wbg_ptr=a>>>0,DeployFinalization.register(this,this.__wbg_ptr,this),this}toJson(){return wasm.deploy_toJson(this.__wbg_ptr)}static withPaymentAndSession(s,a,u){_assertClass(s,DeployStrParams);var g=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var y=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var v=u.__destroy_into_raw();const E=wasm.deploy_withPaymentAndSession(g,y,v);if(E[2])throw takeFromExternrefTable0(E[1]);return Deploy.__wrap(E[0])}static withTransfer(s,a,u,g,y){const v=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN;var j=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Y=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var fe=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var ce=y.__destroy_into_raw();const le=wasm.deploy_withTransfer(v,E,k,M,j,Y,fe,ce);if(le[2])throw takeFromExternrefTable0(le[1]);return Deploy.__wrap(le[0])}withTTL(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withTTL(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withTimestamp(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withTimestamp(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withChainName(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withChainName(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withAccount(s,a){_assertClass(s,PublicKey);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withAccount(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withEntryPointName(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withEntryPointName(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withHash(s,a){_assertClass(s,ContractHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withPackageHash(s,a){_assertClass(s,ContractPackageHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withPackageHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withModuleBytes(s,a){_assertClass(s,Bytes);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withModuleBytes(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withSecretKey(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.deploy_withSecretKey(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Deploy.__wrap(g)}withStandardPayment(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withStandardPayment(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withPayment(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.deploy_withPayment(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);return Deploy.__wrap(y)}withSession(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.deploy_withSession(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);return Deploy.__wrap(y)}validateDeploySize(){return 0!==wasm.deploy_validateDeploySize(this.__wbg_ptr)}isValid(){return 0!==wasm.deploy_isValid(this.__wbg_ptr)}get hash(){const s=wasm.deploy_hash(this.__wbg_ptr);return DeployHash.__wrap(s)}hasValidHash(){return 0!==wasm.deploy_hasValidHash(this.__wbg_ptr)}isExpired(){return 0!==wasm.deploy_isExpired(this.__wbg_ptr)}sign(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.deploy_sign(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Deploy.__wrap(g)}approvalsHash(){return wasm.deploy_approvalsHash(this.__wbg_ptr)}approvals(){return wasm.deploy_approvals(this.__wbg_ptr)}isTransfer(){return 0!==wasm.deploy_isTransfer(this.__wbg_ptr)}isStandardPayment(s){return 0!==wasm.deploy_isStandardPayment(this.__wbg_ptr,s)}isStoredContract(){return 0!==wasm.deploy_isStoredContract(this.__wbg_ptr)}isStoredContractPackage(){return 0!==wasm.deploy_isStoredContractPackage(this.__wbg_ptr)}isModuleBytes(){return 0!==wasm.deploy_isModuleBytes(this.__wbg_ptr)}isByName(){return 0!==wasm.deploy_isByName(this.__wbg_ptr)}byName(){const s=wasm.deploy_byName(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}entryPointName(){let s,a;try{const u=wasm.deploy_entryPointName(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}addSignature(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.deploy_addSignature(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}TTL(){let s,a;try{const u=wasm.deploy_TTL(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}timestamp(){let s,a;try{const u=wasm.deploy_timestamp(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}chainName(){let s,a;try{const u=wasm.deploy_chainName(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}account(){let s,a;try{const u=wasm.deploy_account(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}paymentAmount(s){let a,u;try{const g=wasm.deploy_paymentAmount(this.__wbg_ptr,s);return a=g[0],u=g[1],getStringFromWasm0(g[0],g[1])}finally{wasm.__wbindgen_free(a,u,1)}}args(){return wasm.deploy_args(this.__wbg_ptr)}addArg(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.deploy_addArg(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);if(y[2])throw takeFromExternrefTable0(y[1]);return Deploy.__wrap(y[0])}}const DeployHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_deployhash_free(f>>>0,1));class DeployHash{static __wrap(s){s>>>=0;const a=Object.create(DeployHash.prototype);return a.__wbg_ptr=s,DeployHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DeployHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_deployhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.deployhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,DeployHashFinalization.register(this,this.__wbg_ptr,this),this}static fromDigest(s){_assertClass(s,Digest);var a=s.__destroy_into_raw();const u=wasm.deployhash_fromDigest(a);if(u[2])throw takeFromExternrefTable0(u[1]);return DeployHash.__wrap(u[0])}toJson(){return wasm.deployhash_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.deployhash_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const DeployStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_deploystrparams_free(f>>>0,1));class DeployStrParams{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DeployStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_deploystrparams_free(s,0)}constructor(s,a,u,g,y,v){const E=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;var Y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN,ce=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),le=WASM_VECTOR_LEN,rt=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),tt=WASM_VECTOR_LEN,nt=isLikeNone(v)?0:passStringToWasm0(v,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const vn=wasm.deploystrparams_new(E,k,M,j,Y,fe,ce,le,rt,tt,nt,WASM_VECTOR_LEN);return this.__wbg_ptr=vn>>>0,DeployStrParamsFinalization.register(this,this.__wbg_ptr,this),this}get secret_key(){const s=wasm.deploystrparams_secret_key(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set secret_key(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_secret_key(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get timestamp(){const s=wasm.deploystrparams_timestamp(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set timestamp(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTimestamp(){wasm.deploystrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const s=wasm.deploystrparams_ttl(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set ttl(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTTL(){wasm.deploystrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const s=wasm.deploystrparams_chain_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set chain_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_chain_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_account(){const s=wasm.deploystrparams_session_account(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_account(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_session_account(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get gas_price_tolerance(){const s=wasm.deploystrparams_gas_price_tolerance(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set gas_price_tolerance(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_gas_price_tolerance(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const DictionaryAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_dictionaryaddr_free(f>>>0,1));class DictionaryAddr{static __wrap(s){s>>>=0;const a=Object.create(DictionaryAddr.prototype);return a.__wbg_ptr=s,DictionaryAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DictionaryAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_dictionaryaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.dictionaryaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,DictionaryAddrFinalization.register(this,this.__wbg_ptr,this),this}}const DictionaryItemIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_dictionaryitemidentifier_free(f>>>0,1));class DictionaryItemIdentifier{static __wrap(s){s>>>=0;const a=Object.create(DictionaryItemIdentifier.prototype);return a.__wbg_ptr=s,DictionaryItemIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DictionaryItemIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_dictionaryitemidentifier_free(s,0)}static newFromAccountInfo(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.dictionaryitemidentifier_newFromAccountInfo(g,y,v,E,k,WASM_VECTOR_LEN);if(j[2])throw takeFromExternrefTable0(j[1]);return DictionaryItemIdentifier.__wrap(j[0])}static newFromContractInfo(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.dictionaryitemidentifier_newFromContractInfo(g,y,v,E,k,WASM_VECTOR_LEN);if(j[2])throw takeFromExternrefTable0(j[1]);return DictionaryItemIdentifier.__wrap(j[0])}static newFromEntityInfo(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.dictionaryitemidentifier_newFromEntityInfo(g,y,v,E,k,WASM_VECTOR_LEN);if(j[2])throw takeFromExternrefTable0(j[1]);return DictionaryItemIdentifier.__wrap(j[0])}static newFromSeedUref(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.dictionaryitemidentifier_newFromSeedUref(u,g,y,WASM_VECTOR_LEN);if(E[2])throw takeFromExternrefTable0(E[1]);return DictionaryItemIdentifier.__wrap(E[0])}static newFromDictionaryKey(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.dictionaryitemidentifier_newFromDictionaryKey(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return DictionaryItemIdentifier.__wrap(g[0])}toJson(){return wasm.dictionaryitemidentifier_toJson(this.__wbg_ptr)}}const DictionaryItemStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_dictionaryitemstrparams_free(f>>>0,1));class DictionaryItemStrParams{static __wrap(s){s>>>=0;const a=Object.create(DictionaryItemStrParams.prototype);return a.__wbg_ptr=s,DictionaryItemStrParamsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DictionaryItemStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_dictionaryitemstrparams_free(s,0)}constructor(){const s=wasm.dictionaryitemstrparams_new();return this.__wbg_ptr=s>>>0,DictionaryItemStrParamsFinalization.register(this,this.__wbg_ptr,this),this}setAccountNamedKey(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr,g,y,v,E,k,WASM_VECTOR_LEN)}setContractNamedKey(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr,g,y,v,E,k,WASM_VECTOR_LEN)}setEntityNamedKey(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setEntityNamedKey(this.__wbg_ptr,g,y,v,E,k,WASM_VECTOR_LEN)}setUref(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setUref(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}setDictionary(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setDictionary(this.__wbg_ptr,a,WASM_VECTOR_LEN)}toJson(){return wasm.dictionaryitemstrparams_toJson(this.__wbg_ptr)}}const DigestFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_digest_free(f>>>0,1));class Digest{static __wrap(s){s>>>=0;const a=Object.create(Digest.prototype);return a.__wbg_ptr=s,DigestFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DigestFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_digest_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.digest_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,DigestFinalization.register(this,this.__wbg_ptr,this),this}static fromString(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.digest_fromString(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return Digest.__wrap(g[0])}static fromRaw(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.digest_fromRaw(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return Digest.__wrap(g[0])}toJson(){return wasm.digest_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.digest_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const EntityAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_entityaddr_free(f>>>0,1));class EntityAddr{static __wrap(s){s>>>=0;const a=Object.create(EntityAddr.prototype);return a.__wbg_ptr=s,EntityAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EntityAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_entityaddr_free(s,0)}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.entityaddr_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return EntityAddr.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.entityaddr_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toHexString(){let s,a;try{const u=wasm.entityaddr_toHexString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.entityaddr_toJson(this.__wbg_ptr)}}const EntityIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_entityidentifier_free(f>>>0,1));class EntityIdentifier{static __wrap(s){s>>>=0;const a=Object.create(EntityIdentifier.prototype);return a.__wbg_ptr=s,EntityIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EntityIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_entityidentifier_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.entityidentifier_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,EntityIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.entityidentifier_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return EntityIdentifier.__wrap(g[0])}static fromPublicKey(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromPublicKey(a);return EntityIdentifier.__wrap(u)}static fromAccountHash(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromAccountHash(a);return EntityIdentifier.__wrap(u)}static fromEntityAddr(s){_assertClass(s,EntityAddr);var a=s.__destroy_into_raw();const u=wasm.entityidentifier_fromEntityAddr(a);return EntityIdentifier.__wrap(u)}toJson(){return wasm.entityidentifier_toJson(this.__wbg_ptr)}}const EraIdFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_eraid_free(f>>>0,1));class EraId{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EraIdFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_eraid_free(s,0)}constructor(s){const a=wasm.eraid_new(s);return this.__wbg_ptr=a>>>0,EraIdFinalization.register(this,this.__wbg_ptr,this),this}value(){const s=wasm.eraid_value(this.__wbg_ptr);return BigInt.asUintN(64,s)}}const EventParseResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_eventparseresult_free(f>>>0,1));class EventParseResult{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EventParseResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_eventparseresult_free(s,0)}get err(){const s=wasm.__wbg_get_eventparseresult_err(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set err(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_eventparseresult_err(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get body(){const s=wasm.__wbg_get_eventparseresult_body(this.__wbg_ptr);return 0===s?void 0:Body.__wrap(s)}set body(s){let a=0;isLikeNone(s)||(_assertClass(s,Body),a=s.__destroy_into_raw()),wasm.__wbg_set_eventparseresult_body(this.__wbg_ptr,a)}}const ExecutionResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_executionresult_free(f>>>0,1));class ExecutionResult{static __wrap(s){s>>>=0;const a=Object.create(ExecutionResult.prototype);return a.__wbg_ptr=s,ExecutionResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ExecutionResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_executionresult_free(s,0)}get Success(){const s=wasm.__wbg_get_executionresult_Success(this.__wbg_ptr);return 0===s?void 0:Version2.__wrap(s)}set Success(s){let a=0;isLikeNone(s)||(_assertClass(s,Version2),a=s.__destroy_into_raw()),wasm.__wbg_set_executionresult_Success(this.__wbg_ptr,a)}get Failure(){const s=wasm.__wbg_get_executionresult_Failure(this.__wbg_ptr);return 0===s?void 0:Failure.__wrap(s)}set Failure(s){let a=0;isLikeNone(s)||(_assertClass(s,Failure),a=s.__destroy_into_raw()),wasm.__wbg_set_executionresult_Failure(this.__wbg_ptr,a)}}const FailureFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_failure_free(f>>>0,1));class Failure{static __wrap(s){s>>>=0;const a=Object.create(Failure.prototype);return a.__wbg_ptr=s,FailureFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,FailureFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_failure_free(s,0)}get cost(){let s,a;try{const u=wasm.__wbg_get_failure_cost(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set cost(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get error_message(){let s,a;try{const u=wasm.__wbg_get_failure_error_message(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set error_message(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_error_message(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const GetAccountResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getaccountresult_free(f>>>0,1));class GetAccountResult{static __wrap(s){s>>>=0;const a=Object.create(GetAccountResult.prototype);return a.__wbg_ptr=s,GetAccountResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetAccountResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getaccountresult_free(s,0)}get api_version(){return wasm.getaccountresult_api_version(this.__wbg_ptr)}get account(){return wasm.getaccountresult_account(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getaccountresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getaccountresult_toJson(this.__wbg_ptr)}}const GetAddressableEntityResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getaddressableentityresult_free(f>>>0,1));class GetAddressableEntityResult{static __wrap(s){s>>>=0;const a=Object.create(GetAddressableEntityResult.prototype);return a.__wbg_ptr=s,GetAddressableEntityResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetAddressableEntityResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getaddressableentityresult_free(s,0)}get api_version(){return wasm.getaddressableentityresult_api_version(this.__wbg_ptr)}get entity_result(){return wasm.getaddressableentityresult_entity_result(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getaddressableentityresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getaddressableentityresult_toJson(this.__wbg_ptr)}}const GetAuctionInfoResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getauctioninforesult_free(f>>>0,1));class GetAuctionInfoResult{static __wrap(s){s>>>=0;const a=Object.create(GetAuctionInfoResult.prototype);return a.__wbg_ptr=s,GetAuctionInfoResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetAuctionInfoResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getauctioninforesult_free(s,0)}get api_version(){return wasm.getauctioninforesult_api_version(this.__wbg_ptr)}get auction_state(){return wasm.getauctioninforesult_auction_state(this.__wbg_ptr)}toJson(){return wasm.getauctioninforesult_toJson(this.__wbg_ptr)}}const GetBalanceResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getbalanceresult_free(f>>>0,1));class GetBalanceResult{static __wrap(s){s>>>=0;const a=Object.create(GetBalanceResult.prototype);return a.__wbg_ptr=s,GetBalanceResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetBalanceResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getbalanceresult_free(s,0)}get api_version(){return wasm.getbalanceresult_api_version(this.__wbg_ptr)}get balance_value(){return wasm.getbalanceresult_balance_value(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getbalanceresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getbalanceresult_toJson(this.__wbg_ptr)}}const GetBlockResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblockresult_free(f>>>0,1));class GetBlockResult{static __wrap(s){s>>>=0;const a=Object.create(GetBlockResult.prototype);return a.__wbg_ptr=s,GetBlockResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetBlockResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblockresult_free(s,0)}get api_version(){return wasm.getblockresult_api_version(this.__wbg_ptr)}get block(){return wasm.getblockresult_block(this.__wbg_ptr)}toJson(){return wasm.getblockresult_toJson(this.__wbg_ptr)}}const GetBlockTransfersResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblocktransfersresult_free(f>>>0,1));class GetBlockTransfersResult{static __wrap(s){s>>>=0;const a=Object.create(GetBlockTransfersResult.prototype);return a.__wbg_ptr=s,GetBlockTransfersResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetBlockTransfersResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblocktransfersresult_free(s,0)}get api_version(){return wasm.getblocktransfersresult_api_version(this.__wbg_ptr)}get block_hash(){const s=wasm.getblocktransfersresult_block_hash(this.__wbg_ptr);return 0===s?void 0:BlockHash.__wrap(s)}get transfers(){return wasm.getblocktransfersresult_transfers(this.__wbg_ptr)}toJson(){return wasm.getblocktransfersresult_toJson(this.__wbg_ptr)}}const GetChainspecResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getchainspecresult_free(f>>>0,1));class GetChainspecResult{static __wrap(s){s>>>=0;const a=Object.create(GetChainspecResult.prototype);return a.__wbg_ptr=s,GetChainspecResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetChainspecResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getchainspecresult_free(s,0)}get api_version(){return wasm.getchainspecresult_api_version(this.__wbg_ptr)}get chainspec_bytes(){return wasm.getchainspecresult_chainspec_bytes(this.__wbg_ptr)}toJson(){return wasm.getchainspecresult_toJson(this.__wbg_ptr)}}const GetDeployResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdeployresult_free(f>>>0,1));class GetDeployResult{static __wrap(s){s>>>=0;const a=Object.create(GetDeployResult.prototype);return a.__wbg_ptr=s,GetDeployResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetDeployResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdeployresult_free(s,0)}get api_version(){return wasm.getdeployresult_api_version(this.__wbg_ptr)}get deploy(){const s=wasm.getdeployresult_deploy(this.__wbg_ptr);return Deploy.__wrap(s)}get execution_info(){return wasm.getdeployresult_execution_info(this.__wbg_ptr)}toJson(){return wasm.getdeployresult_toJson(this.__wbg_ptr)}}const GetDictionaryItemResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdictionaryitemresult_free(f>>>0,1));class GetDictionaryItemResult{static __wrap(s){s>>>=0;const a=Object.create(GetDictionaryItemResult.prototype);return a.__wbg_ptr=s,GetDictionaryItemResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetDictionaryItemResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdictionaryitemresult_free(s,0)}get api_version(){return wasm.getdictionaryitemresult_api_version(this.__wbg_ptr)}get dictionary_key(){let s,a;try{const u=wasm.getdictionaryitemresult_dictionary_key(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get stored_value(){return wasm.getdictionaryitemresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getdictionaryitemresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getdictionaryitemresult_toJson(this.__wbg_ptr)}}const GetEraInfoResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterainforesult_free(f>>>0,1));class GetEraInfoResult{static __wrap(s){s>>>=0;const a=Object.create(GetEraInfoResult.prototype);return a.__wbg_ptr=s,GetEraInfoResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetEraInfoResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterainforesult_free(s,0)}get api_version(){return wasm.geterainforesult_api_version(this.__wbg_ptr)}get era_summary(){return wasm.geterainforesult_era_summary(this.__wbg_ptr)}toJson(){return wasm.geterainforesult_toJson(this.__wbg_ptr)}}const GetEraSummaryResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterasummaryresult_free(f>>>0,1));class GetEraSummaryResult{static __wrap(s){s>>>=0;const a=Object.create(GetEraSummaryResult.prototype);return a.__wbg_ptr=s,GetEraSummaryResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetEraSummaryResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterasummaryresult_free(s,0)}get api_version(){return wasm.geterasummaryresult_api_version(this.__wbg_ptr)}get era_summary(){return wasm.geterasummaryresult_era_summary(this.__wbg_ptr)}toJson(){return wasm.geterasummaryresult_toJson(this.__wbg_ptr)}}const GetNodeStatusResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getnodestatusresult_free(f>>>0,1));class GetNodeStatusResult{static __wrap(s){s>>>=0;const a=Object.create(GetNodeStatusResult.prototype);return a.__wbg_ptr=s,GetNodeStatusResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetNodeStatusResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getnodestatusresult_free(s,0)}get api_version(){return wasm.getnodestatusresult_api_version(this.__wbg_ptr)}get chainspec_name(){let s,a;try{const u=wasm.getnodestatusresult_chainspec_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get starting_state_root_hash(){const s=wasm.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr);return Digest.__wrap(s)}get peers(){return wasm.getnodestatusresult_peers(this.__wbg_ptr)}get last_added_block_info(){return wasm.getnodestatusresult_last_added_block_info(this.__wbg_ptr)}get our_public_signing_key(){const s=wasm.getnodestatusresult_our_public_signing_key(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}get round_length(){return wasm.getnodestatusresult_round_length(this.__wbg_ptr)}get next_upgrade(){return wasm.getnodestatusresult_next_upgrade(this.__wbg_ptr)}get build_version(){let s,a;try{const u=wasm.getnodestatusresult_build_version(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get uptime(){return wasm.getnodestatusresult_uptime(this.__wbg_ptr)}get reactor_state(){return wasm.getnodestatusresult_reactor_state(this.__wbg_ptr)}get last_progress(){return wasm.getnodestatusresult_last_progress(this.__wbg_ptr)}get available_block_range(){return wasm.getnodestatusresult_available_block_range(this.__wbg_ptr)}get block_sync(){return wasm.getnodestatusresult_block_sync(this.__wbg_ptr)}toJson(){return wasm.getnodestatusresult_toJson(this.__wbg_ptr)}}const GetPeersResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getpeersresult_free(f>>>0,1));class GetPeersResult{static __wrap(s){s>>>=0;const a=Object.create(GetPeersResult.prototype);return a.__wbg_ptr=s,GetPeersResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetPeersResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getpeersresult_free(s,0)}get api_version(){return wasm.getpeersresult_api_version(this.__wbg_ptr)}get peers(){return wasm.getpeersresult_peers(this.__wbg_ptr)}toJson(){return wasm.getpeersresult_toJson(this.__wbg_ptr)}}const GetStateRootHashResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getstateroothashresult_free(f>>>0,1));class GetStateRootHashResult{static __wrap(s){s>>>=0;const a=Object.create(GetStateRootHashResult.prototype);return a.__wbg_ptr=s,GetStateRootHashResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetStateRootHashResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getstateroothashresult_free(s,0)}get api_version(){return wasm.getstateroothashresult_api_version(this.__wbg_ptr)}get state_root_hash(){const s=wasm.getstateroothashresult_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}get state_root_hash_as_string(){let s,a;try{const u=wasm.getstateroothashresult_state_root_hash_as_string(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toString(){let s,a;try{const u=wasm.getstateroothashresult_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getstateroothashresult_toJson(this.__wbg_ptr)}}const GetTransactionResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_gettransactionresult_free(f>>>0,1));class GetTransactionResult{static __wrap(s){s>>>=0;const a=Object.create(GetTransactionResult.prototype);return a.__wbg_ptr=s,GetTransactionResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetTransactionResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_gettransactionresult_free(s,0)}get api_version(){return wasm.gettransactionresult_api_version(this.__wbg_ptr)}get transaction(){const s=wasm.gettransactionresult_transaction(this.__wbg_ptr);return Transaction.__wrap(s)}get execution_info(){return wasm.gettransactionresult_execution_info(this.__wbg_ptr)}toJson(){return wasm.gettransactionresult_toJson(this.__wbg_ptr)}}const GetValidatorChangesResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getvalidatorchangesresult_free(f>>>0,1));class GetValidatorChangesResult{static __wrap(s){s>>>=0;const a=Object.create(GetValidatorChangesResult.prototype);return a.__wbg_ptr=s,GetValidatorChangesResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetValidatorChangesResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getvalidatorchangesresult_free(s,0)}get api_version(){return wasm.getvalidatorchangesresult_api_version(this.__wbg_ptr)}get changes(){return wasm.getvalidatorchangesresult_changes(this.__wbg_ptr)}toJson(){return wasm.getvalidatorchangesresult_toJson(this.__wbg_ptr)}}const GlobalStateIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_globalstateidentifier_free(f>>>0,1));class GlobalStateIdentifier{static __wrap(s){s>>>=0;const a=Object.create(GlobalStateIdentifier.prototype);return a.__wbg_ptr=s,GlobalStateIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GlobalStateIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_globalstateidentifier_free(s,0)}constructor(s){_assertClass(s,GlobalStateIdentifier);var a=s.__destroy_into_raw();const u=wasm.globalstateidentifier_new(a);return this.__wbg_ptr=u>>>0,GlobalStateIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromBlockHash(s){_assertClass(s,BlockHash);var a=s.__destroy_into_raw();const u=wasm.globalstateidentifier_fromBlockHash(a);return GlobalStateIdentifier.__wrap(u)}static fromBlockHeight(s){const a=wasm.globalstateidentifier_fromBlockHeight(s);return GlobalStateIdentifier.__wrap(a)}static fromStateRootHash(s){_assertClass(s,Digest);var a=s.__destroy_into_raw();const u=wasm.globalstateidentifier_fromStateRootHash(a);return GlobalStateIdentifier.__wrap(u)}toJson(){return wasm.globalstateidentifier_toJson(this.__wbg_ptr)}}const HashAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_hashaddr_free(f>>>0,1));class HashAddr{static __wrap(s){s>>>=0;const a=Object.create(HashAddr.prototype);return a.__wbg_ptr=s,HashAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,HashAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_hashaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.hashaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,HashAddrFinalization.register(this,this.__wbg_ptr,this),this}toBytes(){const s=wasm.hashaddr_toBytes(this.__wbg_ptr);var a=getArrayU8FromWasm0(s[0],s[1]).slice();return wasm.__wbindgen_free(s[0],1*s[1],1),a}toHexString(){let s,a;try{const u=wasm.hashaddr_toHexString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const HashStringFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_hashstring_free(f>>>0,1));class HashString{static __wrap(s){s>>>=0;const a=Object.create(HashString.prototype);return a.__wbg_ptr=s,HashStringFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,HashStringFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_hashstring_free(s,0)}get hash(){let s,a;try{const u=wasm.__wbg_get_hashstring_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get Deploy(){let s,a;try{const u=wasm.hashstring_Deploy(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get Version1(){let s,a;try{const u=wasm.hashstring_Version1(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toString(){let s,a;try{const u=wasm.hashstring_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const IntoUnderlyingByteSourceFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_intounderlyingbytesource_free(f>>>0,1));class IntoUnderlyingByteSource{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,IntoUnderlyingByteSourceFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_intounderlyingbytesource_free(s,0)}get type(){const s=wasm.intounderlyingbytesource_type(this.__wbg_ptr);return __wbindgen_enum_ReadableStreamType[s]}get autoAllocateChunkSize(){return wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}start(s){wasm.intounderlyingbytesource_start(this.__wbg_ptr,s)}pull(s){return wasm.intounderlyingbytesource_pull(this.__wbg_ptr,s)}cancel(){const s=this.__destroy_into_raw();wasm.intounderlyingbytesource_cancel(s)}}const IntoUnderlyingSinkFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_intounderlyingsink_free(f>>>0,1));class IntoUnderlyingSink{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,IntoUnderlyingSinkFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_intounderlyingsink_free(s,0)}write(s){return wasm.intounderlyingsink_write(this.__wbg_ptr,s)}close(){const s=this.__destroy_into_raw();return wasm.intounderlyingsink_close(s)}abort(s){const a=this.__destroy_into_raw();return wasm.intounderlyingsink_abort(a,s)}}const IntoUnderlyingSourceFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_intounderlyingsource_free(f>>>0,1));class IntoUnderlyingSource{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,IntoUnderlyingSourceFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_intounderlyingsource_free(s,0)}pull(s){return wasm.intounderlyingsource_pull(this.__wbg_ptr,s)}cancel(){const s=this.__destroy_into_raw();wasm.intounderlyingsource_cancel(s)}}const KeyFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_key_free(f>>>0,1));class Key{static __wrap(s){s>>>=0;const a=Object.create(Key.prototype);return a.__wbg_ptr=s,KeyFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,KeyFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_key_free(s,0)}constructor(s){_assertClass(s,Key);var a=s.__destroy_into_raw();const u=wasm.key_new(a);if(u[2])throw takeFromExternrefTable0(u[1]);return this.__wbg_ptr=u[0]>>>0,KeyFinalization.register(this,this.__wbg_ptr,this),this}toJson(){return wasm.key_toJson(this.__wbg_ptr)}static fromURef(s){_assertClass(s,URef);var a=s.__destroy_into_raw();const u=wasm.key_fromURef(a);return Key.__wrap(u)}static fromDeployInfo(s){_assertClass(s,DeployHash);var a=s.__destroy_into_raw();const u=wasm.key_fromDeployInfo(a);return Key.__wrap(u)}static fromAccount(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromAccount(a);return Key.__wrap(u)}static fromHash(s){_assertClass(s,HashAddr);var a=s.__destroy_into_raw();const u=wasm.key_fromHash(a);return Key.__wrap(u)}static fromTransfer(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.key_fromTransfer(a,WASM_VECTOR_LEN);return TransferAddr.__wrap(g)}static fromEraInfo(s){_assertClass(s,EraId);var a=s.__destroy_into_raw();const u=wasm.key_fromEraInfo(a);return Key.__wrap(u)}static fromBalance(s){_assertClass(s,URefAddr);var a=s.__destroy_into_raw();const u=wasm.key_fromBalance(a);return Key.__wrap(u)}static fromBid(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromBid(a);return Key.__wrap(u)}static fromWithdraw(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromWithdraw(a);return Key.__wrap(u)}static fromDictionaryAddr(s){_assertClass(s,DictionaryAddr);var a=s.__destroy_into_raw();const u=wasm.key_fromDictionaryAddr(a);return Key.__wrap(u)}asDictionaryAddr(){const s=wasm.key_asDictionaryAddr(this.__wbg_ptr);return 0===s?void 0:DictionaryAddr.__wrap(s)}static fromSystemEntityRegistry(){const s=wasm.key_fromSystemEntityRegistry();return Key.__wrap(s)}static fromEraSummary(){const s=wasm.key_fromEraSummary();return Key.__wrap(s)}static fromUnbond(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromUnbond(a);return Key.__wrap(u)}static fromChainspecRegistry(){const s=wasm.key_fromChainspecRegistry();return Key.__wrap(s)}static fromChecksumRegistry(){const s=wasm.key_fromChecksumRegistry();return Key.__wrap(s)}toFormattedString(){let s,a;try{const u=wasm.key_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromFormattedString(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.key_fromFormattedString(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return Key.__wrap(g[0])}static fromDictionaryKey(s,a){_assertClass(s,URef);var u=s.__destroy_into_raw();const g=passArray8ToWasm0(a,wasm.__wbindgen_malloc),v=wasm.key_fromDictionaryKey(u,g,WASM_VECTOR_LEN);return Key.__wrap(v)}isDictionaryKey(){return 0!==wasm.key_isDictionaryKey(this.__wbg_ptr)}intoAccount(){const s=this.__destroy_into_raw(),a=wasm.key_intoAccount(s);return 0===a?void 0:AccountHash.__wrap(a)}intoHash(){const s=this.__destroy_into_raw(),a=wasm.key_intoHash(s);return 0===a?void 0:HashAddr.__wrap(a)}asBalance(){const s=wasm.key_asBalance(this.__wbg_ptr);return 0===s?void 0:URefAddr.__wrap(s)}intoURef(){const s=this.__destroy_into_raw(),a=wasm.key_intoURef(s);return 0===a?void 0:URef.__wrap(a)}urefToHash(){const s=wasm.key_urefToHash(this.__wbg_ptr);return 0===s?void 0:Key.__wrap(s)}withdrawToUnbond(){const s=wasm.key_withdrawToUnbond(this.__wbg_ptr);return 0===s?void 0:Key.__wrap(s)}}const ListRpcsResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_listrpcsresult_free(f>>>0,1));class ListRpcsResult{static __wrap(s){s>>>=0;const a=Object.create(ListRpcsResult.prototype);return a.__wbg_ptr=s,ListRpcsResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ListRpcsResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_listrpcsresult_free(s,0)}get api_version(){return wasm.listrpcsresult_api_version(this.__wbg_ptr)}get name(){let s,a;try{const u=wasm.listrpcsresult_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get schema(){return wasm.listrpcsresult_schema(this.__wbg_ptr)}toJson(){return wasm.listrpcsresult_toJson(this.__wbg_ptr)}}const MessageFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_message_free(f>>>0,1));class Message{static __wrap(s){s>>>=0;const a=Object.create(Message.prototype);return a.__wbg_ptr=s,MessageFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,MessageFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_message_free(s,0)}get String(){let s,a;try{const u=wasm.__wbg_get_message_String(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set String(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const MessagesFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_messages_free(f>>>0,1));class Messages{static __wrap(s){s>>>=0;const a=Object.create(Messages.prototype);return a.__wbg_ptr=s,MessagesFinalization.register(a,a.__wbg_ptr,a),a}static __unwrap(s){return s instanceof Messages?s.__destroy_into_raw():0}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,MessagesFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_messages_free(s,0)}get entity_hash(){let s,a;try{const u=wasm.__wbg_get_messages_entity_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set entity_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_entity_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get message(){const s=wasm.__wbg_get_messages_message(this.__wbg_ptr);return Message.__wrap(s)}set message(s){_assertClass(s,Message);var a=s.__destroy_into_raw();wasm.__wbg_set_messages_message(this.__wbg_ptr,a)}get topic_name(){let s,a;try{const u=wasm.__wbg_get_messages_topic_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set topic_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_topic_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get topic_name_hash(){let s,a;try{const u=wasm.__wbg_get_messages_topic_name_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set topic_name_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_topic_name_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get topic_index(){return wasm.__wbg_get_messages_topic_index(this.__wbg_ptr)>>>0}set topic_index(s){wasm.__wbg_set_messages_topic_index(this.__wbg_ptr,s)}get block_index(){const s=wasm.__wbg_get_messages_block_index(this.__wbg_ptr);return BigInt.asUintN(64,s)}set block_index(s){wasm.__wbg_set_messages_block_index(this.__wbg_ptr,s)}}const PackageHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_packagehash_free(f>>>0,1));class PackageHash{static __wrap(s){s>>>=0;const a=Object.create(PackageHash.prototype);return a.__wbg_ptr=s,PackageHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PackageHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_packagehash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.packagehash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,PackageHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.packagehash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return PackageHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.packagehash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.packagehash_fromUint8Array(a,WASM_VECTOR_LEN);return PackageHash.__wrap(g)}}const PathFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_path_free(f>>>0,1));class Path{static __wrap(s){s>>>=0;const a=Object.create(Path.prototype);return a.__wbg_ptr=s,PathFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PathFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_path_free(s,0)}constructor(s){const a=wasm.path_new(s);return this.__wbg_ptr=a>>>0,PathFinalization.register(this,this.__wbg_ptr,this),this}static fromArray(s){const a=wasm.path_fromArray(s);return Path.__wrap(a)}toJson(){return wasm.path_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.path_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}is_empty(){return 0!==wasm.path_is_empty(this.__wbg_ptr)}}const PaymentFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_payment_free(f>>>0,1));class Payment{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PaymentFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_payment_free(s,0)}get source(){let s,a;try{const u=wasm.__wbg_get_payment_source(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set source(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const PaymentStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_paymentstrparams_free(f>>>0,1));class PaymentStrParams{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PaymentStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_paymentstrparams_free(s,0)}constructor(s,a,u,g,y,v,E,k,M,j){var Y=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN,ce=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),le=WASM_VECTOR_LEN,rt=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),tt=WASM_VECTOR_LEN,nt=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),kt=WASM_VECTOR_LEN,vn=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),En=WASM_VECTOR_LEN,Bn=isLikeNone(v)?0:passStringToWasm0(v,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Sn=WASM_VECTOR_LEN,Hn=isLikeNone(k)?0:passStringToWasm0(k,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),or=WASM_VECTOR_LEN,Cn=isLikeNone(M)?0:passStringToWasm0(M,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ln=WASM_VECTOR_LEN,Dn=isLikeNone(j)?0:passStringToWasm0(j,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ar=WASM_VECTOR_LEN;const cr=wasm.paymentstrparams_new(Y,fe,ce,le,rt,tt,nt,kt,vn,En,Bn,Sn,isLikeNone(E)?0:addToExternrefTable0(E),Hn,or,Cn,ln,Dn,ar);return this.__wbg_ptr=cr>>>0,PaymentStrParamsFinalization.register(this,this.__wbg_ptr,this),this}get payment_amount(){const s=wasm.paymentstrparams_payment_amount(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_amount(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_amount(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_hash(){const s=wasm.paymentstrparams_payment_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_name(){const s=wasm.paymentstrparams_payment_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_package_hash(){const s=wasm.paymentstrparams_payment_package_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_package_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_package_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_package_name(){const s=wasm.paymentstrparams_payment_package_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_package_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_package_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_path(){const s=wasm.paymentstrparams_payment_path(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_path(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_path(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_args_simple(){return wasm.paymentstrparams_payment_args_simple(this.__wbg_ptr)}set payment_args_simple(s){wasm.paymentstrparams_set_payment_args_simple(this.__wbg_ptr,s)}get payment_args_json(){const s=wasm.paymentstrparams_payment_args_json(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_args_json(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_args_json(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_version(){const s=wasm.paymentstrparams_payment_version(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_version(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_version(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_entry_point(){const s=wasm.paymentstrparams_payment_entry_point(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_entry_point(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_entry_point(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const PeerEntryFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_peerentry_free(f>>>0,1));class PeerEntry{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PeerEntryFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_peerentry_free(s,0)}get node_id(){let s,a;try{const u=wasm.peerentry_node_id(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get address(){let s,a;try{const u=wasm.peerentry_address(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const PublicKeyFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_publickey_free(f>>>0,1));class PublicKey{static __wrap(s){s>>>=0;const a=Object.create(PublicKey.prototype);return a.__wbg_ptr=s,PublicKeyFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PublicKeyFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_publickey_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.publickey_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,PublicKeyFinalization.register(this,this.__wbg_ptr,this),this}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.publickey_fromUint8Array(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return PublicKey.__wrap(g[0])}toAccountHash(){const s=wasm.publickey_toAccountHash(this.__wbg_ptr);return AccountHash.__wrap(s)}toPurseUref(){const s=wasm.publickey_toPurseUref(this.__wbg_ptr);return URef.__wrap(s)}toJson(){return wasm.publickey_toJson(this.__wbg_ptr)}}const PublicKeyStringFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_publickeystring_free(f>>>0,1));class PublicKeyString{static __wrap(s){s>>>=0;const a=Object.create(PublicKeyString.prototype);return a.__wbg_ptr=s,PublicKeyStringFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PublicKeyStringFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_publickeystring_free(s,0)}get PublicKey(){let s,a;try{const u=wasm.__wbg_get_publickeystring_PublicKey(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set PublicKey(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const PurseIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_purseidentifier_free(f>>>0,1));class PurseIdentifier{static __wrap(s){s>>>=0;const a=Object.create(PurseIdentifier.prototype);return a.__wbg_ptr=s,PurseIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PurseIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_purseidentifier_free(s,0)}constructor(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromPublicKey(a);return this.__wbg_ptr=u>>>0,PurseIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromAccountHash(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromAccountHash(a);return PurseIdentifier.__wrap(u)}static fromURef(s){_assertClass(s,URef);var a=s.__destroy_into_raw();const u=wasm.purseidentifier_fromURef(a);return PurseIdentifier.__wrap(u)}toJson(){return wasm.purseidentifier_toJson(this.__wbg_ptr)}}const PutDeployResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_putdeployresult_free(f>>>0,1));class PutDeployResult{static __wrap(s){s>>>=0;const a=Object.create(PutDeployResult.prototype);return a.__wbg_ptr=s,PutDeployResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PutDeployResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_putdeployresult_free(s,0)}get api_version(){return wasm.putdeployresult_api_version(this.__wbg_ptr)}get deploy_hash(){const s=wasm.putdeployresult_deploy_hash(this.__wbg_ptr);return DeployHash.__wrap(s)}toJson(){return wasm.putdeployresult_toJson(this.__wbg_ptr)}}const PutTransactionResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_puttransactionresult_free(f>>>0,1));class PutTransactionResult{static __wrap(s){s>>>=0;const a=Object.create(PutTransactionResult.prototype);return a.__wbg_ptr=s,PutTransactionResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PutTransactionResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_puttransactionresult_free(s,0)}get api_version(){return wasm.puttransactionresult_api_version(this.__wbg_ptr)}get transaction_hash(){const s=wasm.puttransactionresult_transaction_hash(this.__wbg_ptr);return TransactionHash.__wrap(s)}toJson(){return wasm.puttransactionresult_toJson(this.__wbg_ptr)}}const QueryBalanceDetailsResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalancedetailsresult_free(f>>>0,1));class QueryBalanceDetailsResult{static __wrap(s){s>>>=0;const a=Object.create(QueryBalanceDetailsResult.prototype);return a.__wbg_ptr=s,QueryBalanceDetailsResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,QueryBalanceDetailsResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalancedetailsresult_free(s,0)}get api_version(){return wasm.querybalancedetailsresult_api_version(this.__wbg_ptr)}get total_balance(){return wasm.querybalancedetailsresult_total_balance(this.__wbg_ptr)}get available_balance(){return wasm.querybalancedetailsresult_available_balance(this.__wbg_ptr)}get total_balance_proof(){return wasm.querybalancedetailsresult_total_balance_proof(this.__wbg_ptr)}get holds(){return wasm.querybalancedetailsresult_holds(this.__wbg_ptr)}toJson(){return wasm.querybalancedetailsresult_toJson(this.__wbg_ptr)}}const QueryBalanceResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalanceresult_free(f>>>0,1));class QueryBalanceResult{static __wrap(s){s>>>=0;const a=Object.create(QueryBalanceResult.prototype);return a.__wbg_ptr=s,QueryBalanceResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,QueryBalanceResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalanceresult_free(s,0)}get api_version(){return wasm.querybalanceresult_api_version(this.__wbg_ptr)}get balance(){return wasm.querybalanceresult_balance(this.__wbg_ptr)}toJson(){return wasm.querybalanceresult_toJson(this.__wbg_ptr)}}const QueryGlobalStateResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_queryglobalstateresult_free(f>>>0,1));class QueryGlobalStateResult{static __wrap(s){s>>>=0;const a=Object.create(QueryGlobalStateResult.prototype);return a.__wbg_ptr=s,QueryGlobalStateResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,QueryGlobalStateResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_queryglobalstateresult_free(s,0)}get api_version(){return wasm.queryglobalstateresult_api_version(this.__wbg_ptr)}get block_header(){return wasm.queryglobalstateresult_block_header(this.__wbg_ptr)}get stored_value(){return wasm.queryglobalstateresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.queryglobalstateresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.queryglobalstateresult_toJson(this.__wbg_ptr)}}const RecordIdFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_recordid_free(f>>>0,1));class RecordId{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,RecordIdFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_recordid_free(s,0)}constructor(s){const a=wasm.recordid_new_js_alias(s);if(a[2])throw takeFromExternrefTable0(a[1]);return this.__wbg_ptr=a[0]>>>0,RecordIdFinalization.register(this,this.__wbg_ptr,this),this}}const SDKFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_sdk_free(f>>>0,1));class SDK{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SDKFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_sdk_free(s,0)}get_account_options(s){const a=wasm.sdk_get_account_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getAccountOptions.__wrap(a[0])}get_account(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAccountOptions),a=s.__destroy_into_raw()),wasm.sdk_get_account(this.__wbg_ptr,a)}state_get_account_info(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAccountOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_account_info(this.__wbg_ptr,a)}get_balance_options(s){const a=wasm.sdk_get_balance_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getBalanceOptions.__wrap(a[0])}get_balance(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBalanceOptions),a=s.__destroy_into_raw()),wasm.sdk_get_balance(this.__wbg_ptr,a)}state_get_balance(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBalanceOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_balance(this.__wbg_ptr,a)}get_chainspec(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_chainspec(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_chainspec(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_chainspec(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}get_node_status(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_node_status(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_status(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_status(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}query_global_state_options(s){const a=wasm.sdk_query_global_state_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryGlobalStateOptions.__wrap(a[0])}query_global_state(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryGlobalStateOptions),a=s.__destroy_into_raw()),wasm.sdk_query_global_state(this.__wbg_ptr,a)}get_block_transfers_options(s){const a=wasm.sdk_get_block_transfers_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getBlockTransfersOptions.__wrap(a[0])}get_block_transfers(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockTransfersOptions),a=s.__destroy_into_raw()),wasm.sdk_get_block_transfers(this.__wbg_ptr,a)}chain_get_block_transfers(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockTransfersOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_block_transfers(this.__wbg_ptr,a)}get_deploy_options(s){const a=wasm.sdk_get_deploy_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getDeployOptions.__wrap(a[0])}get_deploy(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDeployOptions),a=s.__destroy_into_raw()),wasm.sdk_get_deploy(this.__wbg_ptr,a)}info_get_deploy(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDeployOptions),a=s.__destroy_into_raw()),wasm.sdk_info_get_deploy(this.__wbg_ptr,a)}get_state_root_hash_options(s){const a=wasm.sdk_get_state_root_hash_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getStateRootHashOptions.__wrap(a[0])}get_state_root_hash(s){let a=0;return isLikeNone(s)||(_assertClass(s,getStateRootHashOptions),a=s.__destroy_into_raw()),wasm.sdk_get_state_root_hash(this.__wbg_ptr,a)}chain_get_state_root_hash(s){let a=0;return isLikeNone(s)||(_assertClass(s,getStateRootHashOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr,a)}get_transaction_options(s){const a=wasm.sdk_get_transaction_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getTransactionOptions.__wrap(a[0])}get_transaction(s){let a=0;return isLikeNone(s)||(_assertClass(s,getTransactionOptions),a=s.__destroy_into_raw()),wasm.sdk_get_transaction(this.__wbg_ptr,a)}info_get_transaction(s){let a=0;return isLikeNone(s)||(_assertClass(s,getTransactionOptions),a=s.__destroy_into_raw()),wasm.sdk_info_get_transaction(this.__wbg_ptr,a)}query_balance_options(s){const a=wasm.sdk_query_balance_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryBalanceOptions.__wrap(a[0])}query_balance(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryBalanceOptions),a=s.__destroy_into_raw()),wasm.sdk_query_balance(this.__wbg_ptr,a)}get_speculative_exec_options(s){const a=wasm.sdk_get_speculative_exec_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getSpeculativeExecTxnOptions.__wrap(a[0])}speculative_exec(s){let a=0;return isLikeNone(s)||(_assertClass(s,getSpeculativeExecTxnOptions),a=s.__destroy_into_raw()),wasm.sdk_speculative_exec(this.__wbg_ptr,a)}get_speculative_exec_deploy_options(s){const a=wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getSpeculativeExecDeployOptions.__wrap(a[0])}speculative_exec_deploy(s){let a=0;return isLikeNone(s)||(_assertClass(s,getSpeculativeExecDeployOptions),a=s.__destroy_into_raw()),wasm.sdk_speculative_exec_deploy(this.__wbg_ptr,a)}make_transfer(s,a,u,g,y){const v=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN;var j=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Y=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var fe=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var ce=y.__destroy_into_raw();const le=wasm.sdk_make_transfer(this.__wbg_ptr,v,E,k,M,j,Y,fe,ce);if(le[2])throw takeFromExternrefTable0(le[1]);return Deploy.__wrap(le[0])}sign_transaction(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw();const g=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=wasm.sdk_sign_transaction(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}constructor(s,a,u){var g=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const k=wasm.sdk_new(g,y,v,WASM_VECTOR_LEN,isLikeNone(u)?3:u);return this.__wbg_ptr=k>>>0,SDKFinalization.register(this,this.__wbg_ptr,this),this}getRPCAddress(s){let a,u;try{var g=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.sdk_getRPCAddress(this.__wbg_ptr,g,WASM_VECTOR_LEN);return a=v[0],u=v[1],getStringFromWasm0(v[0],v[1])}finally{wasm.__wbindgen_free(a,u,1)}}setRPCAddress(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.sdk_setRPCAddress(this.__wbg_ptr,a,WASM_VECTOR_LEN);if(g[1])throw takeFromExternrefTable0(g[0])}getNodeAddress(s){let a,u;try{var g=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.sdk_getNodeAddress(this.__wbg_ptr,g,WASM_VECTOR_LEN);return a=v[0],u=v[1],getStringFromWasm0(v[0],v[1])}finally{wasm.__wbindgen_free(a,u,1)}}setNodeAddress(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.sdk_setNodeAddress(this.__wbg_ptr,a,WASM_VECTOR_LEN);if(g[1])throw takeFromExternrefTable0(g[0])}getVerbosity(s){return wasm.sdk_getVerbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}setVerbosity(s){const a=wasm.sdk_setVerbosity(this.__wbg_ptr,isLikeNone(s)?3:s);if(a[1])throw takeFromExternrefTable0(a[0])}get_auction_info_options(s){const a=wasm.sdk_get_auction_info_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getAuctionInfoOptions.__wrap(a[0])}get_auction_info(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAuctionInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_get_auction_info(this.__wbg_ptr,a)}state_get_auction_info_js_alias(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAuctionInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr,a)}get_entity_options(s){const a=wasm.sdk_get_entity_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getEntityOptions.__wrap(a[0])}get_entity(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEntityOptions),a=s.__destroy_into_raw()),wasm.sdk_get_entity(this.__wbg_ptr,a)}state_get_entity(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEntityOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_entity(this.__wbg_ptr,a)}get_era_summary_options(s){const a=wasm.sdk_get_era_summary_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getEraSummaryOptions.__wrap(a[0])}get_era_summary(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraSummaryOptions),a=s.__destroy_into_raw()),wasm.sdk_get_era_summary(this.__wbg_ptr,a)}chain_get_era_summary(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraSummaryOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_era_summary(this.__wbg_ptr,a)}get_validator_changes(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_validator_changes(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_validator_change(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_validator_change(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}query_contract_key_options(s){const a=wasm.sdk_query_contract_key_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryContractKeyOptions.__wrap(a[0])}query_contract_key(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryContractKeyOptions),a=s.__destroy_into_raw()),wasm.sdk_query_contract_key(this.__wbg_ptr,a)}get_binary_latest_switch_block_header(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_latest_switch_block_header(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_latest_block_header(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_latest_block_header(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_block_header_by_height(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_block_header_by_height(this.__wbg_ptr,s,u,WASM_VECTOR_LEN)}get_binary_block_header_by_hash(s,a){_assertClass(s,BlockHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_block_header_by_hash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_latest_signed_block(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_latest_signed_block(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_signed_block_by_height(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_signed_block_by_height(this.__wbg_ptr,s,u,WASM_VECTOR_LEN)}get_binary_signed_block_by_hash(s,a){_assertClass(s,BlockHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_signed_block_by_hash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_transaction_by_hash(s,a,u){_assertClass(s,TransactionHash);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_transaction_by_hash(this.__wbg_ptr,g,a,y,WASM_VECTOR_LEN)}get_binary_peers(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_peers(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_uptime(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_uptime(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_last_progress(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_last_progress(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_reactor_state(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_reactor_state(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_network_name(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_network_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_consensus_validator_changes(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_consensus_validator_changes(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_block_synchronizer_status(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_block_synchronizer_status(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_available_block_range(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_available_block_range(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_next_upgrade(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_next_upgrade(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_consensus_status(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_consensus_status(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_chainspec_raw_bytes(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_chainspec_raw_bytes(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_node_status(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_node_status(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_validator_reward_by_era(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,EraId);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_validator_reward_by_era(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}get_binary_validator_reward_by_block_height(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_validator_reward_by_block_height(this.__wbg_ptr,g,a,y,WASM_VECTOR_LEN)}get_binary_validator_reward_by_block_hash(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,BlockHash);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_validator_reward_by_block_hash(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}get_binary_delegator_reward_by_era(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw();_assertClass(u,EraId);var E=u.__destroy_into_raw(),k=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_delegator_reward_by_era(this.__wbg_ptr,y,v,E,k,WASM_VECTOR_LEN)}get_binary_delegator_reward_by_block_height(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw(),E=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_delegator_reward_by_block_height(this.__wbg_ptr,y,v,u,E,WASM_VECTOR_LEN)}get_binary_delegator_reward_by_block_hash(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw();_assertClass(u,BlockHash);var E=u.__destroy_into_raw(),k=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_delegator_reward_by_block_hash(this.__wbg_ptr,y,v,E,k,WASM_VECTOR_LEN)}get_binary_read_record(s,a,u){_assertClass(s,RecordId);var g=s.__destroy_into_raw();const y=passArray8ToWasm0(a,wasm.__wbindgen_malloc),v=WASM_VECTOR_LEN;var E=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_read_record(this.__wbg_ptr,g,y,v,E,WASM_VECTOR_LEN)}get_binary_global_state_item(s,a,u){_assertClass(s,Key);var g=s.__destroy_into_raw();const y=passArrayJsValueToWasm0(a,wasm.__wbindgen_malloc),v=WASM_VECTOR_LEN;var E=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item(this.__wbg_ptr,g,y,v,E,WASM_VECTOR_LEN)}get_binary_global_state_item_by_state_root_hash(s,a,u,g){_assertClass(s,Digest);var y=s.__destroy_into_raw();_assertClass(a,Key);var v=a.__destroy_into_raw();const E=passArrayJsValueToWasm0(u,wasm.__wbindgen_malloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item_by_state_root_hash(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}get_binary_global_state_item_by_block_hash(s,a,u,g){_assertClass(s,BlockHash);var y=s.__destroy_into_raw();_assertClass(a,Key);var v=a.__destroy_into_raw();const E=passArrayJsValueToWasm0(u,wasm.__wbindgen_malloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item_by_block_hash(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}get_binary_global_state_item_by_block_height(s,a,u,g){_assertClass(a,Key);var y=a.__destroy_into_raw();const v=passArrayJsValueToWasm0(u,wasm.__wbindgen_malloc),E=WASM_VECTOR_LEN;var k=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item_by_block_height(this.__wbg_ptr,s,y,v,E,k,WASM_VECTOR_LEN)}get_binary_try_accept_transaction(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_try_accept_transaction(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_try_speculative_execution(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_try_speculative_execution(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_protocol_version(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_protocol_version(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_block_options(s){const a=wasm.sdk_get_block_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getBlockOptions.__wrap(a[0])}get_block(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockOptions),a=s.__destroy_into_raw()),wasm.sdk_get_block(this.__wbg_ptr,a)}chain_get_block(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_block(this.__wbg_ptr,a)}get_dictionary_item_options(s){const a=wasm.sdk_get_dictionary_item_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getDictionaryItemOptions.__wrap(a[0])}get_dictionary_item(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDictionaryItemOptions),a=s.__destroy_into_raw()),wasm.sdk_get_dictionary_item(this.__wbg_ptr,a)}state_get_dictionary_item(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDictionaryItemOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_dictionary_item(this.__wbg_ptr,a)}get_era_info_options(s){const a=wasm.sdk_get_era_info_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getEraInfoOptions.__wrap(a[0])}get_era_info(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_get_era_info(this.__wbg_ptr,a)}chain_get_era_info_by_switch_block(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr,a)}get_peers(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_peers(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_peers(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_peers(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}list_rpcs(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_list_rpcs(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}transaction(s,a,u,g){_assertClass(s,TransactionBuilderParams);var y=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var v=a.__destroy_into_raw(),E=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;return wasm.sdk_transaction(this.__wbg_ptr,y,v,isLikeNone(u)?3:u,E,k)}make_deploy(s,a,u){_assertClass(s,DeployStrParams);var g=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var y=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var v=u.__destroy_into_raw();const E=wasm.sdk_make_deploy(this.__wbg_ptr,g,y,v);if(E[2])throw takeFromExternrefTable0(E[1]);return Deploy.__wrap(E[0])}sign_deploy(s,a){_assertClass(s,Deploy);var u=s.__destroy_into_raw();const g=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=wasm.sdk_sign_deploy(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}query_contract_dict_options(s){const a=wasm.sdk_query_contract_dict_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryContractDictOptions.__wrap(a[0])}query_contract_dict(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryContractDictOptions),a=s.__destroy_into_raw()),wasm.sdk_query_contract_dict(this.__wbg_ptr,a)}put_transaction(s,a,u){_assertClass(s,Transaction);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_put_transaction(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}account_put_transaction(s,a,u){_assertClass(s,Transaction);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_account_put_transaction(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}speculative_transaction(s,a,u,g){_assertClass(s,TransactionBuilderParams);var y=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var v=a.__destroy_into_raw(),E=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;return wasm.sdk_speculative_transaction(this.__wbg_ptr,y,v,isLikeNone(u)?3:u,E,k)}call_entrypoint(s,a,u){_assertClass(s,TransactionBuilderParams);var g=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_call_entrypoint(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}speculative_deploy(s,a,u,g,y){_assertClass(s,DeployStrParams);var v=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var E=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var k=u.__destroy_into_raw(),M=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;return wasm.sdk_speculative_deploy(this.__wbg_ptr,v,E,k,isLikeNone(g)?3:g,M,j)}transfer(s,a,u,g,y,v,E){const k=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN,j=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Y=WASM_VECTOR_LEN;var fe=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ce=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var le=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var rt=y.__destroy_into_raw(),tt=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN;return wasm.sdk_transfer(this.__wbg_ptr,k,M,j,Y,fe,ce,le,rt,isLikeNone(v)?3:v,tt,nt)}speculative_transfer(s,a,u,g,y,v,E){const k=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN,j=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Y=WASM_VECTOR_LEN;var fe=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ce=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var le=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var rt=y.__destroy_into_raw(),tt=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN;return wasm.sdk_speculative_transfer(this.__wbg_ptr,k,M,j,Y,fe,ce,le,rt,isLikeNone(v)?3:v,tt,nt)}put_deploy(s,a,u){_assertClass(s,Deploy);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_put_deploy(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}account_put_deploy(s,a,u){_assertClass(s,Deploy);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_account_put_deploy(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}transfer_transaction(s,a,u,g,y,v,E){let k=0;isLikeNone(s)||(_assertClass(s,URef),k=s.__destroy_into_raw());const M=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN,Y=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var ce=g.__destroy_into_raw(),le=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN,tt=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN;return wasm.sdk_transfer_transaction(this.__wbg_ptr,k,M,j,Y,fe,ce,le,rt,isLikeNone(v)?3:v,tt,nt)}install_deploy(s,a,u,g){_assertClass(s,DeployStrParams);var y=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var v=a.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_install_deploy(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}deploy(s,a,u,g,y){_assertClass(s,DeployStrParams);var v=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var E=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var k=u.__destroy_into_raw(),M=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;return wasm.sdk_deploy(this.__wbg_ptr,v,E,k,isLikeNone(g)?3:g,M,j)}query_balance_details_options(s){const a=wasm.sdk_query_balance_details_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryBalanceDetailsOptions.__wrap(a[0])}query_balance_details(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryBalanceDetailsOptions),a=s.__destroy_into_raw()),wasm.sdk_query_balance_details(this.__wbg_ptr,a)}speculative_transfer_transaction(s,a,u,g,y,v,E){let k=0;isLikeNone(s)||(_assertClass(s,URef),k=s.__destroy_into_raw());const M=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN,Y=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var ce=g.__destroy_into_raw(),le=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN,tt=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN;return wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr,k,M,j,Y,fe,ce,le,rt,isLikeNone(v)?3:v,tt,nt)}make_transaction(s,a){_assertClass(s,TransactionBuilderParams);var u=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var g=a.__destroy_into_raw();const y=wasm.sdk_make_transaction(this.__wbg_ptr,u,g);if(y[2])throw takeFromExternrefTable0(y[1]);return Transaction.__wrap(y[0])}make_transfer_transaction(s,a,u,g,y){let v=0;isLikeNone(s)||(_assertClass(s,URef),v=s.__destroy_into_raw());const E=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var Y=g.__destroy_into_raw(),fe=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const le=wasm.sdk_make_transfer_transaction(this.__wbg_ptr,v,E,k,M,j,Y,fe,WASM_VECTOR_LEN);if(le[2])throw takeFromExternrefTable0(le[1]);return Transaction.__wrap(le[0])}watchDeploy(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.sdk_watchDeploy(this.__wbg_ptr,u,WASM_VECTOR_LEN,!isLikeNone(a),isLikeNone(a)?0:a);return Watcher.__wrap(y)}watchTransaction(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.sdk_watchTransaction(this.__wbg_ptr,u,WASM_VECTOR_LEN,!isLikeNone(a),isLikeNone(a)?0:a);return Watcher.__wrap(y)}waitDeploy(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_waitDeploy(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN,!isLikeNone(u),isLikeNone(u)?0:u)}waitTransaction(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_waitTransaction(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN,!isLikeNone(u),isLikeNone(u)?0:u)}call_entrypoint_deploy(s,a,u,g){_assertClass(s,DeployStrParams);var y=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var v=a.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}install(s,a,u){_assertClass(s,TransactionStrParams);var g=s.__destroy_into_raw();_assertClass(a,Bytes);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_install(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}}const SessionStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_sessionstrparams_free(f>>>0,1));class SessionStrParams{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SessionStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_sessionstrparams_free(s,0)}constructor(s,a,u,g,y,v,E,k,M,j,Y){var fe=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ce=WASM_VECTOR_LEN,le=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN,tt=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN,kt=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),vn=WASM_VECTOR_LEN,En=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Bn=WASM_VECTOR_LEN;let Sn=0;isLikeNone(v)||(_assertClass(v,Bytes),Sn=v.__destroy_into_raw());var Hn=isLikeNone(k)?0:passStringToWasm0(k,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),or=WASM_VECTOR_LEN,Cn=isLikeNone(M)?0:passStringToWasm0(M,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ln=WASM_VECTOR_LEN,Dn=isLikeNone(j)?0:passStringToWasm0(j,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ar=WASM_VECTOR_LEN;const cr=wasm.sessionstrparams_new(fe,ce,le,rt,tt,nt,kt,vn,En,Bn,Sn,isLikeNone(E)?0:addToExternrefTable0(E),Hn,or,Cn,ln,Dn,ar,isLikeNone(Y)?16777215:Y?1:0);return this.__wbg_ptr=cr>>>0,SessionStrParamsFinalization.register(this,this.__wbg_ptr,this),this}get session_hash(){const s=wasm.sessionstrparams_session_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_name(){const s=wasm.sessionstrparams_session_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_package_hash(){const s=wasm.sessionstrparams_session_package_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_package_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_package_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_package_name(){const s=wasm.sessionstrparams_session_package_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_package_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_package_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_path(){const s=wasm.sessionstrparams_session_path(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_path(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_path(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_bytes(){const s=wasm.sessionstrparams_session_bytes(this.__wbg_ptr);return 0===s?void 0:Bytes.__wrap(s)}set session_bytes(s){_assertClass(s,Bytes);var a=s.__destroy_into_raw();wasm.sessionstrparams_set_session_bytes(this.__wbg_ptr,a)}get session_args_simple(){const s=wasm.sessionstrparams_session_args_simple(this.__wbg_ptr);return 0===s?void 0:ArgsSimple.__wrap(s)}set session_args_simple(s){wasm.sessionstrparams_set_session_args_simple(this.__wbg_ptr,s)}get session_args_json(){const s=wasm.sessionstrparams_session_args_json(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_args_json(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_args_json(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_version(){const s=wasm.sessionstrparams_session_version(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_version(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_version(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_entry_point(){const s=wasm.sessionstrparams_session_entry_point(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_entry_point(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_entry_point(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get is_session_transfer(){const s=wasm.sessionstrparams_is_session_transfer(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set is_session_transfer(s){wasm.sessionstrparams_set_is_session_transfer(this.__wbg_ptr,s)}}const SignatureResponseFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_signatureresponse_free(f>>>0,1));class SignatureResponse{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SignatureResponseFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_signatureresponse_free(s,0)}is_cancelled(){return 0!==wasm.signatureresponse_is_cancelled(this.__wbg_ptr)}get_signature_hex(){let s,a;try{const u=wasm.signatureresponse_get_signature_hex(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get_signature(){const s=wasm.signatureresponse_get_signature(this.__wbg_ptr);var a=getArrayU8FromWasm0(s[0],s[1]).slice();return wasm.__wbindgen_free(s[0],1*s[1],1),a}}const SpeculativeExecResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_speculativeexecresult_free(f>>>0,1));class SpeculativeExecResult{static __wrap(s){s>>>=0;const a=Object.create(SpeculativeExecResult.prototype);return a.__wbg_ptr=s,SpeculativeExecResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SpeculativeExecResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_speculativeexecresult_free(s,0)}get api_version(){return wasm.speculativeexecresult_api_version(this.__wbg_ptr)}get block_hash(){const s=wasm.speculativeexecresult_block_hash(this.__wbg_ptr);return BlockHash.__wrap(s)}get execution_result(){return wasm.speculativeexecresult_execution_result(this.__wbg_ptr)}toJson(){return wasm.speculativeexecresult_toJson(this.__wbg_ptr)}}const SpeculativeExecTxnResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_speculativeexectxnresult_free(f>>>0,1));class SpeculativeExecTxnResult{static __wrap(s){s>>>=0;const a=Object.create(SpeculativeExecTxnResult.prototype);return a.__wbg_ptr=s,SpeculativeExecTxnResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SpeculativeExecTxnResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_speculativeexectxnresult_free(s,0)}get api_version(){return wasm.speculativeexectxnresult_api_version(this.__wbg_ptr)}get block_hash(){const s=wasm.speculativeexecresult_block_hash(this.__wbg_ptr);return BlockHash.__wrap(s)}get execution_result(){return wasm.speculativeexectxnresult_execution_result(this.__wbg_ptr)}toJson(){return wasm.speculativeexectxnresult_toJson(this.__wbg_ptr)}}const SubscriptionFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_subscription_free(f>>>0,1));class Subscription{static __unwrap(s){return s instanceof Subscription?s.__destroy_into_raw():0}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SubscriptionFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_subscription_free(s,0)}get targetHash(){let s,a;try{const u=wasm.__wbg_get_subscription_targetHash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set targetHash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get eventHandlerFn(){return wasm.__wbg_get_subscription_eventHandlerFn(this.__wbg_ptr)}set eventHandlerFn(s){wasm.__wbg_set_subscription_eventHandlerFn(this.__wbg_ptr,s)}constructor(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.subscription_new(u,WASM_VECTOR_LEN,a);return this.__wbg_ptr=y>>>0,SubscriptionFinalization.register(this,this.__wbg_ptr,this),this}}const TransactionFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transaction_free(f>>>0,1));class Transaction{static __wrap(s){s>>>=0;const a=Object.create(Transaction.prototype);return a.__wbg_ptr=s,TransactionFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transaction_free(s,0)}constructor(s){const a=wasm.transaction_new(s);return this.__wbg_ptr=a>>>0,TransactionFinalization.register(this,this.__wbg_ptr,this),this}toJson(){return wasm.transaction_toJson(this.__wbg_ptr)}static newSession(s,a){_assertClass(s,TransactionBuilderParams);var u=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var g=a.__destroy_into_raw();const y=wasm.transaction_newSession(u,g);if(y[2])throw takeFromExternrefTable0(y[1]);return Transaction.__wrap(y[0])}static newTransfer(s,a,u,g,y){let v=0;isLikeNone(s)||(_assertClass(s,URef),v=s.__destroy_into_raw());const E=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var Y=g.__destroy_into_raw(),fe=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const le=wasm.transaction_newTransfer(v,E,k,M,j,Y,fe,WASM_VECTOR_LEN);if(le[2])throw takeFromExternrefTable0(le[1]);return Transaction.__wrap(le[0])}withTTL(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withTTL(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withTimestamp(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withTimestamp(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withChainName(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withChainName(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withPublicKey(s,a){_assertClass(s,PublicKey);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withPublicKey(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withAccountHash(s,a){_assertClass(s,AccountHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withAccountHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withEntryPoint(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withEntryPoint(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withEntityHash(s,a){_assertClass(s,AddressableEntityHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withEntityHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withPackageHash(s,a){_assertClass(s,PackageHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withPackageHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withTransactionBytes(s,a,u){_assertClass(s,Bytes);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;const E=wasm.transaction_withTransactionBytes(this.__wbg_ptr,g,isLikeNone(a)?16777215:a?1:0,y,v);return Transaction.__wrap(E)}withSecretKey(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.transaction_withSecretKey(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Transaction.__wrap(g)}verify(){return 0!==wasm.transaction_verify(this.__wbg_ptr)}get hash(){const s=wasm.transaction_hash(this.__wbg_ptr);return TransactionHash.__wrap(s)}get expired(){return 0!==wasm.transaction_expired(this.__wbg_ptr)}get expires(){return wasm.transaction_expires(this.__wbg_ptr)}get signers(){return wasm.transaction_signers(this.__wbg_ptr)}get authorization_keys(){return wasm.transaction_authorization_keys(this.__wbg_ptr)}sign(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.transaction_sign(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Transaction.__wrap(g)}approvalsHash(){return wasm.transaction_approvalsHash(this.__wbg_ptr)}get approvals(){return wasm.transaction_approvals(this.__wbg_ptr)}get is_native(){return 0!==wasm.transaction_is_native(this.__wbg_ptr)}get target(){return wasm.transaction_target(this.__wbg_ptr)}get is_standard_payment(){return 0!==wasm.transaction_is_standard_payment(this.__wbg_ptr)}session_args(){return wasm.transaction_session_args(this.__wbg_ptr)}addSignature(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.transaction_addSignature(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}get entry_point(){let s,a;try{const u=wasm.transaction_entry_point(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get ttl(){let s,a;try{const u=wasm.transaction_ttl(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get timestamp(){let s,a;try{const u=wasm.transaction_timestamp(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get size_estimate(){return wasm.transaction_size_estimate(this.__wbg_ptr)>>>0}get chain_name(){let s,a;try{const u=wasm.transaction_chain_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get initiator_addr(){let s,a;try{const u=wasm.transaction_initiator_addr(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get pricing_mode(){return wasm.transaction_pricing_mode(this.__wbg_ptr)}get additional_computation_factor(){return wasm.transaction_additional_computation_factor(this.__wbg_ptr)}get receipt(){const s=wasm.transaction_receipt(this.__wbg_ptr);return Digest.__wrap(s)}get gas_price_tolerance(){return wasm.transaction_gas_price_tolerance(this.__wbg_ptr)}get account_hash(){const s=wasm.transaction_account_hash(this.__wbg_ptr);return AccountHash.__wrap(s)}addArg(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.transaction_addArg(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);if(y[2])throw takeFromExternrefTable0(y[1]);return Transaction.__wrap(y[0])}}const TransactionBuilderParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionbuilderparams_free(f>>>0,1));class TransactionBuilderParams{static __wrap(s){s>>>=0;const a=Object.create(TransactionBuilderParams.prototype);return a.__wbg_ptr=s,TransactionBuilderParamsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionBuilderParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionbuilderparams_free(s,0)}static newSession(s,a){let u=0;isLikeNone(s)||(_assertClass(s,Bytes),u=s.__destroy_into_raw());const g=wasm.transactionbuilderparams_newSession(u,isLikeNone(a)?16777215:a?1:0);return TransactionBuilderParams.__wrap(g)}static newTransfer(s,a,u,g){let y=0;isLikeNone(s)||(_assertClass(s,URef),y=s.__destroy_into_raw()),_assertClass(a,TransferTarget);var v=a.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=wasm.transactionbuilderparams_newTransfer(y,v,E,WASM_VECTOR_LEN,!isLikeNone(g),isLikeNone(g)?BigInt(0):g);return TransactionBuilderParams.__wrap(M)}static newInvocableEntity(s,a){_assertClass(s,AddressableEntityHash);var u=s.__destroy_into_raw();const g=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=wasm.transactionbuilderparams_newInvocableEntity(u,g,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(v)}static newInvocableEntityAlias(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.transactionbuilderparams_newInvocableEntityAlias(u,g,y,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(E)}static newPackage(s,a,u){_assertClass(s,PackageHash);var g=s.__destroy_into_raw();const y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;var E=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const M=wasm.transactionbuilderparams_newPackage(g,y,v,E,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(M)}static newPackageAlias(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN;var k=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const j=wasm.transactionbuilderparams_newPackageAlias(g,y,v,E,k,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(j)}static newAddBid(s,a,u,g,y){_assertClass(s,PublicKey);var v=s.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=wasm.transactionbuilderparams_newAddBid(v,a,E,WASM_VECTOR_LEN,g,y);return TransactionBuilderParams.__wrap(M)}static newDelegate(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,PublicKey);var y=a.__destroy_into_raw();const v=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=wasm.transactionbuilderparams_newDelegate(g,y,v,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(k)}static newUndelegate(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,PublicKey);var y=a.__destroy_into_raw();const v=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=wasm.transactionbuilderparams_newUndelegate(g,y,v,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(k)}static newRedelegate(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw();_assertClass(u,PublicKey);var E=u.__destroy_into_raw();const k=passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.transactionbuilderparams_newRedelegate(y,v,E,k,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(j)}static newWithdrawBid(s,a){_assertClass(s,PublicKey);var u=s.__destroy_into_raw();const g=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=wasm.transactionbuilderparams_newWithdrawBid(u,g,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(v)}get kind(){return wasm.transactionbuilderparams_kind(this.__wbg_ptr)}set kind(s){wasm.transactionbuilderparams_set_kind(this.__wbg_ptr,s)}get transaction_bytes(){const s=wasm.transactionbuilderparams_transaction_bytes(this.__wbg_ptr);return 0===s?void 0:Bytes.__wrap(s)}set transaction_bytes(s){_assertClass(s,Bytes);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_transaction_bytes(this.__wbg_ptr,a)}get maybe_source(){const s=wasm.transactionbuilderparams_maybe_source(this.__wbg_ptr);return 0===s?void 0:URef.__wrap(s)}set maybe_source(s){_assertClass(s,URef);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_maybe_source(this.__wbg_ptr,a)}get target(){const s=wasm.transactionbuilderparams_target(this.__wbg_ptr);return 0===s?void 0:TransferTarget.__wrap(s)}set target(s){_assertClass(s,TransferTarget);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_target(this.__wbg_ptr,a)}get amount(){const s=wasm.transactionbuilderparams_amount(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set amount(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_amount(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_id(){const s=wasm.transactionbuilderparams_maybe_id(this.__wbg_ptr);return 0===s[0]?void 0:BigInt.asUintN(64,s[1])}set maybe_id(s){wasm.transactionbuilderparams_set_maybe_id(this.__wbg_ptr,s)}get entity_hash(){const s=wasm.transactionbuilderparams_entity_hash(this.__wbg_ptr);return 0===s?void 0:AddressableEntityHash.__wrap(s)}set entity_hash(s){_assertClass(s,AddressableEntityHash);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_entity_hash(this.__wbg_ptr,a)}get entity_alias(){const s=wasm.transactionbuilderparams_entity_alias(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entity_alias(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_entity_alias(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get entry_point(){const s=wasm.transactionbuilderparams_entry_point(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entry_point(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_entry_point(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get package_hash(){const s=wasm.transactionbuilderparams_package_hash(this.__wbg_ptr);return 0===s?void 0:PackageHash.__wrap(s)}set package_hash(s){_assertClass(s,PackageHash);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_package_hash(this.__wbg_ptr,a)}get package_alias(){const s=wasm.transactionbuilderparams_package_alias(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set package_alias(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_package_alias(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get public_key(){const s=wasm.transactionbuilderparams_public_key(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set public_key(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_public_key(this.__wbg_ptr,a)}get delegation_rate(){const s=wasm.transactionbuilderparams_delegation_rate(this.__wbg_ptr);return 16777215===s?void 0:s}set delegation_rate(s){wasm.transactionbuilderparams_set_delegation_rate(this.__wbg_ptr,s)}get delegator(){const s=wasm.transactionbuilderparams_delegator(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set delegator(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_delegator(this.__wbg_ptr,a)}get validator(){const s=wasm.transactionbuilderparams_validator(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set validator(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_validator(this.__wbg_ptr,a)}get new_validator(){const s=wasm.transactionbuilderparams_new_validator(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set new_validator(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_new_validator(this.__wbg_ptr,a)}get minimum_delegation_amount(){const s=wasm.transactionbuilderparams_minimum_delegation_amount(this.__wbg_ptr);return 0===s[0]?void 0:BigInt.asUintN(64,s[1])}set minimum_delegation_amount(s){wasm.transactionbuilderparams_set_minimum_delegation_amount(this.__wbg_ptr,s)}get maximum_delegation_amount(){const s=wasm.transactionbuilderparams_maximum_delegation_amount(this.__wbg_ptr);return 0===s[0]?void 0:BigInt.asUintN(64,s[1])}set maximum_delegation_amount(s){wasm.transactionbuilderparams_set_maximum_delegation_amount(this.__wbg_ptr,s)}get is_install_upgrade(){const s=wasm.transactionbuilderparams_is_install_upgrade(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set is_install_upgrade(s){wasm.transactionbuilderparams_set_is_install_upgrade(this.__wbg_ptr,s)}}const TransactionHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionhash_free(f>>>0,1));class TransactionHash{static __wrap(s){s>>>=0;const a=Object.create(TransactionHash.prototype);return a.__wbg_ptr=s,TransactionHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.transactionhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,TransactionHashFinalization.register(this,this.__wbg_ptr,this),this}static fromRaw(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.transactionhash_fromRaw(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return TransactionHash.__wrap(g[0])}digest(){const s=wasm.transactionhash_digest(this.__wbg_ptr);if(s[2])throw takeFromExternrefTable0(s[1]);return Digest.__wrap(s[0])}toJson(){return wasm.transactionhash_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.transactionhash_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const TransactionProcessedFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionprocessed_free(f>>>0,1));class TransactionProcessed{static __wrap(s){s>>>=0;const a=Object.create(TransactionProcessed.prototype);return a.__wbg_ptr=s,TransactionProcessedFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionProcessedFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionprocessed_free(s,0)}get hash(){const s=wasm.__wbg_get_transactionprocessed_hash(this.__wbg_ptr);return HashString.__wrap(s)}set hash(s){_assertClass(s,HashString);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_hash(this.__wbg_ptr,a)}get initiator_addr(){const s=wasm.__wbg_get_transactionprocessed_initiator_addr(this.__wbg_ptr);return PublicKeyString.__wrap(s)}set initiator_addr(s){_assertClass(s,PublicKeyString);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_initiator_addr(this.__wbg_ptr,a)}get timestamp(){let s,a;try{const u=wasm.__wbg_get_transactionprocessed_timestamp(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set timestamp(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get ttl(){let s,a;try{const u=wasm.__wbg_get_transactionprocessed_ttl(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set ttl(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get block_hash(){let s,a;try{const u=wasm.__wbg_get_transactionprocessed_block_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set block_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_topic_name_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get execution_result(){const s=wasm.__wbg_get_transactionprocessed_execution_result(this.__wbg_ptr);return ExecutionResult.__wrap(s)}set execution_result(s){_assertClass(s,ExecutionResult);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_execution_result(this.__wbg_ptr,a)}get messages(){const s=wasm.__wbg_get_transactionprocessed_messages(this.__wbg_ptr);var a=getArrayJsValueFromWasm0(s[0],s[1]).slice();return wasm.__wbindgen_free(s[0],4*s[1],4),a}set messages(s){const a=passArrayJsValueToWasm0(s,wasm.__wbindgen_malloc);wasm.__wbg_set_transactionprocessed_messages(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const TransactionStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionstrparams_free(f>>>0,1));class TransactionStrParams{static __wrap(s){s>>>=0;const a=Object.create(TransactionStrParams.prototype);return a.__wbg_ptr=s,TransactionStrParamsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionstrparams_free(s,0)}constructor(s,a,u,g,y,v,E,k,M,j,Y,fe,ce){const le=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN;var tt=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN,kt=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),vn=WASM_VECTOR_LEN,En=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Bn=WASM_VECTOR_LEN,Sn=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Hn=WASM_VECTOR_LEN,or=isLikeNone(v)?0:passArrayJsValueToWasm0(v,wasm.__wbindgen_malloc),Cn=WASM_VECTOR_LEN,ln=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Dn=WASM_VECTOR_LEN,ar=isLikeNone(M)?0:passStringToWasm0(M,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),cr=WASM_VECTOR_LEN,du=isLikeNone(j)?0:passStringToWasm0(j,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),xi=WASM_VECTOR_LEN,Li=isLikeNone(Y)?0:passStringToWasm0(Y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Es=WASM_VECTOR_LEN,fu=isLikeNone(fe)?0:passStringToWasm0(fe,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),pu=WASM_VECTOR_LEN;const Ca=wasm.transactionstrparams_new(le,rt,tt,nt,kt,vn,En,Bn,Sn,Hn,or,Cn,ln,Dn,isLikeNone(k)?3:k,ar,cr,du,xi,Li,Es,fu,pu,isLikeNone(ce)?16777215:ce?1:0);return this.__wbg_ptr=Ca>>>0,TransactionStrParamsFinalization.register(this,this.__wbg_ptr,this),this}static new_with_defaults(s,a,u,g){const y=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;var E=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN,Y=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const ce=wasm.transactionstrparams_new_with_defaults(y,v,E,k,M,j,Y,WASM_VECTOR_LEN);return TransactionStrParams.__wrap(ce)}get secret_key(){const s=wasm.transactionstrparams_secret_key(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set secret_key(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_secret_key(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get timestamp(){const s=wasm.transactionstrparams_timestamp(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set timestamp(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTimestamp(){wasm.transactionstrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const s=wasm.transactionstrparams_ttl(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set ttl(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTTL(){wasm.transactionstrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const s=wasm.transactionstrparams_chain_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set chain_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_chain_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get initiator_addr(){const s=wasm.transactionstrparams_initiator_addr(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set initiator_addr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_initiator_addr(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_args_simple(){const s=wasm.transactionstrparams_session_args_simple(this.__wbg_ptr);return 0===s?void 0:ArgsSimple.__wrap(s)}set session_args_simple(s){const a=passArrayJsValueToWasm0(s,wasm.__wbindgen_malloc);wasm.transactionstrparams_set_session_args_simple(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_args_json(){const s=wasm.transactionstrparams_session_args_json(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_args_json(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_session_args_json(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get pricing_mode(){const s=wasm.transactionstrparams_pricing_mode(this.__wbg_ptr);return 3===s?void 0:s}set pricing_mode(s){wasm.transactionstrparams_set_pricing_mode(this.__wbg_ptr,s)}get additional_computation_factor(){const s=wasm.transactionstrparams_additional_computation_factor(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set additional_computation_factor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_additional_computation_factor(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_amount(){const s=wasm.transactionstrparams_payment_amount(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_amount(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_payment_amount(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get gas_price_tolerance(){const s=wasm.transactionstrparams_gas_price_tolerance(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set gas_price_tolerance(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_gas_price_tolerance(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get receipt(){const s=wasm.transactionstrparams_receipt(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set receipt(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_receipt(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get standard_payment(){const s=wasm.transactionstrparams_standard_payment(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set standard_payment(s){wasm.transactionstrparams_set_standard_payment(this.__wbg_ptr,s)}}const TransferAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transferaddr_free(f>>>0,1));class TransferAddr{static __wrap(s){s>>>=0;const a=Object.create(TransferAddr.prototype);return a.__wbg_ptr=s,TransferAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransferAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transferaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.transferaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,TransferAddrFinalization.register(this,this.__wbg_ptr,this),this}}const TransferTargetFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transfertarget_free(f>>>0,1));class TransferTarget{static __wrap(s){s>>>=0;const a=Object.create(TransferTarget.prototype);return a.__wbg_ptr=s,TransferTargetFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransferTargetFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transfertarget_free(s,0)}constructor(s,a,u,g){let y=0;isLikeNone(a)||(_assertClass(a,PublicKey),y=a.__destroy_into_raw());let v=0;isLikeNone(u)||(_assertClass(u,AccountHash),v=u.__destroy_into_raw());let E=0;isLikeNone(g)||(_assertClass(g,URef),E=g.__destroy_into_raw());const k=wasm.transfertarget_new(s,y,v,E);return this.__wbg_ptr=k>>>0,TransferTargetFinalization.register(this,this.__wbg_ptr,this),this}}const URefFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_uref_free(f>>>0,1));class URef{static __wrap(s){s>>>=0;const a=Object.create(URef.prototype);return a.__wbg_ptr=s,URefFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,URefFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_uref_free(s,0)}constructor(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.uref_new_js_alias(u,WASM_VECTOR_LEN,a);if(y[2])throw takeFromExternrefTable0(y[1]);return this.__wbg_ptr=y[0]>>>0,URefFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.uref_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return URef.__wrap(g[0])}static fromUint8Array(s,a){const u=passArray8ToWasm0(s,wasm.__wbindgen_malloc),y=wasm.uref_fromUint8Array(u,WASM_VECTOR_LEN,a);return URef.__wrap(y)}toFormattedString(){let s,a;try{const u=wasm.uref_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.uref_toJson(this.__wbg_ptr)}}const URefAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_urefaddr_free(f>>>0,1));class URefAddr{static __wrap(s){s>>>=0;const a=Object.create(URefAddr.prototype);return a.__wbg_ptr=s,URefAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,URefAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_urefaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.urefaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,URefAddrFinalization.register(this,this.__wbg_ptr,this),this}}const Version2Finalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_version2_free(f>>>0,1));class Version2{static __wrap(s){s>>>=0;const a=Object.create(Version2.prototype);return a.__wbg_ptr=s,Version2Finalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,Version2Finalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_version2_free(s,0)}get initiator(){const s=wasm.__wbg_get_transactionprocessed_hash(this.__wbg_ptr);return PublicKeyString.__wrap(s)}set initiator(s){_assertClass(s,PublicKeyString);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_hash(this.__wbg_ptr,a)}get error_message(){const s=wasm.__wbg_get_version2_error_message(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set error_message(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_version2_error_message(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get limit(){let s,a;try{const u=wasm.__wbg_get_version2_limit(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set limit(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_error_message(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get consumed(){let s,a;try{const u=wasm.__wbg_get_version2_consumed(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set consumed(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get cost(){let s,a;try{const u=wasm.__wbg_get_version2_cost(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set cost(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const WatcherFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_watcher_free(f>>>0,1));class Watcher{static __wrap(s){s>>>=0;const a=Object.create(Watcher.prototype);return a.__wbg_ptr=s,WatcherFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,WatcherFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_watcher_free(s,0)}constructor(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.watcher_new(u,WASM_VECTOR_LEN,!isLikeNone(a),isLikeNone(a)?BigInt(0):a);return this.__wbg_ptr=y>>>0,WatcherFinalization.register(this,this.__wbg_ptr,this),this}subscribe(s){const a=passArrayJsValueToWasm0(s,wasm.__wbindgen_malloc),g=wasm.watcher_subscribe(this.__wbg_ptr,a,WASM_VECTOR_LEN);if(g[1])throw takeFromExternrefTable0(g[0])}unsubscribe(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.watcher_unsubscribe(this.__wbg_ptr,a,WASM_VECTOR_LEN)}start(){return wasm.watcher_start(this.__wbg_ptr)}stop(){wasm.watcher_stop(this.__wbg_ptr)}}const getAccountOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getaccountoptions_free(f>>>0,1));class getAccountOptions{static __wrap(s){s>>>=0;const a=Object.create(getAccountOptions.prototype);return a.__wbg_ptr=s,getAccountOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getAccountOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getaccountoptions_free(s,0)}get account_identifier(){const s=wasm.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr);return 0===s?void 0:AccountIdentifier.__wrap(s)}set account_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,AccountIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr,a)}get account_identifier_as_string(){const s=wasm.__wbg_get_getaccountoptions_account_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set account_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getaccountoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getAuctionInfoOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getauctioninfooptions_free(f>>>0,1));class getAuctionInfoOptions{static __wrap(s){s>>>=0;const a=Object.create(getAuctionInfoOptions.prototype);return a.__wbg_ptr=s,getAuctionInfoOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getAuctionInfoOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getauctioninfooptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getauctioninfooptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getBalanceOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getbalanceoptions_free(f>>>0,1));class getBalanceOptions{static __wrap(s){s>>>=0;const a=Object.create(getBalanceOptions.prototype);return a.__wbg_ptr=s,getBalanceOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getBalanceOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getbalanceoptions_free(s,0)}get state_root_hash_as_string(){const s=wasm.__wbg_get_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr,a)}get purse_uref_as_string(){const s=wasm.__wbg_get_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set purse_uref_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get purse_uref(){const s=wasm.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr);return 0===s?void 0:URef.__wrap(s)}set purse_uref(s){let a=0;isLikeNone(s)||(_assertClass(s,URef),a=s.__destroy_into_raw()),wasm.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getbalanceoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getbalanceoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getBlockOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblockoptions_free(f>>>0,1));class getBlockOptions{static __wrap(s){s>>>=0;const a=Object.create(getBlockOptions.prototype);return a.__wbg_ptr=s,getBlockOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getBlockOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblockoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getblockoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getBlockTransfersOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblocktransfersoptions_free(f>>>0,1));class getBlockTransfersOptions{static __wrap(s){s>>>=0;const a=Object.create(getBlockTransfersOptions.prototype);return a.__wbg_ptr=s,getBlockTransfersOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getBlockTransfersOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblocktransfersoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,a)}get verbosity(){const s=wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}get rpc_address(){const s=wasm.__wbg_get_getblocktransfersoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const getDeployOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdeployoptions_free(f>>>0,1));class getDeployOptions{static __wrap(s){s>>>=0;const a=Object.create(getDeployOptions.prototype);return a.__wbg_ptr=s,getDeployOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getDeployOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdeployoptions_free(s,0)}get deploy_hash_as_string(){const s=wasm.__wbg_get_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set deploy_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get deploy_hash(){const s=wasm.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr);return 0===s?void 0:DeployHash.__wrap(s)}set deploy_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,DeployHash),a=s.__destroy_into_raw()),wasm.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr,a)}get finalized_approvals(){const s=wasm.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set finalized_approvals(s){wasm.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,isLikeNone(s)?16777215:s?1:0)}get rpc_address(){const s=wasm.__wbg_get_getdeployoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getDictionaryItemOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdictionaryitemoptions_free(f>>>0,1));class getDictionaryItemOptions{static __wrap(s){s>>>=0;const a=Object.create(getDictionaryItemOptions.prototype);return a.__wbg_ptr=s,getDictionaryItemOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getDictionaryItemOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdictionaryitemoptions_free(s,0)}get state_root_hash_as_string(){const s=wasm.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,a)}get dictionary_item_params(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===s?void 0:DictionaryItemStrParams.__wrap(s)}set dictionary_item_params(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemStrParams),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,a)}get dictionary_item_identifier(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===s?void 0:DictionaryItemIdentifier.__wrap(s)}set dictionary_item_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getdictionaryitemoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getEntityOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getentityoptions_free(f>>>0,1));class getEntityOptions{static __wrap(s){s>>>=0;const a=Object.create(getEntityOptions.prototype);return a.__wbg_ptr=s,getEntityOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getEntityOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getentityoptions_free(s,0)}get entity_identifier(){const s=wasm.__wbg_get_getentityoptions_entity_identifier(this.__wbg_ptr);return 0===s?void 0:EntityIdentifier.__wrap(s)}set entity_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,EntityIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getentityoptions_entity_identifier(this.__wbg_ptr,a)}get entity_identifier_as_string(){const s=wasm.__wbg_get_getentityoptions_entity_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entity_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getentityoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getentityoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getentityoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getEraInfoOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterainfooptions_free(f>>>0,1));class getEraInfoOptions{static __wrap(s){s>>>=0;const a=Object.create(getEraInfoOptions.prototype);return a.__wbg_ptr=s,getEraInfoOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getEraInfoOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterainfooptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_geterainfooptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getEraSummaryOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterasummaryoptions_free(f>>>0,1));class getEraSummaryOptions{static __wrap(s){s>>>=0;const a=Object.create(getEraSummaryOptions.prototype);return a.__wbg_ptr=s,getEraSummaryOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getEraSummaryOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterasummaryoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_geterasummaryoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_geterasummaryoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getSpeculativeExecDeployOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getspeculativeexecdeployoptions_free(f>>>0,1));class getSpeculativeExecDeployOptions{static __wrap(s){s>>>=0;const a=Object.create(getSpeculativeExecDeployOptions.prototype);return a.__wbg_ptr=s,getSpeculativeExecDeployOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getSpeculativeExecDeployOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getspeculativeexecdeployoptions_free(s,0)}get deploy_as_string(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set deploy_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get deploy(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr);return 0===s?void 0:Deploy.__wrap(s)}set deploy(s){let a=0;isLikeNone(s)||(_assertClass(s,Deploy),a=s.__destroy_into_raw()),wasm.__wbg_set_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getSpeculativeExecTxnOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getspeculativeexectxnoptions_free(f>>>0,1));class getSpeculativeExecTxnOptions{static __wrap(s){s>>>=0;const a=Object.create(getSpeculativeExecTxnOptions.prototype);return a.__wbg_ptr=s,getSpeculativeExecTxnOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getSpeculativeExecTxnOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getspeculativeexectxnoptions_free(s,0)}get transaction_as_string(){const s=wasm.__wbg_get_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set transaction_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get transaction(){const s=wasm.__wbg_get_getspeculativeexectxnoptions_transaction(this.__wbg_ptr);return 0===s?void 0:Transaction.__wrap(s)}set transaction(s){let a=0;isLikeNone(s)||(_assertClass(s,Transaction),a=s.__destroy_into_raw()),wasm.__wbg_set_getspeculativeexectxnoptions_transaction(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getStateRootHashOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getstateroothashoptions_free(f>>>0,1));class getStateRootHashOptions{static __wrap(s){s>>>=0;const a=Object.create(getStateRootHashOptions.prototype);return a.__wbg_ptr=s,getStateRootHashOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getStateRootHashOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getstateroothashoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getstateroothashoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getTransactionOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_gettransactionoptions_free(f>>>0,1));class getTransactionOptions{static __wrap(s){s>>>=0;const a=Object.create(getTransactionOptions.prototype);return a.__wbg_ptr=s,getTransactionOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getTransactionOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_gettransactionoptions_free(s,0)}get transaction_hash_as_string(){const s=wasm.__wbg_get_gettransactionoptions_transaction_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set transaction_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get transaction_hash(){const s=wasm.__wbg_get_gettransactionoptions_transaction_hash(this.__wbg_ptr);return 0===s?void 0:TransactionHash.__wrap(s)}set transaction_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,TransactionHash),a=s.__destroy_into_raw()),wasm.__wbg_set_gettransactionoptions_transaction_hash(this.__wbg_ptr,a)}get finalized_approvals(){const s=wasm.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set finalized_approvals(s){wasm.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,isLikeNone(s)?16777215:s?1:0)}get rpc_address(){const s=wasm.__wbg_get_gettransactionoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryBalanceDetailsOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalancedetailsoptions_free(f>>>0,1));class queryBalanceDetailsOptions{static __wrap(s){s>>>=0;const a=Object.create(queryBalanceDetailsOptions.prototype);return a.__wbg_ptr=s,queryBalanceDetailsOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryBalanceDetailsOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalancedetailsoptions_free(s,0)}get purse_identifier_as_string(){const s=wasm.__wbg_get_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set purse_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get purse_identifier(){const s=wasm.__wbg_get_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr);return 0===s?void 0:PurseIdentifier.__wrap(s)}set purse_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,PurseIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr,a)}get global_state_identifier(){const s=wasm.__wbg_get_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:GlobalStateIdentifier.__wrap(s)}set global_state_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,GlobalStateIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr,a)}get state_root_hash_as_string(){const s=wasm.__wbg_get_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get rpc_address(){const s=wasm.__wbg_get_querybalancedetailsoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_querybalancedetailsoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_querybalancedetailsoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryBalanceOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalanceoptions_free(f>>>0,1));class queryBalanceOptions{static __wrap(s){s>>>=0;const a=Object.create(queryBalanceOptions.prototype);return a.__wbg_ptr=s,queryBalanceOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryBalanceOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalanceoptions_free(s,0)}get purse_identifier_as_string(){const s=wasm.__wbg_get_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set purse_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get purse_identifier(){const s=wasm.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr);return 0===s?void 0:PurseIdentifier.__wrap(s)}set purse_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,PurseIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr,a)}get global_state_identifier(){const s=wasm.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:GlobalStateIdentifier.__wrap(s)}set global_state_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,GlobalStateIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr,a)}get state_root_hash_as_string(){const s=wasm.__wbg_get_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get rpc_address(){const s=wasm.__wbg_get_querybalanceoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalanceoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryContractDictOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querycontractdictoptions_free(f>>>0,1));class queryContractDictOptions{static __wrap(s){s>>>=0;const a=Object.create(queryContractDictOptions.prototype);return a.__wbg_ptr=s,queryContractDictOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryContractDictOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querycontractdictoptions_free(s,0)}get state_root_hash_as_string(){const s=wasm.__wbg_get_querycontractdictoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,a)}get dictionary_item_params(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===s?void 0:DictionaryItemStrParams.__wrap(s)}set dictionary_item_params(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemStrParams),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,a)}get dictionary_item_identifier(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===s?void 0:DictionaryItemIdentifier.__wrap(s)}set dictionary_item_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_querycontractdictoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryContractKeyOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querycontractkeyoptions_free(f>>>0,1));class queryContractKeyOptions{static __wrap(s){s>>>=0;const a=Object.create(queryContractKeyOptions.prototype);return a.__wbg_ptr=s,queryContractKeyOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryContractKeyOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querycontractkeyoptions_free(s,0)}get entity_identifier(){const s=wasm.__wbg_get_getentityoptions_entity_identifier(this.__wbg_ptr);return 0===s?void 0:EntityIdentifier.__wrap(s)}set entity_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,EntityIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getentityoptions_entity_identifier(this.__wbg_ptr,a)}get entity_identifier_as_string(){const s=wasm.__wbg_get_querycontractkeyoptions_entity_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entity_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get path_as_string(){const s=wasm.__wbg_get_querycontractkeyoptions_path_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set path_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get path(){const s=wasm.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===s?void 0:Path.__wrap(s)}set path(s){let a=0;isLikeNone(s)||(_assertClass(s,Path),a=s.__destroy_into_raw()),wasm.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_querycontractkeyoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querycontractkeyoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryGlobalStateOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_queryglobalstateoptions_free(f>>>0,1));class queryGlobalStateOptions{static __wrap(s){s>>>=0;const a=Object.create(queryGlobalStateOptions.prototype);return a.__wbg_ptr=s,queryGlobalStateOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryGlobalStateOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_queryglobalstateoptions_free(s,0)}get global_state_identifier(){const s=wasm.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:GlobalStateIdentifier.__wrap(s)}set global_state_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,GlobalStateIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr,a)}get state_root_hash_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get key_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_key_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set key_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get key(){const s=wasm.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr);return 0===s?void 0:Key.__wrap(s)}set key(s){let a=0;isLikeNone(s)||(_assertClass(s,Key),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr,a)}get path_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_path_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set path_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get path(){const s=wasm.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr);return 0===s?void 0:Path.__wrap(s)}set path(s){let a=0;isLikeNone(s)||(_assertClass(s,Path),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_queryglobalstateoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}function __wbg_load(f,s){return _wbg_load.apply(this,arguments)}function _wbg_load(){return(_wbg_load=(0,_opt2_casper_rustSDK_examples_frontend_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(f,s){if("function"==typeof Response&&f instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(f,s)}catch(u){if("application/wasm"==f.headers.get("Content-Type"))throw u;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",u)}const a=yield f.arrayBuffer();return yield WebAssembly.instantiate(a,s)}{const a=yield WebAssembly.instantiate(f,s);return a instanceof WebAssembly.Instance?{instance:a,module:f}:a}})).apply(this,arguments)}function __wbg_get_imports(){const imports={wbg:{}};return imports.wbg.__wbg_isConnected_f84ffbccb9898623=function(){return handleError(function(f){return f.isConnected()},arguments)},imports.wbg.__wbindgen_error_new=function(f,s){return new Error(getStringFromWasm0(f,s))},imports.wbg.__wbindgen_boolean_get=function(f){return"boolean"==typeof f?f?1:0:2},imports.wbg.__wbindgen_string_new=function(f,s){return getStringFromWasm0(f,s)},imports.wbg.__wbg_getblockresult_new=function(f){return GetBlockResult.__wrap(f)},imports.wbg.__wbg_getnodestatusresult_new=function(f){return GetNodeStatusResult.__wrap(f)},imports.wbg.__wbg_getchainspecresult_new=function(f){return GetChainspecResult.__wrap(f)},imports.wbg.__wbg_getVersion_821280958b37ff1f=function(){return handleError(function(f){return f.getVersion()},arguments)},imports.wbg.__wbindgen_string_get=function(f,s){const u="string"==typeof s?s:void 0;var g=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(f+4,y,!0),getDataViewMemory0().setInt32(f+0,g,!0)},imports.wbg.__wbg_puttransactionresult_new=function(f){return PutTransactionResult.__wrap(f)},imports.wbg.__wbg_getbalanceresult_new=function(f){return GetBalanceResult.__wrap(f)},imports.wbg.__wbg_getvalidatorchangesresult_new=function(f){return GetValidatorChangesResult.__wrap(f)},imports.wbg.__wbg_getpeersresult_new=function(f){return GetPeersResult.__wrap(f)},imports.wbg.__wbg_putdeployresult_new=function(f){return PutDeployResult.__wrap(f)},imports.wbg.__wbg_listrpcsresult_new=function(f){return ListRpcsResult.__wrap(f)},imports.wbg.__wbg_getauctioninforesult_new=function(f){return GetAuctionInfoResult.__wrap(f)},imports.wbg.__wbg_geterasummaryresult_new=function(f){return GetEraSummaryResult.__wrap(f)},imports.wbg.__wbg_speculativeexecresult_new=function(f){return SpeculativeExecResult.__wrap(f)},imports.wbg.__wbg_getdictionaryitemresult_new=function(f){return GetDictionaryItemResult.__wrap(f)},imports.wbg.__wbg_getaccountresult_new=function(f){return GetAccountResult.__wrap(f)},imports.wbg.__wbg_getaddressableentityresult_new=function(f){return GetAddressableEntityResult.__wrap(f)},imports.wbg.__wbg_gettransactionresult_new=function(f){return GetTransactionResult.__wrap(f)},imports.wbg.__wbg_speculativeexectxnresult_new=function(f){return SpeculativeExecTxnResult.__wrap(f)},imports.wbg.__wbg_getdeployresult_new=function(f){return GetDeployResult.__wrap(f)},imports.wbg.__wbg_transaction_new=function(f){return Transaction.__wrap(f)},imports.wbg.__wbg_queryglobalstateresult_new=function(f){return QueryGlobalStateResult.__wrap(f)},imports.wbg.__wbg_getstateroothashresult_new=function(f){return GetStateRootHashResult.__wrap(f)},imports.wbg.__wbg_querybalancedetailsresult_new=function(f){return QueryBalanceDetailsResult.__wrap(f)},imports.wbg.__wbg_geterainforesult_new=function(f){return GetEraInfoResult.__wrap(f)},imports.wbg.__wbg_disconnectFromSite_2d2501f4e00e57c8=function(){return handleError(function(f){return f.disconnectFromSite()},arguments)},imports.wbg.__wbg_querybalanceresult_new=function(f){return QueryBalanceResult.__wrap(f)},imports.wbg.__wbg_deploy_new=function(f){return Deploy.__wrap(f)},imports.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e=function(){return handleError(function(f){return f.requestSwitchAccount()},arguments)},imports.wbg.__wbg_getblocktransfersresult_new=function(f){return GetBlockTransfersResult.__wrap(f)},imports.wbg.__wbg_signMessage_c2bf40612e99c084=function(){return handleError(function(f,s,a,u,g){return f.signMessage(getStringFromWasm0(s,a),getStringFromWasm0(u,g))},arguments)},imports.wbg.__wbg_requestConnection_df909ec1fae47c86=function(){return handleError(function(f){return f.requestConnection()},arguments)},imports.wbg.__wbg_getActivePublicKey_7cd2af2b4a2b810f=function(){return handleError(function(f){return f.getActivePublicKey()},arguments)},imports.wbg.__wbindgen_cb_drop=function(f){const s=f.original;return 1==s.cnt--&&(s.a=0,!0)},imports.wbg.__wbg_messages_new=function(f){return Messages.__wrap(f)},imports.wbg.__wbindgen_is_undefined=function(f){return void 0===f},imports.wbg.__wbg_error_d52bf4e1868fa715=function(f,s){console.error(getStringFromWasm0(f,s))},imports.wbg.__wbg_log_5199e4d2d51afa95=function(f,s){console.log(getStringFromWasm0(f,s))},imports.wbg.__wbindgen_jsval_eq=function(f,s){return f===s},imports.wbg.__wbindgen_number_get=function(f,s){const u="number"==typeof s?s:void 0;getDataViewMemory0().setFloat64(f+8,isLikeNone(u)?0:u,!0),getDataViewMemory0().setInt32(f+0,!isLikeNone(u),!0)},imports.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c="function"==typeof CasperWalletProvider?CasperWalletProvider:notDefined("CasperWalletProvider"),imports.wbg.__wbg_messages_unwrap=function(f){return Messages.__unwrap(f)},imports.wbg.__wbg_subscription_unwrap=function(f){return Subscription.__unwrap(f)},imports.wbg.__wbg_sign_5740ada8ba2ef8c3=function(){return handleError(function(f,s,a,u,g){return f.sign(getStringFromWasm0(s,a),getStringFromWasm0(u,g))},arguments)},imports.wbg.__wbindgen_is_null=function(f){return null===f},imports.wbg.__wbindgen_is_function=function(f){return"function"==typeof f},imports.wbg.__wbg_log_a4ea4344db098de3=function(f,s){console.log(getStringFromWasm0(f,s))},imports.wbg.__wbg_fetch_9b133f5ec268a7b8="function"==typeof fetch?fetch:notDefined("fetch"),imports.wbg.__wbg_getReader_7a604d2d7b2f6e3e=function(){return handleError(function(f){return f.getReader()},arguments)},imports.wbg.__wbg_queueMicrotask_848aa4969108a57e=function(f){return f.queueMicrotask},imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73="function"==typeof queueMicrotask?queueMicrotask:notDefined("queueMicrotask"),imports.wbg.__wbg_fetch_1fdc4448ed9eec00=function(f,s){return f.fetch(s)},imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383=function(){return handleError(function(f,s,a){return new Request(getStringFromWasm0(f,s),a)},arguments)},imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=function(f){let s;try{s=f instanceof Response}catch{s=!1}return s},imports.wbg.__wbg_url_58af972663531d16=function(f,s){const u=passStringToWasm0(s.url,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(f+4,g,!0),getDataViewMemory0().setInt32(f+0,u,!0)},imports.wbg.__wbg_status_5f4e900d22140a18=function(f){return f.status},imports.wbg.__wbg_headers_1b9bf90c73fae600=function(f){return f.headers},imports.wbg.__wbg_body_06c4eb578a55c1d4=function(f){const s=f.body;return isLikeNone(s)?0:addToExternrefTable0(s)},imports.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return handleError(function(f){return f.arrayBuffer()},arguments)},imports.wbg.__wbg_setbody_aa8b691bec428bf4=function(f,s){f.body=s},imports.wbg.__wbg_setcredentials_a4e661320cdb9738=function(f,s){f.credentials=__wbindgen_enum_RequestCredentials[s]},imports.wbg.__wbg_setheaders_f5205d36e423a544=function(f,s){f.headers=s},imports.wbg.__wbg_setmethod_ce2da76000b02f6a=function(f,s,a){f.method=getStringFromWasm0(s,a)},imports.wbg.__wbg_setmode_4919fd636102c586=function(f,s){f.mode=__wbindgen_enum_RequestMode[s]},imports.wbg.__wbg_setsignal_812ccb8269a7fd90=function(f,s){f.signal=s},imports.wbg.__wbg_signal_9acfcec9e7dffc22=function(f){return f.signal},imports.wbg.__wbg_new_75169ae5a9683c55=function(){return handleError(function(){return new AbortController},arguments)},imports.wbg.__wbg_abort_c57daab47a6c1215=function(f){f.abort()},imports.wbg.__wbg_new_a9ae04a5200606a5=function(){return handleError(function(){return new Headers},arguments)},imports.wbg.__wbg_append_8b3e7f74a47ea7d5=function(){return handleError(function(f,s,a,u,g){f.append(getStringFromWasm0(s,a),getStringFromWasm0(u,g))},arguments)},imports.wbg.__wbg_byobRequest_86ac467c94924d3c=function(f){const s=f.byobRequest;return isLikeNone(s)?0:addToExternrefTable0(s)},imports.wbg.__wbg_close_7cda9dd901230214=function(){return handleError(function(f){f.close()},arguments)},imports.wbg.__wbg_getdone_38a59a1c17131633=function(f){const s=f.done;return isLikeNone(s)?16777215:s?1:0},imports.wbg.__wbg_getvalue_674bb48c8380247b=function(f){return f.value},imports.wbg.__wbg_result_5cc84600fc64bf35=function(){return handleError(function(f){return f.result},arguments)},imports.wbg.__wbg_setonload_0e9d43ec0cbb3987=function(f,s){f.onload=s},imports.wbg.__wbg_new_e282c42c5fc7a7b1=function(){return handleError(function(){return new FileReader},arguments)},imports.wbg.__wbg_readAsArrayBuffer_467dfea5cb42f85c=function(){return handleError(function(f,s){f.readAsArrayBuffer(s)},arguments)},imports.wbg.__wbg_readyState_bc0231e8c43b0907=function(f){return f.readyState},imports.wbg.__wbg_setonopen_c0e1464e3ea28727=function(f,s){f.onopen=s},imports.wbg.__wbg_setonerror_e16deca7fd15a59c=function(f,s){f.onerror=s},imports.wbg.__wbg_setonmessage_84cd941c1df08da7=function(f,s){f.onmessage=s},imports.wbg.__wbg_new_d550f7a7120dd942=function(){return handleError(function(f,s){return new WebSocket(getStringFromWasm0(f,s))},arguments)},imports.wbg.__wbg_instanceof_Blob_702ee3ea790162e1=function(f){let s;try{s=f instanceof Blob}catch{s=!1}return s},imports.wbg.__wbg_read_08d62388e7870059=function(f){return f.read()},imports.wbg.__wbg_releaseLock_32c310d7be334e1c=function(f){f.releaseLock()},imports.wbg.__wbg_cancel_2a3c2f3c115ac7e0=function(f){return f.cancel()},imports.wbg.__wbg_data_134d3a704b9fca32=function(f){return f.data},imports.wbg.__wbg_view_de0e81c5c00d2129=function(f){const s=f.view;return isLikeNone(s)?0:addToExternrefTable0(s)},imports.wbg.__wbg_respond_ffb6928cd9b79c32=function(){return handleError(function(f,s){f.respond(s>>>0)},arguments)},imports.wbg.__wbg_close_cfd08d9cf9f36856=function(){return handleError(function(f){f.close()},arguments)},imports.wbg.__wbg_enqueue_e693a6fb4f3261c1=function(){return handleError(function(f,s){f.enqueue(s)},arguments)},imports.wbg.__wbg_crypto_1d1f22824a6a080c=function(f){return f.crypto},imports.wbg.__wbindgen_is_object=function(f){return"object"==typeof f&&null!==f},imports.wbg.__wbg_process_4a72847cc503995b=function(f){return f.process},imports.wbg.__wbg_versions_f686565e586dd935=function(f){return f.versions},imports.wbg.__wbg_node_104a2ff8d6ea03a2=function(f){return f.node},imports.wbg.__wbindgen_is_string=function(f){return"string"==typeof f},imports.wbg.__wbg_require_cca90b1a94a0255b=function(){return handleError(function(){return module.require},arguments)},imports.wbg.__wbg_msCrypto_eb05e62b530a1508=function(f){return f.msCrypto},imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return handleError(function(f,s){f.randomFillSync(s)},arguments)},imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return handleError(function(f,s){f.getRandomValues(s)},arguments)},imports.wbg.__wbg_get_5419cf6b954aa11d=function(f,s){return f[s>>>0]},imports.wbg.__wbg_length_f217bbbf7e8e4df4=function(f){return f.length},imports.wbg.__wbg_new_034f913e7636e987=function(){return new Array},imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=function(f,s){return new Function(getStringFromWasm0(f,s))},imports.wbg.__wbg_next_13b477da1eaa3897=function(f){return f.next},imports.wbg.__wbg_next_b06e115d1b01e10b=function(){return handleError(function(f){return f.next()},arguments)},imports.wbg.__wbg_done_983b5ffcaec8c583=function(f){return f.done},imports.wbg.__wbg_value_2ab8a198c834c26a=function(f){return f.value},imports.wbg.__wbg_iterator_695d699a44d6234c=function(){return Symbol.iterator},imports.wbg.__wbg_get_ef828680c64da212=function(){return handleError(function(f,s){return Reflect.get(f,s)},arguments)},imports.wbg.__wbg_call_a9ef466721e824f2=function(){return handleError(function(f,s){return f.call(s)},arguments)},imports.wbg.__wbg_new_e69b5f66fda8f13c=function(){return new Object},imports.wbg.__wbg_self_bf91bf94d9e04084=function(){return handleError(function(){return self.self},arguments)},imports.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return handleError(function(){return window.window},arguments)},imports.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return handleError(function(){return globalThis.globalThis},arguments)},imports.wbg.__wbg_global_3eca19bb09e9c484=function(){return handleError(function(){return global.global},arguments)},imports.wbg.__wbg_eval_1bab7c4fbae3b3d6=function(){return handleError(function(arg0,arg1){const ret=eval(getStringFromWasm0(arg0,arg1));return ret},arguments)},imports.wbg.__wbg_isArray_6f3b47f09adb61b5=function(f){return Array.isArray(f)},imports.wbg.__wbg_push_36cf4d81d7da33d1=function(f,s){return f.push(s)},imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7=function(f){let s;try{s=f instanceof ArrayBuffer}catch{s=!1}return s},imports.wbg.__wbg_new_70a2f23d1565c04c=function(f,s){return new Error(getStringFromWasm0(f,s))},imports.wbg.__wbg_apply_c37b42ff44b0469d=function(){return handleError(function(f,s,a){return f.apply(s,a)},arguments)},imports.wbg.__wbg_call_3bfa248576352471=function(){return handleError(function(f,s,a){return f.call(s,a)},arguments)},imports.wbg.__wbg_getTime_41225036a0393d63=function(f){return f.getTime()},imports.wbg.__wbg_new0_218ada33b570be35=function(){return new Date},imports.wbg.__wbg_instanceof_Object_4bbac482eda9b711=function(f){let s;try{s=f instanceof Object}catch{s=!1}return s},imports.wbg.__wbg_instanceof_Promise_f3fd1bcac3157f0c=function(f){let s;try{s=f instanceof Promise}catch{s=!1}return s},imports.wbg.__wbg_new_1073970097e5a420=function(f,s){try{var a={a:f,b:s};return new Promise((y,v)=>{const E=a.a;a.a=0;try{return __wbg_adapter_1205(E,a.b,y,v)}finally{a.a=E}})}finally{a.a=a.b=0}},imports.wbg.__wbg_resolve_0aad7c1484731c99=function(f){return Promise.resolve(f)},imports.wbg.__wbg_catch_8097da4375a5dd1b=function(f,s){return f.catch(s)},imports.wbg.__wbg_then_748f75edfb032440=function(f,s){return f.then(s)},imports.wbg.__wbg_then_4866a7d9f55d8f3e=function(f,s,a){return f.then(s,a)},imports.wbg.__wbg_buffer_ccaed51a635d8a2d=function(f){return f.buffer},imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=function(f,s,a){return new Uint8Array(f,s>>>0,a>>>0)},imports.wbg.__wbg_new_fec2611eb9180f95=function(f){return new Uint8Array(f)},imports.wbg.__wbg_set_ec2fcf81bc573fd9=function(f,s,a){f.set(s,a>>>0)},imports.wbg.__wbg_length_9254c4bd3b9f23c4=function(f){return f.length},imports.wbg.__wbg_newwithlength_76462a666eca145f=function(f){return new Uint8Array(f>>>0)},imports.wbg.__wbg_buffer_95102df5554646dc=function(f){return f.buffer},imports.wbg.__wbg_subarray_975a06f9dbd16995=function(f,s,a){return f.subarray(s>>>0,a>>>0)},imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c=function(f){return f.byteLength},imports.wbg.__wbg_byteOffset_ec0928143c619cd7=function(f){return f.byteOffset},imports.wbg.__wbg_getindex_146612fa21bd6845=function(f,s){return f[s>>>0]},imports.wbg.__wbg_parse_51ee5409072379d3=function(){return handleError(function(f,s){return JSON.parse(getStringFromWasm0(f,s))},arguments)},imports.wbg.__wbg_stringify_eead5648c09faaf8=function(){return handleError(function(f){return JSON.stringify(f)},arguments)},imports.wbg.__wbg_has_bd717f25f195f23d=function(){return handleError(function(f,s){return Reflect.has(f,s)},arguments)},imports.wbg.__wbindgen_debug_string=function(f,s){const u=passStringToWasm0(debugString(s),wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(f+4,g,!0),getDataViewMemory0().setInt32(f+0,u,!0)},imports.wbg.__wbindgen_throw=function(f,s){throw new Error(getStringFromWasm0(f,s))},imports.wbg.__wbindgen_memory=function(){return wasm.memory},imports.wbg.__wbindgen_closure_wrapper1671=function(f,s,a){return makeMutClosure(f,s,537,__wbg_adapter_38)},imports.wbg.__wbindgen_closure_wrapper5370=function(f,s,a){return makeMutClosure(f,s,970,__wbg_adapter_41)},imports.wbg.__wbindgen_closure_wrapper5372=function(f,s,a){return makeMutClosure(f,s,970,__wbg_adapter_41)},imports.wbg.__wbindgen_closure_wrapper5374=function(f,s,a){return makeMutClosure(f,s,970,__wbg_adapter_41)},imports.wbg.__wbindgen_closure_wrapper6066=function(f,s,a){return makeMutClosure(f,s,1167,__wbg_adapter_48)},imports.wbg.__wbindgen_closure_wrapper6086=function(f,s,a){return makeMutClosure(f,s,1175,__wbg_adapter_51)},imports.wbg.__wbindgen_init_externref_table=function(){const f=wasm.__wbindgen_export_2,s=f.grow(4);f.set(0,void 0),f.set(s+0,void 0),f.set(s+1,null),f.set(s+2,!0),f.set(s+3,!1)},imports}function __wbg_init_memory(f,s){}function __wbg_finalize_init(f,s){return wasm=f.exports,__wbg_init.__wbindgen_wasm_module=s,cachedDataViewMemory0=null,cachedUint8ArrayMemory0=null,wasm.__wbindgen_start(),wasm}function initSync(f){if(void 0!==wasm)return wasm;typeof f<"u"&&(Object.getPrototypeOf(f)===Object.prototype?({module:f}=f):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const s=__wbg_get_imports();return f instanceof WebAssembly.Module||(f=new WebAssembly.Module(f)),__wbg_finalize_init(new WebAssembly.Instance(f,s),f)}function __wbg_init(f){return _wbg_init.apply(this,arguments)}function _wbg_init(){return(_wbg_init=(0,_opt2_casper_rustSDK_examples_frontend_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(f){if(void 0!==wasm)return wasm;typeof f<"u"&&(Object.getPrototypeOf(f)===Object.prototype?({module_or_path:f}=f):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof f>"u"&&(f=new URL("casper_rust_wasm_sdk_bg.wasm","file:///opt2/casper/rustSDK/pkg/casper_rust_wasm_sdk.js"));const s=__wbg_get_imports();("string"==typeof f||"function"==typeof Request&&f instanceof Request||"function"==typeof URL&&f instanceof URL)&&(f=fetch(f));const{instance:a,module:u}=yield __wbg_load(yield f,s);return __wbg_finalize_init(a,u)})).apply(this,arguments)}const __WEBPACK_DEFAULT_EXPORT__=__wbg_init},467:(f,s,a)=>{function u(y,v,E,k,M,j,Y){try{var fe=y[j](Y),ce=fe.value}catch(le){return void E(le)}fe.done?v(ce):Promise.resolve(ce).then(k,M)}function g(y){return function(){var v=this,E=arguments;return new Promise(function(k,M){var j=y.apply(v,E);function Y(ce){u(j,k,M,Y,fe,"next",ce)}function fe(ce){u(j,k,M,Y,fe,"throw",ce)}Y(void 0)})}}a.d(s,{A:()=>g})}},f=>{f(f.s=8787)}]); \ No newline at end of file diff --git a/examples/frontend/angular/dist/casper/main.ee599e86fe727808.js b/examples/frontend/angular/dist/casper/main.ee599e86fe727808.js new file mode 100644 index 000000000..2f178b414 --- /dev/null +++ b/examples/frontend/angular/dist/casper/main.ee599e86fe727808.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[792],{8787:(f,s,a)=>{var u=a(467);function g(e,n){return Object.is(e,n)}let y=null,v=!1,E=1;const k=Symbol("SIGNAL");function M(e){const n=y;return y=e,n}const ce={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function le(e){if(v)throw new Error("");if(null===y)return;y.consumerOnSignalRead(e);const n=y.nextProducerIndex++;Dn(y),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Sn(e){Dn(e);for(let n=0;n0}function Dn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ar(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function cr(e){return void 0!==e.producerNode}const Li=Symbol("UNSET"),Pi=Symbol("COMPUTING"),Es=Symbol("ERRORED"),gu={...ce,value:Li,dirty:!0,error:null,equal:g,producerMustRecompute:e=>e.value===Li||e.value===Pi,producerRecomputeValue(e){if(e.value===Pi)throw new Error("Detected cycle in computations.");const n=e.value;e.value=Pi;const t=En(e);let r;try{r=e.computation()}catch(i){r=Es,e.error=i}finally{Bn(e,t)}n!==Li&&n!==Es&&r!==Es&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let Ta=function hu(){throw new Error};function Ia(){Ta()}let Ss=null;function Vi(e,n){kt()||Ia(),e.equal(e.value,n)||(e.value=n,function sT(e){e.version++,function nt(){E++}(),rt(e),Ss?.()}(e))}const rT={...ce,equal:g,value:void 0};function Ve(e){return"function"==typeof e}function Dg(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const bu=Dg(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function vu(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Jt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Ve(r))try{r()}catch(o){n=o instanceof bu?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Mg(o)}catch(c){n=n??[],c instanceof bu?n=[...n,...c.errors]:n.push(c)}}if(n)throw new bu(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Mg(n);else{if(n instanceof Jt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&vu(t,n)}remove(n){const{_finalizers:t}=this;t&&vu(t,n),n instanceof Jt&&n._removeParent(this)}}Jt.EMPTY=(()=>{const e=new Jt;return e.closed=!0,e})();const Tg=Jt.EMPTY;function Ig(e){return e instanceof Jt||e&&"closed"in e&&Ve(e.remove)&&Ve(e.add)&&Ve(e.unsubscribe)}function Mg(e){Ve(e)?e():e.unsubscribe()}const Or={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ma={setTimeout(e,n,...t){const{delegate:r}=Ma;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Ma;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ng(e){Ma.setTimeout(()=>{const{onUnhandledError:n}=Or;if(!n)throw e;n(e)})}function kg(){}const oT=Eu("C",void 0,void 0);function Eu(e,n,t){return{kind:e,value:n,error:t}}let xr=null;function Na(e){if(Or.useDeprecatedSynchronousErrorHandling){const n=!xr;if(n&&(xr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=xr;if(xr=null,t)throw r}}else e()}class Su extends Jt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ig(n)&&n.add(this)):this.destination=fT}static create(n,t,r){return new Du(n,t,r)}next(n){this.isStopped?Tu(function cT(e){return Eu("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Tu(function aT(e){return Eu("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Tu(oT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const uT=Function.prototype.bind;function Cu(e,n){return uT.call(e,n)}class _T{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){ka(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){ka(r)}else ka(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){ka(t)}}}class Du extends Su{constructor(n,t,r){let i;if(super(),Ve(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Or.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Cu(n.next,o),error:n.error&&Cu(n.error,o),complete:n.complete&&Cu(n.complete,o)}):i=n}this.destination=new _T(i)}}function ka(e){Or.useDeprecatedSynchronousErrorHandling?function lT(e){Or.useDeprecatedSynchronousErrorHandling&&xr&&(xr.errorThrown=!0,xr.error=e)}(e):Ng(e)}function Tu(e,n){const{onStoppedNotification:t}=Or;t&&Ma.setTimeout(()=>t(e,n))}const fT={closed:!0,next:kg,error:function dT(e){throw e},complete:kg},Iu="function"==typeof Symbol&&Symbol.observable||"@@observable";function pT(e){return e}let At=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function hT(e){return e&&e instanceof Su||function gT(e){return e&&Ve(e.next)&&Ve(e.error)&&Ve(e.complete)}(e)&&Ig(e)}(t)?t:new Du(t,r,i);return Na(()=>{const{operator:c,source:l}=this;o.add(c?c.call(o,l):l?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Fg(r))((i,o)=>{const c=new Du({next:l=>{try{t(l)}catch(_){o(_),c.unsubscribe()}},error:o,complete:i});this.subscribe(c)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Iu](){return this}pipe(...t){return function Ag(e){return 0===e.length?pT:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=Fg(t))((r,i)=>{let o;this.subscribe(c=>o=c,c=>i(c),()=>r(o))})}}return e.create=n=>new e(n),e})();function Fg(e){var n;return null!==(n=e??Or.Promise)&&void 0!==n?n:Promise}const mT=Dg(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Lr=(()=>{class e extends At{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Rg(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new mT}next(t){Na(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Na(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Na(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?Tg:(this.currentObservers=null,o.push(t),new Jt(()=>{this.currentObservers=null,vu(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new At;return t.source=this,t}}return e.create=(n,t)=>new Rg(n,t),e})();class Rg extends Lr{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Tg}}class Mu extends Lr{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function Pr(e){return n=>{if(function wT(e){return Ve(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function lr(e,n,t,r,i){return new yT(e,n,t,r,i)}class yT extends Su{constructor(n,t,r,i,o,c){super(n),this.onFinalize=o,this.shouldUnsubscribe=c,this._next=t?function(l){try{t(l)}catch(_){n.error(_)}}:super._next,this._error=i?function(l){try{i(l)}catch(_){n.error(_)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ur(e,n){return Pr((t,r)=>{let i=0;t.subscribe(lr(r,o=>{r.next(e.call(n,o,i++))}))})}const Og="https://g.co/ng/security#xss";class F extends Error{constructor(n,t){super(function Cs(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function zn(e){return{toString:e}.toString()}const Ts="__parameters__";function Ms(e,n,t){return zn(()=>{const r=function Nu(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const c=new i(...o);return l.annotation=c,l;function l(_,d,p){const h=_.hasOwnProperty(Ts)?_[Ts]:Object.defineProperty(_,Ts,{value:[]})[Ts];for(;h.length<=p;)h.push(null);return(h[p]=h[p]||[]).push(c),_}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const Ae=globalThis;function be(e){for(let n in e)if(e[n]===be)return n;throw Error("Could not find renamed property on target object.")}function bT(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Je(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Je).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function ku(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const vT=be({__forward_ref__:be});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return Je(this())},e}function K(e){return Fa(e)?e():e}function Fa(e){return"function"==typeof e&&e.hasOwnProperty(vT)&&e.__forward_ref__===Te}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Un(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ra(e){return Vg(e,xa)||Vg(e,Wg)}function Vg(e,n){return e.hasOwnProperty(n)?e[n]:null}function Oa(e){return e&&(e.hasOwnProperty(Au)||e.hasOwnProperty(TT))?e[Au]:null}const xa=be({\u0275prov:be}),Au=be({\u0275inj:be}),Wg=be({ngInjectableDef:be}),TT=be({ngInjectorDef:be});class V{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=J({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Lu(e){return e&&!!e.\u0275providers}const Wi=be({\u0275cmp:be}),Pu=be({\u0275dir:be}),Vu=be({\u0275pipe:be}),$n=be({\u0275fac:be}),ji=be({__NG_ELEMENT_ID__:be}),Hg=be({__NG_ENV_ID__:be});function ee(e){return"string"==typeof e?e:null==e?"":String(e)}function Wu(e,n){throw new F(-201,!1)}var ue=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ue||{});let ju;function zg(){return ju}function Ft(e){const n=ju;return ju=e,n}function Ug(e,n,t){const r=Ra(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ue.Optional?null:void 0!==n?n:void Wu()}const Bi={},Bu="__NG_DI_FLAG__",La="ngTempTokenPath",FT=/\n/gm,$g="__source";let Ns;function dr(e){const n=Ns;return Ns=e,n}function xT(e,n=ue.Default){if(void 0===Ns)throw new F(-203,!1);return null===Ns?Ug(e,void 0,n):Ns.get(e,n&ue.Optional?null:void 0,n)}function U(e,n=ue.Default){return(zg()||xT)(K(e),n)}function H(e,n=ue.Default){return U(e,Pa(n))}function Pa(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Hu(e){const n=[];for(let t=0;tArray.isArray(t)?ks(t,n):n(t))}function Gg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Va(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function jt(e,n,t){let r=As(e,n);return r>=0?e[1|r]=t:(r=~r,function Kg(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function qu(e,n){const t=As(e,n);if(t>=0)return e[1|t]}function As(e,n){return function Jg(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),c=e[o<n?i=o:r=o+1}return~(i<n){c=o-1;break}}}for(;o-1){let o;for(;++io?"":i[p+1].toLowerCase(),2&r&&d!==h){if(_n(r))return!1;c=!0}}}}else{if(!c&&!_n(r)&&!_n(_))return!1;if(c&&_n(_))continue;c=!1,r=_|1&r}}return _n(r)||c}function _n(e){return!(1&e)}function GT(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+l+'"':"")+"]"}else 8&r?i+="."+c:4&r&&(i+=" "+c);else""!==i&&!_n(c)&&(n+=nh(o,i),i=""),r=c,o=o||!_n(r);t++}return""!==i&&(n+=nh(o,i)),n}function ct(e){return zn(()=>{const n=sh(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ba.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||un.Emulated,styles:e.styles||pe,_:null,schemas:e.schemas||null,tView:null,id:""};ih(t);const r=e.dependencies;return t.directiveDefs=Ha(r,!1),t.pipeDefs=Ha(r,!0),t.id=function s1(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function t1(e){return ae(e)||Ze(e)}function n1(e){return null!==e}function pr(e){return zn(()=>({type:e.type,bootstrap:e.bootstrap||pe,declarations:e.declarations||pe,imports:e.imports||pe,exports:e.exports||pe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function rh(e,n){if(null==e)return Tn;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,c,l=fr.None;Array.isArray(i)?(l=i[0],o=i[1],c=i[2]??o):(o=i,c=i),n?(t[o]=l!==fr.None?[r,l]:r,n[o]=c):t[o]=r}return t}function ne(e){return zn(()=>{const n=sh(e);return ih(n),n})}function ae(e){return e[Wi]||null}function Ze(e){return e[Pu]||null}function st(e){return e[Vu]||null}function sh(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Tn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||pe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rh(e.inputs,n),outputs:rh(e.outputs),debugInfo:null}}function ih(e){e.features?.forEach(n=>n(e))}function Ha(e,n){if(!e)return null;const t=n?st:t1;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(n1)}function oh(...e){return{\u0275providers:Zu(0,e),\u0275fromNgModule:!0}}function Zu(e,...n){const t=[],r=new Set;let i;const o=c=>{t.push(c)};return ks(n,c=>{const l=c;za(l,o,[],r)&&(i||=[],i.push(l))}),void 0!==i&&ah(i,o),t}function ah(e,n){for(let t=0;t{n(o,r)})}}function za(e,n,t,r){if(!(e=K(e)))return!1;let i=null,o=Oa(e);const c=!o&&ae(e);if(o||c){if(c&&!c.standalone)return!1;i=e}else{const _=e.ngModule;if(o=Oa(_),!o)return!1;i=_}const l=r.has(i);if(c){if(l)return!1;if(r.add(i),c.dependencies){const _="function"==typeof c.dependencies?c.dependencies():c.dependencies;for(const d of _)za(d,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!l){let d;r.add(i);try{ks(o.imports,p=>{za(p,n,t,r)&&(d||=[],d.push(p))})}finally{}void 0!==d&&ah(d,n)}if(!l){const d=Vr(i)||(()=>new i);n({provide:i,useFactory:d,deps:pe},i),n({provide:Gu,useValue:i,multi:!0},i),n({provide:qn,useValue:()=>U(i),multi:!0},i)}const _=o.providers;if(null!=_&&!l){const d=e;Qu(_,p=>{n(p,d)})}}}return i!==e&&void 0!==e.providers}function Qu(e,n){for(let t of e)Lu(t)&&(t=t.\u0275providers),Array.isArray(t)?Qu(t,n):n(t)}const i1=be({provide:String,useValue:be});function Yu(e){return null!==e&&"object"==typeof e&&i1 in e}function jr(e){return"function"==typeof e}const Xu=new V(""),Ua={},a1={};let e_;function $a(){return void 0===e_&&(e_=new ja),e_}class Zt{}class Fs extends Zt{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,n_(n,c=>this.processProvider(c)),this.records.set(Zg,Rs(void 0,this)),i.has("environment")&&this.records.set(Zt,Rs(void 0,this));const o=this.records.get(Xu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Gu,pe,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=M(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=dr(this),r=Ft(void 0);try{return n()}finally{dr(t),Ft(r)}}get(n,t=Bi,r=ue.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Hg))return n[Hg](this);r=Pa(r);const o=dr(this),c=Ft(void 0);try{if(!(r&ue.SkipSelf)){let _=this.records.get(n);if(void 0===_){const d=function d1(e){return"function"==typeof e||"object"==typeof e&&e instanceof V}(n)&&Ra(n);_=d&&this.injectableDefInScope(d)?Rs(t_(n),Ua):null,this.records.set(n,_)}if(null!=_)return this.hydrate(n,_)}return(r&ue.Self?$a():this.parent).get(n,t=r&ue.Optional&&t===Bi?null:t)}catch(l){if("NullInjectorError"===l.name){if((l[La]=l[La]||[]).unshift(Je(n)),o)throw l;return function PT(e,n,t,r){const i=e[La];throw n[$g]&&i.unshift(n[$g]),e.message=function VT(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Je(n);if(Array.isArray(n))i=n.map(Je).join(" -> ");else if("object"==typeof n){let o=[];for(let c in n)if(n.hasOwnProperty(c)){let l=n[c];o.push(c+":"+("string"==typeof l?JSON.stringify(l):Je(l)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(FT,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[La]=null,e}(l,n,"R3InjectorError",this.source)}throw l}finally{Ft(c),dr(o)}}resolveInjectorInitializers(){const n=M(null),t=dr(this),r=Ft(void 0);try{const o=this.get(qn,pe,ue.Self);for(const c of o)c()}finally{dr(t),Ft(r),M(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Je(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(n){let t=jr(n=K(n))?n:K(n&&n.provide);const r=function l1(e){return Yu(e)?Rs(void 0,e.useValue):Rs(uh(e),Ua)}(n);if(!jr(n)&&!0===n.multi){let i=this.records.get(t);i||(i=Rs(void 0,Ua,!0),i.factory=()=>Hu(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=M(null);try{return t.value===Ua&&(t.value=a1,t.value=t.factory()),"object"==typeof t.value&&t.value&&function _1(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{M(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=K(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function t_(e){const n=Ra(e),t=null!==n?n.factory:Vr(e);if(null!==t)return t;if(e instanceof V)throw new F(204,!1);if(e instanceof Function)return function c1(e){if(e.length>0)throw new F(204,!1);const t=function DT(e){return e&&(e[xa]||e[Wg])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new F(204,!1)}function uh(e,n,t){let r;if(jr(e)){const i=K(e);return Vr(i)||t_(i)}if(Yu(e))r=()=>K(e.useValue);else if(function lh(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Hu(e.deps||[]));else if(function ch(e){return!(!e||!e.useExisting)}(e))r=()=>U(K(e.useExisting));else{const i=K(e&&(e.useClass||e.provide));if(!function u1(e){return!!e.deps}(e))return Vr(i)||t_(i);r=()=>new i(...Hu(e.deps))}return r}function Rs(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function n_(e,n){for(const t of e)Array.isArray(t)?n_(t,n):t&&Lu(t)?n_(t.\u0275providers,n):n(t)}const Oe=0,R=1,$=2,Ue=3,dn=4,it=5,vt=6,xs=7,Ie=8,$e=9,In=10,Q=11,qi=12,fh=13,Ls=14,xe=15,Br=16,Ps=17,Gn=18,Vs=19,ph=20,gr=21,Ga=22,Qt=23,z=25,i_=1,Mn=7,Ws=9,We=10;var Ja=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ja||{});function Ye(e){return Array.isArray(e)&&"object"==typeof e[i_]}function ut(e){return Array.isArray(e)&&!0===e[i_]}function o_(e){return!!(4&e.flags)}function Hr(e){return e.componentOffset>-1}function Za(e){return!(1&~e.flags)}function fn(e){return!!e.template}function Ki(e){return!!(512&e[$])}class D1{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function yh(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Kn(){return bh}function bh(e){return e.type.prototype.ngOnChanges&&(e.setInput=I1),T1}function T1(){const e=Eh(this),n=e?.current;if(n){const t=e.previous;if(t===Tn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function I1(e,n,t,r,i){const o=this.declaredInputs[r],c=Eh(e)||function M1(e,n){return e[vh]=n}(e,{previous:Tn,current:null}),l=c.current||(c.current={}),_=c.previous,d=_[o];l[o]=new D1(d&&d.currentValue,t,_===Tn),yh(e,n,i,t)}Kn.ngInherit=!0;const vh="__ngSimpleChanges__";function Eh(e){return e[vh]||null}const Nn=function(e,n,t){},Sh="svg";function ge(e){for(;Array.isArray(e);)e=e[Oe];return e}function Ji(e,n){return ge(n[e])}function Et(e,n){return ge(n[e.index])}function Zi(e,n){return e.data[n]}function Bt(e,n){const t=n[e];return Ye(t)?t:t[Oe]}function __(e){return!(128&~e[$])}function Yt(e,n){return null==n?null:e[n]}function Dh(e){e[Ps]=0}function Th(e){1024&e[$]||(e[$]|=1024,__(e)&&Ya(e))}function Qa(e){return!!(9216&e[$]||e[Qt]?.dirty)}function d_(e){e[In].changeDetectionScheduler?.notify(8),64&e[$]&&(e[$]|=1024),Qa(e)&&Ya(e)}function Ya(e){e[In].changeDetectionScheduler?.notify(0);let n=Jn(e);for(;null!==n&&!(8192&n[$])&&(n[$]|=8192,__(n));)n=Jn(n)}function Xa(e,n){if(!(256&~e[$]))throw new F(911,!1);null===e[gr]&&(e[gr]=[]),e[gr].push(n)}function Jn(e){const n=e[Ue];return ut(n)?n[Ue]:n}const Y={lFrame:Wh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Mh=!1;function Nh(){return Y.bindingsEnabled}function Ur(){return null!==Y.skipHydrationRootTNode}function I(){return Y.lFrame.lView}function se(){return Y.lFrame.tView}function _e(e){return Y.lFrame.contextLView=e,e[Ie]}function de(e){return Y.lFrame.contextLView=null,e}function ve(){let e=kh();for(;null!==e&&64===e.type;)e=e.parent;return e}function kh(){return Y.lFrame.currentTNode}function pn(e,n){const t=Y.lFrame;t.currentTNode=e,t.isParent=n}function g_(){return Y.lFrame.isParent}function h_(){Y.lFrame.isParent=!1}function Rh(){return Mh}function Oh(e){Mh=e}function St(){const e=Y.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function gn(){return Y.lFrame.bindingIndex++}function Qn(e){const n=Y.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function H1(e,n){const t=Y.lFrame;t.bindingIndex=t.bindingRootIndex=e,m_(n)}function m_(e){Y.lFrame.currentDirectiveIndex=e}function y_(){return Y.lFrame.currentQueryIndex}function tc(e){Y.lFrame.currentQueryIndex=e}function U1(e){const n=e[R];return 2===n.type?n.declTNode:1===n.type?e[it]:null}function Ph(e,n,t){if(t&ue.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&ue.Host||(i=U1(o),null===i||(o=o[Ls],10&i.type))););if(null===i)return!1;n=i,e=o}const r=Y.lFrame=Vh();return r.currentTNode=n,r.lView=e,!0}function b_(e){const n=Vh(),t=e[R];Y.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Vh(){const e=Y.lFrame,n=null===e?null:e.child;return null===n?Wh(e):n}function Wh(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function jh(){const e=Y.lFrame;return Y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Bh=jh;function v_(){const e=jh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ot(){return Y.lFrame.selectedIndex}function $r(e){Y.lFrame.selectedIndex=e}function Me(){const e=Y.lFrame;return Zi(e.tView,e.selectedIndex)}function nc(){Y.lFrame.currentNamespace=Sh}let Uh=!0;function Yi(){return Uh}function kn(e){Uh=e}function rc(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[_]<0&&(e[Ps]+=65536),(l>14>16&&(3&e[$])===n&&(e[$]+=16384,qh(l,o)):qh(l,o)}const js=-1;class Xi{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const C_={};class qr{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Pa(r);const i=this.injector.get(n,C_,r);return i!==C_||t===C_?i:this.parentInjector.get(n,t,r)}}function D_(e){return e!==js}function eo(e){return 32767&e}function to(e,n){let t=function eI(e){return e>>16}(e),r=n;for(;t>0;)r=r[Ls],t--;return r}let T_=!0;function oc(e){const n=T_;return T_=e,n}const Kh=255,Jh=5;let nI=0;const An={};function ac(e,n){const t=Zh(e,n);if(-1!==t)return t;const r=n[R];r.firstCreatePass&&(e.injectorIndex=n.length,I_(r.data,e),I_(n,null),I_(r.blueprint,null));const i=cc(e,n),o=e.injectorIndex;if(D_(i)){const c=eo(i),l=to(i,n),_=l[R].data;for(let d=0;d<8;d++)n[o+d]=l[c+d]|_[c+d]}return n[o+8]=i,o}function I_(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Zh(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function cc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=rm(i),null===r)return js;if(t++,i=i[Ls],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return js}function M_(e,n,t){!function rI(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(ji)&&(r=t[ji]),null==r&&(r=t[ji]=nI++);const i=r&Kh;n.data[e+(i>>Jh)]|=1<=0?n&Kh:aI:n}(t);if("function"==typeof o){if(!Ph(n,e,r))return r&ue.Host?Qh(i,0,r):Yh(n,t,r,i);try{let c;if(c=o(r),null!=c||r&ue.Optional)return c;Wu()}finally{Bh()}}else if("number"==typeof o){let c=null,l=Zh(e,n),_=js,d=r&ue.Host?n[xe][it]:null;for((-1===l||r&ue.SkipSelf)&&(_=-1===l?cc(e,n):n[l+8],_!==js&&nm(r,!1)?(c=n[R],l=eo(_),n=to(_,n)):l=-1);-1!==l;){const p=n[R];if(tm(o,l,p.data)){const h=iI(l,n,t,c,r,d);if(h!==An)return h}_=n[l+8],_!==js&&nm(r,n[R].data[l+8]===d)&&tm(o,l,n)?(c=p,l=eo(_),n=to(_,n)):l=-1}}return i}function iI(e,n,t,r,i,o){const c=n[R],l=c.data[e+8],p=lc(l,c,t,null==r?Hr(l)&&T_:r!=c&&!!(3&l.type),i&ue.Host&&o===l);return null!==p?Gr(n,c,p,l):An}function lc(e,n,t,r,i){const o=e.providerIndexes,c=n.data,l=1048575&o,_=e.directiveStart,p=o>>20,m=i?l+p:e.directiveEnd;for(let w=r?l:l+p;w=_&&b.type===t)return w}if(i){const w=c[_];if(w&&fn(w)&&w.type===t)return _}return null}function Gr(e,n,t,r){let i=e[t];const o=n.data;if(function Z1(e){return e instanceof Xi}(i)){const c=i;c.resolving&&function NT(e,n){throw n&&n.join(" > "),new F(-200,e)}(function me(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ee(e)}(o[t]));const l=oc(c.canSeeViewProviders);c.resolving=!0;const d=c.injectImpl?Ft(c.injectImpl):null;Ph(e,r,ue.Default);try{i=e[t]=c.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function K1(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const c=bh(n);(t.preOrderHooks??=[]).push(e,c),(t.preOrderCheckHooks??=[]).push(e,c)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==d&&Ft(d),oc(l),c.resolving=!1,Bh()}}return i}function tm(e,n,t){return!!(t[n+(e>>Jh)]&1<{const n=e.prototype.constructor,t=n[$n]||N_(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[$n]||N_(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function N_(e){return Fa(e)?()=>{const n=N_(K(e));return n&&n()}:Vr(e)}function rm(e){const n=e[R],t=n.type;return 2===t?n.declTNode:1===t?e[it]:null}function cm(e,n=null,t=null,r){const i=function lm(e,n=null,t=null,r,i=new Set){const o=[t||pe,oh(e)];return r=r||("object"==typeof e?void 0:Je(e)),new Fs(o,n||$a(),r||null,i)}(e,n,t,r);return i.resolveInjectorInitializers(),i}class dt{static{this.THROW_IF_NOT_FOUND=Bi}static{this.NULL=new ja}static create(n,t){if(Array.isArray(n))return cm({name:""},t,n,"");{const r=n.name??"";return cm({name:r},n.parent,n.providers,r)}}static{this.\u0275prov=J({token:dt,providedIn:"any",factory:()=>U(Zg)})}static{this.__NG_ELEMENT_ID__=-1}}new V("").__NG_ELEMENT_ID__=e=>{const n=ve();if(null===n)throw new F(204,!1);if(2&n.type)return n.value;if(e&ue.Optional)return null;throw new F(204,!1)};function A_(e){return e.ngOriginalError}const _m=!0;let no=(()=>{class e{static{this.__NG_ELEMENT_ID__=wI}static{this.__NG_ENV_ID__=t=>t}}return e})();class mI extends no{constructor(n){super(),this._lView=n}onDestroy(n){return Xa(this._lView,n),()=>function f_(e,n){if(null===e[gr])return;const t=e[gr].indexOf(n);-1!==t&&e[gr].splice(t,1)}(this._lView,n)}}function wI(){return new mI(I())}let hr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Mu(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=J({token:e,providedIn:"root",factory:()=>new e})}}return e})();const Fe=class yI extends Lr{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,function _h(){return void 0!==zg()||null!=function OT(){return Ns}()}()&&(this.destroyRef=H(no,{optional:!0})??void 0,this.pendingTasks=H(hr,{optional:!0})??void 0)}emit(n){const t=M(null);try{super.next(n)}finally{M(t)}}subscribe(n,t,r){let i=n,o=t||(()=>null),c=r;if(n&&"object"==typeof n){const _=n;i=_.next?.bind(_),o=_.error?.bind(_),c=_.complete?.bind(_)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),c&&(c=this.wrapInTimeout(c)));const l=super.subscribe({next:i,error:o,complete:c});return n instanceof Jt&&n.add(l),l}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function dc(...e){}function dm(e){let n,t;function r(){e=dc;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function fm(e){return queueMicrotask(()=>e()),()=>{e=dc}}const F_="isAngularZone",fc=F_+"_ID";let bI=0;class Ee{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=_m}=n;if(typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const c=this;c._nesting=0,c._outer=c._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(c._inner=c._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(c._inner=c._inner.fork(Zone.longStackTraceZoneSpec)),c.shouldCoalesceEventChangeDetection=!i&&r,c.shouldCoalesceRunChangeDetection=i,c.callbackScheduled=!1,c.scheduleInRootZone=o,function SI(e){const n=()=>{!function EI(e){function n(){dm(()=>{e.callbackScheduled=!1,O_(e),e.isCheckStableRunning=!0,R_(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),O_(e))}(e)},t=bI++;e._inner=e._inner.fork({name:"angular",properties:{[F_]:!0,[fc]:t,[fc+t]:!0},onInvokeTask:(r,i,o,c,l,_)=>{if(function CI(e){return hm(e,"__ignore_ng_zone__")}(_))return r.invokeTask(o,c,l,_);try{return pm(e),r.invokeTask(o,c,l,_)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&n(),gm(e)}},onInvoke:(r,i,o,c,l,_,d)=>{try{return pm(e),r.invoke(o,c,l,_,d)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function DI(e){return hm(e,"__scheduler_tick__")}(_)&&n(),gm(e)}},onHasTask:(r,i,o,c)=>{r.hasTask(o,c),i===o&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,O_(e),R_(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,i,o,c)=>(r.handleError(o,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(c)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(F_)}static assertInAngularZone(){if(!Ee.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(Ee.isInAngularZone())throw new F(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,c=o.scheduleEventTask("NgZoneEvent: "+i,n,vI,dc,dc);try{return o.runTask(c,t,r)}finally{o.cancelTask(c)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const vI={};function R_(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function O_(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function pm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function gm(e){e._nesting--,R_(e)}class x_{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe,this.onMicrotaskEmpty=new Fe,this.onStable=new Fe,this.onError=new Fe}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}function hm(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Fn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&A_(n);for(;t&&A_(t);)t=A_(t);return t||null}}const II=new V("",{providedIn:"root",factory:()=>{const e=H(Ee),n=H(Fn);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function MI(){return zs(ve(),I())}function zs(e,n){return new Xt(Et(e,n))}let Xt=(()=>{class e{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=MI}}return e})();function wm(e){return e instanceof Xt?e.nativeElement:e}function NI(){return this._results[Symbol.iterator]()}class L_{get changes(){return this._changes??=new Fe}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=L_.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=NI)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const r=function Rt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function HT(e,n,t){if(e.length!==n.length)return!1;for(let r=0;rZI}),ZI="ng",Vm=new V(""),wr=new V("",{providedIn:"platform",factory:()=>"unknown"}),Wm=new V("",{providedIn:"root",factory:()=>mr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let jm=()=>null;function K_(e,n,t=!1){return jm(e,n,t)}const Km=new V("",{providedIn:"root",factory:()=>!1});let Ec,Sc;function Gs(e){return function X_(){if(void 0===Ec&&(Ec=null,Ae.trustedTypes))try{Ec=Ae.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ec}()?.createHTML(e)||e}function Qm(e){return function ed(){if(void 0===Sc&&(Sc=null,Ae.trustedTypes))try{Sc=Ae.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Sc}()?.createHTML(e)||e}class ew{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Og})`}}function yr(e){return e instanceof ew?e.changingThisBreaksApplicationSecurity:e}class hM{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Gs(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class mM{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Gs(n),t}}const yM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Yn(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function po(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const nw=Yn("area,br,col,hr,img,wbr"),rw=Yn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),sw=Yn("rp,rt"),nd=po(nw,po(rw,Yn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),po(sw,Yn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),po(sw,rw)),rd=Yn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iw=po(rd,Yn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),bM=Yn("script,style,template");class vM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=CM(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=SM(t);if(o){t=o;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=ow(n).toLowerCase();if(!nd.hasOwnProperty(t))return this.sanitizedSomething=!0,!bM.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i"),!0}endElement(n){const t=ow(n).toLowerCase();nd.hasOwnProperty(t)&&!nw.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(cw(n))}}function SM(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw aw(n);return n}function CM(e){const n=e.firstChild;if(n&&function EM(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw aw(n);return n}function ow(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function aw(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const DM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,TM=/([^\#-~ |!])/g;function cw(e){return e.replace(/&/g,"&").replace(DM,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(TM,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Cc;function sd(e){return"content"in e&&function MM(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ks=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ks||{});function lw(e){const n=function go(){const e=I();return e&&e[In].sanitizer}();return n?Qm(n.sanitize(Ks.HTML,e)||""):function fo(e,n){const t=function gM(e){return e instanceof ew&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Og})`)}return t===n}(e,"HTML")?Qm(yr(e)):function IM(e,n){let t=null;try{Cc=Cc||function tw(e){const n=new mM(e);return function wM(){try{return!!(new window.DOMParser).parseFromString(Gs(""),"text/html")}catch{return!1}}()?new hM(n):n}(e);let r=n?String(n):"";t=Cc.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=Cc.getInertBodyElement(r)}while(r!==o);return Gs((new vM).sanitizeChildren(sd(t)||t))}finally{if(t){const r=sd(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}(mr(),ee(e))}const xM=/^>|^->||--!>|)/g,PM="\u200b$1\u200b";var br=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(br||{});let ad;function cd(e,n){return ad(e,n)}function Zs(e,n,t,r,i){if(null!=r){let o,c=!1;ut(r)?o=r:Ye(r)&&(c=!0,r=r[Oe]);const l=ge(r);0===e&&null!==t?null==i?Cw(n,t,l):Jr(n,t,l,i||null,!0):1===e&&null!==t?Jr(n,t,l,i||null,!0):2===e?function mo(e,n,t){e.removeChild(null,n,t)}(n,l,c):3===e&&n.destroyNode(l),null!=o&&function rN(e,n,t,r,i){const o=t[Mn];o!==ge(t)&&Zs(n,e,r,o,i);for(let l=We;ln.replace(LM,PM))}(n))}function Ic(e,n,t){return e.createElement(n,t)}function vw(e,n){n[In].changeDetectionScheduler?.notify(9),kc(e,n,n[Q],2,null,null)}function Ew(e,n){const t=e[Ws],r=n[Ue];(Ye(r)||n[xe]!==r[Ue][xe])&&(e[$]|=Ja.HasTransplantedViews),null===t?e[Ws]=[n]:t.push(n)}function _d(e,n){const t=e[Ws],r=t.indexOf(n);t.splice(r,1)}function ho(e,n){if(e.length<=We)return;const t=We+n,r=e[t];if(r){const i=r[Br];null!==i&&i!==e&&_d(i,r),n>0&&(e[t-1][dn]=r[dn]);const o=Va(e,We+n);!function JM(e,n){vw(e,n),n[Oe]=null,n[it]=null}(r[R],r);const c=o[Gn];null!==c&&c.detachView(o[R]),r[Ue]=null,r[dn]=null,r[$]&=-129}return r}function Mc(e,n){if(!(256&n[$])){const t=n[Q];t.destroyNode&&kc(e,n,t,3,null,null),function QM(e){let n=e[qi];if(!n)return dd(e[R],e);for(;n;){let t=null;if(Ye(n))t=n[qi];else{const r=n[We];r&&(t=r)}if(!t){for(;n&&!n[dn]&&n!==e;)Ye(n)&&dd(n[R],n),n=n[Ue];null===n&&(n=e),Ye(n)&&dd(n[R],n),t=n&&n[dn]}n=t}}(n)}}function dd(e,n){if(256&n[$])return;const t=M(null);try{n[$]&=-129,n[$]|=256,n[Qt]&&Hn(n[Qt]),function eN(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[c]():r[-c].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[xs]=null);const i=n[gr];if(null!==i){n[gr]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===un.None||o===un.Emulated)return null}return Et(r,t)}}(e,n.parent,t)}function Jr(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Cw(e,n,t){e.appendChild(n,t)}function Dw(e,n,t,r,i){null!==r?Jr(e,n,t,r,i):Cw(e,n,t)}function pd(e,n){return e.parentNode(n)}function Tw(e,n,t){return Mw(e,n,t)}let gd,Mw=function Iw(e,n,t){return 40&e.type?Et(e,t):null};function Nc(e,n,t,r){const i=fd(e,r,n),o=n[Q],l=Tw(r.parent||n[it],r,n);if(null!=i)if(Array.isArray(t))for(let _=0;_z&&xw(e,n,z,!1),Nn(c?2:0,i),t(r,i)}finally{$r(o),Nn(c?3:1,i)}}function yd(e,n,t){if(o_(n)){const r=M(null);try{const o=n.directiveEnd;for(let c=n.directiveStart;cnull;function jw(e,n,t,r,i){for(let o in n){if(!n.hasOwnProperty(o))continue;const c=n[o];if(void 0===c)continue;r??={};let l,_=fr.None;Array.isArray(c)?(l=c[0],_=c[1]):l=c;let d=o;if(null!==i){if(!i.hasOwnProperty(o))continue;d=i[o]}0===e?Bw(r,t,d,l,_):Bw(r,t,d,l)}return r}function Bw(e,n,t,r,i){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,r):o=e[t]=[n,r],void 0!==i&&o.push(i)}function Lt(e,n,t,r,i,o,c,l){const _=Et(n,t);let p,d=n.inputs;!l&&null!=d&&(p=d[r])?(Id(e,t,p,r,i),Hr(n)&&function mN(e,n){const t=Bt(n,e);16&t[$]||(t[$]|=64)}(t,n.index)):3&n.type&&(r=function hN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=c?c(i,n.value||"",r):i,o.setProperty(_,r,i))}function Sd(e,n,t,r){if(Nh()){const i=null===r?null:{"":-1},o=function SN(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(c)!=l&&c.push(l),c.push(t,r,o)}}(e,n,r,wo(e,t,i.hostVars,te),i)}function Rn(e,n,t,r,i,o){const c=Et(e,n);!function Dd(e,n,t,r,i,o,c){if(null==o)e.removeAttribute(n,i,t);else{const l=null==c?ee(o):c(o,r||"",i);e.setAttribute(n,i,l,t)}}(n[Q],c,o,e.value,t,r,i)}function NN(e,n,t,r,i,o){const c=o[n];if(null!==c)for(let l=0;l0&&(t[i-1][dn]=n),r{Ya(e.lView)},consumerOnSignalRead(){this.lView[Qt]=this}},WN={...ce,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=Jn(e.lView);for(;n&&!Yw(n[R]);)n=Jn(n);n&&Th(n)},consumerOnSignalRead(){this.lView[Qt]=this}};function Yw(e){return 2!==e.type}const jN=100;function Oc(e,n=!0,t=0){const r=e[In],i=r.rendererFactory;i.begin?.();try{!function BN(e,n){const t=Rh();try{Oh(!0),kd(e,n);let r=0;for(;Qa(e);){if(r===jN)throw new F(103,!1);r++,kd(e,1)}}finally{Oh(t)}}(e,t)}catch(c){throw n&&Rc(e,c),c}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function HN(e,n,t,r){const i=n[$];if(!(256&~i))return;n[In].inlineEffectRunner?.flush(),b_(n);let l=!0,_=null,d=null;Yw(e)?(d=function ON(e){return e[Qt]??function xN(e){const n=Qw.pop()??Object.create(PN);return n.lView=e,n}(e)}(n),_=En(d)):null===function j(){return y}()?(l=!1,d=function VN(e){const n=e[Qt]??Object.create(WN);return n.lView=e,n}(n),_=En(d)):n[Qt]&&(Hn(n[Qt]),n[Qt]=null);try{Dh(n),function xh(e){return Y.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Pw(e,n,t,2,r);const p=!(3&~i);if(p){const w=e.preOrderCheckHooks;null!==w&&sc(n,w,null)}else{const w=e.preOrderHooks;null!==w&&ic(n,w,0,null),E_(n,0)}if(function zN(e){for(let n=Mm(e);null!==n;n=Nm(n)){if(!(n[$]&Ja.HasTransplantedViews))continue;const t=n[Ws];for(let r=0;r-1&&(ho(n,r),Va(t,r))}this._attachedToViewContainer=!1}Mc(this._lView[R],this._lView)}onDestroy(n){Xa(this._lView,n)}markForCheck(){bo(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[$]&=-129}reattach(){d_(this._lView),this._lView[$]|=128}detectChanges(){this._lView[$]|=1024,Oc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Ki(this._lView),t=this._lView[Br];null!==t&&!n&&_d(t,this._lView),vw(this._lView[R],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=n;const t=Ki(this._lView),r=this._lView[Br];null!==r&&!t&&Ew(r,this._lView),d_(this._lView)}}let er=(()=>{class e{static{this.__NG_ELEMENT_ID__=GN}}return e})();const $N=er,qN=class extends $N{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=Qs(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new vo(i)}};function GN(){return xc(ve(),I())}function xc(e,n){return 4&e.type?new qN(n,e,zs(e,n)):null}let Sy=()=>null;function es(e,n){return Sy(e,n)}class ei{}const No=new V("",{providedIn:"root",factory:()=>!1}),Cy=new V(""),Bd=new V("");class Wk{}class Dy{}class Bk{resolveComponentFactory(n){throw function jk(e){const n=Error(`No component factory found for ${Je(e)}.`);return n.ngComponent=e,n}(n)}}class Bc{static{this.NULL=new Bk}}class Hd{}let ts=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Hk(){const e=I(),t=Bt(ve().index,e);return(Ye(t)?t:e)[Q]}()}}return e})(),zk=(()=>{class e{static{this.\u0275prov=J({token:e,providedIn:"root",factory:()=>null})}}return e})();function zc(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let c=0;c0&&Rw(e,t,o.join(" "))}}(m,he,b,r),void 0!==t&&function Xk(e,n,t){const r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=tA}}return e})();function tA(){return Ry(ve(),I())}const nA=On,Ay=class extends nA{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return zs(this._hostTNode,this._hostLView)}get injector(){return new Xe(this._hostTNode,this._hostLView)}get parentInjector(){const n=cc(this._hostTNode,this._hostLView);if(D_(n)){const t=to(n,this._hostLView),r=eo(n);return new Xe(t[R].data[r+8],t)}return new Xe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=Fy(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-We}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const c=es(this._lContainer,n.ssrId),l=n.createEmbeddedViewImpl(t||{},o,c);return this.insertImpl(l,i,Yr(this._hostTNode,c)),l}createComponent(n,t,r,i,o){const c=n&&!function $i(e){return"function"==typeof e}(n);let l;if(c)l=t;else{const b=t||{};l=b.index,r=b.injector,i=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef}const _=c?n:new Fo(ae(n)),d=r||this.parentInjector;if(!o&&null==_.ngModule){const S=(c?d:this.parentInjector).get(Zt,null);S&&(o=S)}const p=ae(_.componentType??{}),h=es(this._lContainer,p?.id??null),w=_.create(d,i,h?.firstChild??null,o);return this.insertImpl(w.hostView,l,Yr(this._hostTNode,h)),w}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function F1(e){return ut(e[Ue])}(i)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const _=i[Ue],d=new Ay(_,_[it],_[Ue]);d.detach(d.indexOf(n))}}const o=this._adjustIndex(t),c=this._lContainer;return Ys(c,i,o,r),n.attachToViewContainerRef(),Gg($d(c),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=Fy(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=ho(this._lContainer,t);r&&(Va($d(this._lContainer),t),Mc(r[R],r))}detach(n){const t=this._adjustIndex(n,-1),r=ho(this._lContainer,t);return r&&null!=Va($d(this._lContainer),t)?new vo(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function Fy(e){return e[8]}function $d(e){return e[8]||(e[8]=[])}function Ry(e,n){let t;const r=n[e.index];return ut(r)?t=r:(t=Uw(r,n,null,e),n[e.index]=t,Fc(n,t)),Oy(t,n,e,r),new Ay(t,e,n)}let Oy=function Ly(e,n,t,r){if(e[Mn])return;let i;i=8&t.type?ge(r):function rA(e,n){const t=e[Q],r=t.createComment(""),i=Et(n,e);return Jr(t,pd(t,i),r,function tN(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[Mn]=i},qd=()=>!1;class Gd{constructor(n){this.queryList=n,this.matches=null}clone(){return new Gd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Kd{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,i=[];for(let o=0;on.trim())}(n):n}}class Jd{constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r0)r.push(c[l/2]);else{const d=o[l+1],p=n[-_];for(let h=We;h(le(n),n.value);return t[k]=n,t}(e),r=t[k];return n?.equal&&(r.equal=n.equal),t.set=i=>Vi(r,i),t.update=i=>function yu(e,n){kt()||Ia(),Vi(e,n(e.value))}(r,i),t.asReadonly=qy.bind(t),t}function qy(){const e=this[k];if(void 0===e.readonlyFn){const n=()=>this();n[k]=e,e.readonlyFn=n}return e.readonlyFn}function Se(e){let n=function sb(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(fn(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new F(903,!1);i=n.\u0275dir}if(i){if(t){r.push(i);const c=e;c.inputs=$c(e.inputs),c.inputTransforms=$c(e.inputTransforms),c.declaredInputs=$c(e.declaredInputs),c.outputs=$c(e.outputs);const l=i.hostBindings;l&&TA(e,l);const _=i.viewQuery,d=i.contentQueries;if(_&&CA(e,_),d&&DA(e,d),EA(e,i),bT(e.outputs,i.outputs),fn(i)&&i.data.animation){const p=e.data;p.animation=(p.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let c=0;c=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=zi(i.hostAttrs,t=zi(t,i.hostAttrs))}}(r)}function EA(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=n.inputTransforms[i]}}}function $c(e){return e===Tn?{}:e===pe?[]:e}function CA(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function DA(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function TA(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class rs{}class lb extends rs{constructor(n){super(),this.componentFactoryResolver=new Ny(this),this.instance=null;const t=new Fs([...n.providers,{provide:rs,useValue:this},{provide:Bc,useValue:this.componentFactoryResolver}],n.parent||$a(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function qc(e){return!!function sf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function xn(e,n,t){return e[n]=t}function je(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function ss(e,n,t,r){const i=je(e,n,t);return je(e,n+1,r)||i}function xo(e,n,t,r,i,o,c,l,_,d){const p=t+z,h=n.firstCreatePass?function jA(e,n,t,r,i,o,c,l,_){const d=n.consts,p=Qr(n,e,4,c||null,l||null);Sd(n,t,p,Yt(d,_)),rc(n,p);const h=p.tView=Ed(2,p,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,d,null);return null!==n.queries&&(n.queries.template(n,p),h.queries=n.queries.embeddedTView(p)),p}(p,n,e,r,i,o,c,l,_):n.data[p];pn(h,!1);const m=_b(n,e,h,t);Yi()&&Nc(n,e,m,h),ft(m,e);const w=Uw(m,e,m,h);return e[p]=w,Fc(e,w),function xy(e,n,t){return qd(e,n,t)}(w,h,e),Za(h)&&bd(n,e,h),null!=_&&vd(e,h,d),h}function ie(e,n,t,r,i,o,c,l){const _=I(),d=se();return xo(_,d,e,n,t,r,i,Yt(d.consts,o),c,l),ie}let _b=function db(e,n,t,r){return kn(!0),n[Q].createComment("")};var ii=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ii||{});let wb=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=J({token:e,providedIn:"root",factory:()=>new e})}}return e})();class Vo{constructor(){this.ngZone=H(Ee),this.scheduler=H(ei),this.errorHandler=H(Fn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ii.EarlyRead,ii.Write,ii.MixedReadWrite,ii.Read]}execute(){this.executing=!0;for(const n of Vo.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(r){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static{this.\u0275prov=J({token:Vo,providedIn:"root",factory:()=>new Vo})}}function Dt(e,n,t,r){const i=I();return je(i,gn(),n)&&(se(),Rn(Me(),i,e,n,t,r)),Dt}function di(e,n,t,r){return je(e,gn(),t)?n+ee(t)+r:te}function fi(e,n,t,r,i,o){const l=ss(e,function Zn(){return Y.lFrame.bindingIndex}(),t,i);return Qn(2),l?n+ee(t)+r+ee(i)+o:te}function Xc(e,n){return e<<17|n<<2}function Sr(e){return e>>17&32767}function wf(e){return 2|e}function os(e){return(131068&e)>>2}function yf(e,n){return-131069&e|n<<2}function bf(e){return 1|e}function qb(e,n,t,r){const i=e[t+1],o=null===n;let c=r?Sr(i):os(i),l=!1;for(;0!==c&&(!1===l||o);){const d=e[c+1];MF(e[c],n)&&(l=!0,e[c+1]=r?bf(d):wf(d)),c=r?Sr(d):os(d)}l&&(e[t+1]=r?wf(i):bf(i))}function MF(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&As(e,n)>=0}const et={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Gb(e){return e.substring(et.key,et.keyEnd)}function Kb(e,n){const t=et.textEnd;return t===n?-1:(n=et.keyEnd=function FF(e,n,t){for(;n32;)n++;return n}(e,et.key=n,t),bi(e,n,t))}function bi(e,n,t){for(;n=0;t=Kb(n,t))jt(e,Gb(n),!0)}function ev(e,n){return n>=e.expandoStartIndex}function tv(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[ot()],c=ev(e,t);iv(o,r)&&null===n&&!c&&(n=!1),n=function LF(e,n,t,r){const i=function w_(e){const n=Y.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=jo(t=Ef(null,e,n,t,r),n.attrs,r),o=null);else{const c=n.directiveStylingLast;if(-1===c||e[c]!==i)if(t=Ef(i,e,n,t,r),null===o){let _=function PF(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==os(r))return e[Sr(r)]}(e,n,r);void 0!==_&&Array.isArray(_)&&(_=Ef(null,e,n,_[1],r),_=jo(_,n.attrs,r),function VF(e,n,t,r){e[Sr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,_))}else o=function WF(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(d=!0)):p=t,i)if(0!==_){const m=Sr(e[l+1]);e[r+1]=Xc(m,l),0!==m&&(e[m+1]=yf(e[m+1],r)),e[l+1]=function CF(e,n){return 131071&e|n<<17}(e[l+1],r)}else e[r+1]=Xc(l,0),0!==l&&(e[l+1]=yf(e[l+1],r)),l=r;else e[r+1]=Xc(_,0),0===l?l=r:e[_+1]=yf(e[_+1],r),_=r;d&&(e[r+1]=wf(e[r+1])),qb(e,p,r,!0),qb(e,p,r,!1),function IF(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&As(o,n)>=0&&(t[r+1]=bf(t[r+1]))}(n,p,e,r,o),c=Xc(l,_),o?n.classBindings=c:n.styleBindings=c}(i,o,n,t,c,r)}}function Ef(e,n,t,r,i){let o=null;const c=t.directiveEnd;let l=t.directiveStylingLast;for(-1===l?l=t.directiveStart:l++;l0;){const _=e[i],d=Array.isArray(_),p=d?_[1]:_,h=null===p;let m=t[i+1];m===te&&(m=h?pe:void 0);let w=h?qu(m,r):p===r?m:void 0;if(d&&!nl(w)&&(w=qu(_,r)),nl(w)&&(l=w,c))return l;const b=e[i+1];i=c?Sr(b):os(b)}if(null!==n){let _=o?n.residualClasses:n.residualStyles;null!=_&&(l=qu(_,r))}return l}function nl(e){return void 0!==e}function iv(e,n){return!!(e.flags&(n?8:16))}function x(e,n,t,r){const i=I(),o=se(),c=z+e,l=i[Q],_=o.firstCreatePass?function dR(e,n,t,r,i,o){const c=n.consts,_=Qr(n,e,2,r,Yt(c,i));return Sd(n,t,_,Yt(c,o)),null!==_.attrs&&zc(_,_.attrs,!1),null!==_.mergedAttrs&&zc(_,_.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,_),_}(c,o,i,n,t,r):o.data[c],d=lv(o,i,_,l,n,e);i[c]=d;const p=Za(_);return pn(_,!0),Ow(l,d,_),!function ri(e){return!(32&~e.flags)}(_)&&Yi()&&Nc(o,i,d,_),0===function R1(){return Y.lFrame.elementDepthCount}()&&ft(d,i),function O1(){Y.lFrame.elementDepthCount++}(),p&&(bd(o,i,_),yd(o,_,i)),null!==r&&vd(i,_),x}function L(){let e=ve();g_()?h_():(e=e.parent,pn(e,!1));const n=e;(function L1(e){return Y.skipHydrationRootTNode===e})(n)&&function j1(){Y.skipHydrationRootTNode=null}(),function x1(){Y.lFrame.elementDepthCount--}();const t=se();return t.firstCreatePass&&(rc(t,e),o_(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function Y1(e){return!!(8&e.flags)}(n)&&vf(t,n,I(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function X1(e){return!!(16&e.flags)}(n)&&vf(t,n,I(),n.stylesWithoutHost,!1),L}function pt(e,n,t,r){return x(e,n,t,r),L(),pt}let lv=(e,n,t,r,i,o)=>(kn(!0),Ic(r,i,function zh(){return Y.lFrame.currentNamespace}()));function $t(e,n,t){const r=I(),i=se(),o=e+z,c=i.firstCreatePass?function gR(e,n,t,r,i){const o=n.consts,c=Yt(o,r),l=Qr(n,e,8,"ng-container",c);return null!==c&&zc(l,c,!0),Sd(n,t,l,Yt(o,i)),null!==n.queries&&n.queries.elementStart(n,l),l}(o,i,r,n,t):i.data[o];pn(c,!0);const l=uv(i,r,c,e);return r[o]=l,Yi()&&Nc(i,r,l,c),ft(l,r),Za(c)&&(bd(i,r,c),yd(i,c,r)),null!=t&&vd(r,c),$t}function qt(){let e=ve();const n=se();return g_()?h_():(e=e.parent,pn(e,!1)),n.firstCreatePass&&(rc(n,e),o_(e)&&n.queries.elementEnd(e)),qt}function as(e,n,t){return $t(e,n,t),qt(),as}let uv=(e,n,t,r)=>(kn(!0),ud(n[Q],""));function Re(){return I()}const sl="en-US";let gv=sl,Rv=(e,n,t)=>{};function X(e,n,t,r){const i=I(),o=se(),c=ve();return function Mf(e,n,t,r,i,o,c){const l=Za(r),d=e.firstCreatePass&&Gw(e),p=n[Ie],h=qw(n);let m=!0;if(3&r.type||c){const S=Et(r,n),C=c?c(S):S,N=h.length,D=c?q=>c(ge(q[r.index])):r.index;let W=null;if(!c&&l&&(W=function cO(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;o_?l[_]:null}"string"==typeof c&&(o+=2)}return null}(e,n,i,r.index)),null!==W)(W.__ngLastListenerFn__||W).__ngNextListenerFn__=o,W.__ngLastListenerFn__=o,m=!1;else{o=Pv(r,n,p,o),Rv(S,i,o);const q=t.listen(C,i,o);h.push(o,q),d&&d.push(i,D,N,N+1)}}else o=Pv(r,n,p,o);const w=r.outputs;let b;if(m&&null!==w&&(b=w[i])){const S=b.length;if(S)for(let C=0;C-1?Bt(e.index,n):n,5);let l=Lv(n,t,r,o),_=i.__ngNextListenerFn__;for(;_;)l=Lv(n,t,_,o)&&l,_=_.__ngNextListenerFn__;return l}}function B(e=1){return function $1(e){return(Y.lFrame.contextLView=function Ih(e,n){for(;e>0;)n=n[Ls],e--;return n}(e,Y.lFrame.contextLView))[Ie]}(e)}function lO(e,n){let t=null;const r=function KT(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let i=0;i(kn(!0),function ld(e,n){return e.createText(n)}(n[Q],r));function us(e){return at("",e,""),us}function at(e,n,t){const r=I(),i=di(r,e,n,t);return i!==te&&Xn(r,ot(),i),at}function qo(e,n,t,r,i){const o=I(),c=fi(o,e,n,t,r,i);return c!==te&&Xn(o,ot(),c),qo}function Ff(e,n,t,r,i){if(e=K(e),Array.isArray(e))for(let o=0;o>20;if(jr(e)||!e.multi){const w=new Xi(d,i,T),b=Of(_,n,i?p:p+m,h);-1===b?(M_(ac(l,c),o,_),Rf(o,e,n.length),n.push(_),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),t.push(w),c.push(w)):(t[b]=w,c[b]=w)}else{const w=Of(_,n,p+m,h),b=Of(_,n,p,p+m),C=b>=0&&t[b];if(i&&!C||!i&&!(w>=0&&t[w])){M_(ac(l,c),o,_);const N=function FO(e,n,t,r,i){const o=new Xi(e,t,T);return o.multi=[],o.index=n,o.componentProviders=0,h0(o,i,r&&!t),o}(i?AO:kO,t.length,i,r,d);!i&&C&&(t[b].providerFactory=N),Rf(o,e,n.length,0),n.push(_),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),t.push(N),c.push(N)}else Rf(o,e,w>-1?w:b,h0(t[i?b:w],d,!i&&r));!i&&r&&C&&t[b].componentProviders++}}}function Rf(e,n,t,r){const i=jr(n),o=function o1(e){return!!e.useClass}(n);if(i||o){const _=(o?K(n.useClass):n).prototype.ngOnDestroy;if(_){const d=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const p=d.indexOf(t);-1===p?d.push(t,[r,_]):d[p+1].push(r,_)}else d.push(t,_)}}}function h0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Of(e,n,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function NO(e,n,t){const r=se();if(r.firstCreatePass){const i=fn(e);Ff(t,r.data,r.blueprint,i,!0),Ff(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let RO=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=Zu(0,t.type),i=r.length>0?function ub(e,n,t=null){return new lb({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=J({token:e,providedIn:"environment",factory:()=>new e(U(Zt))})}}return e})();function wt(e){Ct("NgStandalone"),e.getStandaloneInjector=n=>n.get(RO).getOrCreateStandaloneInjector(e)}function ul(e,n,t){const r=St()+e,i=I();return i[r]===te?xn(i,r,t?n.call(t):n()):function Oo(e,n){return e[n]}(i,r)}function tn(e,n,t,r){return function b0(e,n,t,r,i,o){const c=n+t;return je(e,c,i)?xn(e,c+1,o?r.call(o,i):r(i)):Go(e,c+1)}(I(),St(),e,n,t,r)}function Ei(e,n,t,r,i){return function v0(e,n,t,r,i,o,c){const l=n+t;return ss(e,l,i,o)?xn(e,l+2,c?r.call(c,i,o):r(i,o)):Go(e,l+2)}(I(),St(),e,n,t,r,i)}function y0(e,n,t,r,i,o){return function E0(e,n,t,r,i,o,c,l){const _=n+t;return function Gc(e,n,t,r,i){const o=ss(e,n,t,r);return je(e,n+2,i)||o}(e,_,i,o,c)?xn(e,_+3,l?r.call(l,i,o,c):r(i,o,c)):Go(e,_+3)}(I(),St(),e,n,t,r,i,o)}function Go(e,n){const t=e[n];return t===te?void 0:t}function _s(e,n){return xc(e,n)}const U0=new V("");function gl(e){return!!e&&"function"==typeof e.then}function $0(e){return!!e&&"function"==typeof e.subscribe}const q0=new V("");let Uf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=H(q0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(gl(o))t.push(o);else if($0(o)){const c=new Promise((l,_)=>{o.subscribe({complete:l,error:_})});t.push(c)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const $f=new V("");let tr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=H(II),this.afterRenderManager=H(wb),this.zonelessEnabled=H(No),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Lr,this.afterTick=new Lr,this.componentTypes=[],this.components=[],this.isStable=H(hr).hasPendingTasks.pipe(ur(t=>!t)),this._injector=H(Zt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof Dy;if(!this._injector.get(Uf).done)throw!i&&function Wr(e){const n=ae(e)||Ze(e)||st(e);return null!==n&&n.standalone}(t),new F(405,!1);let c;c=i?t:this._injector.get(Bc).resolveComponentFactory(t),this.componentTypes.push(c.componentType);const l=function Ux(e){return e.isBoundToModule}(c)?void 0:this._injector.get(rs),d=c.create(dt.NULL,[],r||c.selector,l),p=d.location.nativeElement,h=d.injector.get(U0,null);return h?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),hl(this.components,d),h?.unregisterApplication(p)}),this._loadComponent(d),d}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new F(101,!1);const t=M(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,M(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(Hd,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)Gx(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>Qa(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;hl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get($f,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>hl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new F(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function hl(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Gx(e,n,t,r){(t||Qa(e))&&Oc(e,n,t&&!r?0:1)}let Qx=(()=>{class e{constructor(){this.zone=H(Ee),this.changeDetectionScheduler=H(ei),this.applicationRef=H(tr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function qf({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new Ee({...Gf(),scheduleInRootZone:t}),[{provide:Ee,useFactory:e},{provide:qn,multi:!0,useFactory:()=>{const r=H(Qx,{optional:!0});return()=>r.initialize()}},{provide:qn,multi:!0,useFactory:()=>{const r=H(Xx);return()=>{r.initialize()}}},!0===n?{provide:Cy,useValue:!0}:[],{provide:Bd,useValue:t??_m}]}function Gf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Xx=(()=>{class e{constructor(){this.subscription=new Jt,this.initialized=!1,this.zone=H(Ee),this.pendingTasks=H(hr)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ee.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ee.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Qo=(()=>{class e{constructor(){this.appRef=H(tr),this.taskService=H(hr),this.ngZone=H(Ee),this.zonelessEnabled=H(No),this.disableScheduling=H(Cy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Jt,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(fc):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(H(Bd,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof x_||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?fm:dm;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(fc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,fm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Cr=new V("",{providedIn:"root",factory:()=>H(Cr,ue.Optional|ue.SkipSelf)||function eL(){return typeof $localize<"u"&&$localize.locale||sl}()}),wl=new V("");function yl(e){return!e.moduleRef}let Dr=null;let Gt=(()=>{class e{static{this.__NG_ELEMENT_ID__=uL}}return e})();function uL(e){return function _L(e,n,t){if(Hr(e)&&!t){const r=Bt(e.index,n);return new vo(r,r)}return 175&e.type?new vo(n[xe],n):null}(ve(),I(),!(16&~e))}class lE{constructor(){}supports(n){return qc(n)}create(n){return new hL(n)}}const gL=(e,n)=>n;class hL{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||gL}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const c=!r||t&&t.currentIndex<_E(r,i,o)?t:r,l=_E(c,i,o),_=c.currentIndex;if(c===r)i--,r=r._nextRemoved;else if(t=t._next,null==c.previousIndex)i++;else{o||(o=[]);const d=l-i,p=_-i;if(d!=p){for(let m=0;m{c=this._trackByFn(i,l),null!==t&&Object.is(t.trackById,c)?(r&&(t=this._verifyReinsertion(t,l,c,i)),Object.is(t.item,l)||this._addIdentityChange(t,l)):(t=this._mismatch(t,l,c,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new mL(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new uE),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uE),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mL{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wL{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class uE{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new wL,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _E(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{class e{static{this.\u0275prov=J({token:e,providedIn:"root",factory:fE})}constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||fE()),deps:[[e,new Uu,new zu]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new F(901,!1)}}return e})();function OL(e){try{const{rootComponent:n,appProviders:t,platformProviders:r}=e,i=function lL(e=[]){if(Dr)return Dr;const n=function rE(e=[],n){return dt.create({name:n,providers:[{provide:Xu,useValue:"platform"},{provide:wl,useValue:new Set([()=>Dr=null])},...e]})}(e);return Dr=n,function G0(){!function mu(e){Ta=e}(()=>{throw new F(600,!1)})}(),function sE(e){e.get(Vm,null)?.forEach(t=>t())}(n),n}(r),o=[qf({}),{provide:ei,useExisting:Qo},...t||[]];return function eE(e){const n=yl(e)?e.r3Injector:e.moduleRef.injector,t=n.get(Ee);return t.run(()=>{yl(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(Fn,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:o=>{r.handleError(o)}})}),yl(e)){const o=()=>n.destroy(),c=e.platformInjector.get(wl);c.add(o),n.onDestroy(()=>{i.unsubscribe(),c.delete(o)})}else{const o=()=>e.moduleRef.destroy(),c=e.platformInjector.get(wl);c.add(o),e.moduleRef.onDestroy(()=>{hl(e.allPlatformModules,e.moduleRef),i.unsubscribe(),c.delete(o)})}return function qx(e,n,t){try{const r=t();return gl(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(r,t,()=>{const o=n.get(Uf);return o.runInitializers(),o.donePromise.then(()=>{if(function CR(e){"string"==typeof e&&(gv=e.toLowerCase().replace(/_/g,"-"))}(n.get(Cr,sl)||sl),yl(e)){const l=n.get(tr);return void 0!==e.rootComponent&&l.bootstrap(e.rootComponent),l}return function oL(e,n){const t=e.injector.get(tr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new F(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new lb({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:n})}catch(n){return Promise.reject(n)}}function ta(e,n){Ct("NgSignals");const t=function pu(e){const n=Object.create(gu);n.computation=e;const t=()=>{if(ze(n),le(n),n.value===Es)throw n.error;return n.value};return t[k]=n,t}(e);return n?.equal&&(t[k].equal=n.equal),t}function Vn(e){const n=M(null);try{return e()}finally{M(n)}}function sp(e){return e[e.length-1]}function Tr(e){return this instanceof Tr?(this.v=e,this):new Tr(e)}function jE(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function cp(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(c){return new Promise(function(l,_){!function i(o,c,l,_){Promise.resolve(_).then(function(d){o({value:d,done:l})},c)}(l,_,(c=e[o](c)).done,c.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const BE=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function HE(e){return Ve(e?.then)}function zE(e){return Ve(e[Iu])}function UE(e){return Symbol.asyncIterator&&Ve(e?.[Symbol.asyncIterator])}function $E(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const qE=function xP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function GE(e){return Ve(e?.[qE])}function KE(e){return function WE(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",function c(w){return function(b){return Promise.resolve(b).then(w,h)}}),i[Symbol.asyncIterator]=function(){return this},i;function l(w,b){r[w]&&(i[w]=function(S){return new Promise(function(C,N){o.push([w,S,C,N])>1||_(w,S)})},b&&(i[w]=b(i[w])))}function _(w,b){try{!function d(w){w.value instanceof Tr?Promise.resolve(w.value.v).then(p,h):m(o[0][2],w)}(r[w](b))}catch(S){m(o[0][3],S)}}function p(w){_("next",w)}function h(w){_("throw",w)}function m(w,b){w(b),o.shift(),o.length&&_(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Tr(t.read());if(i)return yield Tr(void 0);yield yield Tr(r)}}finally{t.releaseLock()}})}function JE(e){return Ve(e?.getReader)}function fs(e){if(e instanceof At)return e;if(null!=e){if(zE(e))return function LP(e){return new At(n=>{const t=e[Iu]();if(Ve(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(BE(e))return function PP(e){return new At(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Ng)})}(e);if(UE(e))return ZE(e);if(GE(e))return function WP(e){return new At(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(JE(e))return function jP(e){return ZE(KE(e))}(e)}throw $E(e)}function ZE(e){return new At(n=>{(function BP(e,n){var t,r,i,o;return function PE(e,n,t,r){return new(t||(t=Promise))(function(o,c){function l(p){try{d(r.next(p))}catch(h){c(h)}}function _(p){try{d(r.throw(p))}catch(h){c(h)}}function d(p){p.done?o(p.value):function i(o){return o instanceof t?o:new t(function(c){c(o)})}(p.value).then(l,_)}d((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=jE(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(c){i={error:c}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Ir(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function QE(e,n=0){return Pr((t,r)=>{t.subscribe(lr(r,i=>Ir(r,e,()=>r.next(i),n),()=>Ir(r,e,()=>r.complete(),n),i=>Ir(r,e,()=>r.error(i),n)))})}function YE(e,n=0){return Pr((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function XE(e,n){if(!e)throw new Error("Iterable cannot be null");return new At(t=>{Ir(t,n,()=>{const r=e[Symbol.asyncIterator]();Ir(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function up(e,n){return n?function GP(e,n){if(null!=e){if(zE(e))return function HP(e,n){return fs(e).pipe(YE(n),QE(n))}(e,n);if(BE(e))return function UP(e,n){return new At(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(HE(e))return function zP(e,n){return fs(e).pipe(YE(n),QE(n))}(e,n);if(UE(e))return XE(e,n);if(GE(e))return function $P(e,n){return new At(t=>{let r;return Ir(t,n,()=>{r=e[qE](),Ir(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(c){return void t.error(c)}o?t.complete():t.next(i)},0,!0)}),()=>Ve(r?.return)&&r.return()})}(e,n);if(JE(e))return function qP(e,n){return XE(KE(e),n)}(e,n)}throw $E(e)}(e,n):fs(e)}function eS(...e){return up(e,function cP(e){return function oP(e){return e&&Ve(e.schedule)}(sp(e))?e.pop():void 0}(e))}function _p(e,n,t=1/0){return Ve(n)?_p((r,i)=>ur((o,c)=>n(r,o,i,c))(fs(e(r,i))),t):("number"==typeof n&&(t=n),Pr((r,i)=>function KP(e,n,t,r,i,o,c,l){const _=[];let d=0,p=0,h=!1;const m=()=>{h&&!_.length&&!d&&n.complete()},w=S=>d{o&&n.next(S),d++;let C=!1;fs(t(S,p++)).subscribe(lr(n,N=>{i?.(N),o?w(N):n.next(N)},()=>{C=!0},void 0,()=>{if(C)try{for(d--;_.length&&db(N)):b(N)}m()}catch(N){n.error(N)}}))};return e.subscribe(lr(n,w,()=>{h=!0,m()})),()=>{l?.()}}(r,i,e,t)))}function tS(e){return Pr((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}let nS=null;function na(){return nS}class XP{}const wn=new V("");function _S(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}const vp=/\s+/,dS=[];let sr=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=dS,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(vp):dS}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(vp):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(vp).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||e)(T(Xt),T(ts))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();class jV{constructor(n,t,r,i){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let sa=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,c)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new jV(i.item,this._ngForOf,-1,-1),null===c?void 0:c);else if(null==c)r.remove(null===o?void 0:o);else if(null!==o){const l=r.get(o);r.move(l,c),pS(l,i)}});for(let i=0,o=r.length;i{pS(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(T(On),T(er),T(ep))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function pS(e,n){e.context.$implicit=n.item}let sn=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new BV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){gS("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gS("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(T(On),T(er))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class BV{constructor(){this.$implicit=null,this.ngIf=null}}function gS(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Je(n)}'.`)}let mS=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||e)(T(On))}}static{this.\u0275dir=ne({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Kn]})}}return e})(),Ke=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({})}}return e})();function bS(e){return"server"===e}class vS{}class zl{}class Ul{}class on{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),c=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(c):this.headers.set(o,[c])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof on?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new on;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof on?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let c=this.headers.get(t);if(!c)return;c=c.filter(l=>-1===o.indexOf(l)),0===c.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,c)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class z2{encodeKey(n){return FS(n)}encodeValue(n){return FS(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const $2=/%(\d[a-f0-9])/gi,q2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function FS(e){return encodeURIComponent(e).replace($2,(n,t)=>q2[t]??n)}function $l(e){return`${e}`}class Mr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new z2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function U2(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[c,l]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],_=t.get(c)||[];_.push(l),t.set(c,_)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map($l):[$l(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Mr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push($l(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf($l(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class G2{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function RS(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function OS(e){return typeof Blob<"u"&&e instanceof Blob}function xS(e){return typeof FormData<"u"&&e instanceof FormData}class aa{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function K2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new on,this.context??=new G2,this.params){const c=this.params.toString();if(0===c.length)this.urlWithParams=t;else{const l=t.indexOf("?");this.urlWithParams=t+(-1===l?"?":lm.set(w,n.setHeaders[w]),d)),n.setParams&&(p=Object.keys(n.setParams).reduce((m,w)=>m.set(w,n.setParams[w]),p)),new aa(t,r,c,{params:p,headers:d,context:h,reportProgress:_,responseType:i,withCredentials:l,transferCache:o})}}var Nr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Nr||{});class Np{constructor(n,t=200,r="OK"){this.headers=n.headers||new on,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class ql extends Np{constructor(n={}){super(n),this.type=Nr.ResponseHeader}clone(n={}){return new ql({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ps extends Np{constructor(n={}){super(n),this.type=Nr.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ps({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ii extends Np{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function kp(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Y2=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof aa)o=t;else{let _,d;_=i.headers instanceof on?i.headers:new on(i.headers),i.params&&(d=i.params instanceof Mr?i.params:new Mr({fromObject:i.params})),o=new aa(t,r,void 0!==i.body?i.body:null,{headers:_,context:i.context,params:d,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const c=eS(o).pipe(function JP(e,n){return Ve(n)?_p(e,n,1):_p(e,1)}(_=>this.handler.handle(_)));if(t instanceof aa||"events"===i.observe)return c;const l=c.pipe(function ZP(e,n){return Pr((t,r)=>{let i=0;t.subscribe(lr(r,o=>e.call(n,o,i++)&&r.next(o)))})}(_=>_ instanceof ps));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(ur(_=>{if(null!==_.body&&!(_.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return _.body}));case"blob":return l.pipe(ur(_=>{if(null!==_.body&&!(_.body instanceof Blob))throw new Error("Response is not a Blob.");return _.body}));case"text":return l.pipe(ur(_=>{if(null!==_.body&&"string"!=typeof _.body)throw new Error("Response is not a string.");return _.body}));default:return l.pipe(ur(_=>_.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Mr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,kp(i,r))}post(t,r,i={}){return this.request("POST",t,kp(i,r))}put(t,r,i={}){return this.request("PUT",t,kp(i,r))}static{this.\u0275fac=function(r){return new(r||e)(U(zl))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const X2=/^\)\]\}',?\n/;function PS(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let Ap=(()=>{class e{constructor(){this.fetchImpl=H(tW,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=H(Ee)}handle(t){return new At(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(Fp,o=>r.error(new Ii({error:o}))),()=>i.abort()})}doRequest(t,r,i){var o=this;return(0,u.A)(function*(){const c=o.createRequestInit(t);let l;try{const b=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:r,...c}));(function nW(e){e.then(Fp,Fp)})(b),i.next({type:Nr.Sent}),l=yield b}catch(b){return void i.error(new Ii({error:b,status:b.status??0,statusText:b.statusText,url:t.urlWithParams,headers:b.headers}))}const _=new on(l.headers),d=l.statusText,p=PS(l)??t.urlWithParams;let h=l.status,m=null;if(t.reportProgress&&i.next(new ql({headers:_,status:h,statusText:d,url:p})),l.body){const b=l.headers.get("content-length"),S=[],C=l.body.getReader();let D,W,N=0;const q=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular((0,u.A)(function*(){for(;;){const{done:he,value:Pe}=yield C.read();if(he)break;if(S.push(Pe),N+=Pe.length,t.reportProgress){W="text"===t.responseType?(W??"")+(D??=new TextDecoder).decode(Pe,{stream:!0}):void 0;const ir=()=>i.next({type:Nr.DownloadProgress,total:b?+b:void 0,loaded:N,partialText:W});q?q.run(ir):ir()}}}));const oe=o.concatChunks(S,N);try{const he=l.headers.get("Content-Type")??"";m=o.parseBody(t,oe,he)}catch(he){return void i.error(new Ii({error:he,headers:new on(l.headers),status:l.status,statusText:l.statusText,url:PS(l)??t.urlWithParams}))}}0===h&&(h=m?200:0),h>=200&&h<300?(i.next(new ps({body:m,headers:_,status:h,statusText:d,url:p})),i.complete()):i.error(new Ii({error:m,headers:_,status:h,statusText:d,url:p}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const o=(new TextDecoder).decode(r).replace(X2,"");return""===o?null:JSON.parse(o);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,c)=>r[o]=c.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let o=0;for(const c of t)i.set(c,o),o+=c.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();class tW{}function Fp(){}function VS(e,n){return n(e)}function rW(e,n){return(t,r)=>n.intercept(t,{handle:i=>e(i,r)})}const iW=new V(""),ca=new V(""),WS=new V(""),jS=new V("",{providedIn:"root",factory:()=>!0});function oW(){let e=null;return(n,t)=>{null===e&&(e=(H(iW,{optional:!0})??[]).reduceRight(rW,VS));const r=H(hr);if(H(jS)){const o=r.add();return e(n,t).pipe(tS(()=>r.remove(o)))}return e(n,t)}}let BS=(()=>{class e extends zl{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=H(hr),this.contributeToStability=H(jS)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(ca),...this.injector.get(WS,[])]));this.chain=r.reduceRight((i,o)=>function sW(e,n,t){return(r,i)=>function f1(e,n){e instanceof Fs&&e.assertNotDestroyed();const r=dr(e),i=Ft(void 0);try{return n()}finally{dr(r),Ft(i)}}(t,()=>n(r,o=>e(o,i)))}(i,o,this.injector),VS)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(tS(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(U(Ul),U(Zt))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const _W=/^\)\]\}',?\n/;let zS=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new F(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?up(r.\u0275loadImpl()):eS(null)).pipe(function QP(e,n){return Pr((t,r)=>{let i=null,o=0,c=!1;const l=()=>c&&!i&&r.complete();t.subscribe(lr(r,_=>{i?.unsubscribe();let d=0;const p=o++;fs(e(_,p)).subscribe(i=lr(r,h=>r.next(n?n(_,h,p,d++):h),()=>{i=null,l()}))},()=>{c=!0,l()}))})}(()=>new At(o=>{const c=r.build();if(c.open(t.method,t.urlWithParams),t.withCredentials&&(c.withCredentials=!0),t.headers.forEach((S,C)=>c.setRequestHeader(S,C.join(","))),t.headers.has("Accept")||c.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const S=t.detectContentTypeHeader();null!==S&&c.setRequestHeader("Content-Type",S)}if(t.responseType){const S=t.responseType.toLowerCase();c.responseType="json"!==S?S:"text"}const l=t.serializeBody();let _=null;const d=()=>{if(null!==_)return _;const S=c.statusText||"OK",C=new on(c.getAllResponseHeaders()),N=function dW(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(c)||t.url;return _=new ql({headers:C,status:c.status,statusText:S,url:N}),_},p=()=>{let{headers:S,status:C,statusText:N,url:D}=d(),W=null;204!==C&&(W=typeof c.response>"u"?c.responseText:c.response),0===C&&(C=W?200:0);let q=C>=200&&C<300;if("json"===t.responseType&&"string"==typeof W){const oe=W;W=W.replace(_W,"");try{W=""!==W?JSON.parse(W):null}catch(he){W=oe,q&&(q=!1,W={error:he,text:W})}}q?(o.next(new ps({body:W,headers:S,status:C,statusText:N,url:D||void 0})),o.complete()):o.error(new Ii({error:W,headers:S,status:C,statusText:N,url:D||void 0}))},h=S=>{const{url:C}=d(),N=new Ii({error:S,status:c.status||0,statusText:c.statusText||"Unknown Error",url:C||void 0});o.error(N)};let m=!1;const w=S=>{m||(o.next(d()),m=!0);let C={type:Nr.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(C.total=S.total),"text"===t.responseType&&c.responseText&&(C.partialText=c.responseText),o.next(C)},b=S=>{let C={type:Nr.UploadProgress,loaded:S.loaded};S.lengthComputable&&(C.total=S.total),o.next(C)};return c.addEventListener("load",p),c.addEventListener("error",h),c.addEventListener("timeout",h),c.addEventListener("abort",h),t.reportProgress&&(c.addEventListener("progress",w),null!==l&&c.upload&&c.upload.addEventListener("progress",b)),c.send(l),o.next({type:Nr.Sent}),()=>{c.removeEventListener("error",h),c.removeEventListener("abort",h),c.removeEventListener("load",p),c.removeEventListener("timeout",h),t.reportProgress&&(c.removeEventListener("progress",w),null!==l&&c.upload&&c.upload.removeEventListener("progress",b)),c.readyState!==c.DONE&&c.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(U(vS))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const Rp=new V(""),US=new V("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),$S=new V("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class qS{}let gW=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=_S(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(U(wn),U(wr),U(US))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();function hW(e,n){const t=e.url.toLowerCase();if(!H(Rp)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=H(qS).getToken(),i=H($S);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var kr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(kr||{});const GS=new V("");class IW extends XP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Op extends IW{static makeCurrent(){!function YP(e){nS??=e}(new Op)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function MW(){return la=la||document.querySelector("base"),la?la.getAttribute("href"):null}();return null==t?null:function NW(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){la=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return _S(document.cookie,n)}}let la=null,AW=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const xp=new V("");let tC=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new F(5101,!1);return this._eventNameToPlugin.set(t,r),r}static{this.\u0275fac=function(r){return new(r||e)(U(xp),U(Ee))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();class nC{constructor(n){this._doc=n}}const Lp="ng-app-id";let rC=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=bS(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Lp}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(Lp),o;{const c=this.doc.createElement("style");return this.nonce&&c.setAttribute("nonce",this.nonce),c.textContent=r,this.platformIsServer&&c.setAttribute(Lp,this.appId),t.appendChild(c),c}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),o=this.styleRef,c=o.get(r)?.elements;c?c.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(U(wn),U(oo),U(Wm,8),U(wr))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();const Pp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Vp=/%COMP%/g,xW=new V("",{providedIn:"root",factory:()=>!0});function iC(e,n){return n.map(t=>t.replace(Vp,e))}let oC=(()=>{class e{constructor(t,r,i,o,c,l,_,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=c,this.platformId=l,this.ngZone=_,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=bS(l),this.defaultRenderer=new Wp(t,c,_,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===un.ShadowDom&&(r={...r,encapsulation:un.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof cC?i.applyToHost(t):i instanceof jp&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const c=this.doc,l=this.ngZone,_=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case un.Emulated:o=new cC(_,d,r,this.appId,p,c,l,h);break;case un.ShadowDom:return new WW(_,d,t,r,c,l,this.nonce,h);default:o=new jp(_,d,r,p,c,l,h)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(U(tC),U(rC),U(oo),U(xW),U(wn),U(wr),U(Ee),U(Wm))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})();class Wp{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Pp[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(aC(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(aC(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new F(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=Pp[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=Pp[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(br.DashCase|br.Important)?n.style.setProperty(t,r,i&br.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&br.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=na().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function aC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class WW extends Wp{constructor(n,t,r,i,o,c,l,_){super(n,o,c,_),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=iC(i.id,i.styles);for(const p of d){const h=document.createElement("style");l&&h.setAttribute("nonce",l),h.textContent=p,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class jp extends Wp{constructor(n,t,r,i,o,c,l,_){super(n,o,c,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=_?iC(_,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class cC extends jp{constructor(n,t,r,i,o,c,l,_){const d=i+"-"+r.id;super(n,t,r,o,c,l,_,d),this.contentAttr=function LW(e){return"_ngcontent-%COMP%".replace(Vp,e)}(d),this.hostAttr=function PW(e){return"_nghost-%COMP%".replace(Vp,e)}(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}const lC=["alt","control","meta","shift"],BW={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},HW={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};function uC(e){return{appProviders:[...ZW,...e?.providers??[]],platformProviders:KW}}const KW=[{provide:wr,useValue:"browser"},{provide:Vm,useValue:function $W(){Op.makeCurrent()},multi:!0},{provide:wn,useFactory:function GW(){return function JI(e){B_=e}(document),document},deps:[]}],ZW=[{provide:Xu,useValue:"root"},{provide:Fn,useFactory:function qW(){return new Fn},deps:[]},{provide:xp,useClass:(()=>{class e extends nC{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})(),multi:!0,deps:[wn,Ee,wr]},{provide:xp,useClass:(()=>{class e extends nC{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),c=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>na().onAndCancel(t,o.domEventName,c))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let c="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),c="code."),lC.forEach(d=>{const p=r.indexOf(d);p>-1&&(r.splice(p,1),c+=d+".")}),c+=o,0!=r.length||0===o.length)return null;const _={};return _.domEventName=i,_.fullKey=c,_}static matchEventFullKeyCode(t,r){let i=BW[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),lC.forEach(c=>{c!==i&&(0,HW[c])(t)&&(o+=c+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static{this.\u0275fac=function(r){return new(r||e)(U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac})}}return e})(),multi:!0,deps:[wn]},oC,rC,tC,{provide:Hd,useExisting:oC},{provide:vS,useClass:AW,deps:[]},[]];var A=a(8825);const Mi=new V("SDK"),fC=new V("wasm_asset_path"),pC=new V("rpc_address"),gC=new V("node_address"),hC=new V("verbosity"),nj=function tj(e,n){const t={value:void 0};return[{provide:q0,useFactory:(r,i,o,c)=>(0,u.A)(function*(){return t.value=yield n({wasm_asset_path:r,rpc_address:i,node_address:o,verbosity:c})}),multi:!0,deps:[fC,pC,gC,hC]},{provide:e,useFactory:()=>{if(!H(Uf).done)throw new Error(`Cannot inject ${e} until bootstrap is complete.`);return t.value}}]}(Mi,function(){var e=(0,u.A)(function*(n){return(yield(0,A.Ay)(n.wasm_asset_path))&&new A.hp(n.rpc_address,n.node_address,n.verbosity)});return function(t){return e.apply(this,arguments)}}());let rj=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({providers:nj,imports:[Ke]})}}return e})();const Wn=new V("EnvironmentConfig"),Bp=new V("EnvironmentConfig"),mC=["deploy","transfer","put_deploy","speculative_deploy","speculative_transfer","speculative_exec_deploy","sign_deploy","call_entrypoint_deploy","install"],sj=["make_deploy","make_transfer",...mC],an={wasm_asset_path:"assets/casper_rust_wasm_sdk_bg.wasm",default_action:"get_node_status",verbosity:A.WT.High,minimum_transfer:"2500000000",TTL:"30m",standard_payment_amount:"100000000",default_pricing_mode:A.MK.Fixed,default_gas_price_tolerance:"1",default_additional_computation_factor:"0",default_is_install_upgrade:!0,action_needs_secret_key:mC,action_needs_public_key:sj,networks:{"js-node-launcher":{rpc_address:"http://localhost:7777",node_address:"localhost:7779",stream_address:"http://localhost:9999/events/main",chain_name:"casper-net-1"},ntcl:{rpc_address:"http://localhost:11101",node_address:"localhost:4300",stream_address:"http://localhost:18101/events/main",chain_name:"casper-net-1"},integration:{rpc_address:"https://rpc.integration.casperlabs.io",node_address:"localhost:7779",stream_address:"https://events.integration.casperlabs.io/events/main",chain_name:"integration-test"},testnet:{rpc_address:"https://rpc.testnet.casperlabs.io",node_address:"localhost:7779",stream_address:"https://events.testnet.casperlabs.io/events/main",chain_name:"casper-test"},mainnet:{rpc_address:"https://rpc.mainnet.casperlabs.io",node_address:"localhost:7779",stream_address:"https://events.mainnet.casperlabs.io/events/main",chain_name:"casper"},custom:{rpc_address:"http://3.136.227.9:7777",node_address:"localhost:4300",stream_address:"http://3.136.227.9:9999/events/main",chain_name:"casper-test"},dev:{rpc_address:"http://localhost:4200",node_address:"localhost:4300",stream_address:"http://localhost:4200/events/main",chain_name:"casper-net-1"}},localhost:"localhost",app_port:"4200",default_port:"7777",default_protocol:"http://"},Hp={production:!0,default_network:"integration",localhost_to_gateway:!1},{isArray:ij}=Array,{getPrototypeOf:oj,prototype:aj,keys:cj}=Object;const{isArray:_j}=Array;function pj(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function gj(...e){const n=function aP(e){return Ve(sp(e))?e.pop():void 0}(e),{args:t,keys:r}=function lj(e){if(1===e.length){const n=e[0];if(ij(n))return{args:n,keys:null};if(function uj(e){return e&&"object"==typeof e&&oj(e)===aj}(n)){const t=cj(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new At(o=>{const{length:c}=t;if(!c)return void o.complete();const l=new Array(c);let _=c,d=c;for(let p=0;p{h||(h=!0,d--),l[p]=m},()=>_--,void 0,()=>{(!_||!h)&&(d||o.next(r?pj(r,l):l),o.complete())}))}});return n?i.pipe(function fj(e){return ur(n=>function dj(e,n){return _j(n)?e(...n):e(n)}(e,n))}(n)):i}let wC=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(r){return new(r||e)(T(ts),T(Xt))}}static{this.\u0275dir=ne({type:e})}}return e})(),ms=(()=>{class e extends wC{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,features:[Se]})}}return e})();const jn=new V(""),hj={provide:jn,useExisting:Te(()=>zp),multi:!0};let zp=(()=>{class e extends ms{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&X("change",function(c){return i.onChange(c.target.checked)})("blur",function(){return i.onTouched()})},features:[Le([hj]),Se]})}}return e})();const mj={provide:jn,useExisting:Te(()=>ua),multi:!0},yj=new V("");let ua=(()=>{class e extends wC{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wj(){const e=na()?na().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(r){return new(r||e)(T(ts),T(Xt),T(yj,8))}}static{this.\u0275dir=ne({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&X("input",function(c){return i._handleInput(c.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(c){return i._compositionEnd(c.target.value)})},features:[Le([mj]),Se]})}}return e})();function Ar(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function yC(e){return null!=e&&"number"==typeof e.length}const yt=new V(""),Fr=new V(""),bj=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class vj{static min(n){return function bC(e){return n=>{if(Ar(n.value)||Ar(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(Ar(n.value)||Ar(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function EC(e){return Ar(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function SC(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function CC(e){return Ar(e.value)||bj.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function DC(e){return n=>Ar(n.value)||!yC(n.value)?null:n.value.lengthyC(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function IC(e){if(!e)return Jl;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Ar(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function Jl(e){return null}function MC(e){return null!=e}function NC(e){return gl(e)?up(e):e}function kC(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function AC(e,n){return n.map(t=>t(e))}function FC(e){return e.map(n=>function Ej(e){return!e.validate}(n)?n:t=>n.validate(t))}function RC(e){if(!e)return null;const n=e.filter(MC);return 0==n.length?null:function(t){return kC(AC(t,n))}}function Up(e){return null!=e?RC(FC(e)):null}function OC(e){if(!e)return null;const n=e.filter(MC);return 0==n.length?null:function(t){return gj(AC(t,n).map(NC)).pipe(ur(kC))}}function $p(e){return null!=e?OC(FC(e)):null}function xC(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function LC(e){return e._rawValidators}function PC(e){return e._rawAsyncValidators}function qp(e){return e?Array.isArray(e)?e:[e]:[]}function Zl(e,n){return Array.isArray(e)?e.includes(n):e===n}function VC(e,n){const t=qp(n);return qp(e).forEach(i=>{Zl(t,i)||t.push(i)}),t}function WC(e,n){return qp(n).filter(t=>!Zl(e,t))}class jC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Up(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=$p(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Nt extends jC{get formDirective(){return null}get path(){return null}}class Rr extends jC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class BC{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Ql=(()=>{class e extends BC{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(T(Rr,2))}}static{this.\u0275dir=ne({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&el("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Se]})}}return e})(),_a=(()=>{class e extends BC{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(T(Nt,10))}}static{this.\u0275dir=ne({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&el("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Se]})}}return e})();const da="VALID",Xl="INVALID",Ni="PENDING",fa="DISABLED";class ki{}class zC extends ki{constructor(n,t){super(),this.value=n,this.source=t}}class Jp extends ki{constructor(n,t){super(),this.pristine=n,this.source=t}}class Zp extends ki{constructor(n,t){super(),this.touched=n,this.source=t}}class eu extends ki{constructor(n,t){super(),this.status=n,this.source=t}}class Ij extends ki{constructor(n){super(),this.source=n}}class Mj extends ki{constructor(n){super(),this.source=n}}function Qp(e){return(tu(e)?e.validators:e)||null}function Yp(e,n){return(tu(n)?n.asyncValidators:e)||null}function tu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function UC(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new F(1e3,"");if(!r[t])throw new F(1001,"")}function $C(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new F(1002,"")})}class nu{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ta(()=>this.statusReactive()),this.statusReactive=ti(void 0),this._pristine=ta(()=>this.pristineReactive()),this.pristineReactive=ti(!0),this._touched=ta(()=>this.touchedReactive()),this.touchedReactive=ti(!1),this._events=new Lr,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Vn(this.statusReactive)}set status(n){Vn(()=>this.statusReactive.set(n))}get valid(){return this.status===da}get invalid(){return this.status===Xl}get pending(){return this.status==Ni}get disabled(){return this.status===fa}get enabled(){return this.status!==fa}get pristine(){return Vn(this.pristineReactive)}set pristine(n){Vn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Vn(this.touchedReactive)}set touched(n){Vn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(VC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(VC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(WC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(WC(n,this._rawAsyncValidators))}hasValidator(n){return Zl(this._rawValidators,n)}hasAsyncValidator(n){return Zl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Zp(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new Zp(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Jp(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new Jp(!0,r))}markAsPending(n={}){this.status=Ni;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new eu(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=fa,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new zC(this.value,r)),this._events.next(new eu(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=da,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===da||this.status===Ni)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new zC(this.value,t)),this._events.next(new eu(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fa:da}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Ni,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=NC(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new eu(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new Fe,this.statusChanges=new Fe}_calculateStatus(){return this._allControlsDisabled()?fa:this.errors?Xl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ni)?Ni:this._anyControlsHaveStatus(Xl)?Xl:da}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),i&&this._events.next(new Jp(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Zp(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){tu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Nj(e){return Array.isArray(e)?Up(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function kj(e){return Array.isArray(e)?$p(e):e||null}(this._rawAsyncValidators)}}class pa extends nu{constructor(n,t,r){super(Qp(t),Yp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){$C(this,0,n),Object.keys(n).forEach(r=>{UC(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class qC extends pa{}const Ai=new V("CallSetDisabledState",{providedIn:"root",factory:()=>ru}),ru="always";function ga(e,n,t=ru){Xp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function Fj(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&GC(e,n)})}(e,n),function Oj(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function Rj(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&GC(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function Aj(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function iu(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),au(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ou(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Xp(e,n){const t=LC(e);null!==n.validator?e.setValidators(xC(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=PC(e);null!==n.asyncValidator?e.setAsyncValidators(xC(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();ou(n._rawValidators,i),ou(n._rawAsyncValidators,i)}function au(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=LC(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(c=>c!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=PC(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(c=>c!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return ou(n._rawValidators,r),ou(n._rawAsyncValidators,r),t}function GC(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ZC(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function QC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Fi=class extends nu{constructor(n=null,t,r){super(Qp(t),Yp(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),tu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=QC(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){ZC(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){ZC(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){QC(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};Promise.resolve();let nD=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ne({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();const sg=new V(""),Kj={provide:Nt,useExisting:Te(()=>ws)};let ws=(()=>{class e extends Nt{get submitted(){return Vn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=ta(()=>this._submittedReactive()),this._submittedReactive=ti(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Fe,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(au(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return ga(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){iu(t.control||null,t,!1),function Vj(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function JC(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Ij(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new Mj(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(iu(r||null,t),(e=>e instanceof Fi)(i)&&(ga(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function KC(e,n){Xp(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function xj(e,n){return au(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Xp(this.form,this),this._oldForm&&au(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(r){return new(r||e)(T(yt,10),T(Fr,10),T(Ai,8))}}static{this.\u0275dir=ne({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&X("submit",function(c){return i.onSubmit(c)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Le([Kj]),Se,Kn]})}}return e})();const Qj={provide:Rr,useExisting:Te(()=>ma)};let ma=(()=>{class e extends Rr{set isDisabled(t){}static{this._ngModelWarningSentOnce=!1}constructor(t,r,i,o,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.name=null,this.update=new Fe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function ng(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===ua?t=o:function Pj(e){return Object.getPrototypeOf(e.constructor)===ms}(o)?r=o:i=o}),i||r||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function tg(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function su(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(r){return new(r||e)(T(Nt,13),T(yt,10),T(Fr,10),T(jn,10),T(sg,8))}}static{this.\u0275dir=ne({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Le([Qj]),Se,Kn]})}}return e})();const Yj={provide:jn,useExisting:Te(()=>cu),multi:!0};function cD(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let cu=(()=>{class e extends ms{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=cD(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function Xj(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){1&r&&X("change",function(c){return i.onChange(c.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Le([Yj]),Se]})}}return e})(),lD=(()=>{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(cD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(T(Xt),T(ts),T(cu,9))}}static{this.\u0275dir=ne({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();const eB={provide:jn,useExisting:Te(()=>ag),multi:!0};function uD(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let ag=(()=>{class e extends ms{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(o=>this._getOptionId(o));r=(o,c)=>{o._setSelected(i.indexOf(c.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const c=o;for(let l=0;l{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){1&r&&X("change",function(c){return i.onChange(c.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Le([eB]),Se]})}}return e})(),_D=(()=>{class e{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(uD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(uD(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(T(Xt),T(ts),T(ag,9))}}static{this.\u0275dir=ne({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();let ys=(()=>{class e{constructor(){this._validator=Jl}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Jl,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ne({type:e,features:[Kn]})}}return e})();const cB={provide:yt,useExisting:Te(()=>lg),multi:!0};let lg=(()=>{class e extends ys{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function dD(e){return"number"==typeof e?e:parseInt(e,10)}(t),this.createValidator=t=>TC(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Dt("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Le([cB]),Se]})}}return e})();const lB={provide:yt,useExisting:Te(()=>ug),multi:!0};let ug=(()=>{class e extends ys{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>IC(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=_t(e)))(i||e)}})()}static{this.\u0275dir=ne({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Dt("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},features:[Le([lB]),Se]})}}return e})(),uB=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({})}}return e})();class yD extends nu{constructor(n,t,r){super(Qp(t),Yp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){$C(this,0,n),n.forEach((r,i)=>{UC(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function bD(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let _B=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return bD(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new pa(i,o)}record(t,r=null){const i=this._reduceControls(t);return new qC(i,r)}control(t,r,i){let o={};return this.useNonNullable?(bD(r)?o=r:(o.validators=r,o.asyncValidators=i),new Fi(t,{...o,nonNullable:!0})):new Fi(t,r,i)}array(t,r,i){const o=t.map(c=>this._createControl(c));return new yD(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Fi||t instanceof nu?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),bs=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:sg,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ai,useValue:t.callSetDisabledState??ru}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({imports:[uB]})}}return e})();const vD={id:"eraId",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Era Id",name:"era_id",controlName:"eraId",placeholder:"Era Id",e2e:"eraIdElt"},ED={id:"validatorKey",type:"search",wrap_class:"col-lg-9 mb-2",class:"form-control",label:"Validator Key",name:"validator_key",controlName:"validatorKey",placeholder:"Validator Key",e2e:"validatorKeyElt"},SD={id:"key",type:"search",wrap_class:"col-lg-9 mb-2",class:"form-control",label:"Key",name:"key",controlName:"key",placeholder:"Key",e2e:"KeyElt"},Ri={id:"stateRootHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"State Root Hash",name:"state_root_hash",controlName:"stateRootHash",placeholder:"0x",e2e:"stateRootHashElt"},wa={id:"paymentAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Payment Amount",name:"payment_amount",controlName:"paymentAmount",placeholder:"",e2e:"paymentAmountElt",change:"motesToCSPR"},Oi={id:"TTLElt",type:"search",wrap_class:"col-lg-2 mb-2",class:"form-control",label:"TTL",name:"ttl",controlName:"TTL",e2e:"TTLElt",config_name:"TTL"},CD={id:"sessionHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Smart Contract hash or Package hash",name:"session_hash",controlName:"sessionHash",placeholder:"Contract Hash or Package Hash",e2e:"sessionHashElt",disabled_when:["has_wasm","sessionName.value"]},DD={id:"entityHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Entity hash or Package hash",name:"entity_hash",controlName:"entityHash",placeholder:"Entity Hash (entity-contract-0x) or Package Hash (package-0x)",e2e:"entityHashElt",disabled_when:["has_wasm","entityAlias.value"]},lu={id:"callPackageElt",type:"checkbox",wrap_class:"col-xl-1 col-lg-2 mb-2",class:"form-check-input mt-0",label:"Call Package",name:"call_package",controlName:"callPackage",placeholder:"",e2e:"callPackageElt",label_class:"form-label",disabled_when:["has_wasm"]},uu={id:"versionElt",type:"search",wrap_class:"col-xl-3 mb-2",class:"form-control",label:"Version",name:"version",controlName:"version",placeholder:"1, empty last",e2e:"versionElt",disabled_when:["has_wasm"]},ya={id:"gasPriceToleranceElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Gas Price Tolerance",name:"gas_price_tolerance",controlName:"gasPriceTolerance",placeholder:"1, empty default",e2e:"gasPriceToleranceElt"},_g={id:"additionalComputationFactorElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Computation Factor",name:"additional_computation_factor",controlName:"additionalComputationFactor",placeholder:"0, empty default",e2e:"additionalComputationFactorElt",disabled_when:["fixedPricingMode"]},TD={id:"sessionNameElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Smart Contract name or Package name",name:"session_name",controlName:"sessionName",placeholder:"Counter",e2e:"sessionNameElt",disabled_when:["has_wasm","sessionHash.value"]},ID={id:"entityAliasElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity alias or Package alias",name:"entity_alias",controlName:"entityAlias",placeholder:"Counter",e2e:"entityAliasElt",disabled_when:["has_wasm","entityHash.value"]},_u={id:"entryPointElt",type:"search",wrap_class:"col-lg-5 mb-2",class:"form-control",label:"Entry point",name:"entry_point",controlName:"entryPoint",placeholder:"counter_inc",e2e:"entryPointElt",disabled_when:["has_wasm"]},ba={id:"argsSimpleElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args",name:"args_simple",controlName:"argsSimple",placeholder:"foo:Bool='true', bar:String='value'",e2e:"argsSimpleElt",disabled_when:["argsJson.value"],storage_name:"args_simple"},va={id:"argsJsonElt",type:"textarea",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args Json",name:"args_json",controlName:"argsJson",placeholder:'Args as Json [{ "name": "foo", "type": "U256", "value": 1 }]',e2e:"argsJsonElt",disabled_when:["argsSimple.value"],storage_name:"args_json"},MD={id:"finalizedApprovalsElt",type:"checkbox",wrap_class:"col-lg-3 mt-3 mt-xl-0",class:"form-check-input mt-0",label:"Finalized approvals",name:"finalized_approvals",controlName:"finalizedApprovals",placeholder:"",e2e:"finalizedApprovalsElt",label_class:"form-label"},ND={id:"seedEntityHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity Hash",name:"seed_entity_hash",controlName:"seedEntityHash",placeholder:"entity-contract-0x",e2e:"seedEntityHashElt",enabled_when:["newFromEntityInfo"]},kD={id:"seedNameElt",type:"search",wrap_class:"col-lg-6 mb-2",class:"form-control",label:"Dictionary Name",name:"seed_name",controlName:"seedName",placeholder:"events",e2e:"seedNameElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromEntityInfo"]},AD={id:"itemKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Item key",name:"item_key",controlName:"itemKey",placeholder:"Item key string",e2e:"itemKeyElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromSeedUref","newFromEntityInfo"]},FD={id:"queryKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Key",name:"query_key",controlName:"queryKey",placeholder:"uref-0x || hash-0x || account-hash-0x",e2e:"queryKeyElt"},MB={...FD,label:"Contract Hash",placeholder:"hash-0x"},dg={id:"queryPathElt",type:"search",wrap_class:"col-lg-4 mb-2",class:"form-control",label:"Path",name:"query_path",controlName:"queryPath",placeholder:"counter/count",e2e:"queryPathElt"},fg={id:"deployJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Deploy as Json string",name:"deploy_json",controlName:"deployJson",placeholder:"Deploy as Json string",e2e:"deployJsonElt",state_name:["deploy_json"]},pg={id:"transactionJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Transaction as Json string",name:"transaction_json",controlName:"transactionJson",placeholder:"Transaction as Json string",e2e:"transactionJsonElt",state_name:["transaction_json"]},gg={id:"selectPricingMode",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Pricing mode",label_class:"input-group-text",name:"pricing_mode",controlName:"selectPricingMode",e2e:"selectPricingModeElt",options:[{value:A.MK.Classic.toString(),label:"Classic",default:an.default_pricing_mode===A.MK.Classic},{value:A.MK.Fixed.toString(),label:"Fixed",default:an.default_pricing_mode===A.MK.Fixed}]},hg={id:"selectTransactionCategory",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Category",label_class:"input-group-text",name:"transaction_category",controlName:"selectTransactionCategory",e2e:"selectTransactionCategoryElt",options:[{value:"true",label:"Install & Upgrade",default:!0===an.default_is_install_upgrade},{value:"false",label:"Session",default:!1===an.default_is_install_upgrade}],enabled_when:["has_wasm"]},bt=[[{input:{id:"blockIdentifierHeightElt",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Block Height",name:"block_identifier_height",controlName:"blockIdentifierHeight",placeholder:"Block Height",e2e:"blockIdentifierHeightElt"}},{input:{id:"blockIdentifierHashElt",type:"search",wrap_class:"col-lg-9 col-xl-8 mb-2",class:"form-control",label:"Block Hash",name:"block_identifier_hash",controlName:"blockIdentifierHash",placeholder:"Block Hash",e2e:"blockIdentifierHashElt"}}]],kB=[...bt,[{input:{id:"accountIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Account identifier",name:"account_identifier",controlName:"accountIdentifier",placeholder:"Public Key, AccountHash",e2e:"accountIdentifierElt",state_name:["account_hash","public_key"]},required:!0}]],AB=[...bt,[{input:{id:"entityIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Entity identifier",name:"entity_identifier",controlName:"entityIdentifier",placeholder:"Public Key, AccountHash, Entity",e2e:"entityIdentifierElt",state_name:["account_hash","public_key","entity"]},required:!0}]],FB=[[{input:Ri}],[{input:{id:"purseUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Uref",name:"purse_uref",controlName:"purseUref",placeholder:"uref-0x",e2e:"purseUrefElt",state_name:["main_purse"]},required:!0}]],RD=[...bt,[{input:Ri}],[{input:{id:"purseIdentifierElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Identifier",name:"purse_identifier",controlName:"purseIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"purseIdentifierElt",state_name:["main_purse","account_hash","public_key"]},required:!0}]],RB=[...bt,[{input:Ri}],[{input:FD,required:!0}],[{input:dg}]],OB=[[{input:Ri}],[{input:ND,required:!0}],[{input:kD,required:!0}],[{input:AD,required:!0}]],xB=[...bt,[{input:MB,required:!0}],[{input:dg,required:!0}]],LB=[[{input:Ri}],[{select:{id:"selectDictIdentifierElt",type:"select",wrap_class:"mt-3 col-lg-5 mb-4",class:"form-select form-control form-control-sm",label:"Dictionary identifier",label_class:"input-group-text",name:"select_dict_identifier",controlName:"selectDictIdentifier",e2e:"selectDictIdentifierElt",state_name:["select_dict_identifier"],options:[{value:"newFromSeedUref",label:"From Dictionary Uref"},{value:"newFromContractInfo",label:"From Contract Info (depr.)"},{value:"newFromEntityInfo",label:"From Entity Info",default:!0},{value:"newFromAccountInfo",label:"From Account Info"},{value:"newFromDictionaryKey",label:"From Dictionary Key"}]}}],[{input:{id:"seedContractHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Contract Hash",name:"seed_contract_hash",controlName:"seedContractHash",placeholder:"hash-0x",e2e:"seedContractHashElt",enabled_when:["newFromContractInfo"]},required:!0}],[{input:ND,required:!0}],[{input:{id:"seedAccountHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Account Hash",name:"seed_account_hash",controlName:"seedAccountHash",placeholder:"account-hash-0x",e2e:"seedAccountHashElt",enabled_when:["newFromAccountInfo"]},required:!0}],[{input:{id:"seedUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Uref",name:"seed_uref",controlName:"seedUref",placeholder:"uref-0x",e2e:"seedUrefElt",enabled_when:["newFromSeedUref"]},required:!0}],[{input:kD,required:!0}],[{input:AD,required:!0}],[{input:{id:"seedKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Key",name:"seed_key",controlName:"seedKey",placeholder:"dictionary-0x",e2e:"seedKeyElt",enabled_when:["newFromDictionaryKey"]},required:!0}]],PB=[[{input:{id:"deployHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Deploy Hash",name:"deploy_hash",controlName:"deployHash",placeholder:"0x",e2e:"deployHashElt"},required:!0},{input:MD}]],OD=[[{input:{id:"transactionHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Transaction Hash",name:"transaction_hash",controlName:"transactionHash",placeholder:"0x",e2e:"transactionHashElt"},required:!0},{input:MD}]],Ea=[[{input:{id:"transferAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Transfer Amount",name:"transfer_amount",controlName:"transferAmount",e2e:"transferAmountElt",config_name:"minimum_transfer",maxlength:"28",pattern:"\\d*",change:"motesToCSPR"},required:!0},{input:Oi}],[{input:{id:"targetAccountElt",type:"search",wrap_class:"col-xl-9",class:"form-control",label:"Target Account",name:"target_account",controlName:"targetAccount",placeholder:"Public Key, AccountHash, Purse URef",e2e:"targetAccountElt"},required:!0}]],xD=[...bt,...Ea],LD=[[{input:wa,required:!0},{input:Oi},{input:ya},{select:gg},{input:_g}],[{wasm_button:!0},{select:hg}],[{input:ba}],[{textarea:va}]],mg=[[{input:wa,required:!0},{input:Oi},{input:ya}],[{wasm_button:!0},{select:hg}],[{input:CD,required:!0},{input:lu},{input:uu}],[{input:TD,required:!0}],[{input:_u,required:!0}],[{input:ba}],[{textarea:va}]],Sa=[[{input:wa,required:!0},{input:Oi},{input:ya},{select:gg},{input:_g}],[{wasm_button:!0},{select:hg}],[{input:DD,required:!0},{input:lu},{input:uu}],[{input:ID,required:!0}],[{input:_u,required:!0}],[{input:ba}],[{textarea:va}]],VB=[...mg],WB=[...Sa],jB=[[{input:wa,required:!0},{input:Oi},{input:ya},{select:gg},{input:_g}],[{input:DD},{input:lu},{input:uu}],[{input:ID}],[{input:_u}],[{input:ba}],[{textarea:va}]],BB=[[{input:wa,required:!0},{input:Oi},{input:ya}],[{input:CD},{input:lu},{input:uu}],[{input:TD}],[{input:_u}],[{input:ba}],[{textarea:va}]],HB=[[{file_button:!0}],[{textarea:fg,required:!0}]],zB=[[{file_button:!0}],[{textarea:pg,required:!0}]],UB=[[{file_button:!0}],[{textarea:fg,required:!0}]],$B=[[{file_button:!0}],[{textarea:pg,required:!0}]],qB=[[{file_button:!0}],[{textarea:fg,required:!0}]],GB=[[{file_button:!0}],[{textarea:pg,required:!0}]],KB=[...bt,[{input:vD}],[{input:ED,required:!0}]],JB=[...bt,[{input:vD}],[{input:ED,required:!0}],[{input:{id:"delegatorKey",type:"search",wrap_class:"col-lg-9 mb-2",class:"form-control",label:"Delegator Key",name:"delegator_key",controlName:"delegatorKey",placeholder:"Delegator Key",e2e:"delegatorKeyElt"},required:!0}]],ZB=[[{input:{id:"recordId",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Record Id",name:"record_id",controlName:"recordId",placeholder:"Record Id",e2e:"recordIdElt"},required:!0}],[{input:SD,required:!0}]],QB=[...bt,[{input:Ri}],[{input:SD,required:!0}],[{input:dg}]],du=new Map([["call_entrypoint",jB],["call_entrypoint_deploy",BB],["deploy",mg],["get_account",kB],["get_balance",FB],["get_block",bt],["get_block_transfers",bt],["get_deploy",PB],["get_dictionary_item",LB],["get_era_info",bt],["get_era_summary",bt],["get_entity",AB],["get_state_root_hash",bt],["get_transaction",OD],["install",LD],["install_deploy",LD],["make_deploy",mg],["make_transaction",Sa],["make_transfer",Ea],["make_transfer_transaction",Ea],["put_deploy",UB],["put_transaction",$B],["query_balance",RD],["query_balance_details",RD],["query_contract_dict",OB],["query_contract_key",xB],["query_global_state",RB],["sign_deploy",qB],["sign_transaction",GB],["speculative_deploy",VB],["speculative_exec_deploy",HB],["speculative_exec",zB],["speculative_transaction",WB],["speculative_transfer",xD],["speculative_transfer_transaction",xD],["transaction",Sa],["transfer",Ea],["transfer_transaction",Ea],["get_binary_block_header",bt],["get_binary_signed_block",bt],["get_binary_transaction",OD],["get_binary_validator_reward",KB],["get_binary_delegator_reward",JB],["get_binary_read_record",ZB],["get_binary_global_state_item",QB],["get_binary_try_accept_transaction",Sa],["get_binary_try_speculative_execution",Sa]]);let cn=(()=>{class e{constructor(){this.state=new Mu({})}setState(t){const i={...this.state.getValue(),...t};this.state.next(i)}getState(){return this.state.asObservable()}getValue(){return this.state.getValue()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ca=(()=>{class e{constructor(t){this.document=t,this.prefix="casper-client",this.window=this.document.defaultView}setState(t){const i={...JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}"),...t};this.window?.localStorage.setItem(this.prefix,JSON.stringify(i))}get(t){return(JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}")||{})[t]}static{this.\u0275fac=function(r){return new(r||e)(U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vs=(()=>{class e{constructor(t,r,i,o){this.config=t,this.formBuilder=r,this.stateService=i,this.storageService=o,this.stateService.getState().subscribe(c=>{this.has_wasm=!!c?.has_wasm,c?.select_dict_identifier&&(this.select_dict_identifier=c.select_dict_identifier),c?.action&&this.action!==c.action&&(c.action&&(this.action=c.action),this.initializeForm()),c&&(this.state=c),this.action&&this.updateForm()}),this.form=this.defaultForm}get defaultForm(){const t={};return du.forEach(r=>{r.forEach(i=>{i.forEach(({input:o,textarea:c,select:l})=>{const _=o?.controlName||c?.controlName||l?.controlName||"";if(_&&(t[_]=new Fi(this.getDefaultOptionValue(l?.options))),l?.options&&"selectDictIdentifier"===_){const d=l?.options.find(p=>p.default)?.value||"";this.stateService.setState({select_dict_identifier:d})}})})}),this.formBuilder.group(t)}getDefaultOptionValue(t){const r=t&&t.find(i=>i.default);return r?r.value:null}initializeForm(){Object.values(this.form.controls).forEach(r=>{r.clearValidators(),r.markAsPristine(),r.disable()});const t=this.action&&du.get(this.action);t&&t.forEach(r=>{r.forEach(({input:i,textarea:o,select:c,required:l})=>{if(!i&&!o&&!c)return;const d=this.form.get(i?.controlName||o?.controlName||c?.controlName||"");if(!d)return;const p=i?.state_name||o?.state_name||c?.state_name||[],h=p&&p.find(b=>this.state[b]),m=i?.storage_name||o?.storage_name||c?.storage_name||"";let w=h?this.state[h]:"";if(w=m?this.storageService.get(m):w,w)w&&d.setValue(w);else if(i?.config_name){const b=this.config[i?.config_name]||"";b&&d.setValue(b),b&&(i.placeholder_config_value=b)}d.enable(),l&&(i&&(i.required=!0),o&&(o.required=!0),d.setValidators([vj.required]))})})}updateForm(){const t=this.action&&du.get(this.action);if(!t)return;const r=[];t.forEach(i=>{i.forEach(({input:o,textarea:c,select:l})=>{const _=o?.controlName||c?.controlName||l?.controlName||"";if(!_)return;const d=this.form.get(_);if(d){if(c){const p=c?.state_name||[],h=p&&p.find(w=>this.state[w]),m=h?this.state[h]:"";if(m&&d.setValue(m),c.disabled_when){const w=d.value&&c.disabled_when?.find(C=>C.includes("value")),b=w&&w.split(".")[0],S=b&&this.form?.get(b);S&&(S.disable(),r.push(b)),r.includes(c.controlName)||d.enable()}}else if(l&&l.enabled_when)this.has_wasm&&l.enabled_when?.includes("has_wasm")?d.enable():d.disable();else if(o){const p=o?.state_name||[],h=p&&p.find(w=>this.state[w]),m=h?this.state[h]:"";if(m&&d.setValue(m),o.enabled_when)"get_dictionary_item"===this.action&&this.select_dict_identifier&&!o.enabled_when?.includes(this.select_dict_identifier)?d.disable():this.select_dict_identifier&&d.enable();else if(o.disabled_when){const w=d.value&&o.disabled_when?.find(N=>N.includes("value")),b=w&&w.split(".")[0],S=b&&this.form?.get(b);S&&(S.disable(),r.push(b)),this.has_wasm&&o?.disabled_when?.includes("has_wasm")?(d.reset(),d.disable()):r.includes(o.controlName)||d.enable();const C=A.MK[this.state.pricing_mode]===A.MK.Classic;o?.disabled_when?.includes("fixedPricingMode")&&C&&(d.reset(),d.disable())}}if(o||c){const p=o?.storage_name||c?.storage_name||"";p&&this.storageService.setState({[p]:d.value})}}})})}get formFields(){return du}static{this.\u0275fac=function(r){return new(r||e)(U(Wn),U(_B),U(cn),U(Ca))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const YB=["template"],XB=(e,n)=>[e,n],eH=(e,n,t)=>[e,n,t];function tH(e,n){if(1&e&&(x(0,"span",10),re(1),L()),2&e){let t;const r=B(2),i=r.inputField,o=r.parentForm,c=B();P(),at("(",c.motesToCSPR(null==(t=o.get(i.controlName))?null:t.value)," CSPR)")}}function nH(e,n){if(1&e){const t=Re();$t(0,3),x(1,"input",11),X("change",function(){_e(t);const i=B(2).inputField;return de(B().onChange(i))}),L(),qt()}if(2&e){const t=B(2),r=t.inputField,i=t.parentForm,o=B();O("formGroup",i),P(),O("id",r.id)("type",r.type)("name",r.name)("maxlength",r.maxlength||"")("pattern",r.pattern||"")("formControlName",r.controlName)("placeholder",r.placeholder_config_value?"e.g. "+r.placeholder_config_value:r.placeholder||"")("ngClass",y0(10,eH,r.class||"form-control",o.isInvalid(r.controlName)?"is-invalid":"",o.isRequired(r)?"is-required":"")),Dt("e2e-id",r.e2e)}}function rH(e,n){if(1&e&&(x(0,"label",12),re(1),L()),2&e){const t=B(2).inputField;O("for",t.id),P(),at("e.g. ",t.placeholder,"")}}function sH(e,n){if(1&e&&(x(0,"label",12),re(1),L()),2&e){const t=B(2).inputField;O("for",t.id),P(),at("e.g. ",t.placeholder_config_value,"")}}function iH(e,n){if(1&e&&(x(0,"div",4)(1,"label",5),re(2),ie(3,tH,2,1,"span",6),L(),x(4,"div",7),ie(5,nH,2,14,"ng-container",8)(6,rH,2,2,"label",9)(7,sH,2,2,"label",9),L()()),2&e){let t,r;const i=B(),o=i.inputField,c=i.parentForm,l=ls(2);O("ngClass",o.wrap_class),P(),O("for",o.id)("ngClass",Ei(10,XB,o.label_class||"",null!=(t=c.get(o.controlName))&&t.disabled?"disabled":"")),P(),qo("",o.label,"",o.required?" *":""," "),P(),O("ngIf",(null==o.change?null:o.change.includes("motesToCSPR"))&&(null==(r=c.get(o.controlName))?null:r.value)),P(2),O("ngIf","checkbox"!==o.type)("ngIfElse",l),P(),O("ngIf",o.placeholder),P(),O("ngIf",o.placeholder_config_value)}}function oH(e,n){if(1&e&&pt(0,"input",13),2&e){const t=B().inputField;O("id",t.id)("name",t.name)("formControlName",t.controlName),Dt("e2e-id",t.e2e)}}function aH(e,n){if(1&e&&ie(0,iH,8,13,"div",2)(1,oH,1,4,"ng-template",3,1,_s),2&e){let t;const r=n.inputField,i=n.parentForm;O("ngIf",!(B().hidden_when_disabled&&null!=(t=i.get(r.controlName))&&t.disabled)),P(),O("formGroup",i)}}let PD=(()=>{class e{constructor(t){this.formService=t}onChange(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}isInvalid(t){const r=this.parentForm?.get(t);return!(!r?.enabled||!r?.dirty||r?.value||r?.valid)}isRequired(t){const r=this.parentForm?.get(t.controlName);return!(!r?.enabled||r?.dirty||r?.value||!t.required)}motesToCSPR(t){if(t)return t=this.parse_commas(t),(0,A.S3)(t)}parse_commas(t){return t.replace(/[,.]/g,"")}static{this.\u0275fac=function(r){return new(r||e)(T(vs))}}static{this.\u0275cmp=ct({type:e,selectors:[["ui-input"]],viewQuery:function(r,i){if(1&r&>(YB,7),2&r){let o;ht(o=mt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm",hidden_when_disabled:"hidden_when_disabled"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["checkboxContent",""],[3,"ngClass",4,"ngIf"],[3,"formGroup"],[3,"ngClass"],[3,"for","ngClass"],["class","fw-light small text-nowrap",4,"ngIf"],[1,"form-floating"],[3,"formGroup",4,"ngIf","ngIfElse"],[3,"for",4,"ngIf"],[1,"fw-light","small","text-nowrap"],[3,"change","id","type","name","maxlength","pattern","formControlName","placeholder","ngClass"],[3,"for"],["type","checkbox",3,"id","name","formControlName"]],template:function(r,i){1&r&&ie(0,aH,3,2,"ng-template",null,0,_s)},dependencies:[Ke,sr,sn,bs,ua,zp,Ql,_a,lg,ug,ws,ma],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return e})();const cH=["template"],VD=e=>[e];function lH(e,n){if(1&e&&(x(0,"option",7),re(1),L()),2&e){const t=n.$implicit,r=B(2);Nf("value",t.value),O("selected",t.default||r.select_dict_identifier===t.value),P(),at(" ",t.label," ")}}function uH(e,n){if(1&e){const t=Re();x(0,"div",1)(1,"div",2)(2,"label",3),re(3),L(),$t(4,4),x(5,"select",5),X("change",function(i){return _e(t),de(B().onChange(i))}),ie(6,lH,2,3,"option",6),L(),qt(),L()()}if(2&e){const t=n.inputField,r=n.parentForm;O("ngClass",t.wrap_class),P(2),O("for",t.id)("ngClass",tn(11,VD,t.label_class||"")),P(),us(t.label),P(),O("formGroup",r),P(),O("id",t.id)("name",t.name)("ngClass",tn(13,VD,t.class||"form-control"))("formControlName",t.controlName),Dt("e2e-id",t.e2e),P(),O("ngForOf",t.options)}}let WD=(()=>{class e{constructor(t,r,i){this.config=t,this.stateService=r,this.changeDetectorRef=i}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{setTimeout(()=>{t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier),this.changeDetectorRef.markForCheck()})})}onChange(t){const r=t.target?.value,i=t.target?.name;"select_dict_identifier"===i&&this.stateService.setState({select_dict_identifier:r}),"pricing_mode"===i&&this.stateService.setState({pricing_mode:A.MK[r].toString()})}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["ui-select"]],viewQuery:function(r,i){if(1&r&>(cH,7),2&r){let o;ht(o=mt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"input-group"],[3,"for","ngClass"],[3,"formGroup"],[3,"change","id","name","ngClass","formControlName"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(r,i){1&r&&ie(0,uH,7,15,"ng-template",null,0,_s)},dependencies:[Ke,sr,sa,bs,lD,_D,cu,Ql,_a,ws,ma],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}[_ngcontent-%COMP%]:disabled{color:#d3d3d3}"],changeDetection:0})}}return e})();const _H=["template"],dH=(e,n)=>[e,n];function fH(e,n){if(1&e&&(x(0,"label",6),re(1),L()),2&e){const t=B().inputField,r=B();O("for",t.id),P(),us(r.currentPlaceholder||t.placeholder)}}function pH(e,n){if(1&e){const t=Re();x(0,"div",1)(1,"div",2),$t(2,3),x(3,"textarea",4),X("change",function(i){const o=_e(t).inputField;return de(B().onChange(i,o))})("focus",function(i){return _e(t),de(B().onFocus(i))})("blur",function(i){return _e(t),de(B().onBlur(i))}),re(4," "),L(),ie(5,fH,2,2,"label",5),qt(),L()()}if(2&e){const t=n.inputField,r=n.parentForm,i=B();O("ngClass",t.wrap_class),P(2),O("formGroup",r),P(),O("id",t.id)("name",t.name)("formControlName",t.controlName)("placeholder",i.currentPlaceholder||t.placeholder||"")("ngClass",Ei(9,dH,t.class||"form-control",i.isInvalid(t.controlName)?"is-invalid":"")),Dt("e2e-id",t.e2e),P(2),O("ngIf",t.placeholder)}}let jD=(()=>{class e{constructor(t){this.formService=t,this.update_deploy_json=new Fe,this.update_transaction_json=new Fe,this.jsonPattern=/\[\{.*?\}\]/g}ngOnInit(){this.originalPlaceholder=this.inputField.placeholder||""}ngAfterViewInit(){this.initializePlaceholder()}isInvalid(t){const r=this.parentForm?.get(t);return!!this.parentForm?.touched&&!!r?.invalid}onChange(t,r){const i=t.target;i.name.includes("deploy")?this.update_deploy_json.emit(i.value):i.name.includes("transaction")?this.update_transaction_json.emit(i.value):this.updateForm(r)}onFocus(t){this.currentPlaceholder=this.removeJsonParts(t.target.placeholder)}onBlur(t){t.target.value||(this.currentPlaceholder=this.originalPlaceholder)}updateForm(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}removeJsonParts(t){return t.replace(this.jsonPattern,"").trim()}initializePlaceholder(){const t=this.parentForm.get(this.inputField.controlName);this.currentPlaceholder=t&&t.value?this.removeJsonParts(this.originalPlaceholder):this.originalPlaceholder}static{this.\u0275fac=function(r){return new(r||e)(T(vs))}}static{this.\u0275cmp=ct({type:e,selectors:[["ui-textarea"]],viewQuery:function(r,i){if(1&r&>(_H,7),2&r){let o;ht(o=mt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},outputs:{update_deploy_json:"update_deploy_json",update_transaction_json:"update_transaction_json"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"form-floating","mt-3"],[3,"formGroup"],[3,"change","focus","blur","id","name","formControlName","placeholder","ngClass"],[3,"for",4,"ngIf"],[3,"for"]],template:function(r,i){1&r&&ie(0,pH,6,12,"ng-template",null,0,_s)},dependencies:[Ke,sr,sn,bs,ua,Ql,_a,ws,ma],styles:["textarea[_ngcontent-%COMP%]{min-height:350px!important;white-space:pre-wrap}@media (max-width: 767px){textarea[_ngcontent-%COMP%]{min-height:200px!important}}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return e})();const gH=["wasmElt"],hH=["template"];function mH(e,n){if(1&e){const t=Re();x(0,"button",6),X("click",function(){return _e(t),de(B(2).onWasmClick())}),re(1," Wasm Module Bytes "),L()}}function wH(e,n){if(1&e){const t=Re();x(0,"span",7),X("click",function(){return _e(t),de(B(2).resetWasmClick())}),re(1),nc(),x(2,"svg",8),pt(3,"path",9),L()()}if(2&e){const t=B(2);P(),at(" ",t.file_name," ")}}function yH(e,n){if(1&e){const t=Re();x(0,"div",2)(1,"input",3,1),X("change",function(i){return _e(t),de(B().onWasmSelected(i))}),L(),ie(3,mH,2,0,"button",4)(4,wH,4,1,"span",5),L()}if(2&e){const t=B();P(3),O("ngIf",!t.file_name),P(),O("ngIf",t.file_name)}}let BD=(()=>{class e{constructor(){this.select_wasm=new Fe}onWasmSelected(t){var r=this;return(0,u.A)(function*(){r.file_name=r.wasmElt?.nativeElement.value.split("\\").pop();const i=t.target.files?.item(0),o=yield i?.arrayBuffer();r.wasm=o&&new Uint8Array(o),r.wasm?.buffer||r.resetWasmClick(),r.select_wasm.emit(r.wasm)})()}onWasmClick(){this.wasmElt.nativeElement.click()}resetWasmClick(){this.wasmElt.nativeElement.value="",this.wasm=void 0,this.file_name="",this.select_wasm.emit(void 0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-submit-wasm"]],viewQuery:function(r,i){if(1&r&&(gt(gH,5),gt(hH,7)),2&r){let o;ht(o=mt())&&(i.wasmElt=o.first),ht(o=mt())&&(i.template=o.first)}},outputs:{select_wasm:"select_wasm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["wasmElt",""],[1,"col-sm-2","mb-3","mt-3"],["name","wasm","type","file","id","wasmElt","accept",".wasm","e2e-id","wasmElt",1,"visually-hidden",3,"change"],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","btn btn-light","e2e-id","wasmName",3,"click",4,"ngIf"],[1,"btn","btn-secondary",3,"click"],["e2e-id","wasmName",1,"btn","btn-light",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","ml-1","cursor-pointer","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"]],template:function(r,i){1&r&&ie(0,yH,5,2,"ng-template",null,0,_s)},dependencies:[Ke,sn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return e})(),xi=(()=>{class e{constructor(){this.error=new Mu("")}setError(t){this.error.getValue()!==t&&this.error.next(t)}getError(){return this.error.asObservable()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const bH=["template"],vH=["deployFileElt"],EH=["transactionFileElt"];function SH(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"input",5,1),X("change",function(i){return _e(t),de(B(2).onDeployFileSelected(i))}),L(),x(3,"button",6),X("click",function(){return _e(t),de(B(2).deployFileClick())}),re(4," Load deploy file "),L()()}}function CH(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"input",7,2),X("change",function(i){return _e(t),de(B(2).onTransactionFileSelected(i))}),L(),x(3,"button",6),X("click",function(){return _e(t),de(B(2).transactionFileClick())}),re(4," Load transaction file "),L()()}}function DH(e,n){if(1&e&&ie(0,SH,5,0,"div",3)(1,CH,5,0,"div",3),2&e){const t=B();O("ngIf","deploy"===t.type),P(),O("ngIf","transaction"===t.type)}}let HD=(()=>{class e{constructor(t){this.errorService=t,this.select_deploy=new Fe,this.select_transaction=new Fe,this.type="deploy"}onDeployFileSelected(t){var r=this;return(0,u.A)(function*(){const i=t.target.files?.item(0);let o;if(r.deploy_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const c=JSON.parse(o);r.deploy_json=c}catch{const c="Error parsing deploy";console.error(c),r.errorService.setError(c)}}r.select_deploy.emit(r.deploy_json),r.deployFileElt.nativeElement.value=""})()}onTransactionFileSelected(t){var r=this;return(0,u.A)(function*(){const i=t.target.files?.item(0);let o;if(r.transaction_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const c=JSON.parse(o);r.transaction_json=c}catch{const c="Error parsing transaction";console.error(c),r.errorService.setError(c)}}r.select_transaction.emit(r.transaction_json),r.transactionFileElt.nativeElement.value=""})()}deployFileClick(){this.deployFileElt.nativeElement.click()}transactionFileClick(){this.transactionFileElt.nativeElement.click()}static{this.\u0275fac=function(r){return new(r||e)(T(xi))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-submit-file"]],viewQuery:function(r,i){if(1&r&&(gt(bH,7),gt(vH,5),gt(EH,5)),2&r){let o;ht(o=mt())&&(i.template=o.first),ht(o=mt())&&(i.deployFileElt=o.first),ht(o=mt())&&(i.transactionFileElt=o.first)}},inputs:{type:"type"},outputs:{select_deploy:"select_deploy",select_transaction:"select_transaction"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["deployFileElt",""],["transactionFileElt",""],["class","col-sm-2 mt-2",4,"ngIf"],[1,"col-sm-2","mt-2"],["name","deploy_file","type","file","id","deployFileElt","accept",".json, .txt, .deploy","e2e-id","deployFileElt",1,"visually-hidden",3,"change"],[1,"btn","btn-secondary",3,"click"],["name","transaction_file","type","file","id","transactionFileElt","accept",".json, .txt, .deploy","e2e-id","transactionFileElt",1,"visually-hidden",3,"change"]],template:function(r,i){1&r&&ie(0,DH,2,2,"ng-template",null,0,_s)},dependencies:[Ke,sn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return e})();const wg=(e,n)=>({parentForm:e,inputField:n});function TH(e,n){1&e&&as(0)}function IH(e,n){if(1&e&&($t(0),pt(1,"ui-input",7,0),ie(3,TH,1,0,"ng-container",8),qt()),2&e){const t=ls(2),r=B().$implicit,i=B(3);P(),O("parentForm",i.form)("inputField",r.input)("hidden_when_disabled","get_dictionary_item"===i.action),P(2),O("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Ei(5,wg,i.form,r.input))}}function MH(e,n){1&e&&as(0)}function NH(e,n){if(1&e){const t=Re();$t(0),x(1,"ui-textarea",9,0),X("update_deploy_json",function(i){return _e(t),de(B(4).updateDeployJson(i))})("update_transaction_json",function(i){return _e(t),de(B(4).updateTransactionJson(i))}),L(),ie(3,MH,1,0,"ng-container",8),qt()}if(2&e){const t=ls(2),r=B().$implicit,i=B(3);P(),O("parentForm",i.form)("inputField",r.textarea),P(2),O("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Ei(4,wg,i.form,r.textarea))}}function kH(e,n){1&e&&as(0)}function AH(e,n){if(1&e&&($t(0),pt(1,"ui-select",10,0),ie(3,kH,1,0,"ng-container",8),qt()),2&e){const t=ls(2),r=B().$implicit,i=B(3);P(),O("parentForm",i.form)("inputField",r.select),P(2),O("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Ei(4,wg,i.form,r.select))}}function FH(e,n){1&e&&as(0)}function RH(e,n){if(1&e){const t=Re();$t(0),x(1,"comp-submit-wasm",11,1),X("select_wasm",function(i){return _e(t),de(B(4).onWasmSelected(i))}),L(),ie(3,FH,1,0,"ng-container",12),qt()}if(2&e){const t=ls(2);P(3),O("ngTemplateOutlet",t.template)}}function OH(e,n){1&e&&as(0)}function xH(e,n){if(1&e){const t=Re();$t(0),x(1,"comp-submit-file",13,1),X("select_deploy",function(i){return _e(t),de(B(4).onDeployFileSelected(i))})("select_transaction",function(i){return _e(t),de(B(4).onTransactionFileSelected(i))}),L(),ie(3,OH,1,0,"ng-container",12),qt()}if(2&e){const t=ls(2),r=B(4);P(),O("type",r.action.includes("transaction")?"transaction":"deploy"),P(2),O("ngTemplateOutlet",t.template)}}function LH(e,n){if(1&e&&($t(0),ie(1,IH,4,8,"ng-container",6)(2,NH,4,7,"ng-container",6)(3,AH,4,7,"ng-container",6)(4,RH,4,1,"ng-container",6)(5,xH,4,2,"ng-container",6),qt()),2&e){const t=n.$implicit;P(),O("ngIf",t.input),P(),O("ngIf",t.textarea),P(),O("ngIf",t.select),P(),O("ngIf",t.wasm_button),P(),O("ngIf",t.file_button)}}function PH(e,n){if(1&e&&($t(0),x(1,"div",5),ie(2,LH,6,5,"ng-container",4),L(),qt()),2&e){const t=n.$implicit;P(2),O("ngForOf",t)}}function VH(e,n){if(1&e&&(x(0,"form",3),ie(1,PH,3,1,"ng-container",4),L()),2&e){const t=B();O("formGroup",t.form),P(),O("ngForOf",t.formFields.get(t.action))}}let zD=(()=>{class e{constructor(t,r,i,o){this.config=t,this.formService=r,this.stateService=i,this.changeDetectorRef=o,this.formFields=this.formService.formFields,this.wasm_selected=new Fe,this.verbosity=this.config.verbosity}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}onWasmSelected(t){var r=this;return(0,u.A)(function*(){t&&r.wasm_selected.emit(t),r.stateService.setState({has_wasm:!!t})})()}onDeployFileSelected(t){var r=this;return(0,u.A)(function*(){t=t&&(0,A.mL)(new A.m9(t).toJson(),r.verbosity),r.updateDeployJson(t)})()}onTransactionFileSelected(t){var r=this;return(0,u.A)(function*(){t=t&&(0,A.mL)(new A.ZX(t).toJson(),r.verbosity),r.updateTransactionJson(t)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(vs),T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-form"]],inputs:{form:"form"},outputs:{wasm_selected:"wasm_selected"},standalone:!0,features:[wt],decls:1,vars:1,consts:[["inputTemplate",""],["submitTemplate",""],["class","mt-3",3,"formGroup",4,"ngIf"],[1,"mt-3",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"row","align-items-end"],[4,"ngIf"],[3,"parentForm","inputField","hidden_when_disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"update_deploy_json","update_transaction_json","parentForm","inputField"],[3,"parentForm","inputField"],[3,"select_wasm"],[4,"ngTemplateOutlet"],[3,"select_deploy","select_transaction","type"]],template:function(r,i){1&r&&ie(0,VH,2,2,"form",2),2&r&&O("ngIf",i.action&&i.formFields&&i.formFields.has(i.action))},dependencies:[Ke,sa,sn,mS,bs,nD,_a,ws,PD,BD,HD,jD,WD],changeDetection:0})}}return e})();const UD=new V("highlight");var WH=a(7278),jH=a.n(WH);let $D=(()=>{class e{constructor(t){this.highlightWebworkerFactory=t}highlightMessage(t){var r=this;return(0,u.A)(function*(){r.activateWorker();const i=r.hightlightWebworker&&(yield r.hightlightWebworker.postMessage(t).catch(o=>{console.error(o)}));return r.terminateWorker(),i})()}activateWorker(){if(this.webworker)return;const t=this.highlightWebworkerFactory();this.webworker=t[0],this.hightlightWebworker=t[1]}terminateWorker(){this.webworker&&(this.webworker.terminate(),delete this.webworker)}static{this.\u0275fac=function(r){return new(r||e)(U(UD))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const BH={provide:UD,useValue:function(){const e=new Worker(a.tu(new URL(a.p+a.u(755),a.b)),{name:"highlight.worker",type:void 0});return[e,new(jH())(e)]}};let qD=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({providers:[BH,$D],imports:[Ke]})}}return e})(),Da=(()=>{class e{constructor(t,r){this.highlightService=t,this.document=r,this.result=new Lr,this.window=this.document.defaultView}getResult(){return this.result.asObservable()}setResult(t){var r=this;return(0,u.A)(function*(){const i=t,o=yield r.highlightService.highlightMessage(i),c="string"==typeof t;r.result.next({result:c?i:JSON.stringify(i),resultHtml:c?i:o})})()}copyClipboard(t){this.window?.navigator.clipboard.writeText(t).catch(r=>console.error(r))}static{this.\u0275fac=function(r){return new(r||e)(U($D),U(wn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),HH=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=pr({type:e})}static{this.\u0275inj=Un({providers:[Da],imports:[Ke,qD]})}}return e})();const zH=["resultElt"],UH=["codeElt"];function $H(e,n){if(1&e&&(x(0,"div",15,0)(2,"div",16),pt(3,"code",17,1),L()()),2&e){const t=B(2);P(3),O("innerHtml",t.resultHtml,lw)}}function qH(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"div",5)(2,"span"),nc(),x(3,"svg",6),X("click",function(){_e(t);const i=B();return de(i.copy(i.result))}),pt(4,"rect",7)(5,"path",8),L()(),function Hh(){!function G1(){Y.lFrame.currentNamespace=null}()}(),x(6,"span",9),X("click",function(){return _e(t),de(B().reset())}),nc(),x(7,"svg",10),pt(8,"path",11)(9,"path",12)(10,"path",13),L()()(),ie(11,$H,5,1,"div",14),L()}if(2&e){const t=B();P(11),O("ngIf",t.resultHtml)}}let GD=(()=>{class e{constructor(t,r){this.resultService=t,this.changeDetectorRef=r}ngAfterViewInit(){this.getResultSubscription=this.resultService.getResult().subscribe(t=>{this.result=t.result,this.resultHtml=t.resultHtml,this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.getResultSubscription&&this.getResultSubscription.unsubscribe()}copy(t){this.resultService.copyClipboard((0,A.mL)(JSON.parse(t),A.WT.High))}reset(){this.result="",this.resultHtml="",this.resultService.setResult("")}static{this.\u0275fac=function(r){return new(r||e)(T(Da),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-result"]],viewQuery:function(r,i){if(1&r&&(gt(zH,5),gt(UH,5,Xt)),2&r){let o;ht(o=mt())&&(i.resultElt=o.first),ht(o=mt())&&(i.contentChildren=o.first)}},standalone:!0,features:[wt],decls:2,vars:1,consts:[["resultElt",""],["codeElt",""],[1,"mt-3"],["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","d-flex","flex-row","justify-content-between","mb-2"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shrink-0","ml-2","w-5","min-w-5","text-gray-500","cursor-pointer",3,"click"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["e2e-id","clear result",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-journal-x","cursor-pointer"],["fill-rule","evenodd","d","M6.146 6.146a.5.5 0 0 1 .708 0L8 7.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 8l1.147 1.146a.5.5 0 0 1-.708.708L8 8.707 6.854 9.854a.5.5 0 0 1-.708-.708L7.293 8 6.146 6.854a.5.5 0 0 1 0-.708z"],["d","M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"],["d","M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],[1,"card"],["e2e-id","result",1,"card-body",3,"innerHtml"]],template:function(r,i){1&r&&(x(0,"section",2),ie(1,qH,12,1,"div",3),L()),2&r&&(P(),O("ngIf",i.result))},dependencies:[Ke,sn,qD],styles:["code[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-x:hidden;word-wrap:break-word;max-width:100%}.card[_ngcontent-%COMP%]{max-height:calc(95vh - 20px);overflow-y:auto;margin-bottom:20px}@media (max-width: 767px){[_nghost-%COMP%] .hljs-string{overflow-wrap:break-word;word-break:break-all;max-width:100%}}[_nghost-%COMP%] .hljs-attr{font-weight:700}@media (max-width: 767px){code[_ngcontent-%COMP%]{font-size:.8em}}"],changeDetection:0})}}return e})();const GH=["selectNetworkElt"],KH=["nodeAddressElt"],yg=e=>[e];function JH(e,n){if(1&e&&(x(0,"option",20),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",null==t?null:t.name)("selected",t.rpc_address===r.rpc_address),P(),qo(" ",null==t?null:t.name," (",t.rpc_address,") ")}}function ZH(e,n){if(1&e&&(x(0,"option",20),re(1),L()),2&e){const t=n.$implicit,r=B(2);O("value",r.changePort(t))("selected",r.changePort(t)===r.rpc_address),P(),qo(" ",r.changePort(t)," (",r.chain_name,") ")}}function QH(e,n){if(1&e&&(x(0,"optgroup",21),ie(1,ZH,2,4,"option",17),L()),2&e){const t=B();P(),O("ngForOf",t.peers)}}function YH(e,n){if(1&e){const t=Re();x(0,"div",22)(1,"div",23)(2,"label",24)(3,"span",25),re(4,"Net."),L(),x(5,"span",26),re(6,"Network"),L()(),x(7,"input",27,1),X("change",function(i){return _e(t),de(B().onCustomNetworkChange(i))}),L()(),x(9,"div",28)(10,"label",29)(11,"span",25),re(12,"Chai."),L(),x(13,"span",26),re(14,"Chain"),L()(),x(15,"input",30,2),X("change",function(i){return _e(t),de(B().onCcustomChainChange(i))}),L()()()}if(2&e){const t=B();P(7),O("value",t.rpc_address||"")("ngClass",tn(4,yg,t.isCustomNetworkInvalid()?"is-invalid":"")),P(8),O("value",t.chain_name||"")("ngClass",tn(6,yg,t.iscustomChainInvalid()?"is-invalid":""))}}function XH(e,n){if(1&e){const t=Re();x(0,"div",22)(1,"div",23)(2,"label",31),X("click",function(){_e(t);const i=B();return de(i.is_network_tab_open=!i.is_network_tab_open)}),re(3," WS"),L(),x(4,"input",32,3),X("change",function(i){return _e(t),de(B().onNodeAddressChange(i))}),L()()()}if(2&e){const t=B();P(4),O("value",t.node_address||"")("ngClass",tn(2,yg,t.isNodeAddressInvalid()?"is-invalid":""))}}let KD=(()=>{class e{constructor(t,r,i,o,c,l,_){this.sdk=t,this.config=r,this.env=i,this.document=o,this.stateService=c,this.storageService=l,this.changeDetectorRef=_,this.networks=this.config.networks,this.network=this.config.network,this.chain_name=this.network.chain_name,this.rpc_address=this.network.rpc_address,this.node_address=this.network.node_address,this.is_production=this.env.production,this.localhost_to_gateway=this.env.localhost_to_gateway,this.window=this.document.defaultView,this.is_electron=this.isElectron()}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.storageService.get("chain_name")&&t.storageService.get("rpc_address")&&(t.chain_name=t.storageService.get("chain_name")||t.chain_name,t.rpc_address=t.storageService.get("rpc_address")||t.rpc_address,t.node_address=t.storageService.get("node_address")||t.node_address,t.network=t.networks.find(r=>r.rpc_address==t.rpc_address)||t.network),t.stateService.setState({chain_name:t.chain_name,rpc_address:t.rpc_address,node_address:t.node_address}),t.setRPCAddress(),t.changeDetectorRef.markForCheck()})()}selectNetwork(t){let r=t.target?.value||this.selectNetworkElt.nativeElement.value;r=r&&this.networks.find(i=>i.name==r),this.network=r,this.chain_name=r.chain_name,this.rpc_address=r.rpc_address,this.node_address=r.node_address,this.setRPCAddress(),this.setNodeAddress(),this.stateService.setState({chain_name:r.chain_name}),this.storageService.setState({rpc_address:this.rpc_address,node_address:this.node_address,chain_name:this.chain_name})}changePort(t){const r=t.address.split(":");return[this.config.default_protocol,r.shift(),":",this.config.default_port].join("")}onCustomNetworkChange(t){this.rpc_address=t.target?.value||this.network.rpc_address,this.node_address=this.nodeAddressElt.nativeElement.value||"";const r=this.networks.find(i=>"custom"===i.name);r&&(r.rpc_address=this.rpc_address,this.sdk.setRPCAddress(this.rpc_address),this.sdk.setNodeAddress(this.node_address),this.stateService.setState({rpc_address:this.rpc_address,node_address:this.node_address}),this.storageService.setState({rpc_address:this.rpc_address,node_address:this.node_address}))}isCustomNetworkInvalid(){return!1}onCcustomChainChange(t){this.chain_name=t.target?.value||this.network.chain_name;const r=this.networks.find(i=>"custom"===i.name);r&&(r.chain_name=this.chain_name,this.stateService.setState({chain_name:this.chain_name}),this.storageService.setState({chain_name:this.chain_name}))}onNodeAddressChange(t){this.node_address=t.target?.value||"",this.setNodeAddress()}iscustomChainInvalid(){return!1}isNodeAddressInvalid(){return!1}isElectron(){return typeof this.window<"u"&&window.location?.origin?.startsWith("file://")}setRPCAddress(){try{if(this.is_electron)this.sdk.setRPCAddress(this.rpc_address),this.sdk.setNodeAddress(this.node_address);else{const t=this.networks.find(r=>r.rpc_address==this.rpc_address);this.is_production&&!this.localhost_to_gateway&&t&&["ntcl","node-launcher"].includes(t?.name)?(this.sdk.setRPCAddress(this.rpc_address),this.sdk.setNodeAddress(this.node_address)):t&&this.sdk.setRPCAddress([this.window?.location?.href,t?.name].join(""))}}catch(t){console.error(t)}}setNodeAddress(){try{this.sdk.setNodeAddress(this.node_address)}catch(t){console.error(t)}}onSubmit(t){return t.preventDefault(),!1}static{this.\u0275fac=function(r){return new(r||e)(T(Mi),T(Wn),T(Bp),T(wn),T(cn),T(Ca),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-header"]],viewQuery:function(r,i){if(1&r&&(gt(GH,5),gt(KH,5)),2&r){let o;ht(o=mt())&&(i.selectNetworkElt=o.first),ht(o=mt())&&(i.nodeAddressElt=o.first)}},inputs:{peers:"peers"},standalone:!0,features:[wt],decls:21,vars:8,consts:[["selectNetworkElt",""],["customNetworkElt",""],["customChainElt",""],["nodeAddressElt",""],[1,"navbar","navbar-light"],[1,"col-5","col-md-2"],[1,"navbar-brand"],["src","assets/logo.svg","alt","Casper Ecosystem"],[1,"col-7","col-md-4","col-lg-4","col-xl-5","d-flex","flex-column","flex-xl-row","justify-content-end","px-2","pt-2"],["e2e-id","chain_name",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],["e2e-id","rpc_address",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],[1,"col-12","col-md-6","col-lg-5"],[1,"form-inline",3,"submit"],[1,"input-group"],["for","selectActionElt","for","selectNetworkElt",1,"input-group-text",3,"click"],["id","selectNetworkElt","e2e-id","selectNetworkElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","default"],[3,"value","selected",4,"ngFor","ngForOf"],["label","fetched",4,"ngIf"],["class","input-group mt-2 justify-content-between",4,"ngIf"],[3,"value","selected"],["label","fetched"],[1,"input-group","mt-2","justify-content-between"],[1,"col-7"],["for","customNetworkElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","customNetwork","id","customNetworkElt","e2e-id","customNetworkElt",1,"form-control","form-control-xs",3,"change","value","ngClass"],[1,"col-4"],["for","customChainElt",1,"input-group-text"],["type","search","name","customChain","id","customChainElt","e2e-id","customChainElt",1,"form-control","form-control-xs",3,"change","value","ngClass"],["for","nodeAddressElt",1,"input-group-text",3,"click"],["type","search","name","nodeAddress","id","nodeAddressElt","e2e-id","nodeAddressElt",1,"form-control","form-control-xs",3,"change","value","ngClass"]],template:function(r,i){if(1&r){const o=Re();x(0,"nav",4)(1,"div",5)(2,"a",6),pt(3,"img",7),L()(),x(4,"div",8)(5,"span",9),re(6),L(),x(7,"span",10),re(8),L()(),x(9,"div",11)(10,"form",12),X("submit",function(l){return _e(o),de(i.onSubmit(l))}),x(11,"div",13)(12,"label",14),X("click",function(){return _e(o),de(i.is_network_tab_open=!i.is_network_tab_open)}),re(13,"RPC"),L(),x(14,"select",15,0),X("change",function(l){return _e(o),de(i.selectNetwork(l))}),x(16,"optgroup",16),ie(17,JH,2,4,"option",17),L(),ie(18,QH,2,1,"optgroup",18),L()(),ie(19,YH,17,8,"div",19)(20,XH,6,4,"div",19),L()()()}2&r&&(P(5),O("hidden",!i.chain_name),P(),us(i.chain_name),P(),O("hidden",!i.rpc_address),P(),us(i.rpc_address),P(9),O("ngForOf",i.networks),P(),O("ngIf",i.peers),P(),O("ngIf","custom"===(null==i.network?null:i.network.name)),P(),O("ngIf",i.is_network_tab_open))},dependencies:[Ke,sr,sa,sn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}"],changeDetection:0})}}return e})();function ez(e,n){if(1&e&&(x(0,"section",1)(1,"pre",2),re(2),L()()),2&e){const t=B();P(2),us(t.error)}}let JD=(()=>{class e{constructor(t,r){this.errorService=t,this.changeDetectorRef=r}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.seterrorSubscription()})()}ngOnDestroy(){this.errorSubscription&&this.errorSubscription.unsubscribe()}seterrorSubscription(){var t=this;this.errorSubscription=this.errorService.getError().subscribe(function(){var r=(0,u.A)(function*(i){t.error!==i&&(t.error=i,t.changeDetectorRef.markForCheck())});return function(i){return r.apply(this,arguments)}}())}static{this.\u0275fac=function(r){return new(r||e)(T(xi),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-error"]],standalone:!0,features:[wt],decls:1,vars:1,consts:[["class","mt-3","e2e-id","error",4,"ngIf"],["e2e-id","error",1,"mt-3"],[1,"error","alert","alert-warning","d-flex"]],template:function(r,i){1&r&&ie(0,ez,3,1,"section",0),2&r&&O("ngIf",i.error)},dependencies:[Ke,sn],styles:[".error[_ngcontent-%COMP%]{display:block;font-family:monospace;white-space:pre-wrap;word-break:break-word}"],changeDetection:0})}}return e})();function tz(e,n){if(1&e){const t=Re();x(0,"div",4)(1,"span",5),re(2),L(),x(3,"button",6),X("click",function(){return _e(t),de(B().get_state_root_hash())}),re(4,"Refresh"),L()()}if(2&e){const t=B();P(2),at("state root hash is ",t.state_root_hash,"")}}function nz(e,n){if(1&e&&(x(0,"div",7)(1,"span",8),re(2),L()()),2&e){const t=B();P(2),at("account hash is ",t.account_hash,"")}}function rz(e,n){if(1&e&&(x(0,"div",7)(1,"span",9),re(2),L()()),2&e){const t=B();P(2),at("main purse is ",t.main_purse,"")}}let ZD=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.get_state_root_hash_output=new Fe}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.account_hash&&(this.account_hash=t.account_hash),t.main_purse&&(this.main_purse=t.main_purse),t.state_root_hash&&(this.state_root_hash=t.state_root_hash),t&&this.changeDetectorRef.markForCheck()})}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}get_state_root_hash(){this.get_state_root_hash_output.emit(!0)}static{this.\u0275fac=function(r){return new(r||e)(T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-status"]],outputs:{get_state_root_hash_output:"get_state_root_hash_output"},standalone:!0,features:[wt],decls:5,vars:3,consts:[[1,"row"],[1,"col-sm-12"],["class","alert alert-success d-flex flex-md-row flex-column justify-content-between align-items-center mb-1 mb-md-3",4,"ngIf"],["class","alert alert-warning d-flex mb-1 mb-md-3",4,"ngIf"],[1,"alert","alert-success","d-flex","flex-md-row","flex-column","justify-content-between","align-items-center","mb-1","mb-md-3"],["e2e-id","state_root_hash",1,"ellipsis-container"],[1,"btn","me-0",3,"click"],[1,"alert","alert-warning","d-flex","mb-1","mb-md-3"],["e2e-id","account_hash",1,"ellipsis-container"],["e2e-id","main_purse",1,"ellipsis-container"]],template:function(r,i){1&r&&(x(0,"div",0)(1,"div",1),ie(2,tz,5,1,"div",2)(3,nz,3,1,"div",3)(4,rz,3,1,"div",3),L()()),2&r&&(P(2),O("ngIf",i.state_root_hash),P(),O("ngIf",i.account_hash),P(),O("ngIf",i.main_purse))},dependencies:[Ke,sn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;font-size:.8em;max-width:260px}@media (min-width: 380px){.ellipsis-container[_ngcontent-%COMP%]{max-width:320px}}@media (min-width: 425px){.ellipsis-container[_ngcontent-%COMP%]{max-width:360px}}@media (min-width: 576px){.ellipsis-container[_ngcontent-%COMP%]{max-width:480px}}@media (min-width: 768px){.ellipsis-container[_ngcontent-%COMP%]{max-width:none;font-size:1em}}.btn[_ngcontent-%COMP%]{white-space:nowrap}@media (max-width: 767px){.btn[_ngcontent-%COMP%]{font-size:.8em;padding-bottom:0}}"],changeDetection:0})}}return e})();const bg=e=>({deprecated:e});function sz(e,n){if(1&e&&(x(0,"option",12),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t)("ngClass",tn(4,bg,r.sdk_deprecated.includes(t))),P(),at(" ",t," ")}}function iz(e,n){if(1&e&&(x(0,"option",13),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t),P(),at(" ",t," ")}}function oz(e,n){if(1&e&&(x(0,"option",13),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t),P(),at(" ",t," ")}}function az(e,n){if(1&e&&(x(0,"option",13),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t),P(),at(" ",t," ")}}function cz(e,n){if(1&e&&(x(0,"option",12),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t)("ngClass",tn(4,bg,r.sdk_deprecated.includes(t))),P(),at(" ",t," ")}}function lz(e,n){if(1&e&&(x(0,"option",12),re(1),L()),2&e){const t=n.$implicit,r=B();O("value",t)("selected",r.action===t)("ngClass",tn(4,bg,r.sdk_deprecated.includes(t))),P(),at(" ",t," ")}}let QD=(()=>{class e{constructor(t,r,i){this.sdk=t,this.stateService=r,this.changeDetectorRef=i,this.select_action=new Fe}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.sdk_methods=Object.getOwnPropertyNames(Object.getPrototypeOf(t.sdk)).filter(o=>"function"==typeof t.sdk[o]).filter(o=>!["free","constructor","__destroy_into_raw","getRPCAddress","setRPCAddress","getNodeAddress","setNodeAddress","getVerbosity","setVerbosity","watchDeploy","waitDeploy"].includes(o)).filter(o=>!o.endsWith("_options")).filter(o=>!o.startsWith("chain_")).filter(o=>!o.startsWith("state_")).filter(o=>!o.startsWith("info_")).filter(o=>!o.startsWith("account_")).filter(o=>!o.startsWith("wait")).filter(o=>!o.startsWith("watch")).sort(),t.sdk_deploy_methods=t.sdk_methods.filter(o=>["deploy","speculative_deploy","speculative_transfer","transfer"].includes(o)),t.sdk_deploy_utils_methods=t.sdk_methods.filter(o=>["make_deploy","make_transfer","sign_deploy","put_deploy","call_entrypoint_deploy","install_deploy"].includes(o)),t.sdk_transaction_methods=t.sdk_methods.filter(o=>["transaction","speculative_transaction","speculative_transfer_transaction","transfer_transaction"].includes(o)),t.sdk_transaction_utils_methods=t.sdk_methods.filter(o=>["make_transaction","make_transfer_transaction","sign_transaction","put_transaction","call_entrypoint","install","query_contract_dict","query_contract_key"].includes(o)),t.sdk_deprecated=t.sdk_methods.filter(o=>["get_account","get_deploy","get_era_info","put_deploy","speculative_exec_deploy","sign_deploy","make_deploy","make_transfer","speculative_deploy","speculative_transfer","deploy","transfer","call_entrypoint_deploy","install_deploy","get_balance"].includes(o)),t.sdk_binary_methods=t.sdk_methods.filter(o=>o.startsWith("get_binary"));const r=new Set,i=new Set;t.sdk_binary_methods=[...new Set(t.sdk_binary_methods.filter(o=>{if(o.endsWith("_hash")||o.endsWith("_height")||o.endsWith("_era")||o.endsWith("_state_root_hash")){i.add(o);const l=o.slice(0,o.lastIndexOf("_")).replace(/(_by_block|_by_state_root|_by)$/,"");return r.add(l),!1}return!0}))],t.sdk_binary_methods=[...t.sdk_binary_methods,...Array.from(r)],t.sdk_binary_methods=[...new Set(t.sdk_binary_methods.sort())],t.sdk_rpc_methods=t.sdk_methods.filter(o=>![...t.sdk_binary_methods,...Array.from(i),...t.sdk_deploy_methods,...t.sdk_deploy_utils_methods,...t.sdk_transaction_utils_methods,...t.sdk_transaction_methods].includes(o)),t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}selectAction(t){this.select_action.emit(t.target.value)}static{this.\u0275fac=function(r){return new(r||e)(T(Mi),T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-action"]],outputs:{select_action:"select_action"},standalone:!0,features:[wt],decls:18,vars:6,consts:[["selectActionElt",""],[1,"input-group"],["for","selectActionElt",1,"input-group-text"],["id","selectActionElt","e2e-id","selectActionElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","rpc"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["label","transaction"],[3,"value","selected",4,"ngFor","ngForOf"],["label","utils"],["label","binary"],["label","deploy",1,"deprecated"],["label","deploy utils",1,"deprecated"],[3,"value","selected","ngClass"],[3,"value","selected"]],template:function(r,i){if(1&r){const o=Re();x(0,"div",1)(1,"label",2),re(2,"Action"),L(),x(3,"select",3,0),X("change",function(l){return _e(o),de(i.selectAction(l))}),pt(5,"option"),x(6,"optgroup",4),ie(7,sz,2,6,"option",5),L(),x(8,"optgroup",6),ie(9,iz,2,3,"option",7),L(),x(10,"optgroup",8),ie(11,oz,2,3,"option",7),L(),x(12,"optgroup",9),ie(13,az,2,3,"option",7),L(),x(14,"optgroup",10),ie(15,cz,2,6,"option",5),L(),x(16,"optgroup",11),ie(17,lz,2,6,"option",5),L()()()}2&r&&(P(7),O("ngForOf",i.sdk_rpc_methods),P(2),O("ngForOf",i.sdk_transaction_methods),P(2),O("ngForOf",i.sdk_transaction_utils_methods),P(2),O("ngForOf",i.sdk_binary_methods),P(2),O("ngForOf",i.sdk_deploy_methods),P(2),O("ngForOf",i.sdk_deploy_utils_methods))},dependencies:[Ke,sr,sa],styles:["[_nghost-%COMP%] .deprecated[_ngcontent-%COMP%]{font-style:italic;color:#d3d3d3}"],changeDetection:0})}}return e})();const uz=["*"],_z=e=>[e];let YD=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.submit_action=new Fe}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}submitAction(t){this.submit_action.emit(t)}static{this.\u0275fac=function(r){return new(r||e)(T(cn),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-submit-action"]],inputs:{class:"class",e2e:"e2e"},outputs:{submit_action:"submit_action"},standalone:!0,features:[wt],ngContentSelectors:uz,decls:2,vars:4,consts:[["type","button",1,"btn",3,"click","ngClass"]],template:function(r,i){1&r&&(function Vv(e){const n=I()[xe][it];if(!n.projection){const r=n.projection=function Wa(e,n){const t=[];for(let r=0;r{class e{constructor(t,r,i,o,c,l){this.config=t,this.sdk=r,this.resultService=i,this.formService=o,this.errorService=c,this.stateService=l,this.verbosity=A.WT.High,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.chain_name&&(this.chain_name=t.chain_name),t.public_key&&(this.public_key=t.public_key),t.secret_key&&(this.secret_key=t.secret_key),t.deploy_json&&(this.deploy_json=t.deploy_json),t.verbosity&&(this.verbosity=t.verbosity),t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier)})}get_account(t){var r=this;return(0,u.A)(function*(){let i;if(i=t||r.getIdentifier("accountIdentifier")?.value?.trim(),!i){const c="account_identifier is missing";return void(c&&r.errorService.setError(c.toString()))}const o=r.sdk.get_account_options({account_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const c=yield r.sdk.get_account(o);return t||r.resultService.setResult(c.toJson()),c}catch(c){return r.errorService.setError(c.toString()),c}}else{const c="get_account_options is missing";c&&r.errorService.setError(c.toString())}})()}get_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("deployHash")?.value?.trim();if(!i){const c="deploy_hash is missing";return void(c&&t.errorService.setError(c.toString()))}const o=t.sdk.get_deploy_options({deploy_hash_as_string:i});o.finalized_approvals=r;try{const c=yield t.sdk.get_deploy(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}get_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("transactionHash")?.value?.trim();if(!i){const c="transaction_hash is missing";return void(c&&t.errorService.setError(c.toString()))}const o=t.sdk.get_transaction_options({transaction_hash_as_string:i});o.finalized_approvals=r;try{const c=yield t.sdk.get_transaction(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}get_entity(t){var r=this;return(0,u.A)(function*(){let i;if(i=t||r.getIdentifier("entityIdentifier")?.value?.trim(),!i){const c="entity_identifier is missing";return void(c&&r.errorService.setError(c.toString()))}const o=r.sdk.get_entity_options({entity_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const c=yield r.sdk.get_entity(o);return t||r.resultService.setResult(c.toJson()),c}catch(c){return r.errorService.setError(c.toString()),c}}else{const c="get_entity_options is missing";c&&r.errorService.setError(c.toString())}})()}get_peers(){var t=this;return(0,u.A)(function*(){let r=[];try{const i=yield t.sdk.get_peers();i&&t.resultService.setResult(i.toJson()),i&&(r=i.peers)}catch(i){i&&t.errorService.setError(i.toString())}return r})()}get_node_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_node_status();return r&&t.resultService.setResult(r.toJson()),r})()}get_state_root_hash(t){var r=this;return(0,u.A)(function*(){let i="";const o=r.sdk.get_state_root_hash_options({});if(!o){const c="get_state_root_hash options are missing";c&&r.errorService.setError(c.toString())}if(t)i=(yield r.sdk.get_state_root_hash(o)).toString();else{r.getIdentifieBlock(o);const c=yield r.sdk.get_state_root_hash(o);c&&r.resultService.setResult(c.toJson())}return i})()}get_auction_info(){var t=this;return(0,u.A)(function*(){try{const r=t.sdk.get_auction_info_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_auction_info(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_balance(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("purseUref")?.value?.trim(),i=t.getIdentifier("stateRootHash")?.value?.trim();if(r)try{const o=t.sdk.get_balance_options({state_root_hash_as_string:i||"",purse_uref_as_string:r}),c=yield t.sdk.get_balance(o);c&&t.resultService.setResult(c.toJson())}catch(o){o&&t.errorService.setError(o.toString())}else{const o="purse_uref is missing";o&&t.errorService.setError(o.toString())}})()}get_block(){var t=this;return(0,u.A)(function*(){try{const r=t.sdk.get_block_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_block_transfers(){var t=this;return(0,u.A)(function*(){try{const r=t.sdk.get_block_transfers_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block_transfers(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_chainspec(){var t=this;return(0,u.A)(function*(){try{const r=yield t.sdk.get_chainspec(),i=(0,A.IQ)(r?.chainspec_bytes.chainspec_bytes);i&&t.resultService.setResult(i)}catch(r){r&&t.errorService.setError(r.toString())}})()}get_era_info(){var t=this;return(0,u.A)(function*(){const r=t.sdk.get_era_info_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_info(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_era_summary(){var t=this;return(0,u.A)(function*(){const r=t.sdk.get_era_summary_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_summary(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_validator_changes(){var t=this;return(0,u.A)(function*(){try{const r=yield t.sdk.get_validator_changes();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}list_rpcs(){var t=this;return(0,u.A)(function*(){try{const r=yield t.sdk.list_rpcs();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}query_balance(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance(i);o&&t.resultService.setResult(o.balance)}catch(o){o&&t.errorService.setError(o.toString())}})()}query_balance_details(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_details_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance_details(i);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}query_global_state(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("queryPath")?.value?.trim()||"",i=t.getIdentifier("queryKey")?.value?.trim();if(!i){const c="key is missing";return void(c&&t.errorService.setError(c.toString()))}const o=t.sdk.query_global_state_options({key_as_string:i,path_as_string:r});t.getGlobalIdentifier(o);try{const c=yield t.sdk.query_global_state(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}deploy(t=!0,r,i){var o=this;return(0,u.A)(function*(){const c=(0,A.lg)(),l=o.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!o.public_key)return void o.errorService.setError("public_key is missing".toString());if(t&&!o.secret_key)return void o.errorService.setError("secret_key is missing".toString());const _=new A.Bh(o.chain_name,o.public_key,o.secret_key,c,l),d=new A.q1,p=o.getIdentifier("paymentAmount")?.value?.trim();if(!p){const m="paymentAmount is missing";return void(m&&o.errorService.setError(m.toString()))}d.payment_amount=p;const h=o.get_session_params(i);try{let m;if(m=r?yield o.sdk.speculative_deploy(_,h,d):t?yield o.sdk.deploy(_,h,d):o.sdk.make_deploy(_,h,d),m){const w=m.toJson();o.deploy_json=(0,A.mL)(w,o.verbosity),o.deploy_json&&o.resultService.setResult(w),!t&&o.updateDeployJson(o.deploy_json)}return m}catch(m){return void(m&&o.errorService.setError(m))}})()}transaction(t=!0,r,i){var o=this;return(0,u.A)(function*(){const c=(0,A.lg)(),l=o.getIdentifier("TTL")?.value?.trim()||"",_=o.getIdentifier("gasPriceTolerance")?.value?.trim()||"",d=o.getIdentifier("selectPricingMode")?.value?.trim()||"",p=o.getIdentifier("additionalComputationFactor")?.value?.trim()||"";if(!t&&!o.public_key){const b="public_key is missing";return void(b&&o.errorService.setError(b.toString()))}if(t&&!o.secret_key){const b="secret_key is missing";return void(b&&o.errorService.setError(b.toString()))}let h,m;try{const b=o.get_builder_params(i);if(!b){const S="builder params are missing";throw S&&o.errorService.setError(S.toString()),S}h=b}catch(b){return void(b&&o.errorService.setError(b.toString()))}m=new A.kD(o.chain_name,o.public_key,o.secret_key,c,l),_&&(m.gas_price_tolerance=_),d&&(m.pricing_mode=d),d==A.MK.Fixed&&(m.additional_computation_factor=p);const w=o.getIdentifier("paymentAmount")?.value?.trim();if(w){m.payment_amount=w,m=o.addTransactionArgs(m);try{let b;if(b=r&&t?yield o.sdk.speculative_transaction(h,m):t?yield o.sdk.transaction(h,m):o.sdk.make_transaction(h,m),b){const S=b.toJson();o.transaction_json=(0,A.mL)(S,o.verbosity),o.transaction_json&&o.resultService.setResult(S),!t&&o.updateTransactionJson(o.transaction_json)}return b}catch(b){return void(b&&o.errorService.setError(b))}}else{const b="paymentAmount is missing";b&&o.errorService.setError(b.toString())}})()}install_deploy(t){var r=this;return(0,u.A)(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const _="paymentAmount is missing";return void(_&&r.errorService.setError(_.toString()))}if(!r.secret_key){const _="secret_key is missing";return void(_&&r.errorService.setError(_.toString()))}if(!t?.buffer){const _="wasmBuffer is missing";_&&r.errorService.setError(_.toString())}const c=new A.Bh(r.chain_name,r.public_key,r.secret_key),l=r.get_session_params(t);try{const _=yield r.sdk.install_deploy(c,l,i);_&&r.resultService.setResult(_.toJson())}catch(_){_&&r.errorService.setError(_.toString())}})()}install(t){var r=this;return(0,u.A)(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const l="paymentAmount is missing";return void(l&&r.errorService.setError(l.toString()))}if(!r.secret_key){const l="secret_key is missing";return void(l&&r.errorService.setError(l.toString()))}if(!t?.buffer){const l="wasmBuffer is missing";l&&r.errorService.setError(l.toString())}let c=new A.kD(r.chain_name,r.public_key,r.secret_key);c.payment_amount=i,c=r.addTransactionArgs(c);try{const l=t&&(yield r.sdk.install(c,A.Ix.fromUint8Array(t)));l&&r.resultService.setResult(l.toJson())}catch(l){l&&r.errorService.setError(l.toString())}})()}transfer(t=!0,r){var i=this;return(0,u.A)(function*(){const o=(0,A.lg)(),c=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const l=new A.Bh(i.chain_name,i.public_key,i.secret_key,o,c),_=new A.q1;_.payment_amount=i.config.standard_payment_amount.toString();const d=i.getIdentifier("transferAmount")?.value?.trim(),p=i.getIdentifier("targetAccount")?.value?.trim();if(d&&p)try{let h;if(h=r?yield i.sdk.speculative_transfer(d,p,void 0,l,_):t?yield i.sdk.transfer(d,p,void 0,l,_):yield i.sdk.make_transfer(d,p,void 0,l,_),h){const m=h.toJson();i.deploy_json=(0,A.mL)(m,i.verbosity),i.deploy_json&&i.resultService.setResult(m),!t&&i.updateDeployJson(i.deploy_json)}return h}catch(h){return void(h&&i.errorService.setError(h))}else{const h="transfer_amount or target_account is missing";h&&i.errorService.setError(h.toString())}})()}transfer_transaction(t=!0,r){var i=this;return(0,u.A)(function*(){const o=(0,A.lg)(),c=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const l=new A.kD(i.chain_name,i.public_key,i.secret_key,o,c),_=i.getIdentifier("transferAmount")?.value?.trim(),d=i.getIdentifier("targetAccount")?.value?.trim();if(!_||!d){const h="transfer_amount or target_account is missing";return void(h&&i.errorService.setError(h.toString()))}const p=i.config.standard_payment_amount.toString();l.payment_amount=p;try{let h;if(h=r?yield i.sdk.speculative_transfer_transaction(void 0,d,_,l,void 0):t?yield i.sdk.transfer_transaction(void 0,d,_,l):yield i.sdk.make_transfer_transaction(void 0,d,_,l),h){const m=h.toJson();i.transaction_json=(0,A.mL)(m,i.verbosity),i.transaction_json&&i.resultService.setResult(m),!t&&i.updateTransactionJson(i.transaction_json)}return h}catch(h){return void(h&&i.errorService.setError(h))}})()}put_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const c="deployJson is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new A.m9(JSON.parse(r)),o=yield t.sdk.put_deploy(i);return o&&t.resultService.setResult(o.toJson()),o})()}put_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const c="deployJson is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new A.ZX(JSON.parse(r)),o=yield t.sdk.put_transaction(i);return o&&t.resultService.setResult(o.toJson()),o})()}speculative_exec_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const l="signed_deploy is missing";return void(l&&t.errorService.setError(l.toString()))}const i=new A.m9(JSON.parse(r)),o=t.sdk.get_speculative_exec_deploy_options({deploy:i.toJson()}),c=yield t.sdk.speculative_exec_deploy(o);return c&&t.resultService.setResult(c.toJson()),c})()}speculative_exec(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const l="signed_transaction is missing";return void(l&&t.errorService.setError(l.toString()))}const i=new A.ZX(JSON.parse(r)),o=t.sdk.get_speculative_exec_options({transaction:i.toJson()}),c=yield t.sdk.speculative_exec(o);return c&&t.resultService.setResult(c.toJson()),c})()}sign_deploy(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const o="signed_deploy is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new A.m9(JSON.parse(r))}catch{const o="Error parsing deploy";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.deploy_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json);else{const o="signed_deploy is missing";o&&t.errorService.setError(o.toString())}})()}sign_transaction(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const o="signed_transaction is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new A.ZX(JSON.parse(r))}catch{const o="Error parsing transaction";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.transaction_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json);else{const o="signed_transaction is missing";o&&t.errorService.setError(o.toString())}})()}wallet_sign_deploy(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r)return void t.errorService.setError("deploy_to_sign is missing".toString());let i;try{i=new A.m9(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new A._e).signDeploy(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.deploy_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json)})()}wallet_sign_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r)return void t.errorService.setError("transaction_to_sign is missing".toString());let i;try{i=new A.ZX(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new A._e).signTransaction(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.transaction_json=(0,A.mL)(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}make_deploy(t){var r=this;return(0,u.A)(function*(){yield r.deploy(!1,!1,t)})()}make_transaction(t){var r=this;return(0,u.A)(function*(){yield r.transaction(!1,!1,t)})()}make_transfer(){var t=this;return(0,u.A)(function*(){yield t.transfer(!1)})()}make_transfer_transaction(){var t=this;return(0,u.A)(function*(){yield t.transfer_transaction(!1)})()}speculative_transfer(){var t=this;return(0,u.A)(function*(){yield t.transfer(!1,!0)})()}speculative_transfer_transaction(){var t=this;return(0,u.A)(function*(){yield t.transfer(!1,!0)})()}speculative_deploy(t){var r=this;return(0,u.A)(function*(){yield r.deploy(!1,!0,t)})()}speculative_transaction(t){var r=this;return(0,u.A)(function*(){yield r.transaction(!1,!0,t)})()}call_entrypoint_deploy(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const c="secret_key is missing";return void(c&&t.errorService.setError(c.toString()))}const r=new A.Bh(t.chain_name,t.public_key,t.secret_key),i=t.get_session_params(),o=t.getIdentifier("paymentAmount")?.value?.trim();if(o)try{const c=yield t.sdk.call_entrypoint_deploy(r,i,o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}else{const c="paymentAmount is missing";c&&t.errorService.setError(c.toString())}})()}call_entrypoint(){var t=this;return(0,u.A)(function*(){if(!t.secret_key){const c="secret_key is missing";return void(c&&t.errorService.setError(c.toString()))}let r=new A.kD(t.chain_name,t.public_key,t.secret_key);const i=t.getIdentifier("paymentAmount")?.value?.trim();if(!i){const c="paymentAmount is missing";return void(c&&t.errorService.setError(c.toString()))}r.payment_amount=i,r=t.addTransactionArgs(r);const o=t.get_builder_params();try{const c=o&&(yield t.sdk.call_entrypoint(o,r));c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}query_contract_dict(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim();if(!i){const d="itemKey is missing";return void(d&&t.errorService.setError(d.toString()))}const o=t.getIdentifier("seedEntityHash")?.value?.trim()||"",c=t.getIdentifier("seedName")?.value?.trim();if(!c){const d="seedName is missing";return void(d&&t.errorService.setError(d.toString()))}let l;if(o&&(l=new A.NX,l.setEntityNamedKey(o,c,i)),!l){const d="dictionary_item_params is missing";return void(d&&t.errorService.setError(d.toString()))}const _=t.sdk.query_contract_dict_options({state_root_hash_as_string:r||""});_.dictionary_item_params=l;try{const d=yield t.sdk.query_contract_dict(_);d&&t.resultService.setResult(d.toJson())}catch(d){d&&t.errorService.setError(d.toString())}})()}query_contract_key(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("queryKey")?.value?.trim();if(!r){const c="key is missing";return void(c&&t.errorService.setError(c.toString()))}const i=t.getIdentifier("queryPath")?.value?.toString().trim().replace(/^\/+|\/+$/g,""),o=t.sdk.query_contract_key_options({entity_identifier_as_string:r,path_as_string:i});t.getIdentifieBlock(o);try{const c=yield t.sdk.query_contract_key(o);c&&t.resultService.setResult(c.toJson())}catch(c){c&&t.errorService.setError(c.toString())}})()}get_dictionary_item(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim(),o=t.getIdentifier("seedKey")?.value?.trim();if(!i&&!o){const d="seedKey or itemKey is missing";return void(d&&t.errorService.setError(d.toString()))}const c=t.getIdentifier("seedUref")?.value?.trim();let l;if(c&&"newFromSeedUref"===t.select_dict_identifier)l=A.bL.newFromSeedUref(c,i);else if(o&&"newFromDictionaryKey"===t.select_dict_identifier)l=A.bL.newFromDictionaryKey(o);else{const d=t.getIdentifier("seedContractHash")?.value?.trim(),p=t.getIdentifier("seedEntityHash")?.value?.trim(),h=t.getIdentifier("seedAccountHash")?.value?.trim(),m=t.getIdentifier("seedName")?.value?.trim();if(!m){const w="seed_name is missing";return void(w&&t.errorService.setError(w.toString()))}d&&"newFromContractInfo"===t.select_dict_identifier&&(l=A.bL.newFromContractInfo(d,m,i)),p&&"newFromEntityInfo"===t.select_dict_identifier?l=A.bL.newFromEntityInfo(p,m,i):h&&"newFromAccountInfo"===t.select_dict_identifier&&(l=A.bL.newFromAccountInfo(h,m,i))}if(!l){const d="dictionary_item_identifier is missing";return void(d&&t.errorService.setError(d.toString()))}const _=t.sdk.get_dictionary_item_options({state_root_hash_as_string:r||""});_.dictionary_item_identifier=l;try{const d=yield t.sdk.state_get_dictionary_item(_);d&&t.resultService.setResult(d.toJson())}catch(d){d&&t.errorService.setError(d.toString())}})()}getIdentifier(t){return this.formService.form.get(t)}getIdentifieBlock(t){const r=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=this.getIdentifier("blockIdentifierHash")?.value?.trim();if(i)t.maybe_block_id_as_string=i,t.maybe_block_identifier=void 0;else if(r){const o=A.z$.fromHeight(BigInt(r));t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=o}else t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=void 0}getGlobalIdentifier(t){const r=this.getIdentifier("stateRootHash")?.value?.trim();let i;if(r)i=A.eg.fromStateRootHash(new A.np(r));else{const o=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),c=this.getIdentifier("blockIdentifierHash")?.value?.trim();c?i=A.eg.fromBlockHash(new A.Iy(c)):o&&(i=A.eg.fromBlockHeight(BigInt(o)))}i&&(t.global_state_identifier=i)}get_session_params(t){const r=new A.Qt,i=this.getIdentifier("entryPoint")?.value?.trim();i&&(r.session_entry_point=i);const o=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(h=>h.trim()).filter(h=>""!==h),c=this.getIdentifier("argsJson")?.value?.trim();o?.length?r.session_args_simple=o:c&&(r.session_args_json=c);const l=this.getIdentifier("callPackage")?.value,_=this.getIdentifier("sessionHash")?.value?.trim(),d=this.getIdentifier("sessionName")?.value?.trim();l?_?r.session_package_hash=_:d&&(r.session_package_name=d):_?r.session_hash=_:d&&(r.session_name=d),t&&(r.session_bytes=A.Ix.fromUint8Array(t));const p=this.getIdentifier("version")?.value?.trim();return p&&(r.session_version=p),r}get_builder_params(t){let r=new A.C_;const i=this.getIdentifier("entityHash")?.value?.trim(),o=this.getIdentifier("entityAlias")?.value?.trim(),c=this.getIdentifier("entryPoint")?.value?.trim();if(this.getIdentifier("callPackage")?.value){const _=this.getIdentifier("version")?.value?.trim();if(o)r=A.C_.newPackageAlias(o,c,_);else{let d=null;try{d=A.Vt.fromFormattedStr(i)}catch{try{d=new A.Vt(i)}catch{const m="package_hash could not be parsed";throw this.errorService.setError(m.toString()),m}}d&&(r=A.C_.newPackage(d,c,_))}}else if(o)r=A.C_.newInvocableEntityAlias(o,c);else if(i){let _=null,d=null;try{_=A.xM.fromFormattedStr(i),d=new A.Ep(_.toHexString())}catch{try{d=new A.Ep(i)}catch{const m="entity_hash could not be parsed";throw this.errorService.setError(m.toString()),m}}d&&(r=A.C_.newInvocableEntity(d,c))}if(t){const _="true"===this.getIdentifier("selectTransactionCategory")?.value?.trim();r=A.C_.newSession(A.Ix.fromUint8Array(t),_)}return r}addTransactionArgs(t){const r=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(o=>o.trim()).filter(o=>""!==o),i=this.getIdentifier("argsJson")?.value?.trim();return r?.length?t.session_args_simple=r:i&&(t.session_args_json=i),t}static{this.\u0275fac=function(r){return new(r||e)(U(Wn),U(Mi),U(Da),U(vs),U(xi),U(cn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const dz=["publicKeyElt"],fz=e=>[e];let eT=(()=>{class e{constructor(t,r,i,o,c,l){this.config=t,this.stateService=r,this.clientService=i,this.storageService=o,this.changeDetectorRef=c,this.formService=l}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription(),t.public_key=t.storageService.get("public_key")||t.public_key,t.public_key&&(yield t.updateAccount(),t.stateService.setState({public_key:t.public_key}))})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,u.A)(function*(i){i.action&&(t.action=i.action),i.public_key&&t.public_key!=i.public_key?(i.public_key&&(t.public_key=i.public_key),i.secret_key&&(t.secret_key=i.secret_key),yield t.updateAccount()):i.public_key&&i.public_key&&(t.public_key=i.public_key),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onPublicKeyChange(){var t=this;return(0,u.A)(function*(){const r=t.publicKeyElt&&t.publicKeyElt.nativeElement.value.toString().trim();t.public_key="",t.stateService.setState({public_key:r,secret_key:""}),t.storageService.setState({public_key:r})})()}isInvalid(){return!(this.config.action_needs_public_key&&!this.config.action_needs_public_key?.includes(this.action)||this.publicKeyElt?.nativeElement.value?.trim())}updateAccount(){var t=this;return(0,u.A)(function*(){const r=yield t.clientService.get_entity(t.public_key);if(!r.entity_result)return;const i=r?.entity_result?.AddressableEntity?.entity.entity_kind.Account,o=r?.entity_result?.AddressableEntity?.entity.main_purse;t.stateService.setState({account_hash:i,main_purse:o}),t.storageService.setState({account_hash:i,main_purse:o}),i&&t.formService.updateForm()})()}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(cn),T(XD),T(Ca),T(Gt),T(vs))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-public-key"]],viewQuery:function(r,i){if(1&r&>(dz,5),2&r){let o;ht(o=mt())&&(i.publicKeyElt=o.first)}},standalone:!0,features:[wt],decls:7,vars:4,consts:[["publicKeyElt",""],["for","publicKeyElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","public_key","placeholder","e.g. 0x","id","publicKeyElt","e2e-id","publicKeyElt",1,"form-control","form-control-xs",3,"input","value","ngClass"]],template:function(r,i){if(1&r){const o=Re();x(0,"label",1)(1,"span",2),re(2,"Pub. Key"),L(),x(3,"span",3),re(4,"Public Key"),L()(),x(5,"input",4,0),X("input",function(){return _e(o),de(i.onPublicKeyChange())}),L()}2&r&&(P(5),O("value",i.public_key||"")("ngClass",tn(2,fz,i.isInvalid()?"is-invalid":"")))},dependencies:[Ke,sr],changeDetection:0})}}return e})();const pz=["secretKeyElt"],gz=e=>[e];function hz(e,n){if(1&e){const t=Re();x(0,"button",4),X("click",function(){return _e(t),de(B().onSecretKeyClick())}),re(1," Load Secret Key\n"),L()}if(2&e){const t=B();O("ngClass",tn(1,gz,t.isInvalid()?"btn-warning":"btn-secondary"))}}function mz(e,n){if(1&e){const t=Re();x(0,"button",5),X("click",function(){return _e(t),de(B().onSecretKeyClick())}),re(1," Secret Key Loaded\n"),L()}}let tT=(()=>{class e{constructor(t,r,i,o,c){this.config=t,this.stateService=r,this.errorService=i,this.storageService=o,this.changeDetectorRef=c}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,u.A)(function*(i){i.action&&(t.action=i.action),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onSecretKeyClick(){this.secretKeyElt.nativeElement.click()}onPemSelected(t){var r=this;return(0,u.A)(function*(){const i=t.target.files?.item(0);let o="";if(i){let c=yield i.text();if(!c.trim())return;c=c.trim(),r.errorService.setError("");try{o=(0,A.kw)(c)}catch(l){r.errorService.setError(l)}o&&(r.secret_key=c)}else r.secret_key="";r.stateService.setState({public_key:o,secret_key:r.secret_key}),r.storageService.setState({public_key:o}),r.secretKeyElt.nativeElement.value="",r.changeDetectorRef.markForCheck()})()}isInvalid(){return!(this.config.action_needs_secret_key&&!this.config.action_needs_secret_key?.includes(this.action)||this.secret_key)}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(cn),T(xi),T(Ca),T(Gt))}}static{this.\u0275cmp=ct({type:e,selectors:[["comp-secret-key"]],viewQuery:function(r,i){if(1&r&>(pz,5),2&r){let o;ht(o=mt())&&(i.secretKeyElt=o.first)}},standalone:!0,features:[wt],decls:4,vars:2,consts:[["secretKeyElt",""],["name","secret_key","type","file","id","secretKeyElt","accept",".pem","e2e-id","secretKeyElt",1,"visually-hidden",3,"change"],["class","btn",3,"ngClass","click",4,"ngIf"],["class","btn btn-light",3,"click",4,"ngIf"],[1,"btn",3,"click","ngClass"],[1,"btn","btn-light",3,"click"]],template:function(r,i){if(1&r){const o=Re();x(0,"input",1,0),X("change",function(l){return _e(o),de(i.onPemSelected(l))}),L(),ie(2,hz,2,3,"button",2)(3,mz,2,0,"button",3)}2&r&&(P(2),O("ngIf",!i.secret_key),P(),O("ngIf",i.secret_key))},dependencies:[Ke,sr,sn],changeDetection:0})}}return e})(),wz=(()=>{class e{constructor(t,r,i,o,c,l){this.config=t,this.sdk=r,this.resultService=i,this.formService=o,this.errorService=c,this.stateService=l,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.public_key&&(this.public_key=t.public_key),t.secret_key&&(this.secret_key=t.secret_key)})}get_binary_latest_switch_block_header(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_latest_switch_block_header();return r&&t.resultService.setResult(r),r})()}get_binary_latest_block_header(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_latest_block_header();return r&&t.resultService.setResult(r),r})()}get_binary_block_header(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(i){const o=yield t.sdk.get_binary_block_header_by_hash(new A.Iy(i));return o&&t.resultService.setResult(o),o}if(r){const o=yield t.sdk.get_binary_block_header_by_height(BigInt(r));return o&&t.resultService.setResult(o),o}return t.get_binary_latest_block_header()})()}get_binary_latest_signed_block(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_latest_signed_block();return r&&t.resultService.setResult(r),r})()}get_binary_signed_block(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(i){const o=yield t.sdk.get_binary_signed_block_by_hash(new A.Iy(i));return o&&t.resultService.setResult(o),o}if(r){const o=yield t.sdk.get_binary_signed_block_by_height(BigInt(r));return o&&t.resultService.setResult(o),o}return t.get_binary_latest_signed_block()})()}get_binary_transaction(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("transactionHash")?.value?.trim(),i=t.getIdentifier("finalizedApprovals")?.value,o=yield t.sdk.get_binary_transaction_by_hash(new A.nQ(r),i);return o&&t.resultService.setResult(o),o})()}get_binary_peers(){var t=this;return(0,u.A)(function*(){let r=[];try{const i=yield t.sdk.get_binary_peers();i&&t.resultService.setResult(i),i&&(r=i.peers)}catch(i){i&&t.errorService.setError(i.toString())}return r})()}get_binary_uptime(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_uptime();return r&&t.resultService.setResult(r),r})()}get_binary_last_progress(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_last_progress();return r&&t.resultService.setResult(r),r})()}get_binary_reactor_state(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_reactor_state();return r&&t.resultService.setResult(r),r})()}get_binary_network_name(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_network_name();return r&&t.resultService.setResult(r),r})()}get_binary_consensus_validator_changes(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_consensus_validator_changes();return r&&t.resultService.setResult(r),r})()}get_binary_block_synchronizer_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_block_synchronizer_status();return r&&t.resultService.setResult(r),r})()}get_binary_available_block_range(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_available_block_range();return r&&t.resultService.setResult(r),r})()}get_binary_next_upgrade(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_next_upgrade();return r&&t.resultService.setResult(r),r})()}get_binary_consensus_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_consensus_status();return r&&t.resultService.setResult(r),r})()}get_binary_chainspec_raw_bytes(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_chainspec_raw_bytes();return r&&t.resultService.setResult(r),r})()}get_binary_node_status(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_node_status();return r&&t.resultService.setResult(r),r})()}get_binary_validator_reward_by_era(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("eraId")?.value?.trim(),o=yield t.sdk.get_binary_validator_reward_by_era(new A.J3(r),new A.M3(BigInt(i)));return o&&t.resultService.setResult(o),o})()}get_binary_validator_reward(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),o=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(o){const c=yield t.sdk.get_binary_validator_reward_by_block_hash(new A.J3(r),new A.Iy(o));return c&&t.resultService.setResult(c),c}if(i){const c=yield t.sdk.get_binary_validator_reward_by_block_height(new A.J3(r),BigInt(i));return c&&t.resultService.setResult(c),c}t.get_binary_validator_reward_by_era()})()}get_binary_delegator_reward_by_era(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("delegatorKey")?.value?.trim(),o=t.getIdentifier("eraId")?.value?.trim(),c=yield t.sdk.get_binary_delegator_reward_by_era(new A.J3(r),new A.J3(i),new A.M3(BigInt(o)));return c&&t.resultService.setResult(c),c})()}get_binary_delegator_reward(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("validatorKey")?.value?.trim(),i=t.getIdentifier("delegatorKey")?.value?.trim(),o=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),c=t.getIdentifier("blockIdentifierHash")?.value?.trim();if(c){const l=yield t.sdk.get_binary_delegator_reward_by_block_hash(new A.J3(r),new A.J3(i),new A.Iy(c));return l&&t.resultService.setResult(l),l}if(o){const l=yield t.sdk.get_binary_delegator_reward_by_block_height(new A.J3(r),new A.J3(i),BigInt(o));return l&&t.resultService.setResult(l),l}t.get_binary_delegator_reward_by_era()})()}get_binary_read_record(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("recordId")?.value?.trim(),i=t.getIdentifier("key")?.value?.trim(),o=yield t.sdk.get_binary_read_record(new A.Fg(r),(0,A.AS)(i));return o&&t.resultService.setResult(o),o})()}get_binary_global_state_item(){var t=this;return(0,u.A)(function*(){const r=t.getIdentifier("key")?.value?.trim(),i=t.getIdentifier("queryPath")?.value?.toString().trim().replace(/^\/+|\/+$/g,"").split("/")||[],o=t.getIdentifier("blockIdentifierHeight")?.value?.trim(),c=t.getIdentifier("blockIdentifierHash")?.value?.trim(),l=t.getIdentifier("stateRootHash")?.value?.trim();if(c){const _=yield t.sdk.get_binary_global_state_item_by_block_hash(new A.Iy(c),A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}if(o){const _=yield t.sdk.get_binary_global_state_item_by_block_height(BigInt(o),A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}if(l){const _=yield t.sdk.get_binary_global_state_item_by_state_root_hash(A.np.fromString(l),A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}{const _=yield t.sdk.get_binary_global_state_item(A.Uz.fromFormattedString(r),i);return _&&t.resultService.setResult(_),_}})()}get_binary_try_accept_transaction(t){var r=this;return(0,u.A)(function*(){if(!r.public_key)return void r.errorService.setError("public_key is missing".toString());if(!r.secret_key)return void r.errorService.setError("secret_key is missing".toString());if(!t)return void r.errorService.setError("transaction is missing".toString());const i=yield r.sdk.get_binary_try_accept_transaction(t);return i&&r.resultService.setResult(i),i})()}get_binary_try_speculative_execution(t){var r=this;return(0,u.A)(function*(){if(!r.public_key)return void r.errorService.setError("public_key is missing".toString());if(!r.secret_key)return void r.errorService.setError("secret_key is missing".toString());if(!t)return void r.errorService.setError("transaction is missing".toString());const i=yield r.sdk.get_binary_try_speculative_execution(t);return i&&r.resultService.setResult(i),i})()}get_binary_protocol_version(){var t=this;return(0,u.A)(function*(){const r=yield t.sdk.get_binary_protocol_version();return r&&t.resultService.setResult(r),r})()}getIdentifier(t){return this.formService.form.get(t)}static{this.\u0275fac=function(r){return new(r||e)(U(Wn),U(Mi),U(Da),U(vs),U(xi),U(cn))}}static{this.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const yz=["selectDictIdentifierElt"],vg=()=>["sign_deploy","sign_transaction"];function bz(e,n){if(1&e){const t=Re();x(0,"comp-submit-action",12),X("submit_action",function(i){return _e(t),de(B().submitAction(i))}),re(1,"Go"),L()}2&e&&(tl("btn-success ms-1 ms-sm-2 ms-xl-3"),O("e2e","submit"))}function vz(e,n){if(1&e){const t=Re();x(0,"comp-submit-action",12),X("submit_action",function(i){return _e(t),de(B().submitAction(i))}),re(1,"Sign "),L()}2&e&&(tl("btn-warning mt-3"),O("e2e","sign"))}function Ez(e,n){if(1&e){const t=Re();x(0,"button",13),X("click",function(i){_e(t);const o=B();return de(o.walletSign(i,o.action))}),re(1," Casper Wallet Sign "),L()}2&e&&(tl("btn-warning mt-3 ms-3"),Dt("e2e","wallet_sign"))}let Sz=(()=>{class e{constructor(t,r,i,o,c,l,_,d,p,h){this.sdk=t,this.config=r,this.env=i,this.clientService=o,this.binaryService=c,this.resultService=l,this.stateService=_,this.formService=d,this.errorService=p,this.storageService=h,this.form=this.formService.form,this.setStateSubscription()}ngOnInit(){var t=this;return(0,u.A)(function*(){console.info(t.sdk)})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action)})}ngAfterViewInit(){var t=this;return(0,u.A)(function*(){const i=t.storageService.get("action")||t.config.default_action.toString();try{i==t.config.default_action.toString()&&(yield t.handleAction(i,!0)),yield t.get_state_root_hash(!0)}catch(o){console.error(o),t.errorService.setError(o)}t.stateService.setState({action:i}),t.setStateSubscription()})()}selectAction(t){var r=this;return(0,u.A)(function*(){yield r.cleanResult(),r.stateService.setState({action:t}),yield r.handleAction(t),r.storageService.setState({action:t})})()}submitAction(t){var r=this;return(0,u.A)(function*(){yield r.cleanResult(),(r.form.disabled||r.form.valid)&&(yield r.handleAction(t,!0))})()}walletSign(t,r){var i=this;return(0,u.A)(function*(){i.clientService.wallet_sign_deploy()})()}handleAction(t,r=!1){var i=this;return(0,u.A)(function*(){const o=l=>l[t]?.bind(l),c=o(i)||o(i.clientService)||o(i.binaryService);if(c&&"function"==typeof c){if(r)try{yield c()}catch(l){i.errorService.setError(l)}}else{const l=`Method ${t} is not defined on the component or clientService.`;console.error(l),i.errorService.setError(l)}})()}onWasmSelected(t){var r=this;return(0,u.A)(function*(){t&&(r.wasm=t)})()}cleanResult(){var t=this;return(0,u.A)(function*(){t.errorService.setError(""),yield t.resultService.setResult("")})()}deploy(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.deploy(t,r,i.wasm)})()}transaction(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.transaction(t,r,i.wasm)})()}get_account(t){var r=this;return(0,u.A)(function*(){return yield r.clientService.get_account(t)})()}get_entity(t){var r=this;return(0,u.A)(function*(){return yield r.clientService.get_entity(t)})()}get_state_root_hash(t){var r=this;return(0,u.A)(function*(){const i=yield r.clientService.get_state_root_hash(t);return r.stateService.setState({state_root_hash:i}),i})()}transfer(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.transfer(t,r)})()}transfer_transaction(t=!0,r){var i=this;return(0,u.A)(function*(){return yield i.clientService.transfer_transaction(t,r)})()}get_binary_try_accept_transaction(){var t=this;return(0,u.A)(function*(){let r=yield t.clientService.transaction(!1,!1,t.wasm);return yield t.binaryService.get_binary_try_accept_transaction(r)})()}get_binary_try_speculative_execution(){var t=this;return(0,u.A)(function*(){let r=yield t.clientService.transaction(!1,!0,t.wasm);return yield t.binaryService.get_binary_try_speculative_execution(r)})()}static{this.\u0275fac=function(r){return new(r||e)(T(Mi),T(Wn),T(Bp),T(XD),T(wz),T(Da),T(cn),T(vs),T(xi),T(Ca))}}static{this.\u0275cmp=ct({type:e,selectors:[["app-root"]],viewQuery:function(r,i){if(1&r&>(yz,5),2&r){let o;ht(o=mt())&&(i.selectDictIdentifierElt=o.first)}},standalone:!0,features:[wt],decls:16,vars:8,consts:[[1,"container"],[3,"peers"],[3,"get_state_root_hash_output"],[1,"row","flex-column-reverse","flex-column-reverse","flex-md-row"],[1,"col-12","col-md-6","col-lg-5","my-1","my-md-0","d-flex","justify-content-between"],[1,"w-100",3,"select_action"],[3,"class","e2e","submit_action",4,"ngIf"],[1,"col-12","col-md-6","col-lg-7","my-1","my-md-0","d-flex","justify-content-end","ps-md-0"],[1,"input-group"],[1,"d-flex","justify-content-end","ms-1","ms-sm-2","ms-xl-3"],[3,"wasm_selected","form"],["type","button","class","btn",3,"class","click",4,"ngIf"],[3,"submit_action","e2e"],["type","button",1,"btn",3,"click"]],template:function(r,i){1&r&&(x(0,"main",0),pt(1,"comp-header",1),x(2,"comp-status",2),X("get_state_root_hash_output",function(c){return i.get_state_root_hash(c)}),L(),x(3,"div",3)(4,"div",4)(5,"comp-action",5),X("select_action",function(c){return i.selectAction(c)}),L(),ie(6,bz,2,3,"comp-submit-action",6),L(),x(7,"div",7),pt(8,"comp-public-key",8),x(9,"div",9),pt(10,"comp-secret-key"),L()()(),pt(11,"comp-error"),x(12,"comp-form",10),X("wasm_selected",function(c){return i.onWasmSelected(c)}),L(),ie(13,vz,2,3,"comp-submit-action",6)(14,Ez,2,3,"button",11),pt(15,"comp-result"),L()),2&r&&(P(),O("peers",i.peers),P(5),O("ngIf",!ul(5,vg).includes(i.action)),P(6),O("form",i.form),P(),O("ngIf",ul(6,vg).includes(i.action)),P(),O("ngIf",ul(7,vg).includes(i.action)))},dependencies:[Ke,sn,bs,zD,GD,KD,JD,ZD,QD,YD,eT,tT],changeDetection:0})}}return e})(),fu=Object.entries(an.networks).map(([e,n])=>({name:e,...n}));Hp.production&&(fu=fu.filter(e=>"dev"!==e.name)),an.networks=fu,an.network=fu.find(e=>e.name==Hp.default_network.toString()),function UW(e,n){return OL({rootComponent:e,...uC(n)})}(Sz,{providers:[{provide:Bp,useValue:Hp},{provide:Wn,useValue:an},{provide:fC,useValue:an.wasm_asset_path},{provide:pC,useValue:an.network?.rpc_address},{provide:gC,useValue:an.network?.node_address},{provide:hC,useValue:A.WT[an.verbosity]},oh([function mW(...e){const n=[Y2,zS,BS,{provide:zl,useExisting:BS},{provide:Ul,useFactory:()=>H(Ap,{optional:!0})??H(zS)},{provide:ca,useValue:hW,multi:!0},{provide:Rp,useValue:!0},{provide:qS,useClass:gW}];for(const t of e)n.push(...t.\u0275providers);return function Ui(e){return{\u0275providers:e}}(n)}(function wW(){return function gs(e,n){return{\u0275kind:e,\u0275providers:n}}(kr.LegacyInterceptors,[{provide:GS,useFactory:oW},{provide:ca,useExisting:GS,multi:!0}])}()),rj,HH])]}).then(()=>{}).catch(()=>{})},7278:f=>{var s=0;function a(g,y){var v=y.data;if(Array.isArray(v)&&!(v.length<2)){var E=v[0],k=v[1],M=v[2],j=g._callbacks[E];j&&(delete g._callbacks[E],j(k,M))}}function u(g){var y=this;y._worker=g,y._callbacks={},g.addEventListener("message",function(v){a(y,v)})}u.prototype.postMessage=function(g){var y=this,v=s++,E=[v,g];return new Promise(function(k,M){if(y._callbacks[v]=function(Z,fe){if(Z)return M(new Error(Z.message));k(fe)},typeof y._worker.controller<"u"){var j=new MessageChannel;j.port1.onmessage=function(Z){a(y,Z)},y._worker.controller.postMessage(E,[j.port2])}else y._worker.postMessage(E)})},f.exports=u},8825:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{AS:()=>hexToUint8Array,Ay:()=>__WEBPACK_DEFAULT_EXPORT__,Bh:()=>DeployStrParams,C_:()=>TransactionBuilderParams,Ep:()=>AddressableEntityHash,Fg:()=>RecordId,IQ:()=>hexToString,Ix:()=>Bytes,Iy:()=>BlockHash,J3:()=>PublicKey,M3:()=>EraId,MK:()=>PricingMode,NX:()=>DictionaryItemStrParams,Qt:()=>SessionStrParams,S3:()=>motesToCSPR,Uz:()=>Key,Vt:()=>PackageHash,WT:()=>Verbosity,ZX:()=>Transaction,_e:()=>CasperWallet,bL:()=>DictionaryItemIdentifier,eg:()=>GlobalStateIdentifier,hp:()=>SDK,kD:()=>TransactionStrParams,kw:()=>publicKeyFromSecretKey,lg:()=>getTimestamp,m9:()=>Deploy,mL:()=>jsonPrettyPrint,nQ:()=>TransactionHash,np:()=>Digest,q1:()=>PaymentStrParams,xM:()=>EntityAddr,z$:()=>BlockIdentifier});var _opt2_casper_rustSDK_examples_frontend_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(467);let wasm;const cachedTextDecoder=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&cachedTextDecoder.decode();let cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return(null===cachedUint8ArrayMemory0||0===cachedUint8ArrayMemory0.byteLength)&&(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}function getStringFromWasm0(f,s){return f>>>=0,cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(f,f+s))}let WASM_VECTOR_LEN=0;const cachedTextEncoder=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},encodeString="function"==typeof cachedTextEncoder.encodeInto?function(f,s){return cachedTextEncoder.encodeInto(f,s)}:function(f,s){const a=cachedTextEncoder.encode(f);return s.set(a),{read:f.length,written:a.length}};function passStringToWasm0(f,s,a){if(void 0===a){const E=cachedTextEncoder.encode(f),k=s(E.length,1)>>>0;return getUint8ArrayMemory0().subarray(k,k+E.length).set(E),WASM_VECTOR_LEN=E.length,k}let u=f.length,g=s(u,1)>>>0;const y=getUint8ArrayMemory0();let v=0;for(;v127)break;y[g+v]=E}if(v!==u){0!==v&&(f=f.slice(v)),g=a(g,u,u=v+3*f.length,1)>>>0;const E=getUint8ArrayMemory0().subarray(g+v,g+u);v+=encodeString(f,E).written,g=a(g,u,v,1)>>>0}return WASM_VECTOR_LEN=v,g}function isLikeNone(f){return null==f}let cachedDataViewMemory0=null;function getDataViewMemory0(){return(null===cachedDataViewMemory0||!0===cachedDataViewMemory0.buffer.detached||void 0===cachedDataViewMemory0.buffer.detached&&cachedDataViewMemory0.buffer!==wasm.memory.buffer)&&(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}function debugString(f){const s=typeof f;if("number"==s||"boolean"==s||null==f)return`${f}`;if("string"==s)return`"${f}"`;if("symbol"==s){const g=f.description;return null==g?"Symbol":`Symbol(${g})`}if("function"==s){const g=f.name;return"string"==typeof g&&g.length>0?`Function(${g})`:"Function"}if(Array.isArray(f)){const g=f.length;let y="[";g>0&&(y+=debugString(f[0]));for(let v=1;v1))return toString.call(f);if(u=a[1],"Object"==u)try{return"Object("+JSON.stringify(f)+")"}catch{return"Object"}return f instanceof Error?`${f.name}: ${f.message}\n${f.stack}`:u}const CLOSURE_DTORS=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>{wasm.__wbindgen_export_3.get(f.dtor)(f.a,f.b)});function makeMutClosure(f,s,a,u){const g={a:f,b:s,cnt:1,dtor:a},y=(...v)=>{g.cnt++;const E=g.a;g.a=0;try{return u(E,g.b,...v)}finally{0==--g.cnt?(wasm.__wbindgen_export_3.get(g.dtor)(E,g.b),CLOSURE_DTORS.unregister(g)):g.a=E}};return y.original=g,CLOSURE_DTORS.register(y,g,g),y}function __wbg_adapter_38(f,s){wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd1bf6ecddece6326(f,s)}function __wbg_adapter_41(f,s,a){wasm.closure958_externref_shim(f,s,a)}function __wbg_adapter_48(f,s,a){wasm.closure1148_externref_shim(f,s,a)}function __wbg_adapter_51(f,s,a){wasm.closure1160_externref_shim(f,s,a)}function takeFromExternrefTable0(f){const s=wasm.__wbindgen_export_2.get(f);return wasm.__externref_table_dealloc(f),s}function passArray8ToWasm0(f,s){const a=s(1*f.length,1)>>>0;return getUint8ArrayMemory0().set(f,a/1),WASM_VECTOR_LEN=f.length,a}function _assertClass(f,s){if(!(f instanceof s))throw new Error(`expected instance of ${s.name}`);return f.ptr}function addToExternrefTable0(f){const s=wasm.__externref_table_alloc();return wasm.__wbindgen_export_2.set(s,f),s}function passArrayJsValueToWasm0(f,s){const a=s(4*f.length,4)>>>0,u=getDataViewMemory0();for(let g=0;g>>=0,getUint8ArrayMemory0().subarray(f/1,f/1+s)}function hexToUint8Array(f){const s=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),u=wasm.hexToUint8Array(s,WASM_VECTOR_LEN);var g=getArrayU8FromWasm0(u[0],u[1]).slice();return wasm.__wbindgen_free(u[0],1*u[1],1),g}function uint8ArrayToBytes(f){const s=wasm.uint8ArrayToBytes(f);return Bytes.__wrap(s)}function motesToCSPR(f){let s,a;try{const y=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.motesToCSPR(y,WASM_VECTOR_LEN);var u=E[0],g=E[1];if(E[3])throw u=0,g=0,takeFromExternrefTable0(E[2]);return s=u,a=g,getStringFromWasm0(u,g)}finally{wasm.__wbindgen_free(s,a,1)}}function jsonPrettyPrint(f,s){const a=wasm.jsonPrettyPrint(f,isLikeNone(s)?3:s);if(a[2])throw takeFromExternrefTable0(a[1]);return takeFromExternrefTable0(a[0])}function publicKeyFromSecretKey(f){const s=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),u=wasm.publicKeyFromSecretKey(s,WASM_VECTOR_LEN);if(u[2])throw takeFromExternrefTable0(u[1]);return takeFromExternrefTable0(u[0])}function generateSecretKey(){const f=wasm.generateSecretKey();if(f[2])throw takeFromExternrefTable0(f[1]);return takeFromExternrefTable0(f[0])}function generateSecretKey_secp256k1(){const f=wasm.generateSecretKey_secp256k1();if(f[2])throw takeFromExternrefTable0(f[1]);return takeFromExternrefTable0(f[0])}function accountHashToBase64Key(f){let s,a;try{const y=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.accountHashToBase64Key(y,WASM_VECTOR_LEN);var u=E[0],g=E[1];if(E[3])throw u=0,g=0,takeFromExternrefTable0(E[2]);return s=u,a=g,getStringFromWasm0(u,g)}finally{wasm.__wbindgen_free(s,a,1)}}function getTimestamp(){return wasm.getTimestamp()}function encodeLowerBlake2b(f){const s=passStringToWasm0(f,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.encodeLowerBlake2b(s,WASM_VECTOR_LEN)}function makeDictionaryItemKey(f,s){let a,u;try{_assertClass(f,Key);var g=f.__destroy_into_raw();const E=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=wasm.makeDictionaryItemKey(g,E,WASM_VECTOR_LEN);var y=M[0],v=M[1];if(M[3])throw y=0,v=0,takeFromExternrefTable0(M[2]);return a=y,u=v,getStringFromWasm0(y,v)}finally{wasm.__wbindgen_free(a,u,1)}}function getArrayJsValueFromWasm0(f,s){f>>>=0;const a=getDataViewMemory0(),u=[];for(let g=f;g{throw new Error(`${f} is not defined`)}}function handleError(f,s){try{return f.apply(this,s)}catch(a){const u=addToExternrefTable0(a);wasm.__wbindgen_exn_store(u)}}function __wbg_adapter_1211(f,s,a,u){wasm.closure1697_externref_shim(f,s,a,u)}const PricingMode=Object.freeze({Fixed:0,0:"Fixed",Classic:1,1:"Classic",Reserved:2,2:"Reserved"}),TransactionKind=Object.freeze({InvocableEntity:0,0:"InvocableEntity",InvocableEntityAlias:1,1:"InvocableEntityAlias",Package:2,2:"Package",PackageAlias:3,3:"PackageAlias",Session:4,4:"Session",Transfer:5,5:"Transfer",AddBid:6,6:"AddBid",Delegate:7,7:"Delegate",Undelegate:8,8:"Undelegate",Redelegate:9,9:"Redelegate",WithdrawBid:10,10:"WithdrawBid"}),TransferTargetKind=Object.freeze({PublicKey:0,0:"PublicKey",AccountHash:1,1:"AccountHash",URef:2,2:"URef"}),Verbosity=Object.freeze({Low:0,0:"Low",Medium:1,1:"Medium",High:2,2:"High"}),__wbindgen_enum_ReadableStreamReaderMode=null,__wbindgen_enum_ReadableStreamType=["bytes"],__wbindgen_enum_RequestCredentials=["omit","same-origin","include"],__wbindgen_enum_RequestMode=["same-origin","no-cors","cors","navigate"],AccessRightsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_accessrights_free(f>>>0,1));class AccessRights{static __wrap(s){s>>>=0;const a=Object.create(AccessRights.prototype);return a.__wbg_ptr=s,AccessRightsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AccessRightsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_accessrights_free(s,0)}static NONE(){return wasm.accessrights_NONE()}static READ(){return wasm.accessrights_READ()}static WRITE(){return wasm.accessrights_WRITE()}static ADD(){return wasm.accessrights_ADD()}static READ_ADD(){return wasm.accessrights_READ_ADD()}static READ_WRITE(){return wasm.accessrights_READ_WRITE()}static ADD_WRITE(){return wasm.accessrights_ADD_WRITE()}static READ_ADD_WRITE(){return wasm.accessrights_READ_ADD_WRITE()}constructor(s){const a=wasm.accessrights_new(s);if(a[2])throw takeFromExternrefTable0(a[1]);return this.__wbg_ptr=a[0]>>>0,AccessRightsFinalization.register(this,this.__wbg_ptr,this),this}static from_bits(s,a,u){const g=wasm.accessrights_from_bits(s,a,u);return AccessRights.__wrap(g)}is_readable(){return 0!==wasm.accessrights_is_readable(this.__wbg_ptr)}is_writeable(){return 0!==wasm.accessrights_is_writeable(this.__wbg_ptr)}is_addable(){return 0!==wasm.accessrights_is_addable(this.__wbg_ptr)}is_none(){return 0!==wasm.accessrights_is_none(this.__wbg_ptr)}}const AccountHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_accounthash_free(f>>>0,1));class AccountHash{static __wrap(s){s>>>=0;const a=Object.create(AccountHash.prototype);return a.__wbg_ptr=s,AccountHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AccountHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_accounthash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accounthash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,AccountHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accounthash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return AccountHash.__wrap(g[0])}static fromPublicKey(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.accounthash_fromPublicKey(a);return AccountHash.__wrap(u)}toFormattedString(){let s,a;try{const u=wasm.accounthash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toHexString(){let s,a;try{const u=wasm.accounthash_toHexString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.accounthash_fromUint8Array(a,WASM_VECTOR_LEN);return AccountHash.__wrap(g)}toJson(){return wasm.accounthash_toJson(this.__wbg_ptr)}}const AccountIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_accountidentifier_free(f>>>0,1));class AccountIdentifier{static __wrap(s){s>>>=0;const a=Object.create(AccountIdentifier.prototype);return a.__wbg_ptr=s,AccountIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AccountIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_accountidentifier_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accountidentifier_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,AccountIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.accountidentifier_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return AccountIdentifier.__wrap(g[0])}static fromPublicKey(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromPublicKey(a);return AccountIdentifier.__wrap(u)}static fromAccountHash(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.accountidentifier_fromAccountHash(a);return AccountIdentifier.__wrap(u)}toJson(){return wasm.accountidentifier_toJson(this.__wbg_ptr)}}const AddressableEntityHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_addressableentityhash_free(f>>>0,1));class AddressableEntityHash{static __wrap(s){s>>>=0;const a=Object.create(AddressableEntityHash.prototype);return a.__wbg_ptr=s,AddressableEntityHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,AddressableEntityHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_addressableentityhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.addressableentityhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,AddressableEntityHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.addressableentityhash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return AddressableEntityHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.addressableentityhash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.addressableentityhash_fromUint8Array(a,WASM_VECTOR_LEN);return AddressableEntityHash.__wrap(g)}}const ArgsSimpleFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_argssimple_free(f>>>0,1));class ArgsSimple{static __wrap(s){s>>>=0;const a=Object.create(ArgsSimple.prototype);return a.__wbg_ptr=s,ArgsSimpleFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ArgsSimpleFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_argssimple_free(s,0)}}const BlockHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_blockhash_free(f>>>0,1));class BlockHash{static __wrap(s){s>>>=0;const a=Object.create(BlockHash.prototype);return a.__wbg_ptr=s,BlockHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BlockHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_blockhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.blockhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,BlockHashFinalization.register(this,this.__wbg_ptr,this),this}static fromDigest(s){_assertClass(s,Digest);var a=s.__destroy_into_raw();const u=wasm.blockhash_fromDigest(a);if(u[2])throw takeFromExternrefTable0(u[1]);return BlockHash.__wrap(u[0])}toJson(){return wasm.blockhash_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.blockhash_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const BlockIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_blockidentifier_free(f>>>0,1));class BlockIdentifier{static __wrap(s){s>>>=0;const a=Object.create(BlockIdentifier.prototype);return a.__wbg_ptr=s,BlockIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BlockIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_blockidentifier_free(s,0)}constructor(s){_assertClass(s,BlockIdentifier);var a=s.__destroy_into_raw();const u=wasm.blockidentifier_new(a);return this.__wbg_ptr=u>>>0,BlockIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static from_hash(s){_assertClass(s,BlockHash);var a=s.__destroy_into_raw();const u=wasm.blockidentifier_from_hash(a);return BlockIdentifier.__wrap(u)}static fromHeight(s){const a=wasm.blockidentifier_fromHeight(s);return BlockIdentifier.__wrap(a)}toJson(){return wasm.blockidentifier_toJson(this.__wbg_ptr)}}const BodyFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_body_free(f>>>0,1));class Body{static __wrap(s){s>>>=0;const a=Object.create(Body.prototype);return a.__wbg_ptr=s,BodyFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BodyFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_body_free(s,0)}get transaction_processed(){const s=wasm.__wbg_get_body_transaction_processed(this.__wbg_ptr);return 0===s?void 0:TransactionProcessed.__wrap(s)}set transaction_processed(s){let a=0;isLikeNone(s)||(_assertClass(s,TransactionProcessed),a=s.__destroy_into_raw()),wasm.__wbg_set_body_transaction_processed(this.__wbg_ptr,a)}get get_deploy_processed(){const s=wasm.body_get_deploy_processed(this.__wbg_ptr);return 0===s?void 0:TransactionProcessed.__wrap(s)}get get_transaction_processed(){const s=wasm.body_get_deploy_processed(this.__wbg_ptr);return 0===s?void 0:TransactionProcessed.__wrap(s)}}const BytesFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_bytes_free(f>>>0,1));class Bytes{static __wrap(s){s>>>=0;const a=Object.create(Bytes.prototype);return a.__wbg_ptr=s,BytesFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,BytesFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_bytes_free(s,0)}constructor(){const s=wasm.bytes_new();return this.__wbg_ptr=s>>>0,BytesFinalization.register(this,this.__wbg_ptr,this),this}static fromUint8Array(s){const a=wasm.bytes_fromUint8Array(s);return Bytes.__wrap(a)}}const CasperWalletFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_casperwallet_free(f>>>0,1));class CasperWallet{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,CasperWalletFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_casperwallet_free(s,0)}constructor(){const s=wasm.casperwallet_new();return this.__wbg_ptr=s>>>0,CasperWalletFinalization.register(this,this.__wbg_ptr,this),this}signDeploy(s,a){_assertClass(s,Deploy);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signDeploy(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}signTransaction(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signTransaction(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}signDeployHash(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signDeployHash(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}signTransactionHash(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signTransactionHash(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}signMessage(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.casperwallet_signMessage(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}connect(){return wasm.casperwallet_connect(this.__wbg_ptr)}disconnect(){return wasm.casperwallet_disconnect(this.__wbg_ptr)}isConnected(){return wasm.casperwallet_isConnected(this.__wbg_ptr)}getVersion(){return wasm.casperwallet_getVersion(this.__wbg_ptr)}getActivePublicKey(){return wasm.casperwallet_getActivePublicKey(this.__wbg_ptr)}switchAccount(){return wasm.casperwallet_switchAccount(this.__wbg_ptr)}}const ContractHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_contracthash_free(f>>>0,1));class ContractHash{static __wrap(s){s>>>=0;const a=Object.create(ContractHash.prototype);return a.__wbg_ptr=s,ContractHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ContractHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_contracthash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contracthash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,ContractHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contracthash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return ContractHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.contracthash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.contracthash_fromUint8Array(a,WASM_VECTOR_LEN);return ContractHash.__wrap(g)}}const ContractPackageHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_contractpackagehash_free(f>>>0,1));class ContractPackageHash{static __wrap(s){s>>>=0;const a=Object.create(ContractPackageHash.prototype);return a.__wbg_ptr=s,ContractPackageHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ContractPackageHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_contractpackagehash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contractpackagehash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,ContractPackageHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.contractpackagehash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return ContractPackageHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.contractpackagehash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.contractpackagehash_fromUint8Array(a,WASM_VECTOR_LEN);return ContractPackageHash.__wrap(g)}}const DeployFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_deploy_free(f>>>0,1));class Deploy{static __wrap(s){s>>>=0;const a=Object.create(Deploy.prototype);return a.__wbg_ptr=s,DeployFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DeployFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_deploy_free(s,0)}constructor(s){const a=wasm.deploy_new(s);return this.__wbg_ptr=a>>>0,DeployFinalization.register(this,this.__wbg_ptr,this),this}toJson(){return wasm.deploy_toJson(this.__wbg_ptr)}static withPaymentAndSession(s,a,u){_assertClass(s,DeployStrParams);var g=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var y=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var v=u.__destroy_into_raw();const E=wasm.deploy_withPaymentAndSession(g,y,v);if(E[2])throw takeFromExternrefTable0(E[1]);return Deploy.__wrap(E[0])}static withTransfer(s,a,u,g,y){const v=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN;var j=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Z=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var fe=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var ce=y.__destroy_into_raw();const le=wasm.deploy_withTransfer(v,E,k,M,j,Z,fe,ce);if(le[2])throw takeFromExternrefTable0(le[1]);return Deploy.__wrap(le[0])}withTTL(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withTTL(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withTimestamp(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withTimestamp(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withChainName(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withChainName(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withAccount(s,a){_assertClass(s,PublicKey);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withAccount(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withEntryPointName(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withEntryPointName(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withHash(s,a){_assertClass(s,ContractHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withPackageHash(s,a){_assertClass(s,ContractPackageHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withPackageHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withModuleBytes(s,a){_assertClass(s,Bytes);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.deploy_withModuleBytes(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}withSecretKey(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.deploy_withSecretKey(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Deploy.__wrap(g)}withStandardPayment(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.deploy_withStandardPayment(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}withPayment(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.deploy_withPayment(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);return Deploy.__wrap(y)}withSession(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.deploy_withSession(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);return Deploy.__wrap(y)}validateDeploySize(){return 0!==wasm.deploy_validateDeploySize(this.__wbg_ptr)}isValid(){return 0!==wasm.deploy_isValid(this.__wbg_ptr)}get hash(){const s=wasm.deploy_hash(this.__wbg_ptr);return DeployHash.__wrap(s)}hasValidHash(){return 0!==wasm.deploy_hasValidHash(this.__wbg_ptr)}isExpired(){return 0!==wasm.deploy_isExpired(this.__wbg_ptr)}sign(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.deploy_sign(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Deploy.__wrap(g)}approvalsHash(){return wasm.deploy_approvalsHash(this.__wbg_ptr)}approvals(){return wasm.deploy_approvals(this.__wbg_ptr)}isTransfer(){return 0!==wasm.deploy_isTransfer(this.__wbg_ptr)}isStandardPayment(s){return 0!==wasm.deploy_isStandardPayment(this.__wbg_ptr,s)}isStoredContract(){return 0!==wasm.deploy_isStoredContract(this.__wbg_ptr)}isStoredContractPackage(){return 0!==wasm.deploy_isStoredContractPackage(this.__wbg_ptr)}isModuleBytes(){return 0!==wasm.deploy_isModuleBytes(this.__wbg_ptr)}isByName(){return 0!==wasm.deploy_isByName(this.__wbg_ptr)}byName(){const s=wasm.deploy_byName(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}entryPointName(){let s,a;try{const u=wasm.deploy_entryPointName(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}addSignature(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.deploy_addSignature(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Deploy.__wrap(E)}TTL(){let s,a;try{const u=wasm.deploy_TTL(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}timestamp(){let s,a;try{const u=wasm.deploy_timestamp(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}chainName(){let s,a;try{const u=wasm.deploy_chainName(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}account(){let s,a;try{const u=wasm.deploy_account(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}paymentAmount(s){let a,u;try{const g=wasm.deploy_paymentAmount(this.__wbg_ptr,s);return a=g[0],u=g[1],getStringFromWasm0(g[0],g[1])}finally{wasm.__wbindgen_free(a,u,1)}}args(){return wasm.deploy_args(this.__wbg_ptr)}addArg(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.deploy_addArg(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);if(y[2])throw takeFromExternrefTable0(y[1]);return Deploy.__wrap(y[0])}}const DeployHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_deployhash_free(f>>>0,1));class DeployHash{static __wrap(s){s>>>=0;const a=Object.create(DeployHash.prototype);return a.__wbg_ptr=s,DeployHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DeployHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_deployhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.deployhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,DeployHashFinalization.register(this,this.__wbg_ptr,this),this}static fromDigest(s){_assertClass(s,Digest);var a=s.__destroy_into_raw();const u=wasm.deployhash_fromDigest(a);if(u[2])throw takeFromExternrefTable0(u[1]);return DeployHash.__wrap(u[0])}toJson(){return wasm.deployhash_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.deployhash_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const DeployStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_deploystrparams_free(f>>>0,1));class DeployStrParams{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DeployStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_deploystrparams_free(s,0)}constructor(s,a,u,g,y,v){const E=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;var Z=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN,ce=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),le=WASM_VECTOR_LEN,nt=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ze=WASM_VECTOR_LEN,rt=isLikeNone(v)?0:passStringToWasm0(v,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const vn=wasm.deploystrparams_new(E,k,M,j,Z,fe,ce,le,nt,ze,rt,WASM_VECTOR_LEN);return this.__wbg_ptr=vn>>>0,DeployStrParamsFinalization.register(this,this.__wbg_ptr,this),this}get secret_key(){const s=wasm.deploystrparams_secret_key(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set secret_key(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_secret_key(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get timestamp(){const s=wasm.deploystrparams_timestamp(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set timestamp(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTimestamp(){wasm.deploystrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const s=wasm.deploystrparams_ttl(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set ttl(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTTL(){wasm.deploystrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const s=wasm.deploystrparams_chain_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set chain_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_chain_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_account(){const s=wasm.deploystrparams_session_account(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_account(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_session_account(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get gas_price_tolerance(){const s=wasm.deploystrparams_gas_price_tolerance(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set gas_price_tolerance(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.deploystrparams_set_gas_price_tolerance(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const DictionaryAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_dictionaryaddr_free(f>>>0,1));class DictionaryAddr{static __wrap(s){s>>>=0;const a=Object.create(DictionaryAddr.prototype);return a.__wbg_ptr=s,DictionaryAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DictionaryAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_dictionaryaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.dictionaryaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,DictionaryAddrFinalization.register(this,this.__wbg_ptr,this),this}}const DictionaryItemIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_dictionaryitemidentifier_free(f>>>0,1));class DictionaryItemIdentifier{static __wrap(s){s>>>=0;const a=Object.create(DictionaryItemIdentifier.prototype);return a.__wbg_ptr=s,DictionaryItemIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DictionaryItemIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_dictionaryitemidentifier_free(s,0)}static newFromAccountInfo(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.dictionaryitemidentifier_newFromAccountInfo(g,y,v,E,k,WASM_VECTOR_LEN);if(j[2])throw takeFromExternrefTable0(j[1]);return DictionaryItemIdentifier.__wrap(j[0])}static newFromContractInfo(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.dictionaryitemidentifier_newFromContractInfo(g,y,v,E,k,WASM_VECTOR_LEN);if(j[2])throw takeFromExternrefTable0(j[1]);return DictionaryItemIdentifier.__wrap(j[0])}static newFromEntityInfo(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.dictionaryitemidentifier_newFromEntityInfo(g,y,v,E,k,WASM_VECTOR_LEN);if(j[2])throw takeFromExternrefTable0(j[1]);return DictionaryItemIdentifier.__wrap(j[0])}static newFromSeedUref(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.dictionaryitemidentifier_newFromSeedUref(u,g,y,WASM_VECTOR_LEN);if(E[2])throw takeFromExternrefTable0(E[1]);return DictionaryItemIdentifier.__wrap(E[0])}static newFromDictionaryKey(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.dictionaryitemidentifier_newFromDictionaryKey(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return DictionaryItemIdentifier.__wrap(g[0])}toJson(){return wasm.dictionaryitemidentifier_toJson(this.__wbg_ptr)}}const DictionaryItemStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_dictionaryitemstrparams_free(f>>>0,1));class DictionaryItemStrParams{static __wrap(s){s>>>=0;const a=Object.create(DictionaryItemStrParams.prototype);return a.__wbg_ptr=s,DictionaryItemStrParamsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DictionaryItemStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_dictionaryitemstrparams_free(s,0)}constructor(){const s=wasm.dictionaryitemstrparams_new();return this.__wbg_ptr=s>>>0,DictionaryItemStrParamsFinalization.register(this,this.__wbg_ptr,this),this}setAccountNamedKey(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr,g,y,v,E,k,WASM_VECTOR_LEN)}setContractNamedKey(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr,g,y,v,E,k,WASM_VECTOR_LEN)}setEntityNamedKey(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setEntityNamedKey(this.__wbg_ptr,g,y,v,E,k,WASM_VECTOR_LEN)}setUref(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setUref(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN)}setDictionary(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.dictionaryitemstrparams_setDictionary(this.__wbg_ptr,a,WASM_VECTOR_LEN)}toJson(){return wasm.dictionaryitemstrparams_toJson(this.__wbg_ptr)}}const DigestFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_digest_free(f>>>0,1));class Digest{static __wrap(s){s>>>=0;const a=Object.create(Digest.prototype);return a.__wbg_ptr=s,DigestFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,DigestFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_digest_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.digest_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,DigestFinalization.register(this,this.__wbg_ptr,this),this}static fromString(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.digest_fromString(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return Digest.__wrap(g[0])}static fromRaw(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.digest_fromRaw(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return Digest.__wrap(g[0])}toJson(){return wasm.digest_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.digest_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const EntityAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_entityaddr_free(f>>>0,1));class EntityAddr{static __wrap(s){s>>>=0;const a=Object.create(EntityAddr.prototype);return a.__wbg_ptr=s,EntityAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EntityAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_entityaddr_free(s,0)}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.entityaddr_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return EntityAddr.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.entityaddr_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toHexString(){let s,a;try{const u=wasm.entityaddr_toHexString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.entityaddr_toJson(this.__wbg_ptr)}}const EntityIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_entityidentifier_free(f>>>0,1));class EntityIdentifier{static __wrap(s){s>>>=0;const a=Object.create(EntityIdentifier.prototype);return a.__wbg_ptr=s,EntityIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EntityIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_entityidentifier_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.entityidentifier_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,EntityIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.entityidentifier_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return EntityIdentifier.__wrap(g[0])}static fromPublicKey(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.entityidentifier_fromPublicKey(a);return EntityIdentifier.__wrap(u)}static fromAccountHash(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.entityidentifier_fromAccountHash(a);return EntityIdentifier.__wrap(u)}static fromEntityAddr(s){_assertClass(s,EntityAddr);var a=s.__destroy_into_raw();const u=wasm.entityidentifier_fromEntityAddr(a);return EntityIdentifier.__wrap(u)}toJson(){return wasm.entityidentifier_toJson(this.__wbg_ptr)}}const EraIdFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_eraid_free(f>>>0,1));class EraId{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EraIdFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_eraid_free(s,0)}constructor(s){const a=wasm.eraid_new(s);return this.__wbg_ptr=a>>>0,EraIdFinalization.register(this,this.__wbg_ptr,this),this}value(){const s=wasm.eraid_value(this.__wbg_ptr);return BigInt.asUintN(64,s)}}const EventParseResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_eventparseresult_free(f>>>0,1));class EventParseResult{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,EventParseResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_eventparseresult_free(s,0)}get err(){const s=wasm.__wbg_get_eventparseresult_err(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set err(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_eventparseresult_err(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get body(){const s=wasm.__wbg_get_eventparseresult_body(this.__wbg_ptr);return 0===s?void 0:Body.__wrap(s)}set body(s){let a=0;isLikeNone(s)||(_assertClass(s,Body),a=s.__destroy_into_raw()),wasm.__wbg_set_eventparseresult_body(this.__wbg_ptr,a)}}const ExecutionResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_executionresult_free(f>>>0,1));class ExecutionResult{static __wrap(s){s>>>=0;const a=Object.create(ExecutionResult.prototype);return a.__wbg_ptr=s,ExecutionResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ExecutionResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_executionresult_free(s,0)}get Success(){const s=wasm.__wbg_get_executionresult_Success(this.__wbg_ptr);return 0===s?void 0:Version2.__wrap(s)}set Success(s){let a=0;isLikeNone(s)||(_assertClass(s,Version2),a=s.__destroy_into_raw()),wasm.__wbg_set_executionresult_Success(this.__wbg_ptr,a)}get Failure(){const s=wasm.__wbg_get_executionresult_Failure(this.__wbg_ptr);return 0===s?void 0:Failure.__wrap(s)}set Failure(s){let a=0;isLikeNone(s)||(_assertClass(s,Failure),a=s.__destroy_into_raw()),wasm.__wbg_set_executionresult_Failure(this.__wbg_ptr,a)}}const FailureFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_failure_free(f>>>0,1));class Failure{static __wrap(s){s>>>=0;const a=Object.create(Failure.prototype);return a.__wbg_ptr=s,FailureFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,FailureFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_failure_free(s,0)}get cost(){let s,a;try{const u=wasm.__wbg_get_failure_cost(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set cost(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get error_message(){let s,a;try{const u=wasm.__wbg_get_failure_error_message(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set error_message(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_error_message(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const GetAccountResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getaccountresult_free(f>>>0,1));class GetAccountResult{static __wrap(s){s>>>=0;const a=Object.create(GetAccountResult.prototype);return a.__wbg_ptr=s,GetAccountResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetAccountResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getaccountresult_free(s,0)}get api_version(){return wasm.getaccountresult_api_version(this.__wbg_ptr)}get account(){return wasm.getaccountresult_account(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getaccountresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getaccountresult_toJson(this.__wbg_ptr)}}const GetAddressableEntityResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getaddressableentityresult_free(f>>>0,1));class GetAddressableEntityResult{static __wrap(s){s>>>=0;const a=Object.create(GetAddressableEntityResult.prototype);return a.__wbg_ptr=s,GetAddressableEntityResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetAddressableEntityResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getaddressableentityresult_free(s,0)}get api_version(){return wasm.getaddressableentityresult_api_version(this.__wbg_ptr)}get entity_result(){return wasm.getaddressableentityresult_entity_result(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getaddressableentityresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getaddressableentityresult_toJson(this.__wbg_ptr)}}const GetAuctionInfoResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getauctioninforesult_free(f>>>0,1));class GetAuctionInfoResult{static __wrap(s){s>>>=0;const a=Object.create(GetAuctionInfoResult.prototype);return a.__wbg_ptr=s,GetAuctionInfoResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetAuctionInfoResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getauctioninforesult_free(s,0)}get api_version(){return wasm.getauctioninforesult_api_version(this.__wbg_ptr)}get auction_state(){return wasm.getauctioninforesult_auction_state(this.__wbg_ptr)}toJson(){return wasm.getauctioninforesult_toJson(this.__wbg_ptr)}}const GetBalanceResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getbalanceresult_free(f>>>0,1));class GetBalanceResult{static __wrap(s){s>>>=0;const a=Object.create(GetBalanceResult.prototype);return a.__wbg_ptr=s,GetBalanceResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetBalanceResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getbalanceresult_free(s,0)}get api_version(){return wasm.getbalanceresult_api_version(this.__wbg_ptr)}get balance_value(){return wasm.getbalanceresult_balance_value(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getbalanceresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getbalanceresult_toJson(this.__wbg_ptr)}}const GetBlockResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblockresult_free(f>>>0,1));class GetBlockResult{static __wrap(s){s>>>=0;const a=Object.create(GetBlockResult.prototype);return a.__wbg_ptr=s,GetBlockResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetBlockResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblockresult_free(s,0)}get api_version(){return wasm.getblockresult_api_version(this.__wbg_ptr)}get block(){return wasm.getblockresult_block(this.__wbg_ptr)}toJson(){return wasm.getblockresult_toJson(this.__wbg_ptr)}}const GetBlockTransfersResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblocktransfersresult_free(f>>>0,1));class GetBlockTransfersResult{static __wrap(s){s>>>=0;const a=Object.create(GetBlockTransfersResult.prototype);return a.__wbg_ptr=s,GetBlockTransfersResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetBlockTransfersResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblocktransfersresult_free(s,0)}get api_version(){return wasm.getblocktransfersresult_api_version(this.__wbg_ptr)}get block_hash(){const s=wasm.getblocktransfersresult_block_hash(this.__wbg_ptr);return 0===s?void 0:BlockHash.__wrap(s)}get transfers(){return wasm.getblocktransfersresult_transfers(this.__wbg_ptr)}toJson(){return wasm.getblocktransfersresult_toJson(this.__wbg_ptr)}}const GetChainspecResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getchainspecresult_free(f>>>0,1));class GetChainspecResult{static __wrap(s){s>>>=0;const a=Object.create(GetChainspecResult.prototype);return a.__wbg_ptr=s,GetChainspecResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetChainspecResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getchainspecresult_free(s,0)}get api_version(){return wasm.getchainspecresult_api_version(this.__wbg_ptr)}get chainspec_bytes(){return wasm.getchainspecresult_chainspec_bytes(this.__wbg_ptr)}toJson(){return wasm.getchainspecresult_toJson(this.__wbg_ptr)}}const GetDeployResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdeployresult_free(f>>>0,1));class GetDeployResult{static __wrap(s){s>>>=0;const a=Object.create(GetDeployResult.prototype);return a.__wbg_ptr=s,GetDeployResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetDeployResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdeployresult_free(s,0)}get api_version(){return wasm.getdeployresult_api_version(this.__wbg_ptr)}get deploy(){const s=wasm.getdeployresult_deploy(this.__wbg_ptr);return Deploy.__wrap(s)}get execution_info(){return wasm.getdeployresult_execution_info(this.__wbg_ptr)}toJson(){return wasm.getdeployresult_toJson(this.__wbg_ptr)}}const GetDictionaryItemResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdictionaryitemresult_free(f>>>0,1));class GetDictionaryItemResult{static __wrap(s){s>>>=0;const a=Object.create(GetDictionaryItemResult.prototype);return a.__wbg_ptr=s,GetDictionaryItemResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetDictionaryItemResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdictionaryitemresult_free(s,0)}get api_version(){return wasm.getdictionaryitemresult_api_version(this.__wbg_ptr)}get dictionary_key(){let s,a;try{const u=wasm.getdictionaryitemresult_dictionary_key(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get stored_value(){return wasm.getdictionaryitemresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.getdictionaryitemresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getdictionaryitemresult_toJson(this.__wbg_ptr)}}const GetEraInfoResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterainforesult_free(f>>>0,1));class GetEraInfoResult{static __wrap(s){s>>>=0;const a=Object.create(GetEraInfoResult.prototype);return a.__wbg_ptr=s,GetEraInfoResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetEraInfoResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterainforesult_free(s,0)}get api_version(){return wasm.geterainforesult_api_version(this.__wbg_ptr)}get era_summary(){return wasm.geterainforesult_era_summary(this.__wbg_ptr)}toJson(){return wasm.geterainforesult_toJson(this.__wbg_ptr)}}const GetEraSummaryResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterasummaryresult_free(f>>>0,1));class GetEraSummaryResult{static __wrap(s){s>>>=0;const a=Object.create(GetEraSummaryResult.prototype);return a.__wbg_ptr=s,GetEraSummaryResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetEraSummaryResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterasummaryresult_free(s,0)}get api_version(){return wasm.geterasummaryresult_api_version(this.__wbg_ptr)}get era_summary(){return wasm.geterasummaryresult_era_summary(this.__wbg_ptr)}toJson(){return wasm.geterasummaryresult_toJson(this.__wbg_ptr)}}const GetNodeStatusResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getnodestatusresult_free(f>>>0,1));class GetNodeStatusResult{static __wrap(s){s>>>=0;const a=Object.create(GetNodeStatusResult.prototype);return a.__wbg_ptr=s,GetNodeStatusResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetNodeStatusResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getnodestatusresult_free(s,0)}get api_version(){return wasm.getnodestatusresult_api_version(this.__wbg_ptr)}get chainspec_name(){let s,a;try{const u=wasm.getnodestatusresult_chainspec_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get starting_state_root_hash(){const s=wasm.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr);return Digest.__wrap(s)}get peers(){return wasm.getnodestatusresult_peers(this.__wbg_ptr)}get last_added_block_info(){return wasm.getnodestatusresult_last_added_block_info(this.__wbg_ptr)}get our_public_signing_key(){const s=wasm.getnodestatusresult_our_public_signing_key(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}get round_length(){return wasm.getnodestatusresult_round_length(this.__wbg_ptr)}get next_upgrade(){return wasm.getnodestatusresult_next_upgrade(this.__wbg_ptr)}get build_version(){let s,a;try{const u=wasm.getnodestatusresult_build_version(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get uptime(){return wasm.getnodestatusresult_uptime(this.__wbg_ptr)}get reactor_state(){return wasm.getnodestatusresult_reactor_state(this.__wbg_ptr)}get last_progress(){return wasm.getnodestatusresult_last_progress(this.__wbg_ptr)}get available_block_range(){return wasm.getnodestatusresult_available_block_range(this.__wbg_ptr)}get block_sync(){return wasm.getnodestatusresult_block_sync(this.__wbg_ptr)}toJson(){return wasm.getnodestatusresult_toJson(this.__wbg_ptr)}}const GetPeersResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getpeersresult_free(f>>>0,1));class GetPeersResult{static __wrap(s){s>>>=0;const a=Object.create(GetPeersResult.prototype);return a.__wbg_ptr=s,GetPeersResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetPeersResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getpeersresult_free(s,0)}get api_version(){return wasm.getpeersresult_api_version(this.__wbg_ptr)}get peers(){return wasm.getpeersresult_peers(this.__wbg_ptr)}toJson(){return wasm.getpeersresult_toJson(this.__wbg_ptr)}}const GetStateRootHashResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getstateroothashresult_free(f>>>0,1));class GetStateRootHashResult{static __wrap(s){s>>>=0;const a=Object.create(GetStateRootHashResult.prototype);return a.__wbg_ptr=s,GetStateRootHashResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetStateRootHashResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getstateroothashresult_free(s,0)}get api_version(){return wasm.getstateroothashresult_api_version(this.__wbg_ptr)}get state_root_hash(){const s=wasm.getstateroothashresult_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}get state_root_hash_as_string(){let s,a;try{const u=wasm.getstateroothashresult_state_root_hash_as_string(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toString(){let s,a;try{const u=wasm.getstateroothashresult_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.getstateroothashresult_toJson(this.__wbg_ptr)}}const GetTransactionResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_gettransactionresult_free(f>>>0,1));class GetTransactionResult{static __wrap(s){s>>>=0;const a=Object.create(GetTransactionResult.prototype);return a.__wbg_ptr=s,GetTransactionResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetTransactionResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_gettransactionresult_free(s,0)}get api_version(){return wasm.gettransactionresult_api_version(this.__wbg_ptr)}get transaction(){const s=wasm.gettransactionresult_transaction(this.__wbg_ptr);return Transaction.__wrap(s)}get execution_info(){return wasm.gettransactionresult_execution_info(this.__wbg_ptr)}toJson(){return wasm.gettransactionresult_toJson(this.__wbg_ptr)}}const GetValidatorChangesResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getvalidatorchangesresult_free(f>>>0,1));class GetValidatorChangesResult{static __wrap(s){s>>>=0;const a=Object.create(GetValidatorChangesResult.prototype);return a.__wbg_ptr=s,GetValidatorChangesResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GetValidatorChangesResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getvalidatorchangesresult_free(s,0)}get api_version(){return wasm.getvalidatorchangesresult_api_version(this.__wbg_ptr)}get changes(){return wasm.getvalidatorchangesresult_changes(this.__wbg_ptr)}toJson(){return wasm.getvalidatorchangesresult_toJson(this.__wbg_ptr)}}const GlobalStateIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_globalstateidentifier_free(f>>>0,1));class GlobalStateIdentifier{static __wrap(s){s>>>=0;const a=Object.create(GlobalStateIdentifier.prototype);return a.__wbg_ptr=s,GlobalStateIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,GlobalStateIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_globalstateidentifier_free(s,0)}constructor(s){_assertClass(s,GlobalStateIdentifier);var a=s.__destroy_into_raw();const u=wasm.globalstateidentifier_new(a);return this.__wbg_ptr=u>>>0,GlobalStateIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromBlockHash(s){_assertClass(s,BlockHash);var a=s.__destroy_into_raw();const u=wasm.globalstateidentifier_fromBlockHash(a);return GlobalStateIdentifier.__wrap(u)}static fromBlockHeight(s){const a=wasm.globalstateidentifier_fromBlockHeight(s);return GlobalStateIdentifier.__wrap(a)}static fromStateRootHash(s){_assertClass(s,Digest);var a=s.__destroy_into_raw();const u=wasm.globalstateidentifier_fromStateRootHash(a);return GlobalStateIdentifier.__wrap(u)}toJson(){return wasm.globalstateidentifier_toJson(this.__wbg_ptr)}}const HashAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_hashaddr_free(f>>>0,1));class HashAddr{static __wrap(s){s>>>=0;const a=Object.create(HashAddr.prototype);return a.__wbg_ptr=s,HashAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,HashAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_hashaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.hashaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,HashAddrFinalization.register(this,this.__wbg_ptr,this),this}toBytes(){const s=wasm.hashaddr_toBytes(this.__wbg_ptr);var a=getArrayU8FromWasm0(s[0],s[1]).slice();return wasm.__wbindgen_free(s[0],1*s[1],1),a}toHexString(){let s,a;try{const u=wasm.hashaddr_toHexString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const HashStringFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_hashstring_free(f>>>0,1));class HashString{static __wrap(s){s>>>=0;const a=Object.create(HashString.prototype);return a.__wbg_ptr=s,HashStringFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,HashStringFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_hashstring_free(s,0)}get hash(){let s,a;try{const u=wasm.__wbg_get_hashstring_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get Deploy(){let s,a;try{const u=wasm.hashstring_Deploy(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get Version1(){let s,a;try{const u=wasm.hashstring_Version1(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toString(){let s,a;try{const u=wasm.hashstring_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const IntoUnderlyingByteSourceFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_intounderlyingbytesource_free(f>>>0,1));class IntoUnderlyingByteSource{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,IntoUnderlyingByteSourceFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_intounderlyingbytesource_free(s,0)}get type(){const s=wasm.intounderlyingbytesource_type(this.__wbg_ptr);return __wbindgen_enum_ReadableStreamType[s]}get autoAllocateChunkSize(){return wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}start(s){wasm.intounderlyingbytesource_start(this.__wbg_ptr,s)}pull(s){return wasm.intounderlyingbytesource_pull(this.__wbg_ptr,s)}cancel(){const s=this.__destroy_into_raw();wasm.intounderlyingbytesource_cancel(s)}}const IntoUnderlyingSinkFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_intounderlyingsink_free(f>>>0,1));class IntoUnderlyingSink{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,IntoUnderlyingSinkFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_intounderlyingsink_free(s,0)}write(s){return wasm.intounderlyingsink_write(this.__wbg_ptr,s)}close(){const s=this.__destroy_into_raw();return wasm.intounderlyingsink_close(s)}abort(s){const a=this.__destroy_into_raw();return wasm.intounderlyingsink_abort(a,s)}}const IntoUnderlyingSourceFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_intounderlyingsource_free(f>>>0,1));class IntoUnderlyingSource{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,IntoUnderlyingSourceFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_intounderlyingsource_free(s,0)}pull(s){return wasm.intounderlyingsource_pull(this.__wbg_ptr,s)}cancel(){const s=this.__destroy_into_raw();wasm.intounderlyingsource_cancel(s)}}const KeyFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_key_free(f>>>0,1));class Key{static __wrap(s){s>>>=0;const a=Object.create(Key.prototype);return a.__wbg_ptr=s,KeyFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,KeyFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_key_free(s,0)}constructor(s){_assertClass(s,Key);var a=s.__destroy_into_raw();const u=wasm.key_new(a);if(u[2])throw takeFromExternrefTable0(u[1]);return this.__wbg_ptr=u[0]>>>0,KeyFinalization.register(this,this.__wbg_ptr,this),this}toJson(){return wasm.key_toJson(this.__wbg_ptr)}static fromURef(s){_assertClass(s,URef);var a=s.__destroy_into_raw();const u=wasm.key_fromURef(a);return Key.__wrap(u)}static fromDeployInfo(s){_assertClass(s,DeployHash);var a=s.__destroy_into_raw();const u=wasm.key_fromDeployInfo(a);return Key.__wrap(u)}static fromAccount(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromAccount(a);return Key.__wrap(u)}static fromHash(s){_assertClass(s,HashAddr);var a=s.__destroy_into_raw();const u=wasm.key_fromHash(a);return Key.__wrap(u)}static fromTransfer(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.key_fromTransfer(a,WASM_VECTOR_LEN);return TransferAddr.__wrap(g)}static fromEraInfo(s){_assertClass(s,EraId);var a=s.__destroy_into_raw();const u=wasm.key_fromEraInfo(a);return Key.__wrap(u)}static fromBalance(s){_assertClass(s,URefAddr);var a=s.__destroy_into_raw();const u=wasm.key_fromBalance(a);return Key.__wrap(u)}static fromBid(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromBid(a);return Key.__wrap(u)}static fromWithdraw(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromWithdraw(a);return Key.__wrap(u)}static fromDictionaryAddr(s){_assertClass(s,DictionaryAddr);var a=s.__destroy_into_raw();const u=wasm.key_fromDictionaryAddr(a);return Key.__wrap(u)}asDictionaryAddr(){const s=wasm.key_asDictionaryAddr(this.__wbg_ptr);return 0===s?void 0:DictionaryAddr.__wrap(s)}static fromSystemEntityRegistry(){const s=wasm.key_fromSystemEntityRegistry();return Key.__wrap(s)}static fromEraSummary(){const s=wasm.key_fromEraSummary();return Key.__wrap(s)}static fromUnbond(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.key_fromUnbond(a);return Key.__wrap(u)}static fromChainspecRegistry(){const s=wasm.key_fromChainspecRegistry();return Key.__wrap(s)}static fromChecksumRegistry(){const s=wasm.key_fromChecksumRegistry();return Key.__wrap(s)}toFormattedString(){let s,a;try{const u=wasm.key_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromFormattedString(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.key_fromFormattedString(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return Key.__wrap(g[0])}static fromDictionaryKey(s,a){_assertClass(s,URef);var u=s.__destroy_into_raw();const g=passArray8ToWasm0(a,wasm.__wbindgen_malloc),v=wasm.key_fromDictionaryKey(u,g,WASM_VECTOR_LEN);return Key.__wrap(v)}isDictionaryKey(){return 0!==wasm.key_isDictionaryKey(this.__wbg_ptr)}intoAccount(){const s=this.__destroy_into_raw(),a=wasm.key_intoAccount(s);return 0===a?void 0:AccountHash.__wrap(a)}intoHash(){const s=this.__destroy_into_raw(),a=wasm.key_intoHash(s);return 0===a?void 0:HashAddr.__wrap(a)}asBalance(){const s=wasm.key_asBalance(this.__wbg_ptr);return 0===s?void 0:URefAddr.__wrap(s)}intoURef(){const s=this.__destroy_into_raw(),a=wasm.key_intoURef(s);return 0===a?void 0:URef.__wrap(a)}urefToHash(){const s=wasm.key_urefToHash(this.__wbg_ptr);return 0===s?void 0:Key.__wrap(s)}withdrawToUnbond(){const s=wasm.key_withdrawToUnbond(this.__wbg_ptr);return 0===s?void 0:Key.__wrap(s)}}const ListRpcsResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_listrpcsresult_free(f>>>0,1));class ListRpcsResult{static __wrap(s){s>>>=0;const a=Object.create(ListRpcsResult.prototype);return a.__wbg_ptr=s,ListRpcsResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,ListRpcsResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_listrpcsresult_free(s,0)}get api_version(){return wasm.listrpcsresult_api_version(this.__wbg_ptr)}get name(){let s,a;try{const u=wasm.listrpcsresult_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get schema(){return wasm.listrpcsresult_schema(this.__wbg_ptr)}toJson(){return wasm.listrpcsresult_toJson(this.__wbg_ptr)}}const MessageFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_message_free(f>>>0,1));class Message{static __wrap(s){s>>>=0;const a=Object.create(Message.prototype);return a.__wbg_ptr=s,MessageFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,MessageFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_message_free(s,0)}get String(){let s,a;try{const u=wasm.__wbg_get_message_String(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set String(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const MessagesFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_messages_free(f>>>0,1));class Messages{static __wrap(s){s>>>=0;const a=Object.create(Messages.prototype);return a.__wbg_ptr=s,MessagesFinalization.register(a,a.__wbg_ptr,a),a}static __unwrap(s){return s instanceof Messages?s.__destroy_into_raw():0}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,MessagesFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_messages_free(s,0)}get entity_hash(){let s,a;try{const u=wasm.__wbg_get_messages_entity_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set entity_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_entity_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get message(){const s=wasm.__wbg_get_messages_message(this.__wbg_ptr);return Message.__wrap(s)}set message(s){_assertClass(s,Message);var a=s.__destroy_into_raw();wasm.__wbg_set_messages_message(this.__wbg_ptr,a)}get topic_name(){let s,a;try{const u=wasm.__wbg_get_messages_topic_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set topic_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_topic_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get topic_name_hash(){let s,a;try{const u=wasm.__wbg_get_messages_topic_name_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set topic_name_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_topic_name_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get topic_index(){return wasm.__wbg_get_messages_topic_index(this.__wbg_ptr)>>>0}set topic_index(s){wasm.__wbg_set_messages_topic_index(this.__wbg_ptr,s)}get block_index(){const s=wasm.__wbg_get_messages_block_index(this.__wbg_ptr);return BigInt.asUintN(64,s)}set block_index(s){wasm.__wbg_set_messages_block_index(this.__wbg_ptr,s)}}const PackageHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_packagehash_free(f>>>0,1));class PackageHash{static __wrap(s){s>>>=0;const a=Object.create(PackageHash.prototype);return a.__wbg_ptr=s,PackageHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PackageHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_packagehash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.packagehash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,PackageHashFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.packagehash_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return PackageHash.__wrap(g[0])}toFormattedString(){let s,a;try{const u=wasm.packagehash_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.packagehash_fromUint8Array(a,WASM_VECTOR_LEN);return PackageHash.__wrap(g)}}const PathFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_path_free(f>>>0,1));class Path{static __wrap(s){s>>>=0;const a=Object.create(Path.prototype);return a.__wbg_ptr=s,PathFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PathFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_path_free(s,0)}constructor(s){const a=wasm.path_new(s);return this.__wbg_ptr=a>>>0,PathFinalization.register(this,this.__wbg_ptr,this),this}static fromArray(s){const a=wasm.path_fromArray(s);return Path.__wrap(a)}toJson(){return wasm.path_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.path_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}is_empty(){return 0!==wasm.path_is_empty(this.__wbg_ptr)}}const PaymentFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_payment_free(f>>>0,1));class Payment{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PaymentFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_payment_free(s,0)}get source(){let s,a;try{const u=wasm.__wbg_get_payment_source(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set source(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const PaymentStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_paymentstrparams_free(f>>>0,1));class PaymentStrParams{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PaymentStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_paymentstrparams_free(s,0)}constructor(s,a,u,g,y,v,E,k,M,j){var Z=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN,ce=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),le=WASM_VECTOR_LEN,nt=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ze=WASM_VECTOR_LEN,rt=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),kt=WASM_VECTOR_LEN,vn=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),En=WASM_VECTOR_LEN,Bn=isLikeNone(v)?0:passStringToWasm0(v,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Sn=WASM_VECTOR_LEN,Hn=isLikeNone(k)?0:passStringToWasm0(k,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),or=WASM_VECTOR_LEN,Cn=isLikeNone(M)?0:passStringToWasm0(M,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ln=WASM_VECTOR_LEN,Dn=isLikeNone(j)?0:passStringToWasm0(j,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ar=WASM_VECTOR_LEN;const cr=wasm.paymentstrparams_new(Z,fe,ce,le,nt,ze,rt,kt,vn,En,Bn,Sn,isLikeNone(E)?0:addToExternrefTable0(E),Hn,or,Cn,ln,Dn,ar);return this.__wbg_ptr=cr>>>0,PaymentStrParamsFinalization.register(this,this.__wbg_ptr,this),this}get payment_amount(){const s=wasm.paymentstrparams_payment_amount(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_amount(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_amount(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_hash(){const s=wasm.paymentstrparams_payment_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_name(){const s=wasm.paymentstrparams_payment_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_package_hash(){const s=wasm.paymentstrparams_payment_package_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_package_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_package_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_package_name(){const s=wasm.paymentstrparams_payment_package_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_package_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_package_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_path(){const s=wasm.paymentstrparams_payment_path(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_path(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_path(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_args_simple(){return wasm.paymentstrparams_payment_args_simple(this.__wbg_ptr)}set payment_args_simple(s){wasm.paymentstrparams_set_payment_args_simple(this.__wbg_ptr,s)}get payment_args_json(){const s=wasm.paymentstrparams_payment_args_json(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_args_json(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_args_json(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_version(){const s=wasm.paymentstrparams_payment_version(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_version(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_version(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_entry_point(){const s=wasm.paymentstrparams_payment_entry_point(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_entry_point(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.paymentstrparams_set_payment_entry_point(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const PeerEntryFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_peerentry_free(f>>>0,1));class PeerEntry{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PeerEntryFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_peerentry_free(s,0)}get node_id(){let s,a;try{const u=wasm.peerentry_node_id(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get address(){let s,a;try{const u=wasm.peerentry_address(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const PublicKeyFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_publickey_free(f>>>0,1));class PublicKey{static __wrap(s){s>>>=0;const a=Object.create(PublicKey.prototype);return a.__wbg_ptr=s,PublicKeyFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PublicKeyFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_publickey_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.publickey_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,PublicKeyFinalization.register(this,this.__wbg_ptr,this),this}static fromUint8Array(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.publickey_fromUint8Array(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return PublicKey.__wrap(g[0])}toAccountHash(){const s=wasm.publickey_toAccountHash(this.__wbg_ptr);return AccountHash.__wrap(s)}toPurseUref(){const s=wasm.publickey_toPurseUref(this.__wbg_ptr);return URef.__wrap(s)}toJson(){return wasm.publickey_toJson(this.__wbg_ptr)}}const PublicKeyStringFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_publickeystring_free(f>>>0,1));class PublicKeyString{static __wrap(s){s>>>=0;const a=Object.create(PublicKeyString.prototype);return a.__wbg_ptr=s,PublicKeyStringFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PublicKeyStringFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_publickeystring_free(s,0)}get PublicKey(){let s,a;try{const u=wasm.__wbg_get_publickeystring_PublicKey(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set PublicKey(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const PurseIdentifierFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_purseidentifier_free(f>>>0,1));class PurseIdentifier{static __wrap(s){s>>>=0;const a=Object.create(PurseIdentifier.prototype);return a.__wbg_ptr=s,PurseIdentifierFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PurseIdentifierFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_purseidentifier_free(s,0)}constructor(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();const u=wasm.purseidentifier_fromPublicKey(a);return this.__wbg_ptr=u>>>0,PurseIdentifierFinalization.register(this,this.__wbg_ptr,this),this}static fromAccountHash(s){_assertClass(s,AccountHash);var a=s.__destroy_into_raw();const u=wasm.purseidentifier_fromAccountHash(a);return PurseIdentifier.__wrap(u)}static fromURef(s){_assertClass(s,URef);var a=s.__destroy_into_raw();const u=wasm.purseidentifier_fromURef(a);return PurseIdentifier.__wrap(u)}toJson(){return wasm.purseidentifier_toJson(this.__wbg_ptr)}}const PutDeployResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_putdeployresult_free(f>>>0,1));class PutDeployResult{static __wrap(s){s>>>=0;const a=Object.create(PutDeployResult.prototype);return a.__wbg_ptr=s,PutDeployResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PutDeployResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_putdeployresult_free(s,0)}get api_version(){return wasm.putdeployresult_api_version(this.__wbg_ptr)}get deploy_hash(){const s=wasm.putdeployresult_deploy_hash(this.__wbg_ptr);return DeployHash.__wrap(s)}toJson(){return wasm.putdeployresult_toJson(this.__wbg_ptr)}}const PutTransactionResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_puttransactionresult_free(f>>>0,1));class PutTransactionResult{static __wrap(s){s>>>=0;const a=Object.create(PutTransactionResult.prototype);return a.__wbg_ptr=s,PutTransactionResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,PutTransactionResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_puttransactionresult_free(s,0)}get api_version(){return wasm.puttransactionresult_api_version(this.__wbg_ptr)}get transaction_hash(){const s=wasm.puttransactionresult_transaction_hash(this.__wbg_ptr);return TransactionHash.__wrap(s)}toJson(){return wasm.puttransactionresult_toJson(this.__wbg_ptr)}}const QueryBalanceDetailsResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalancedetailsresult_free(f>>>0,1));class QueryBalanceDetailsResult{static __wrap(s){s>>>=0;const a=Object.create(QueryBalanceDetailsResult.prototype);return a.__wbg_ptr=s,QueryBalanceDetailsResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,QueryBalanceDetailsResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalancedetailsresult_free(s,0)}get api_version(){return wasm.querybalancedetailsresult_api_version(this.__wbg_ptr)}get total_balance(){return wasm.querybalancedetailsresult_total_balance(this.__wbg_ptr)}get available_balance(){return wasm.querybalancedetailsresult_available_balance(this.__wbg_ptr)}get total_balance_proof(){return wasm.querybalancedetailsresult_total_balance_proof(this.__wbg_ptr)}get holds(){return wasm.querybalancedetailsresult_holds(this.__wbg_ptr)}toJson(){return wasm.querybalancedetailsresult_toJson(this.__wbg_ptr)}}const QueryBalanceResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalanceresult_free(f>>>0,1));class QueryBalanceResult{static __wrap(s){s>>>=0;const a=Object.create(QueryBalanceResult.prototype);return a.__wbg_ptr=s,QueryBalanceResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,QueryBalanceResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalanceresult_free(s,0)}get api_version(){return wasm.querybalanceresult_api_version(this.__wbg_ptr)}get balance(){return wasm.querybalanceresult_balance(this.__wbg_ptr)}toJson(){return wasm.querybalanceresult_toJson(this.__wbg_ptr)}}const QueryGlobalStateResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_queryglobalstateresult_free(f>>>0,1));class QueryGlobalStateResult{static __wrap(s){s>>>=0;const a=Object.create(QueryGlobalStateResult.prototype);return a.__wbg_ptr=s,QueryGlobalStateResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,QueryGlobalStateResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_queryglobalstateresult_free(s,0)}get api_version(){return wasm.queryglobalstateresult_api_version(this.__wbg_ptr)}get block_header(){return wasm.queryglobalstateresult_block_header(this.__wbg_ptr)}get stored_value(){return wasm.queryglobalstateresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let s,a;try{const u=wasm.queryglobalstateresult_merkle_proof(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.queryglobalstateresult_toJson(this.__wbg_ptr)}}const RecordIdFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_recordid_free(f>>>0,1));class RecordId{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,RecordIdFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_recordid_free(s,0)}constructor(s){const a=wasm.recordid_new_js_alias(s);if(a[2])throw takeFromExternrefTable0(a[1]);return this.__wbg_ptr=a[0]>>>0,RecordIdFinalization.register(this,this.__wbg_ptr,this),this}}const SDKFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_sdk_free(f>>>0,1));class SDK{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SDKFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_sdk_free(s,0)}get_transaction_options(s){const a=wasm.sdk_get_transaction_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getTransactionOptions.__wrap(a[0])}get_transaction(s){let a=0;return isLikeNone(s)||(_assertClass(s,getTransactionOptions),a=s.__destroy_into_raw()),wasm.sdk_get_transaction(this.__wbg_ptr,a)}info_get_transaction(s){let a=0;return isLikeNone(s)||(_assertClass(s,getTransactionOptions),a=s.__destroy_into_raw()),wasm.sdk_info_get_transaction(this.__wbg_ptr,a)}get_speculative_exec_options(s){const a=wasm.sdk_get_speculative_exec_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getSpeculativeExecTxnOptions.__wrap(a[0])}speculative_exec(s){let a=0;return isLikeNone(s)||(_assertClass(s,getSpeculativeExecTxnOptions),a=s.__destroy_into_raw()),wasm.sdk_speculative_exec(this.__wbg_ptr,a)}get_account_options(s){const a=wasm.sdk_get_account_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getAccountOptions.__wrap(a[0])}get_account(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAccountOptions),a=s.__destroy_into_raw()),wasm.sdk_get_account(this.__wbg_ptr,a)}state_get_account_info(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAccountOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_account_info(this.__wbg_ptr,a)}get_auction_info_options(s){const a=wasm.sdk_get_auction_info_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getAuctionInfoOptions.__wrap(a[0])}get_auction_info(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAuctionInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_get_auction_info(this.__wbg_ptr,a)}state_get_auction_info_js_alias(s){let a=0;return isLikeNone(s)||(_assertClass(s,getAuctionInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr,a)}get_deploy_options(s){const a=wasm.sdk_get_deploy_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getDeployOptions.__wrap(a[0])}get_deploy(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDeployOptions),a=s.__destroy_into_raw()),wasm.sdk_get_deploy(this.__wbg_ptr,a)}info_get_deploy(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDeployOptions),a=s.__destroy_into_raw()),wasm.sdk_info_get_deploy(this.__wbg_ptr,a)}get_entity_options(s){const a=wasm.sdk_get_entity_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getEntityOptions.__wrap(a[0])}get_entity(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEntityOptions),a=s.__destroy_into_raw()),wasm.sdk_get_entity(this.__wbg_ptr,a)}state_get_entity(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEntityOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_entity(this.__wbg_ptr,a)}get_era_info_options(s){const a=wasm.sdk_get_era_info_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getEraInfoOptions.__wrap(a[0])}get_era_info(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_get_era_info(this.__wbg_ptr,a)}chain_get_era_info_by_switch_block(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraInfoOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr,a)}deploy(s,a,u,g,y){_assertClass(s,DeployStrParams);var v=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var E=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var k=u.__destroy_into_raw(),M=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;return wasm.sdk_deploy(this.__wbg_ptr,v,E,k,isLikeNone(g)?3:g,M,j)}get_peers(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_peers(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_peers(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_peers(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}list_rpcs(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_list_rpcs(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}make_deploy(s,a,u){_assertClass(s,DeployStrParams);var g=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var y=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var v=u.__destroy_into_raw();const E=wasm.sdk_make_deploy(this.__wbg_ptr,g,y,v);if(E[2])throw takeFromExternrefTable0(E[1]);return Deploy.__wrap(E[0])}sign_deploy(s,a){_assertClass(s,Deploy);var u=s.__destroy_into_raw();const g=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=wasm.sdk_sign_deploy(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Deploy.__wrap(v)}make_transaction(s,a){_assertClass(s,TransactionBuilderParams);var u=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var g=a.__destroy_into_raw();const y=wasm.sdk_make_transaction(this.__wbg_ptr,u,g);if(y[2])throw takeFromExternrefTable0(y[1]);return Transaction.__wrap(y[0])}sign_transaction(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw();const g=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=wasm.sdk_sign_transaction(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}query_contract_key_options(s){const a=wasm.sdk_query_contract_key_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryContractKeyOptions.__wrap(a[0])}query_contract_key(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryContractKeyOptions),a=s.__destroy_into_raw()),wasm.sdk_query_contract_key(this.__wbg_ptr,a)}put_deploy(s,a,u){_assertClass(s,Deploy);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_put_deploy(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}account_put_deploy(s,a,u){_assertClass(s,Deploy);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_account_put_deploy(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}speculative_transfer_transaction(s,a,u,g,y,v,E){let k=0;isLikeNone(s)||(_assertClass(s,URef),k=s.__destroy_into_raw());const M=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN,Z=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var ce=g.__destroy_into_raw(),le=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN,ze=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN;return wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr,k,M,j,Z,fe,ce,le,nt,isLikeNone(v)?3:v,ze,rt)}call_entrypoint_deploy(s,a,u,g){_assertClass(s,DeployStrParams);var y=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var v=a.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}install(s,a,u){_assertClass(s,TransactionStrParams);var g=s.__destroy_into_raw();_assertClass(a,Bytes);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_install(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}speculative_transfer(s,a,u,g,y,v,E){const k=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN,j=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Z=WASM_VECTOR_LEN;var fe=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ce=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var le=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var nt=y.__destroy_into_raw(),ze=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN;return wasm.sdk_speculative_transfer(this.__wbg_ptr,k,M,j,Z,fe,ce,le,nt,isLikeNone(v)?3:v,ze,rt)}put_transaction(s,a,u){_assertClass(s,Transaction);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_put_transaction(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}account_put_transaction(s,a,u){_assertClass(s,Transaction);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;return wasm.sdk_account_put_transaction(this.__wbg_ptr,g,isLikeNone(a)?3:a,y,v)}watchDeploy(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.sdk_watchDeploy(this.__wbg_ptr,u,WASM_VECTOR_LEN,!isLikeNone(a),isLikeNone(a)?0:a);return Watcher.__wrap(y)}watchTransaction(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.sdk_watchTransaction(this.__wbg_ptr,u,WASM_VECTOR_LEN,!isLikeNone(a),isLikeNone(a)?0:a);return Watcher.__wrap(y)}waitDeploy(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_waitDeploy(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN,!isLikeNone(u),isLikeNone(u)?0:u)}waitTransaction(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_waitTransaction(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN,!isLikeNone(u),isLikeNone(u)?0:u)}call_entrypoint(s,a,u){_assertClass(s,TransactionBuilderParams);var g=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_call_entrypoint(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}install_deploy(s,a,u,g){_assertClass(s,DeployStrParams);var y=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var v=a.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_install_deploy(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}get_block_options(s){const a=wasm.sdk_get_block_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getBlockOptions.__wrap(a[0])}get_block(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockOptions),a=s.__destroy_into_raw()),wasm.sdk_get_block(this.__wbg_ptr,a)}chain_get_block(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_block(this.__wbg_ptr,a)}get_chainspec(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_chainspec(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_chainspec(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_chainspec(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}get_node_status(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_node_status(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_status(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_status(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}get_state_root_hash_options(s){const a=wasm.sdk_get_state_root_hash_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getStateRootHashOptions.__wrap(a[0])}get_state_root_hash(s){let a=0;return isLikeNone(s)||(_assertClass(s,getStateRootHashOptions),a=s.__destroy_into_raw()),wasm.sdk_get_state_root_hash(this.__wbg_ptr,a)}chain_get_state_root_hash(s){let a=0;return isLikeNone(s)||(_assertClass(s,getStateRootHashOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr,a)}query_balance_options(s){const a=wasm.sdk_query_balance_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryBalanceOptions.__wrap(a[0])}query_balance(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryBalanceOptions),a=s.__destroy_into_raw()),wasm.sdk_query_balance(this.__wbg_ptr,a)}query_balance_details_options(s){const a=wasm.sdk_query_balance_details_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryBalanceDetailsOptions.__wrap(a[0])}query_balance_details(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryBalanceDetailsOptions),a=s.__destroy_into_raw()),wasm.sdk_query_balance_details(this.__wbg_ptr,a)}speculative_transaction(s,a,u,g){_assertClass(s,TransactionBuilderParams);var y=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var v=a.__destroy_into_raw(),E=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;return wasm.sdk_speculative_transaction(this.__wbg_ptr,y,v,isLikeNone(u)?3:u,E,k)}transaction(s,a,u,g){_assertClass(s,TransactionBuilderParams);var y=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var v=a.__destroy_into_raw(),E=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;return wasm.sdk_transaction(this.__wbg_ptr,y,v,isLikeNone(u)?3:u,E,k)}transfer_transaction(s,a,u,g,y,v,E){let k=0;isLikeNone(s)||(_assertClass(s,URef),k=s.__destroy_into_raw());const M=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN,Z=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),fe=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var ce=g.__destroy_into_raw(),le=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN,ze=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN;return wasm.sdk_transfer_transaction(this.__wbg_ptr,k,M,j,Z,fe,ce,le,nt,isLikeNone(v)?3:v,ze,rt)}make_transfer(s,a,u,g,y){const v=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN,k=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN;var j=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Z=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var fe=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var ce=y.__destroy_into_raw();const le=wasm.sdk_make_transfer(this.__wbg_ptr,v,E,k,M,j,Z,fe,ce);if(le[2])throw takeFromExternrefTable0(le[1]);return Deploy.__wrap(le[0])}make_transfer_transaction(s,a,u,g,y){let v=0;isLikeNone(s)||(_assertClass(s,URef),v=s.__destroy_into_raw());const E=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var Z=g.__destroy_into_raw(),fe=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const le=wasm.sdk_make_transfer_transaction(this.__wbg_ptr,v,E,k,M,j,Z,fe,WASM_VECTOR_LEN);if(le[2])throw takeFromExternrefTable0(le[1]);return Transaction.__wrap(le[0])}constructor(s,a,u){var g=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const k=wasm.sdk_new(g,y,v,WASM_VECTOR_LEN,isLikeNone(u)?3:u);return this.__wbg_ptr=k>>>0,SDKFinalization.register(this,this.__wbg_ptr,this),this}getRPCAddress(s){let a,u;try{var g=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.sdk_getRPCAddress(this.__wbg_ptr,g,WASM_VECTOR_LEN);return a=v[0],u=v[1],getStringFromWasm0(v[0],v[1])}finally{wasm.__wbindgen_free(a,u,1)}}setRPCAddress(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.sdk_setRPCAddress(this.__wbg_ptr,a,WASM_VECTOR_LEN);if(g[1])throw takeFromExternrefTable0(g[0])}getNodeAddress(s){let a,u;try{var g=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.sdk_getNodeAddress(this.__wbg_ptr,g,WASM_VECTOR_LEN);return a=v[0],u=v[1],getStringFromWasm0(v[0],v[1])}finally{wasm.__wbindgen_free(a,u,1)}}setNodeAddress(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.sdk_setNodeAddress(this.__wbg_ptr,a,WASM_VECTOR_LEN);if(g[1])throw takeFromExternrefTable0(g[0])}getVerbosity(s){return wasm.sdk_getVerbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}setVerbosity(s){const a=wasm.sdk_setVerbosity(this.__wbg_ptr,isLikeNone(s)?3:s);if(a[1])throw takeFromExternrefTable0(a[0])}get_binary_latest_switch_block_header(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_latest_switch_block_header(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_latest_block_header(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_latest_block_header(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_block_header_by_height(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_block_header_by_height(this.__wbg_ptr,s,u,WASM_VECTOR_LEN)}get_binary_block_header_by_hash(s,a){_assertClass(s,BlockHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_block_header_by_hash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_latest_signed_block(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_latest_signed_block(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_signed_block_by_height(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_signed_block_by_height(this.__wbg_ptr,s,u,WASM_VECTOR_LEN)}get_binary_signed_block_by_hash(s,a){_assertClass(s,BlockHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_signed_block_by_hash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_transaction_by_hash(s,a,u){_assertClass(s,TransactionHash);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_transaction_by_hash(this.__wbg_ptr,g,a,y,WASM_VECTOR_LEN)}get_binary_peers(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_peers(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_uptime(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_uptime(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_last_progress(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_last_progress(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_reactor_state(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_reactor_state(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_network_name(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_network_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_consensus_validator_changes(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_consensus_validator_changes(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_block_synchronizer_status(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_block_synchronizer_status(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_available_block_range(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_available_block_range(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_next_upgrade(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_next_upgrade(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_consensus_status(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_consensus_status(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_chainspec_raw_bytes(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_chainspec_raw_bytes(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_node_status(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_node_status(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get_binary_validator_reward_by_era(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,EraId);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_validator_reward_by_era(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}get_binary_validator_reward_by_block_height(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_validator_reward_by_block_height(this.__wbg_ptr,g,a,y,WASM_VECTOR_LEN)}get_binary_validator_reward_by_block_hash(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,BlockHash);var y=a.__destroy_into_raw(),v=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_validator_reward_by_block_hash(this.__wbg_ptr,g,y,v,WASM_VECTOR_LEN)}get_binary_delegator_reward_by_era(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw();_assertClass(u,EraId);var E=u.__destroy_into_raw(),k=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_delegator_reward_by_era(this.__wbg_ptr,y,v,E,k,WASM_VECTOR_LEN)}get_binary_delegator_reward_by_block_height(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw(),E=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_delegator_reward_by_block_height(this.__wbg_ptr,y,v,u,E,WASM_VECTOR_LEN)}get_binary_delegator_reward_by_block_hash(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw();_assertClass(u,BlockHash);var E=u.__destroy_into_raw(),k=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_delegator_reward_by_block_hash(this.__wbg_ptr,y,v,E,k,WASM_VECTOR_LEN)}get_binary_read_record(s,a,u){_assertClass(s,RecordId);var g=s.__destroy_into_raw();const y=passArray8ToWasm0(a,wasm.__wbindgen_malloc),v=WASM_VECTOR_LEN;var E=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_read_record(this.__wbg_ptr,g,y,v,E,WASM_VECTOR_LEN)}get_binary_global_state_item(s,a,u){_assertClass(s,Key);var g=s.__destroy_into_raw();const y=passArrayJsValueToWasm0(a,wasm.__wbindgen_malloc),v=WASM_VECTOR_LEN;var E=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item(this.__wbg_ptr,g,y,v,E,WASM_VECTOR_LEN)}get_binary_global_state_item_by_state_root_hash(s,a,u,g){_assertClass(s,Digest);var y=s.__destroy_into_raw();_assertClass(a,Key);var v=a.__destroy_into_raw();const E=passArrayJsValueToWasm0(u,wasm.__wbindgen_malloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item_by_state_root_hash(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}get_binary_global_state_item_by_block_hash(s,a,u,g){_assertClass(s,BlockHash);var y=s.__destroy_into_raw();_assertClass(a,Key);var v=a.__destroy_into_raw();const E=passArrayJsValueToWasm0(u,wasm.__wbindgen_malloc),k=WASM_VECTOR_LEN;var M=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item_by_block_hash(this.__wbg_ptr,y,v,E,k,M,WASM_VECTOR_LEN)}get_binary_global_state_item_by_block_height(s,a,u,g){_assertClass(a,Key);var y=a.__destroy_into_raw();const v=passArrayJsValueToWasm0(u,wasm.__wbindgen_malloc),E=WASM_VECTOR_LEN;var k=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_global_state_item_by_block_height(this.__wbg_ptr,s,y,v,E,k,WASM_VECTOR_LEN)}get_binary_try_accept_transaction(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_try_accept_transaction(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_try_speculative_execution(s,a){_assertClass(s,Transaction);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_try_speculative_execution(this.__wbg_ptr,u,g,WASM_VECTOR_LEN)}get_binary_protocol_version(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);return wasm.sdk_get_binary_protocol_version(this.__wbg_ptr,a,WASM_VECTOR_LEN)}speculative_deploy(s,a,u,g,y){_assertClass(s,DeployStrParams);var v=s.__destroy_into_raw();_assertClass(a,SessionStrParams);var E=a.__destroy_into_raw();_assertClass(u,PaymentStrParams);var k=u.__destroy_into_raw(),M=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;return wasm.sdk_speculative_deploy(this.__wbg_ptr,v,E,k,isLikeNone(g)?3:g,M,j)}transfer(s,a,u,g,y,v,E){const k=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=WASM_VECTOR_LEN,j=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Z=WASM_VECTOR_LEN;var fe=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ce=WASM_VECTOR_LEN;_assertClass(g,DeployStrParams);var le=g.__destroy_into_raw();_assertClass(y,PaymentStrParams);var nt=y.__destroy_into_raw(),ze=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN;return wasm.sdk_transfer(this.__wbg_ptr,k,M,j,Z,fe,ce,le,nt,isLikeNone(v)?3:v,ze,rt)}get_balance_options(s){const a=wasm.sdk_get_balance_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getBalanceOptions.__wrap(a[0])}get_balance(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBalanceOptions),a=s.__destroy_into_raw()),wasm.sdk_get_balance(this.__wbg_ptr,a)}state_get_balance(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBalanceOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_balance(this.__wbg_ptr,a)}get_block_transfers_options(s){const a=wasm.sdk_get_block_transfers_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getBlockTransfersOptions.__wrap(a[0])}get_block_transfers(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockTransfersOptions),a=s.__destroy_into_raw()),wasm.sdk_get_block_transfers(this.__wbg_ptr,a)}chain_get_block_transfers(s){let a=0;return isLikeNone(s)||(_assertClass(s,getBlockTransfersOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_block_transfers(this.__wbg_ptr,a)}get_dictionary_item_options(s){const a=wasm.sdk_get_dictionary_item_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getDictionaryItemOptions.__wrap(a[0])}get_dictionary_item(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDictionaryItemOptions),a=s.__destroy_into_raw()),wasm.sdk_get_dictionary_item(this.__wbg_ptr,a)}state_get_dictionary_item(s){let a=0;return isLikeNone(s)||(_assertClass(s,getDictionaryItemOptions),a=s.__destroy_into_raw()),wasm.sdk_state_get_dictionary_item(this.__wbg_ptr,a)}get_era_summary_options(s){const a=wasm.sdk_get_era_summary_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getEraSummaryOptions.__wrap(a[0])}get_era_summary(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraSummaryOptions),a=s.__destroy_into_raw()),wasm.sdk_get_era_summary(this.__wbg_ptr,a)}chain_get_era_summary(s){let a=0;return isLikeNone(s)||(_assertClass(s,getEraSummaryOptions),a=s.__destroy_into_raw()),wasm.sdk_chain_get_era_summary(this.__wbg_ptr,a)}get_validator_changes(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_get_validator_changes(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}info_get_validator_change(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;return wasm.sdk_info_get_validator_change(this.__wbg_ptr,isLikeNone(s)?3:s,u,g)}query_global_state_options(s){const a=wasm.sdk_query_global_state_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryGlobalStateOptions.__wrap(a[0])}query_global_state(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryGlobalStateOptions),a=s.__destroy_into_raw()),wasm.sdk_query_global_state(this.__wbg_ptr,a)}get_speculative_exec_deploy_options(s){const a=wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return getSpeculativeExecDeployOptions.__wrap(a[0])}speculative_exec_deploy(s){let a=0;return isLikeNone(s)||(_assertClass(s,getSpeculativeExecDeployOptions),a=s.__destroy_into_raw()),wasm.sdk_speculative_exec_deploy(this.__wbg_ptr,a)}query_contract_dict_options(s){const a=wasm.sdk_query_contract_dict_options(this.__wbg_ptr,s);if(a[2])throw takeFromExternrefTable0(a[1]);return queryContractDictOptions.__wrap(a[0])}query_contract_dict(s){let a=0;return isLikeNone(s)||(_assertClass(s,queryContractDictOptions),a=s.__destroy_into_raw()),wasm.sdk_query_contract_dict(this.__wbg_ptr,a)}}const SessionStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_sessionstrparams_free(f>>>0,1));class SessionStrParams{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SessionStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_sessionstrparams_free(s,0)}constructor(s,a,u,g,y,v,E,k,M,j,Z){var fe=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ce=WASM_VECTOR_LEN,le=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),nt=WASM_VECTOR_LEN,ze=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),rt=WASM_VECTOR_LEN,kt=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),vn=WASM_VECTOR_LEN,En=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Bn=WASM_VECTOR_LEN;let Sn=0;isLikeNone(v)||(_assertClass(v,Bytes),Sn=v.__destroy_into_raw());var Hn=isLikeNone(k)?0:passStringToWasm0(k,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),or=WASM_VECTOR_LEN,Cn=isLikeNone(M)?0:passStringToWasm0(M,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ln=WASM_VECTOR_LEN,Dn=isLikeNone(j)?0:passStringToWasm0(j,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ar=WASM_VECTOR_LEN;const cr=wasm.sessionstrparams_new(fe,ce,le,nt,ze,rt,kt,vn,En,Bn,Sn,isLikeNone(E)?0:addToExternrefTable0(E),Hn,or,Cn,ln,Dn,ar,isLikeNone(Z)?16777215:Z?1:0);return this.__wbg_ptr=cr>>>0,SessionStrParamsFinalization.register(this,this.__wbg_ptr,this),this}get session_hash(){const s=wasm.sessionstrparams_session_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_name(){const s=wasm.sessionstrparams_session_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_package_hash(){const s=wasm.sessionstrparams_session_package_hash(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_package_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_package_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_package_name(){const s=wasm.sessionstrparams_session_package_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_package_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_package_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_path(){const s=wasm.sessionstrparams_session_path(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_path(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_path(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_bytes(){const s=wasm.sessionstrparams_session_bytes(this.__wbg_ptr);return 0===s?void 0:Bytes.__wrap(s)}set session_bytes(s){_assertClass(s,Bytes);var a=s.__destroy_into_raw();wasm.sessionstrparams_set_session_bytes(this.__wbg_ptr,a)}get session_args_simple(){const s=wasm.sessionstrparams_session_args_simple(this.__wbg_ptr);return 0===s?void 0:ArgsSimple.__wrap(s)}set session_args_simple(s){wasm.sessionstrparams_set_session_args_simple(this.__wbg_ptr,s)}get session_args_json(){const s=wasm.sessionstrparams_session_args_json(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_args_json(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_args_json(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_version(){const s=wasm.sessionstrparams_session_version(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_version(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_version(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_entry_point(){const s=wasm.sessionstrparams_session_entry_point(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_entry_point(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.sessionstrparams_set_session_entry_point(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get is_session_transfer(){const s=wasm.sessionstrparams_is_session_transfer(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set is_session_transfer(s){wasm.sessionstrparams_set_is_session_transfer(this.__wbg_ptr,s)}}const SignatureResponseFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_signatureresponse_free(f>>>0,1));class SignatureResponse{__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SignatureResponseFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_signatureresponse_free(s,0)}is_cancelled(){return 0!==wasm.signatureresponse_is_cancelled(this.__wbg_ptr)}get_signature_hex(){let s,a;try{const u=wasm.signatureresponse_get_signature_hex(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get_signature(){const s=wasm.signatureresponse_get_signature(this.__wbg_ptr);var a=getArrayU8FromWasm0(s[0],s[1]).slice();return wasm.__wbindgen_free(s[0],1*s[1],1),a}}const SpeculativeExecResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_speculativeexecresult_free(f>>>0,1));class SpeculativeExecResult{static __wrap(s){s>>>=0;const a=Object.create(SpeculativeExecResult.prototype);return a.__wbg_ptr=s,SpeculativeExecResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SpeculativeExecResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_speculativeexecresult_free(s,0)}get api_version(){return wasm.speculativeexecresult_api_version(this.__wbg_ptr)}get block_hash(){const s=wasm.speculativeexecresult_block_hash(this.__wbg_ptr);return BlockHash.__wrap(s)}get execution_result(){return wasm.speculativeexecresult_execution_result(this.__wbg_ptr)}toJson(){return wasm.speculativeexecresult_toJson(this.__wbg_ptr)}}const SpeculativeExecTxnResultFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_speculativeexectxnresult_free(f>>>0,1));class SpeculativeExecTxnResult{static __wrap(s){s>>>=0;const a=Object.create(SpeculativeExecTxnResult.prototype);return a.__wbg_ptr=s,SpeculativeExecTxnResultFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SpeculativeExecTxnResultFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_speculativeexectxnresult_free(s,0)}get api_version(){return wasm.speculativeexectxnresult_api_version(this.__wbg_ptr)}get block_hash(){const s=wasm.speculativeexectxnresult_block_hash(this.__wbg_ptr);return BlockHash.__wrap(s)}get execution_result(){return wasm.speculativeexectxnresult_execution_result(this.__wbg_ptr)}toJson(){return wasm.speculativeexectxnresult_toJson(this.__wbg_ptr)}}const SubscriptionFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_subscription_free(f>>>0,1));class Subscription{static __unwrap(s){return s instanceof Subscription?s.__destroy_into_raw():0}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,SubscriptionFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_subscription_free(s,0)}get targetHash(){let s,a;try{const u=wasm.__wbg_get_subscription_targetHash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set targetHash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_cost(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get eventHandlerFn(){return wasm.__wbg_get_subscription_eventHandlerFn(this.__wbg_ptr)}set eventHandlerFn(s){wasm.__wbg_set_subscription_eventHandlerFn(this.__wbg_ptr,s)}constructor(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.subscription_new(u,WASM_VECTOR_LEN,a);return this.__wbg_ptr=y>>>0,SubscriptionFinalization.register(this,this.__wbg_ptr,this),this}}const TransactionFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transaction_free(f>>>0,1));class Transaction{static __wrap(s){s>>>=0;const a=Object.create(Transaction.prototype);return a.__wbg_ptr=s,TransactionFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transaction_free(s,0)}constructor(s){const a=wasm.transaction_new(s);return this.__wbg_ptr=a>>>0,TransactionFinalization.register(this,this.__wbg_ptr,this),this}toJson(){return wasm.transaction_toJson(this.__wbg_ptr)}static newSession(s,a){_assertClass(s,TransactionBuilderParams);var u=s.__destroy_into_raw();_assertClass(a,TransactionStrParams);var g=a.__destroy_into_raw();const y=wasm.transaction_newSession(u,g);if(y[2])throw takeFromExternrefTable0(y[1]);return Transaction.__wrap(y[0])}static newTransfer(s,a,u,g,y){let v=0;isLikeNone(s)||(_assertClass(s,URef),v=s.__destroy_into_raw());const E=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN;_assertClass(g,TransactionStrParams);var Z=g.__destroy_into_raw(),fe=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const le=wasm.transaction_newTransfer(v,E,k,M,j,Z,fe,WASM_VECTOR_LEN);if(le[2])throw takeFromExternrefTable0(le[1]);return Transaction.__wrap(le[0])}withTTL(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withTTL(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withTimestamp(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withTimestamp(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withChainName(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withChainName(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withPublicKey(s,a){_assertClass(s,PublicKey);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withPublicKey(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withAccountHash(s,a){_assertClass(s,AccountHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withAccountHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withEntryPoint(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;var y=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const E=wasm.transaction_withEntryPoint(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}withEntityHash(s,a){_assertClass(s,AddressableEntityHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withEntityHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withPackageHash(s,a){_assertClass(s,PackageHash);var u=s.__destroy_into_raw(),g=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const v=wasm.transaction_withPackageHash(this.__wbg_ptr,u,g,WASM_VECTOR_LEN);return Transaction.__wrap(v)}withTransactionBytes(s,a,u){_assertClass(s,Bytes);var g=s.__destroy_into_raw(),y=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;const E=wasm.transaction_withTransactionBytes(this.__wbg_ptr,g,isLikeNone(a)?16777215:a?1:0,y,v);return Transaction.__wrap(E)}withSecretKey(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const g=wasm.transaction_withSecretKey(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Transaction.__wrap(g)}verify(){return 0!==wasm.transaction_verify(this.__wbg_ptr)}get hash(){const s=wasm.transaction_hash(this.__wbg_ptr);return TransactionHash.__wrap(s)}get expired(){return 0!==wasm.transaction_expired(this.__wbg_ptr)}get expires(){return wasm.transaction_expires(this.__wbg_ptr)}get signers(){return wasm.transaction_signers(this.__wbg_ptr)}get authorization_keys(){return wasm.transaction_authorization_keys(this.__wbg_ptr)}sign(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.transaction_sign(this.__wbg_ptr,a,WASM_VECTOR_LEN);return Transaction.__wrap(g)}approvalsHash(){return wasm.transaction_approvalsHash(this.__wbg_ptr)}get approvals(){return wasm.transaction_approvals(this.__wbg_ptr)}get is_native(){return 0!==wasm.transaction_is_native(this.__wbg_ptr)}get target(){return wasm.transaction_target(this.__wbg_ptr)}get is_standard_payment(){return 0!==wasm.transaction_is_standard_payment(this.__wbg_ptr)}session_args(){return wasm.transaction_session_args(this.__wbg_ptr)}addSignature(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN,y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.transaction_addSignature(this.__wbg_ptr,u,g,y,WASM_VECTOR_LEN);return Transaction.__wrap(E)}get entry_point(){let s,a;try{const u=wasm.transaction_entry_point(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get ttl(){let s,a;try{const u=wasm.transaction_ttl(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get timestamp(){let s,a;try{const u=wasm.transaction_timestamp(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get size_estimate(){return wasm.transaction_size_estimate(this.__wbg_ptr)>>>0}get chain_name(){let s,a;try{const u=wasm.transaction_chain_name(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get initiator_addr(){let s,a;try{const u=wasm.transaction_initiator_addr(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}get pricing_mode(){return wasm.transaction_pricing_mode(this.__wbg_ptr)}get additional_computation_factor(){return wasm.transaction_additional_computation_factor(this.__wbg_ptr)}get receipt(){const s=wasm.transaction_receipt(this.__wbg_ptr);return Digest.__wrap(s)}get gas_price_tolerance(){return wasm.transaction_gas_price_tolerance(this.__wbg_ptr)}get account_hash(){const s=wasm.transaction_account_hash(this.__wbg_ptr);return AccountHash.__wrap(s)}addArg(s,a){var u=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const y=wasm.transaction_addArg(this.__wbg_ptr,s,u,WASM_VECTOR_LEN);if(y[2])throw takeFromExternrefTable0(y[1]);return Transaction.__wrap(y[0])}}const TransactionBuilderParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionbuilderparams_free(f>>>0,1));class TransactionBuilderParams{static __wrap(s){s>>>=0;const a=Object.create(TransactionBuilderParams.prototype);return a.__wbg_ptr=s,TransactionBuilderParamsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionBuilderParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionbuilderparams_free(s,0)}static newSession(s,a,u,g){let y=0;isLikeNone(s)||(_assertClass(s,Bytes),y=s.__destroy_into_raw());let v=0;isLikeNone(g)||(_assertClass(g,Bytes),v=g.__destroy_into_raw());const E=wasm.transactionbuilderparams_newSession(y,isLikeNone(a)?16777215:a?1:0,!isLikeNone(u),isLikeNone(u)?BigInt(0):u,v);return TransactionBuilderParams.__wrap(E)}static newTransfer(s,a,u,g){let y=0;isLikeNone(s)||(_assertClass(s,URef),y=s.__destroy_into_raw()),_assertClass(a,TransferTarget);var v=a.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=wasm.transactionbuilderparams_newTransfer(y,v,E,WASM_VECTOR_LEN,!isLikeNone(g),isLikeNone(g)?BigInt(0):g);return TransactionBuilderParams.__wrap(M)}static newInvocableEntity(s,a,u){_assertClass(s,AddressableEntityHash);var g=s.__destroy_into_raw();const y=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=wasm.transactionbuilderparams_newInvocableEntity(g,y,WASM_VECTOR_LEN,!isLikeNone(u),isLikeNone(u)?BigInt(0):u);return TransactionBuilderParams.__wrap(E)}static newInvocableEntityAlias(s,a,u){const g=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN,v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=wasm.transactionbuilderparams_newInvocableEntityAlias(g,y,v,WASM_VECTOR_LEN,!isLikeNone(u),isLikeNone(u)?BigInt(0):u);return TransactionBuilderParams.__wrap(k)}static newPackage(s,a,u,g){_assertClass(s,PackageHash);var y=s.__destroy_into_raw();const v=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),E=WASM_VECTOR_LEN;var k=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const j=wasm.transactionbuilderparams_newPackage(y,v,E,k,WASM_VECTOR_LEN,!isLikeNone(g),isLikeNone(g)?BigInt(0):g);return TransactionBuilderParams.__wrap(j)}static newPackageAlias(s,a,u,g){const y=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN,E=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN;var M=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const Z=wasm.transactionbuilderparams_newPackageAlias(y,v,E,k,M,WASM_VECTOR_LEN,!isLikeNone(g),isLikeNone(g)?BigInt(0):g);return TransactionBuilderParams.__wrap(Z)}static newAddBid(s,a,u,g,y){_assertClass(s,PublicKey);var v=s.__destroy_into_raw();const E=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),M=wasm.transactionbuilderparams_newAddBid(v,a,E,WASM_VECTOR_LEN,g,y);return TransactionBuilderParams.__wrap(M)}static newDelegate(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,PublicKey);var y=a.__destroy_into_raw();const v=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=wasm.transactionbuilderparams_newDelegate(g,y,v,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(k)}static newUndelegate(s,a,u){_assertClass(s,PublicKey);var g=s.__destroy_into_raw();_assertClass(a,PublicKey);var y=a.__destroy_into_raw();const v=passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=wasm.transactionbuilderparams_newUndelegate(g,y,v,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(k)}static newRedelegate(s,a,u,g){_assertClass(s,PublicKey);var y=s.__destroy_into_raw();_assertClass(a,PublicKey);var v=a.__destroy_into_raw();_assertClass(u,PublicKey);var E=u.__destroy_into_raw();const k=passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=wasm.transactionbuilderparams_newRedelegate(y,v,E,k,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(j)}static newWithdrawBid(s,a){_assertClass(s,PublicKey);var u=s.__destroy_into_raw();const g=passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=wasm.transactionbuilderparams_newWithdrawBid(u,g,WASM_VECTOR_LEN);return TransactionBuilderParams.__wrap(v)}get kind(){return wasm.transactionbuilderparams_kind(this.__wbg_ptr)}set kind(s){wasm.transactionbuilderparams_set_kind(this.__wbg_ptr,s)}get transaction_bytes(){const s=wasm.transactionbuilderparams_transaction_bytes(this.__wbg_ptr);return 0===s?void 0:Bytes.__wrap(s)}set transaction_bytes(s){_assertClass(s,Bytes);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_transaction_bytes(this.__wbg_ptr,a)}get maybe_source(){const s=wasm.transactionbuilderparams_maybe_source(this.__wbg_ptr);return 0===s?void 0:URef.__wrap(s)}set maybe_source(s){_assertClass(s,URef);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_maybe_source(this.__wbg_ptr,a)}get target(){const s=wasm.transactionbuilderparams_target(this.__wbg_ptr);return 0===s?void 0:TransferTarget.__wrap(s)}set target(s){_assertClass(s,TransferTarget);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_target(this.__wbg_ptr,a)}get amount(){const s=wasm.transactionbuilderparams_amount(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set amount(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_amount(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_id(){const s=wasm.transactionbuilderparams_maybe_id(this.__wbg_ptr);return 0===s[0]?void 0:BigInt.asUintN(64,s[1])}set maybe_id(s){wasm.transactionbuilderparams_set_maybe_id(this.__wbg_ptr,s)}get entity_hash(){const s=wasm.transactionbuilderparams_entity_hash(this.__wbg_ptr);return 0===s?void 0:AddressableEntityHash.__wrap(s)}set entity_hash(s){_assertClass(s,AddressableEntityHash);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_entity_hash(this.__wbg_ptr,a)}get entity_alias(){const s=wasm.transactionbuilderparams_entity_alias(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entity_alias(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_entity_alias(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get entry_point(){const s=wasm.transactionbuilderparams_entry_point(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entry_point(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_entry_point(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get package_hash(){const s=wasm.transactionbuilderparams_package_hash(this.__wbg_ptr);return 0===s?void 0:PackageHash.__wrap(s)}set package_hash(s){_assertClass(s,PackageHash);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_package_hash(this.__wbg_ptr,a)}get package_alias(){const s=wasm.transactionbuilderparams_package_alias(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set package_alias(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionbuilderparams_set_package_alias(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get public_key(){const s=wasm.transactionbuilderparams_public_key(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set public_key(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_public_key(this.__wbg_ptr,a)}get delegation_rate(){const s=wasm.transactionbuilderparams_delegation_rate(this.__wbg_ptr);return 16777215===s?void 0:s}set delegation_rate(s){wasm.transactionbuilderparams_set_delegation_rate(this.__wbg_ptr,s)}get delegator(){const s=wasm.transactionbuilderparams_delegator(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set delegator(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_delegator(this.__wbg_ptr,a)}get validator(){const s=wasm.transactionbuilderparams_validator(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set validator(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_validator(this.__wbg_ptr,a)}get new_validator(){const s=wasm.transactionbuilderparams_new_validator(this.__wbg_ptr);return 0===s?void 0:PublicKey.__wrap(s)}set new_validator(s){_assertClass(s,PublicKey);var a=s.__destroy_into_raw();wasm.transactionbuilderparams_set_new_validator(this.__wbg_ptr,a)}get minimum_delegation_amount(){const s=wasm.transactionbuilderparams_minimum_delegation_amount(this.__wbg_ptr);return 0===s[0]?void 0:BigInt.asUintN(64,s[1])}set minimum_delegation_amount(s){wasm.transactionbuilderparams_set_minimum_delegation_amount(this.__wbg_ptr,s)}get maximum_delegation_amount(){const s=wasm.transactionbuilderparams_maximum_delegation_amount(this.__wbg_ptr);return 0===s[0]?void 0:BigInt.asUintN(64,s[1])}set maximum_delegation_amount(s){wasm.transactionbuilderparams_set_maximum_delegation_amount(this.__wbg_ptr,s)}get is_install_upgrade(){const s=wasm.transactionbuilderparams_is_install_upgrade(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set is_install_upgrade(s){wasm.transactionbuilderparams_set_is_install_upgrade(this.__wbg_ptr,s)}}const TransactionHashFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionhash_free(f>>>0,1));class TransactionHash{static __wrap(s){s>>>=0;const a=Object.create(TransactionHash.prototype);return a.__wbg_ptr=s,TransactionHashFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionHashFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionhash_free(s,0)}constructor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.transactionhash_new_js_alias(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,TransactionHashFinalization.register(this,this.__wbg_ptr,this),this}static fromRaw(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.transactionhash_fromRaw(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return TransactionHash.__wrap(g[0])}digest(){const s=wasm.transactionhash_digest(this.__wbg_ptr);if(s[2])throw takeFromExternrefTable0(s[1]);return Digest.__wrap(s[0])}toJson(){return wasm.transactionhash_toJson(this.__wbg_ptr)}toString(){let s,a;try{const u=wasm.transactionhash_toString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}}const TransactionProcessedFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionprocessed_free(f>>>0,1));class TransactionProcessed{static __wrap(s){s>>>=0;const a=Object.create(TransactionProcessed.prototype);return a.__wbg_ptr=s,TransactionProcessedFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionProcessedFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionprocessed_free(s,0)}get hash(){const s=wasm.__wbg_get_transactionprocessed_hash(this.__wbg_ptr);return HashString.__wrap(s)}set hash(s){_assertClass(s,HashString);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_hash(this.__wbg_ptr,a)}get initiator_addr(){const s=wasm.__wbg_get_transactionprocessed_initiator_addr(this.__wbg_ptr);return PublicKeyString.__wrap(s)}set initiator_addr(s){_assertClass(s,PublicKeyString);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_initiator_addr(this.__wbg_ptr,a)}get timestamp(){let s,a;try{const u=wasm.__wbg_get_transactionprocessed_timestamp(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set timestamp(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get ttl(){let s,a;try{const u=wasm.__wbg_get_transactionprocessed_ttl(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set ttl(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get block_hash(){let s,a;try{const u=wasm.__wbg_get_transactionprocessed_block_hash(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set block_hash(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_messages_topic_name_hash(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get execution_result(){const s=wasm.__wbg_get_transactionprocessed_execution_result(this.__wbg_ptr);return ExecutionResult.__wrap(s)}set execution_result(s){_assertClass(s,ExecutionResult);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_execution_result(this.__wbg_ptr,a)}get messages(){const s=wasm.__wbg_get_transactionprocessed_messages(this.__wbg_ptr);var a=getArrayJsValueFromWasm0(s[0],s[1]).slice();return wasm.__wbindgen_free(s[0],4*s[1],4),a}set messages(s){const a=passArrayJsValueToWasm0(s,wasm.__wbindgen_malloc);wasm.__wbg_set_transactionprocessed_messages(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const TransactionStrParamsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transactionstrparams_free(f>>>0,1));class TransactionStrParams{static __wrap(s){s>>>=0;const a=Object.create(TransactionStrParams.prototype);return a.__wbg_ptr=s,TransactionStrParamsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransactionStrParamsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transactionstrparams_free(s,0)}constructor(s,a,u,g,y,v,E,k,M,j,Z,fe,ce,le,nt,ze){const rt=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),kt=WASM_VECTOR_LEN;var vn=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),En=WASM_VECTOR_LEN,Bn=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Sn=WASM_VECTOR_LEN,Hn=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),or=WASM_VECTOR_LEN,Cn=isLikeNone(y)?0:passStringToWasm0(y,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),ln=WASM_VECTOR_LEN,Dn=isLikeNone(v)?0:passArrayJsValueToWasm0(v,wasm.__wbindgen_malloc),ar=WASM_VECTOR_LEN,cr=isLikeNone(E)?0:passStringToWasm0(E,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),pu=WASM_VECTOR_LEN,Li=isLikeNone(M)?0:passStringToWasm0(M,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Pi=WASM_VECTOR_LEN,Es=isLikeNone(j)?0:passStringToWasm0(j,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),gu=WASM_VECTOR_LEN,hu=isLikeNone(Z)?0:passStringToWasm0(Z,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Ta=WASM_VECTOR_LEN,Ia=isLikeNone(fe)?0:passStringToWasm0(fe,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),mu=WASM_VECTOR_LEN,Ss=isLikeNone(le)?0:passStringToWasm0(le,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),wu=WASM_VECTOR_LEN,Eg=isLikeNone(nt)?0:passStringToWasm0(nt,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),Sg=WASM_VECTOR_LEN;let Vi=0;isLikeNone(ze)||(_assertClass(ze,Bytes),Vi=ze.__destroy_into_raw());const yu=wasm.transactionstrparams_new(rt,kt,vn,En,Bn,Sn,Hn,or,Cn,ln,Dn,ar,cr,pu,isLikeNone(k)?3:k,Li,Pi,Es,gu,hu,Ta,Ia,mu,isLikeNone(ce)?16777215:ce?1:0,Ss,wu,Eg,Sg,Vi);return this.__wbg_ptr=yu>>>0,TransactionStrParamsFinalization.register(this,this.__wbg_ptr,this),this}static new_with_defaults(s,a,u,g){const y=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),v=WASM_VECTOR_LEN;var E=isLikeNone(a)?0:passStringToWasm0(a,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),k=WASM_VECTOR_LEN,M=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),j=WASM_VECTOR_LEN,Z=isLikeNone(g)?0:passStringToWasm0(g,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const ce=wasm.transactionstrparams_new_with_defaults(y,v,E,k,M,j,Z,WASM_VECTOR_LEN);return TransactionStrParams.__wrap(ce)}get secret_key(){const s=wasm.transactionstrparams_secret_key(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set secret_key(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_secret_key(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get timestamp(){const s=wasm.transactionstrparams_timestamp(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set timestamp(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTimestamp(){wasm.transactionstrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const s=wasm.transactionstrparams_ttl(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set ttl(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}setDefaultTTL(){wasm.transactionstrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const s=wasm.transactionstrparams_chain_name(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set chain_name(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_chain_name(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get initiator_addr(){const s=wasm.transactionstrparams_initiator_addr(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set initiator_addr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_initiator_addr(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_args_simple(){const s=wasm.transactionstrparams_session_args_simple(this.__wbg_ptr);return 0===s?void 0:ArgsSimple.__wrap(s)}set session_args_simple(s){const a=passArrayJsValueToWasm0(s,wasm.__wbindgen_malloc);wasm.transactionstrparams_set_session_args_simple(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_args_json(){const s=wasm.transactionstrparams_session_args_json(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_args_json(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_session_args_json(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get pricing_mode(){const s=wasm.transactionstrparams_pricing_mode(this.__wbg_ptr);return 3===s?void 0:s}set pricing_mode(s){wasm.transactionstrparams_set_pricing_mode(this.__wbg_ptr,s)}get additional_computation_factor(){const s=wasm.transactionstrparams_additional_computation_factor(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set additional_computation_factor(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_additional_computation_factor(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get payment_amount(){const s=wasm.transactionstrparams_payment_amount(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set payment_amount(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_payment_amount(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get gas_price_tolerance(){const s=wasm.transactionstrparams_gas_price_tolerance(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set gas_price_tolerance(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_gas_price_tolerance(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get receipt(){const s=wasm.transactionstrparams_receipt(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set receipt(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_receipt(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get standard_payment(){const s=wasm.transactionstrparams_standard_payment(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set standard_payment(s){wasm.transactionstrparams_set_standard_payment(this.__wbg_ptr,s)}get transferred_value(){const s=wasm.transactionstrparams_transferred_value(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set transferred_value(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_transferred_value(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get session_entry_point(){const s=wasm.transactionstrparams_session_entry_point(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set session_entry_point(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.transactionstrparams_set_session_entry_point(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get chunked_args(){const s=wasm.transactionstrparams_chunked_args(this.__wbg_ptr);return 0===s?void 0:Bytes.__wrap(s)}set chunked_args(s){_assertClass(s,Bytes);var a=s.__destroy_into_raw();wasm.transactionstrparams_set_chunked_args(this.__wbg_ptr,a)}}const TransferAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transferaddr_free(f>>>0,1));class TransferAddr{static __wrap(s){s>>>=0;const a=Object.create(TransferAddr.prototype);return a.__wbg_ptr=s,TransferAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransferAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transferaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.transferaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,TransferAddrFinalization.register(this,this.__wbg_ptr,this),this}}const TransferTargetFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_transfertarget_free(f>>>0,1));class TransferTarget{static __wrap(s){s>>>=0;const a=Object.create(TransferTarget.prototype);return a.__wbg_ptr=s,TransferTargetFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,TransferTargetFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_transfertarget_free(s,0)}constructor(s,a,u,g){let y=0;isLikeNone(a)||(_assertClass(a,PublicKey),y=a.__destroy_into_raw());let v=0;isLikeNone(u)||(_assertClass(u,AccountHash),v=u.__destroy_into_raw());let E=0;isLikeNone(g)||(_assertClass(g,URef),E=g.__destroy_into_raw());const k=wasm.transfertarget_new(s,y,v,E);return this.__wbg_ptr=k>>>0,TransferTargetFinalization.register(this,this.__wbg_ptr,this),this}}const URefFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_uref_free(f>>>0,1));class URef{static __wrap(s){s>>>=0;const a=Object.create(URef.prototype);return a.__wbg_ptr=s,URefFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,URefFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_uref_free(s,0)}constructor(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.uref_new_js_alias(u,WASM_VECTOR_LEN,a);if(y[2])throw takeFromExternrefTable0(y[1]);return this.__wbg_ptr=y[0]>>>0,URefFinalization.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=wasm.uref_fromFormattedStr(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return URef.__wrap(g[0])}static fromUint8Array(s,a){const u=passArray8ToWasm0(s,wasm.__wbindgen_malloc),y=wasm.uref_fromUint8Array(u,WASM_VECTOR_LEN,a);return URef.__wrap(y)}toFormattedString(){let s,a;try{const u=wasm.uref_toFormattedString(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}toJson(){return wasm.uref_toJson(this.__wbg_ptr)}}const URefAddrFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_urefaddr_free(f>>>0,1));class URefAddr{static __wrap(s){s>>>=0;const a=Object.create(URefAddr.prototype);return a.__wbg_ptr=s,URefAddrFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,URefAddrFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_urefaddr_free(s,0)}constructor(s){const a=passArray8ToWasm0(s,wasm.__wbindgen_malloc),g=wasm.urefaddr_new(a,WASM_VECTOR_LEN);if(g[2])throw takeFromExternrefTable0(g[1]);return this.__wbg_ptr=g[0]>>>0,URefAddrFinalization.register(this,this.__wbg_ptr,this),this}}const Version2Finalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_version2_free(f>>>0,1));class Version2{static __wrap(s){s>>>=0;const a=Object.create(Version2.prototype);return a.__wbg_ptr=s,Version2Finalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,Version2Finalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_version2_free(s,0)}get initiator(){const s=wasm.__wbg_get_transactionprocessed_hash(this.__wbg_ptr);return PublicKeyString.__wrap(s)}set initiator(s){_assertClass(s,PublicKeyString);var a=s.__destroy_into_raw();wasm.__wbg_set_transactionprocessed_hash(this.__wbg_ptr,a)}get error_message(){const s=wasm.__wbg_get_version2_error_message(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set error_message(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_version2_error_message(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get limit(){let s,a;try{const u=wasm.__wbg_get_version2_limit(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set limit(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_failure_error_message(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get consumed(){let s,a;try{const u=wasm.__wbg_get_version2_consumed(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set consumed(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_timestamp(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get cost(){let s,a;try{const u=wasm.__wbg_get_version2_cost(this.__wbg_ptr);return s=u[0],a=u[1],getStringFromWasm0(u[0],u[1])}finally{wasm.__wbindgen_free(s,a,1)}}set cost(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_transactionprocessed_ttl(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const WatcherFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_watcher_free(f>>>0,1));class Watcher{static __wrap(s){s>>>=0;const a=Object.create(Watcher.prototype);return a.__wbg_ptr=s,WatcherFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,WatcherFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_watcher_free(s,0)}constructor(s,a){const u=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=wasm.watcher_new(u,WASM_VECTOR_LEN,!isLikeNone(a),isLikeNone(a)?BigInt(0):a);return this.__wbg_ptr=y>>>0,WatcherFinalization.register(this,this.__wbg_ptr,this),this}subscribe(s){const a=passArrayJsValueToWasm0(s,wasm.__wbindgen_malloc),g=wasm.watcher_subscribe(this.__wbg_ptr,a,WASM_VECTOR_LEN);if(g[1])throw takeFromExternrefTable0(g[0])}unsubscribe(s){const a=passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.watcher_unsubscribe(this.__wbg_ptr,a,WASM_VECTOR_LEN)}start(){return wasm.watcher_start(this.__wbg_ptr)}stop(){wasm.watcher_stop(this.__wbg_ptr)}}const getAccountOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getaccountoptions_free(f>>>0,1));class getAccountOptions{static __wrap(s){s>>>=0;const a=Object.create(getAccountOptions.prototype);return a.__wbg_ptr=s,getAccountOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getAccountOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getaccountoptions_free(s,0)}get account_identifier(){const s=wasm.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr);return 0===s?void 0:AccountIdentifier.__wrap(s)}set account_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,AccountIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr,a)}get account_identifier_as_string(){const s=wasm.__wbg_get_getaccountoptions_account_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set account_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getaccountoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getAuctionInfoOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getauctioninfooptions_free(f>>>0,1));class getAuctionInfoOptions{static __wrap(s){s>>>=0;const a=Object.create(getAuctionInfoOptions.prototype);return a.__wbg_ptr=s,getAuctionInfoOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getAuctionInfoOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getauctioninfooptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getauctioninfooptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getBalanceOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getbalanceoptions_free(f>>>0,1));class getBalanceOptions{static __wrap(s){s>>>=0;const a=Object.create(getBalanceOptions.prototype);return a.__wbg_ptr=s,getBalanceOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getBalanceOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getbalanceoptions_free(s,0)}get state_root_hash_as_string(){const s=wasm.__wbg_get_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr,a)}get purse_uref_as_string(){const s=wasm.__wbg_get_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set purse_uref_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get purse_uref(){const s=wasm.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr);return 0===s?void 0:URef.__wrap(s)}set purse_uref(s){let a=0;isLikeNone(s)||(_assertClass(s,URef),a=s.__destroy_into_raw()),wasm.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getbalanceoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getbalanceoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getBlockOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblockoptions_free(f>>>0,1));class getBlockOptions{static __wrap(s){s>>>=0;const a=Object.create(getBlockOptions.prototype);return a.__wbg_ptr=s,getBlockOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getBlockOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblockoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getblockoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getBlockTransfersOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getblocktransfersoptions_free(f>>>0,1));class getBlockTransfersOptions{static __wrap(s){s>>>=0;const a=Object.create(getBlockTransfersOptions.prototype);return a.__wbg_ptr=s,getBlockTransfersOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getBlockTransfersOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getblocktransfersoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,a)}get verbosity(){const s=wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}get rpc_address(){const s=wasm.__wbg_get_getblocktransfersoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}}const getDeployOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdeployoptions_free(f>>>0,1));class getDeployOptions{static __wrap(s){s>>>=0;const a=Object.create(getDeployOptions.prototype);return a.__wbg_ptr=s,getDeployOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getDeployOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdeployoptions_free(s,0)}get deploy_hash_as_string(){const s=wasm.__wbg_get_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set deploy_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get deploy_hash(){const s=wasm.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr);return 0===s?void 0:DeployHash.__wrap(s)}set deploy_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,DeployHash),a=s.__destroy_into_raw()),wasm.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr,a)}get finalized_approvals(){const s=wasm.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set finalized_approvals(s){wasm.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,isLikeNone(s)?16777215:s?1:0)}get rpc_address(){const s=wasm.__wbg_get_getdeployoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getDictionaryItemOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getdictionaryitemoptions_free(f>>>0,1));class getDictionaryItemOptions{static __wrap(s){s>>>=0;const a=Object.create(getDictionaryItemOptions.prototype);return a.__wbg_ptr=s,getDictionaryItemOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getDictionaryItemOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getdictionaryitemoptions_free(s,0)}get state_root_hash_as_string(){const s=wasm.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,a)}get dictionary_item_params(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===s?void 0:DictionaryItemStrParams.__wrap(s)}set dictionary_item_params(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemStrParams),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,a)}get dictionary_item_identifier(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===s?void 0:DictionaryItemIdentifier.__wrap(s)}set dictionary_item_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getdictionaryitemoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getEntityOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getentityoptions_free(f>>>0,1));class getEntityOptions{static __wrap(s){s>>>=0;const a=Object.create(getEntityOptions.prototype);return a.__wbg_ptr=s,getEntityOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getEntityOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getentityoptions_free(s,0)}get entity_identifier(){const s=wasm.__wbg_get_getentityoptions_entity_identifier(this.__wbg_ptr);return 0===s?void 0:EntityIdentifier.__wrap(s)}set entity_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,EntityIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getentityoptions_entity_identifier(this.__wbg_ptr,a)}get entity_identifier_as_string(){const s=wasm.__wbg_get_getentityoptions_entity_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entity_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getentityoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getaccountoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getEraInfoOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterainfooptions_free(f>>>0,1));class getEraInfoOptions{static __wrap(s){s>>>=0;const a=Object.create(getEraInfoOptions.prototype);return a.__wbg_ptr=s,getEraInfoOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getEraInfoOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterainfooptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_geterainfooptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getEraSummaryOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_geterasummaryoptions_free(f>>>0,1));class getEraSummaryOptions{static __wrap(s){s>>>=0;const a=Object.create(getEraSummaryOptions.prototype);return a.__wbg_ptr=s,getEraSummaryOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getEraSummaryOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_geterasummaryoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_geterasummaryoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_geterasummaryoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getSpeculativeExecDeployOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getspeculativeexecdeployoptions_free(f>>>0,1));class getSpeculativeExecDeployOptions{static __wrap(s){s>>>=0;const a=Object.create(getSpeculativeExecDeployOptions.prototype);return a.__wbg_ptr=s,getSpeculativeExecDeployOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getSpeculativeExecDeployOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getspeculativeexecdeployoptions_free(s,0)}get deploy_as_string(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set deploy_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get deploy(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr);return 0===s?void 0:Deploy.__wrap(s)}set deploy(s){let a=0;isLikeNone(s)||(_assertClass(s,Deploy),a=s.__destroy_into_raw()),wasm.__wbg_set_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getSpeculativeExecTxnOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getspeculativeexectxnoptions_free(f>>>0,1));class getSpeculativeExecTxnOptions{static __wrap(s){s>>>=0;const a=Object.create(getSpeculativeExecTxnOptions.prototype);return a.__wbg_ptr=s,getSpeculativeExecTxnOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getSpeculativeExecTxnOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getspeculativeexectxnoptions_free(s,0)}get transaction_as_string(){const s=wasm.__wbg_get_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set transaction_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get transaction(){const s=wasm.__wbg_get_getspeculativeexectxnoptions_transaction(this.__wbg_ptr);return 0===s?void 0:Transaction.__wrap(s)}set transaction(s){let a=0;isLikeNone(s)||(_assertClass(s,Transaction),a=s.__destroy_into_raw()),wasm.__wbg_set_getspeculativeexectxnoptions_transaction(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getStateRootHashOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_getstateroothashoptions_free(f>>>0,1));class getStateRootHashOptions{static __wrap(s){s>>>=0;const a=Object.create(getStateRootHashOptions.prototype);return a.__wbg_ptr=s,getStateRootHashOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getStateRootHashOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_getstateroothashoptions_free(s,0)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_getstateroothashoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const getTransactionOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_gettransactionoptions_free(f>>>0,1));class getTransactionOptions{static __wrap(s){s>>>=0;const a=Object.create(getTransactionOptions.prototype);return a.__wbg_ptr=s,getTransactionOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,getTransactionOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_gettransactionoptions_free(s,0)}get transaction_hash_as_string(){const s=wasm.__wbg_get_gettransactionoptions_transaction_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set transaction_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_gettransactionoptions_transaction_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get transaction_hash(){const s=wasm.__wbg_get_gettransactionoptions_transaction_hash(this.__wbg_ptr);return 0===s?void 0:TransactionHash.__wrap(s)}set transaction_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,TransactionHash),a=s.__destroy_into_raw()),wasm.__wbg_set_gettransactionoptions_transaction_hash(this.__wbg_ptr,a)}get finalized_approvals(){const s=wasm.__wbg_get_gettransactionoptions_finalized_approvals(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set finalized_approvals(s){wasm.__wbg_set_gettransactionoptions_finalized_approvals(this.__wbg_ptr,isLikeNone(s)?16777215:s?1:0)}get rpc_address(){const s=wasm.__wbg_get_gettransactionoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_gettransactionoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_gettransactionoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_gettransactionoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryBalanceDetailsOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalancedetailsoptions_free(f>>>0,1));class queryBalanceDetailsOptions{static __wrap(s){s>>>=0;const a=Object.create(queryBalanceDetailsOptions.prototype);return a.__wbg_ptr=s,queryBalanceDetailsOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryBalanceDetailsOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalancedetailsoptions_free(s,0)}get purse_identifier_as_string(){const s=wasm.__wbg_get_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set purse_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get purse_identifier(){const s=wasm.__wbg_get_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr);return 0===s?void 0:PurseIdentifier.__wrap(s)}set purse_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,PurseIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr,a)}get global_state_identifier(){const s=wasm.__wbg_get_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:GlobalStateIdentifier.__wrap(s)}set global_state_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,GlobalStateIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr,a)}get state_root_hash_as_string(){const s=wasm.__wbg_get_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get rpc_address(){const s=wasm.__wbg_get_querybalancedetailsoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_querybalancedetailsoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_querybalancedetailsoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryBalanceOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querybalanceoptions_free(f>>>0,1));class queryBalanceOptions{static __wrap(s){s>>>=0;const a=Object.create(queryBalanceOptions.prototype);return a.__wbg_ptr=s,queryBalanceOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryBalanceOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querybalanceoptions_free(s,0)}get purse_identifier_as_string(){const s=wasm.__wbg_get_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set purse_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get purse_identifier(){const s=wasm.__wbg_get_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr);return 0===s?void 0:PurseIdentifier.__wrap(s)}set purse_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,PurseIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr,a)}get global_state_identifier(){const s=wasm.__wbg_get_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:GlobalStateIdentifier.__wrap(s)}set global_state_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,GlobalStateIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr,a)}get state_root_hash_as_string(){const s=wasm.__wbg_get_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get rpc_address(){const s=wasm.__wbg_get_querybalanceoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querybalancedetailsoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_querybalancedetailsoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_querybalancedetailsoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryContractDictOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querycontractdictoptions_free(f>>>0,1));class queryContractDictOptions{static __wrap(s){s>>>=0;const a=Object.create(queryContractDictOptions.prototype);return a.__wbg_ptr=s,queryContractDictOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryContractDictOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querycontractdictoptions_free(s,0)}get state_root_hash_as_string(){const s=wasm.__wbg_get_querycontractdictoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,a)}get dictionary_item_params(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===s?void 0:DictionaryItemStrParams.__wrap(s)}set dictionary_item_params(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemStrParams),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,a)}get dictionary_item_identifier(){const s=wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===s?void 0:DictionaryItemIdentifier.__wrap(s)}set dictionary_item_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,DictionaryItemIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_querycontractdictoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryContractKeyOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_querycontractkeyoptions_free(f>>>0,1));class queryContractKeyOptions{static __wrap(s){s>>>=0;const a=Object.create(queryContractKeyOptions.prototype);return a.__wbg_ptr=s,queryContractKeyOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryContractKeyOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_querycontractkeyoptions_free(s,0)}get entity_identifier(){const s=wasm.__wbg_get_querycontractkeyoptions_entity_identifier(this.__wbg_ptr);return 0===s?void 0:EntityIdentifier.__wrap(s)}set entity_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,EntityIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querycontractkeyoptions_entity_identifier(this.__wbg_ptr,a)}get entity_identifier_as_string(){const s=wasm.__wbg_get_querycontractkeyoptions_entity_identifier_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set entity_identifier_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querycontractkeyoptions_entity_identifier_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get maybe_block_identifier(){const s=wasm.__wbg_get_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:BlockIdentifier.__wrap(s)}set maybe_block_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,BlockIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get path_as_string(){const s=wasm.__wbg_get_querycontractkeyoptions_path_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set path_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get path(){const s=wasm.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===s?void 0:Path.__wrap(s)}set path(s){let a=0;isLikeNone(s)||(_assertClass(s,Path),a=s.__destroy_into_raw()),wasm.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_querycontractkeyoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_querycontractkeyoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}const queryGlobalStateOptionsFinalization=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(f=>wasm.__wbg_queryglobalstateoptions_free(f>>>0,1));class queryGlobalStateOptions{static __wrap(s){s>>>=0;const a=Object.create(queryGlobalStateOptions.prototype);return a.__wbg_ptr=s,queryGlobalStateOptionsFinalization.register(a,a.__wbg_ptr,a),a}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,queryGlobalStateOptionsFinalization.unregister(this),s}free(){const s=this.__destroy_into_raw();wasm.__wbg_queryglobalstateoptions_free(s,0)}get global_state_identifier(){const s=wasm.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:GlobalStateIdentifier.__wrap(s)}set global_state_identifier(s){let a=0;isLikeNone(s)||(_assertClass(s,GlobalStateIdentifier),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr,a)}get state_root_hash_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set state_root_hash_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get state_root_hash(){const s=wasm.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:Digest.__wrap(s)}set state_root_hash(s){let a=0;isLikeNone(s)||(_assertClass(s,Digest),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr,a)}get maybe_block_id_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set maybe_block_id_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get key_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_key_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set key_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get key(){const s=wasm.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr);return 0===s?void 0:Key.__wrap(s)}set key(s){let a=0;isLikeNone(s)||(_assertClass(s,Key),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr,a)}get path_as_string(){const s=wasm.__wbg_get_queryglobalstateoptions_path_as_string(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set path_as_string(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get path(){const s=wasm.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr);return 0===s?void 0:Path.__wrap(s)}set path(s){let a=0;isLikeNone(s)||(_assertClass(s,Path),a=s.__destroy_into_raw()),wasm.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr,a)}get rpc_address(){const s=wasm.__wbg_get_queryglobalstateoptions_rpc_address(this.__wbg_ptr);let a;return 0!==s[0]&&(a=getStringFromWasm0(s[0],s[1]).slice(),wasm.__wbindgen_free(s[0],1*s[1],1)),a}set rpc_address(s){var a=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);wasm.__wbg_set_queryglobalstateoptions_rpc_address(this.__wbg_ptr,a,WASM_VECTOR_LEN)}get verbosity(){const s=wasm.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){wasm.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr,isLikeNone(s)?3:s)}}function __wbg_load(f,s){return _wbg_load.apply(this,arguments)}function _wbg_load(){return(_wbg_load=(0,_opt2_casper_rustSDK_examples_frontend_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(f,s){if("function"==typeof Response&&f instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(f,s)}catch(u){if("application/wasm"==f.headers.get("Content-Type"))throw u;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",u)}const a=yield f.arrayBuffer();return yield WebAssembly.instantiate(a,s)}{const a=yield WebAssembly.instantiate(f,s);return a instanceof WebAssembly.Instance?{instance:a,module:f}:a}})).apply(this,arguments)}function __wbg_get_imports(){const imports={wbg:{}};return imports.wbg.__wbindgen_error_new=function(f,s){return new Error(getStringFromWasm0(f,s))},imports.wbg.__wbindgen_string_new=function(f,s){return getStringFromWasm0(f,s)},imports.wbg.__wbg_getdeployresult_new=function(f){return GetDeployResult.__wrap(f)},imports.wbg.__wbg_puttransactionresult_new=function(f){return PutTransactionResult.__wrap(f)},imports.wbg.__wbg_getdictionaryitemresult_new=function(f){return GetDictionaryItemResult.__wrap(f)},imports.wbg.__wbg_querybalanceresult_new=function(f){return QueryBalanceResult.__wrap(f)},imports.wbg.__wbg_putdeployresult_new=function(f){return PutDeployResult.__wrap(f)},imports.wbg.__wbg_getpeersresult_new=function(f){return GetPeersResult.__wrap(f)},imports.wbg.__wbg_getbalanceresult_new=function(f){return GetBalanceResult.__wrap(f)},imports.wbg.__wbg_geterasummaryresult_new=function(f){return GetEraSummaryResult.__wrap(f)},imports.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e=function(){return handleError(function(f){return f.requestSwitchAccount()},arguments)},imports.wbg.__wbindgen_boolean_get=function(f){return"boolean"==typeof f?f?1:0:2},imports.wbg.__wbg_querybalancedetailsresult_new=function(f){return QueryBalanceDetailsResult.__wrap(f)},imports.wbg.__wbg_getchainspecresult_new=function(f){return GetChainspecResult.__wrap(f)},imports.wbg.__wbg_getblockresult_new=function(f){return GetBlockResult.__wrap(f)},imports.wbg.__wbg_getvalidatorchangesresult_new=function(f){return GetValidatorChangesResult.__wrap(f)},imports.wbg.__wbg_speculativeexecresult_new=function(f){return SpeculativeExecResult.__wrap(f)},imports.wbg.__wbg_geterainforesult_new=function(f){return GetEraInfoResult.__wrap(f)},imports.wbg.__wbg_queryglobalstateresult_new=function(f){return QueryGlobalStateResult.__wrap(f)},imports.wbg.__wbg_transaction_new=function(f){return Transaction.__wrap(f)},imports.wbg.__wbg_speculativeexectxnresult_new=function(f){return SpeculativeExecTxnResult.__wrap(f)},imports.wbg.__wbg_getaddressableentityresult_new=function(f){return GetAddressableEntityResult.__wrap(f)},imports.wbg.__wbg_deploy_new=function(f){return Deploy.__wrap(f)},imports.wbg.__wbg_getVersion_821280958b37ff1f=function(){return handleError(function(f){return f.getVersion()},arguments)},imports.wbg.__wbindgen_string_get=function(f,s){const u="string"==typeof s?s:void 0;var g=isLikeNone(u)?0:passStringToWasm0(u,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),y=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(f+4,y,!0),getDataViewMemory0().setInt32(f+0,g,!0)},imports.wbg.__wbg_getblocktransfersresult_new=function(f){return GetBlockTransfersResult.__wrap(f)},imports.wbg.__wbg_getauctioninforesult_new=function(f){return GetAuctionInfoResult.__wrap(f)},imports.wbg.__wbg_listrpcsresult_new=function(f){return ListRpcsResult.__wrap(f)},imports.wbg.__wbg_getaccountresult_new=function(f){return GetAccountResult.__wrap(f)},imports.wbg.__wbg_getstateroothashresult_new=function(f){return GetStateRootHashResult.__wrap(f)},imports.wbg.__wbg_getnodestatusresult_new=function(f){return GetNodeStatusResult.__wrap(f)},imports.wbg.__wbg_gettransactionresult_new=function(f){return GetTransactionResult.__wrap(f)},imports.wbg.__wbg_disconnectFromSite_2d2501f4e00e57c8=function(){return handleError(function(f){return f.disconnectFromSite()},arguments)},imports.wbg.__wbg_isConnected_f84ffbccb9898623=function(){return handleError(function(f){return f.isConnected()},arguments)},imports.wbg.__wbg_signMessage_c2bf40612e99c084=function(){return handleError(function(f,s,a,u,g){return f.signMessage(getStringFromWasm0(s,a),getStringFromWasm0(u,g))},arguments)},imports.wbg.__wbg_requestConnection_df909ec1fae47c86=function(){return handleError(function(f){return f.requestConnection()},arguments)},imports.wbg.__wbg_getActivePublicKey_7cd2af2b4a2b810f=function(){return handleError(function(f){return f.getActivePublicKey()},arguments)},imports.wbg.__wbg_messages_new=function(f){return Messages.__wrap(f)},imports.wbg.__wbindgen_cb_drop=function(f){const s=f.original;return 1==s.cnt--&&(s.a=0,!0)},imports.wbg.__wbg_error_d52bf4e1868fa715=function(f,s){console.error(getStringFromWasm0(f,s))},imports.wbg.__wbg_log_5199e4d2d51afa95=function(f,s){console.log(getStringFromWasm0(f,s))},imports.wbg.__wbindgen_number_get=function(f,s){const u="number"==typeof s?s:void 0;getDataViewMemory0().setFloat64(f+8,isLikeNone(u)?0:u,!0),getDataViewMemory0().setInt32(f+0,!isLikeNone(u),!0)},imports.wbg.__wbg_subscription_unwrap=function(f){return Subscription.__unwrap(f)},imports.wbg.__wbg_messages_unwrap=function(f){return Messages.__unwrap(f)},imports.wbg.__wbindgen_is_null=function(f){return null===f},imports.wbg.__wbindgen_is_undefined=function(f){return void 0===f},imports.wbg.__wbindgen_jsval_eq=function(f,s){return f===s},imports.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c="function"==typeof CasperWalletProvider?CasperWalletProvider:notDefined("CasperWalletProvider"),imports.wbg.__wbg_sign_5740ada8ba2ef8c3=function(){return handleError(function(f,s,a,u,g){return f.sign(getStringFromWasm0(s,a),getStringFromWasm0(u,g))},arguments)},imports.wbg.__wbindgen_is_function=function(f){return"function"==typeof f},imports.wbg.__wbg_log_a4ea4344db098de3=function(f,s){console.log(getStringFromWasm0(f,s))},imports.wbg.__wbg_fetch_9b133f5ec268a7b8="function"==typeof fetch?fetch:notDefined("fetch"),imports.wbg.__wbg_getReader_7a604d2d7b2f6e3e=function(){return handleError(function(f){return f.getReader()},arguments)},imports.wbg.__wbg_queueMicrotask_848aa4969108a57e=function(f){return f.queueMicrotask},imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73="function"==typeof queueMicrotask?queueMicrotask:notDefined("queueMicrotask"),imports.wbg.__wbg_fetch_1fdc4448ed9eec00=function(f,s){return f.fetch(s)},imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383=function(){return handleError(function(f,s,a){return new Request(getStringFromWasm0(f,s),a)},arguments)},imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=function(f){let s;try{s=f instanceof Response}catch{s=!1}return s},imports.wbg.__wbg_url_58af972663531d16=function(f,s){const u=passStringToWasm0(s.url,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(f+4,g,!0),getDataViewMemory0().setInt32(f+0,u,!0)},imports.wbg.__wbg_status_5f4e900d22140a18=function(f){return f.status},imports.wbg.__wbg_headers_1b9bf90c73fae600=function(f){return f.headers},imports.wbg.__wbg_body_06c4eb578a55c1d4=function(f){const s=f.body;return isLikeNone(s)?0:addToExternrefTable0(s)},imports.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return handleError(function(f){return f.arrayBuffer()},arguments)},imports.wbg.__wbg_setbody_aa8b691bec428bf4=function(f,s){f.body=s},imports.wbg.__wbg_setcredentials_a4e661320cdb9738=function(f,s){f.credentials=__wbindgen_enum_RequestCredentials[s]},imports.wbg.__wbg_setheaders_f5205d36e423a544=function(f,s){f.headers=s},imports.wbg.__wbg_setmethod_ce2da76000b02f6a=function(f,s,a){f.method=getStringFromWasm0(s,a)},imports.wbg.__wbg_setmode_4919fd636102c586=function(f,s){f.mode=__wbindgen_enum_RequestMode[s]},imports.wbg.__wbg_setsignal_812ccb8269a7fd90=function(f,s){f.signal=s},imports.wbg.__wbg_signal_9acfcec9e7dffc22=function(f){return f.signal},imports.wbg.__wbg_new_75169ae5a9683c55=function(){return handleError(function(){return new AbortController},arguments)},imports.wbg.__wbg_abort_c57daab47a6c1215=function(f){f.abort()},imports.wbg.__wbg_new_a9ae04a5200606a5=function(){return handleError(function(){return new Headers},arguments)},imports.wbg.__wbg_append_8b3e7f74a47ea7d5=function(){return handleError(function(f,s,a,u,g){f.append(getStringFromWasm0(s,a),getStringFromWasm0(u,g))},arguments)},imports.wbg.__wbg_byobRequest_86ac467c94924d3c=function(f){const s=f.byobRequest;return isLikeNone(s)?0:addToExternrefTable0(s)},imports.wbg.__wbg_close_7cda9dd901230214=function(){return handleError(function(f){f.close()},arguments)},imports.wbg.__wbg_getdone_38a59a1c17131633=function(f){const s=f.done;return isLikeNone(s)?16777215:s?1:0},imports.wbg.__wbg_getvalue_674bb48c8380247b=function(f){return f.value},imports.wbg.__wbg_result_5cc84600fc64bf35=function(){return handleError(function(f){return f.result},arguments)},imports.wbg.__wbg_setonload_0e9d43ec0cbb3987=function(f,s){f.onload=s},imports.wbg.__wbg_new_e282c42c5fc7a7b1=function(){return handleError(function(){return new FileReader},arguments)},imports.wbg.__wbg_readAsArrayBuffer_467dfea5cb42f85c=function(){return handleError(function(f,s){f.readAsArrayBuffer(s)},arguments)},imports.wbg.__wbg_readyState_bc0231e8c43b0907=function(f){return f.readyState},imports.wbg.__wbg_setonopen_c0e1464e3ea28727=function(f,s){f.onopen=s},imports.wbg.__wbg_setonerror_e16deca7fd15a59c=function(f,s){f.onerror=s},imports.wbg.__wbg_setonmessage_84cd941c1df08da7=function(f,s){f.onmessage=s},imports.wbg.__wbg_new_d550f7a7120dd942=function(){return handleError(function(f,s){return new WebSocket(getStringFromWasm0(f,s))},arguments)},imports.wbg.__wbg_instanceof_Blob_702ee3ea790162e1=function(f){let s;try{s=f instanceof Blob}catch{s=!1}return s},imports.wbg.__wbg_read_08d62388e7870059=function(f){return f.read()},imports.wbg.__wbg_releaseLock_32c310d7be334e1c=function(f){f.releaseLock()},imports.wbg.__wbg_cancel_2a3c2f3c115ac7e0=function(f){return f.cancel()},imports.wbg.__wbg_data_134d3a704b9fca32=function(f){return f.data},imports.wbg.__wbg_view_de0e81c5c00d2129=function(f){const s=f.view;return isLikeNone(s)?0:addToExternrefTable0(s)},imports.wbg.__wbg_respond_ffb6928cd9b79c32=function(){return handleError(function(f,s){f.respond(s>>>0)},arguments)},imports.wbg.__wbg_close_cfd08d9cf9f36856=function(){return handleError(function(f){f.close()},arguments)},imports.wbg.__wbg_enqueue_e693a6fb4f3261c1=function(){return handleError(function(f,s){f.enqueue(s)},arguments)},imports.wbg.__wbg_crypto_1d1f22824a6a080c=function(f){return f.crypto},imports.wbg.__wbindgen_is_object=function(f){return"object"==typeof f&&null!==f},imports.wbg.__wbg_process_4a72847cc503995b=function(f){return f.process},imports.wbg.__wbg_versions_f686565e586dd935=function(f){return f.versions},imports.wbg.__wbg_node_104a2ff8d6ea03a2=function(f){return f.node},imports.wbg.__wbindgen_is_string=function(f){return"string"==typeof f},imports.wbg.__wbg_require_cca90b1a94a0255b=function(){return handleError(function(){return module.require},arguments)},imports.wbg.__wbg_msCrypto_eb05e62b530a1508=function(f){return f.msCrypto},imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return handleError(function(f,s){f.randomFillSync(s)},arguments)},imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return handleError(function(f,s){f.getRandomValues(s)},arguments)},imports.wbg.__wbg_get_5419cf6b954aa11d=function(f,s){return f[s>>>0]},imports.wbg.__wbg_length_f217bbbf7e8e4df4=function(f){return f.length},imports.wbg.__wbg_new_034f913e7636e987=function(){return new Array},imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=function(f,s){return new Function(getStringFromWasm0(f,s))},imports.wbg.__wbg_next_13b477da1eaa3897=function(f){return f.next},imports.wbg.__wbg_next_b06e115d1b01e10b=function(){return handleError(function(f){return f.next()},arguments)},imports.wbg.__wbg_done_983b5ffcaec8c583=function(f){return f.done},imports.wbg.__wbg_value_2ab8a198c834c26a=function(f){return f.value},imports.wbg.__wbg_iterator_695d699a44d6234c=function(){return Symbol.iterator},imports.wbg.__wbg_get_ef828680c64da212=function(){return handleError(function(f,s){return Reflect.get(f,s)},arguments)},imports.wbg.__wbg_call_a9ef466721e824f2=function(){return handleError(function(f,s){return f.call(s)},arguments)},imports.wbg.__wbg_new_e69b5f66fda8f13c=function(){return new Object},imports.wbg.__wbg_self_bf91bf94d9e04084=function(){return handleError(function(){return self.self},arguments)},imports.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return handleError(function(){return window.window},arguments)},imports.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return handleError(function(){return globalThis.globalThis},arguments)},imports.wbg.__wbg_global_3eca19bb09e9c484=function(){return handleError(function(){return global.global},arguments)},imports.wbg.__wbg_eval_1bab7c4fbae3b3d6=function(){return handleError(function(arg0,arg1){const ret=eval(getStringFromWasm0(arg0,arg1));return ret},arguments)},imports.wbg.__wbg_isArray_6f3b47f09adb61b5=function(f){return Array.isArray(f)},imports.wbg.__wbg_push_36cf4d81d7da33d1=function(f,s){return f.push(s)},imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7=function(f){let s;try{s=f instanceof ArrayBuffer}catch{s=!1}return s},imports.wbg.__wbg_new_70a2f23d1565c04c=function(f,s){return new Error(getStringFromWasm0(f,s))},imports.wbg.__wbg_apply_c37b42ff44b0469d=function(){return handleError(function(f,s,a){return f.apply(s,a)},arguments)},imports.wbg.__wbg_call_3bfa248576352471=function(){return handleError(function(f,s,a){return f.call(s,a)},arguments)},imports.wbg.__wbg_getTime_41225036a0393d63=function(f){return f.getTime()},imports.wbg.__wbg_new0_218ada33b570be35=function(){return new Date},imports.wbg.__wbg_instanceof_Object_4bbac482eda9b711=function(f){let s;try{s=f instanceof Object}catch{s=!1}return s},imports.wbg.__wbg_instanceof_Promise_f3fd1bcac3157f0c=function(f){let s;try{s=f instanceof Promise}catch{s=!1}return s},imports.wbg.__wbg_new_1073970097e5a420=function(f,s){try{var a={a:f,b:s};return new Promise((y,v)=>{const E=a.a;a.a=0;try{return __wbg_adapter_1211(E,a.b,y,v)}finally{a.a=E}})}finally{a.a=a.b=0}},imports.wbg.__wbg_resolve_0aad7c1484731c99=function(f){return Promise.resolve(f)},imports.wbg.__wbg_catch_8097da4375a5dd1b=function(f,s){return f.catch(s)},imports.wbg.__wbg_then_748f75edfb032440=function(f,s){return f.then(s)},imports.wbg.__wbg_then_4866a7d9f55d8f3e=function(f,s,a){return f.then(s,a)},imports.wbg.__wbg_buffer_ccaed51a635d8a2d=function(f){return f.buffer},imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=function(f,s,a){return new Uint8Array(f,s>>>0,a>>>0)},imports.wbg.__wbg_new_fec2611eb9180f95=function(f){return new Uint8Array(f)},imports.wbg.__wbg_set_ec2fcf81bc573fd9=function(f,s,a){f.set(s,a>>>0)},imports.wbg.__wbg_length_9254c4bd3b9f23c4=function(f){return f.length},imports.wbg.__wbg_newwithlength_76462a666eca145f=function(f){return new Uint8Array(f>>>0)},imports.wbg.__wbg_buffer_95102df5554646dc=function(f){return f.buffer},imports.wbg.__wbg_subarray_975a06f9dbd16995=function(f,s,a){return f.subarray(s>>>0,a>>>0)},imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c=function(f){return f.byteLength},imports.wbg.__wbg_byteOffset_ec0928143c619cd7=function(f){return f.byteOffset},imports.wbg.__wbg_getindex_146612fa21bd6845=function(f,s){return f[s>>>0]},imports.wbg.__wbg_parse_51ee5409072379d3=function(){return handleError(function(f,s){return JSON.parse(getStringFromWasm0(f,s))},arguments)},imports.wbg.__wbg_stringify_eead5648c09faaf8=function(){return handleError(function(f){return JSON.stringify(f)},arguments)},imports.wbg.__wbg_has_bd717f25f195f23d=function(){return handleError(function(f,s){return Reflect.has(f,s)},arguments)},imports.wbg.__wbindgen_debug_string=function(f,s){const u=passStringToWasm0(debugString(s),wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),g=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(f+4,g,!0),getDataViewMemory0().setInt32(f+0,u,!0)},imports.wbg.__wbindgen_throw=function(f,s){throw new Error(getStringFromWasm0(f,s))},imports.wbg.__wbindgen_memory=function(){return wasm.memory},imports.wbg.__wbindgen_closure_wrapper1500=function(f,s,a){return makeMutClosure(f,s,536,__wbg_adapter_38)},imports.wbg.__wbindgen_closure_wrapper5314=function(f,s,a){return makeMutClosure(f,s,959,__wbg_adapter_41)},imports.wbg.__wbindgen_closure_wrapper5316=function(f,s,a){return makeMutClosure(f,s,959,__wbg_adapter_41)},imports.wbg.__wbindgen_closure_wrapper5318=function(f,s,a){return makeMutClosure(f,s,959,__wbg_adapter_41)},imports.wbg.__wbindgen_closure_wrapper5988=function(f,s,a){return makeMutClosure(f,s,1149,__wbg_adapter_48)},imports.wbg.__wbindgen_closure_wrapper6025=function(f,s,a){return makeMutClosure(f,s,1161,__wbg_adapter_51)},imports.wbg.__wbindgen_init_externref_table=function(){const f=wasm.__wbindgen_export_2,s=f.grow(4);f.set(0,void 0),f.set(s+0,void 0),f.set(s+1,null),f.set(s+2,!0),f.set(s+3,!1)},imports}function __wbg_init_memory(f,s){}function __wbg_finalize_init(f,s){return wasm=f.exports,__wbg_init.__wbindgen_wasm_module=s,cachedDataViewMemory0=null,cachedUint8ArrayMemory0=null,wasm.__wbindgen_start(),wasm}function initSync(f){if(void 0!==wasm)return wasm;typeof f<"u"&&(Object.getPrototypeOf(f)===Object.prototype?({module:f}=f):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const s=__wbg_get_imports();return f instanceof WebAssembly.Module||(f=new WebAssembly.Module(f)),__wbg_finalize_init(new WebAssembly.Instance(f,s),f)}function __wbg_init(f){return _wbg_init.apply(this,arguments)}function _wbg_init(){return(_wbg_init=(0,_opt2_casper_rustSDK_examples_frontend_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(f){if(void 0!==wasm)return wasm;typeof f<"u"&&(Object.getPrototypeOf(f)===Object.prototype?({module_or_path:f}=f):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof f>"u"&&(f=new URL("casper_rust_wasm_sdk_bg.wasm","file:///opt2/casper/rustSDK/pkg/casper_rust_wasm_sdk.js"));const s=__wbg_get_imports();("string"==typeof f||"function"==typeof Request&&f instanceof Request||"function"==typeof URL&&f instanceof URL)&&(f=fetch(f));const{instance:a,module:u}=yield __wbg_load(yield f,s);return __wbg_finalize_init(a,u)})).apply(this,arguments)}const __WEBPACK_DEFAULT_EXPORT__=__wbg_init},467:(f,s,a)=>{function u(y,v,E,k,M,j,Z){try{var fe=y[j](Z),ce=fe.value}catch(le){return void E(le)}fe.done?v(ce):Promise.resolve(ce).then(k,M)}function g(y){return function(){var v=this,E=arguments;return new Promise(function(k,M){var j=y.apply(v,E);function Z(ce){u(j,k,M,Z,fe,"next",ce)}function fe(ce){u(j,k,M,Z,fe,"throw",ce)}Z(void 0)})}}a.d(s,{A:()=>g})}},f=>{f(f.s=8787)}]); \ No newline at end of file diff --git a/examples/frontend/angular/package-lock.json b/examples/frontend/angular/package-lock.json index 5187150a1..81c6b24b9 100644 --- a/examples/frontend/angular/package-lock.json +++ b/examples/frontend/angular/package-lock.json @@ -9,54 +9,54 @@ "version": "2.0.0", "license": "MIT", "dependencies": { - "@angular/animations": "~18.2.9", - "@angular/common": "~18.2.9", - "@angular/compiler": "~18.2.9", - "@angular/core": "~18.2.9", - "@angular/forms": "~18.2.9", - "@angular/platform-browser": "~18.2.9", - "@angular/platform-browser-dynamic": "~18.2.9", - "@angular/router": "~18.2.9", - "@nx/angular": "20.0.6", + "@angular/animations": "~18.2.12", + "@angular/common": "~18.2.12", + "@angular/compiler": "~18.2.12", + "@angular/core": "~18.2.12", + "@angular/forms": "~18.2.12", + "@angular/platform-browser": "~18.2.12", + "@angular/platform-browser-dynamic": "~18.2.12", + "@angular/router": "~18.2.12", + "@nx/angular": "20.1.2", "casper-sdk": "file:../../../pkg", "highlight.js": "^11.8.0", "promise-worker": "^2.0.1", "rxjs": "~7.8.0", - "tslib": "^2.3.0", + "tslib": "^2.8.1", "zone.js": "~0.14.10" }, "devDependencies": { - "@angular-devkit/build-angular": "^18.2.9", - "@angular-devkit/core": "~18.2.9", - "@angular-devkit/schematics": "~18.2.9", + "@angular-devkit/build-angular": "^18.2.12", + "@angular-devkit/core": "~18.2.12", + "@angular-devkit/schematics": "~18.2.12", "@angular-eslint/eslint-plugin": "~18.4.0", "@angular-eslint/eslint-plugin-template": "~18.4.0", "@angular-eslint/template-parser": "~18.4.0", - "@angular/cli": "~18.2.9", - "@angular/compiler-cli": "~18.2.9", - "@angular/language-service": "~18.2.9", - "@nx/eslint-plugin": "19.8.8", - "@nx/jest": "19.8.8", - "@nx/js": "19.8.8", - "@nx/linter": "19.8.8", - "@nx/workspace": "19.8.8", - "@schematics/angular": "~18.2.9", + "@angular/cli": "~18.2.12", + "@angular/compiler-cli": "~18.2.12", + "@angular/language-service": "~18.2.12", + "@nx/eslint-plugin": "19.8.11", + "@nx/jest": "19.8.11", + "@nx/js": "19.8.11", + "@nx/linter": "19.8.11", + "@nx/workspace": "19.8.11", + "@schematics/angular": "~18.2.12", "@swc-node/register": "~1.10.9", - "@swc/core": "~1.7.6", - "@swc/helpers": "~0.5.11", + "@swc/core": "~1.9.2", + "@swc/helpers": "~0.5.15", "@types/jest": "^29.5.12", - "@types/node": "22.8.4", - "@typescript-eslint/eslint-plugin": "^8.12.0", - "@typescript-eslint/parser": "^8.12.0", - "@typescript-eslint/utils": "^8.12.0", - "eslint": "~9.13.0", + "@types/node": "22.9.1", + "@typescript-eslint/eslint-plugin": "^8.15.0", + "@typescript-eslint/parser": "^8.15.0", + "@typescript-eslint/utils": "^8.15.0", + "eslint": "~9.15.0", "eslint-config-prettier": "9.1.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-environment-node": "^29.7.0", - "jest-preset-angular": "~14.2.2", + "jest-preset-angular": "~14.3.2", "jsonc-eslint-parser": "^2.4.0", - "nx": "19.8.8", + "nx": "19.8.11", "prettier": "^3.2.5", "ts-jest": "^29.1.4", "ts-node": "~10.9.2", @@ -69,9 +69,9 @@ "license": "Apache-2.0" }, "node_modules/@adobe/css-tools": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.0.tgz", - "integrity": "sha512-Ff9+ksdQQB3rMncgqDK78uLznstjyfIf2Arnh22pW8kBpLs6rpKDwgnZT46hin5Hl1WzazzK64DOrhSwYpS7bQ==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.3.tgz", + "integrity": "sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ==", "license": "MIT" }, "node_modules/@ampproject/remapping": { @@ -88,12 +88,12 @@ } }, "node_modules/@angular-devkit/architect": { - "version": "0.1802.11", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1802.11.tgz", - "integrity": "sha512-p+XIc/j51aI83ExNdeZwvkm1F4wkuKMGUUoj0MVUUi5E6NoiMlXYm6uU8+HbRvPBzGy5+3KOiGp3Fks0UmDSAA==", + "version": "0.1802.12", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1802.12.tgz", + "integrity": "sha512-bepVb2/GtJppYKaeW8yTGE6egmoWZ7zagFDsmBdbF+BYp+HmeoPsclARcdryBPVq68zedyTRdvhWSUTbw1AYuw==", "license": "MIT", "dependencies": { - "@angular-devkit/core": "18.2.11", + "@angular-devkit/core": "18.2.12", "rxjs": "7.8.1" }, "engines": { @@ -103,16 +103,16 @@ } }, "node_modules/@angular-devkit/build-angular": { - "version": "18.2.11", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-18.2.11.tgz", - "integrity": "sha512-09Ln3NAdlMw/wMLgnwYU5VgWV5TPBEHolZUIvE9D8b6SFWBCowk3B3RWeAMgg7Peuf9SKwqQHBz2b1C7RTP/8g==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-18.2.12.tgz", + "integrity": "sha512-quVUi7eqTq9OHumQFNl9Y8t2opm8miu4rlYnuF6rbujmmBDvdUvR6trFChueRczl2p5HWqTOr6NPoDGQm8AyNw==", "license": "MIT", "dependencies": { "@ampproject/remapping": "2.3.0", - "@angular-devkit/architect": "0.1802.11", - "@angular-devkit/build-webpack": "0.1802.11", - "@angular-devkit/core": "18.2.11", - "@angular/build": "18.2.11", + "@angular-devkit/architect": "0.1802.12", + "@angular-devkit/build-webpack": "0.1802.12", + "@angular-devkit/core": "18.2.12", + "@angular/build": "18.2.12", "@babel/core": "7.25.2", "@babel/generator": "7.25.0", "@babel/helper-annotate-as-pure": "7.24.7", @@ -123,7 +123,7 @@ "@babel/preset-env": "7.25.3", "@babel/runtime": "7.25.0", "@discoveryjs/json-ext": "0.6.1", - "@ngtools/webpack": "18.2.11", + "@ngtools/webpack": "18.2.12", "@vitejs/plugin-basic-ssl": "1.1.0", "ansi-colors": "4.1.3", "autoprefixer": "10.4.20", @@ -237,12 +237,12 @@ "license": "0BSD" }, "node_modules/@angular-devkit/build-webpack": { - "version": "0.1802.11", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1802.11.tgz", - "integrity": "sha512-G76rNsyn1iQk7qjyr+K4rnDzfalmEswmwXQorypSDGaHYzIDY1SZXMoP4225WMq5fJNBOJrk82FA0PSfnPE+zQ==", + "version": "0.1802.12", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1802.12.tgz", + "integrity": "sha512-0Z3fdbZVRnjYWE2/VYyfy+uieY+6YZyEp4ylzklVkc+fmLNsnz4Zw6cK1LzzcBqAwKIyh1IdW20Cg7o8b0sONA==", "license": "MIT", "dependencies": { - "@angular-devkit/architect": "0.1802.11", + "@angular-devkit/architect": "0.1802.12", "rxjs": "7.8.1" }, "engines": { @@ -256,9 +256,9 @@ } }, "node_modules/@angular-devkit/core": { - "version": "18.2.11", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-18.2.11.tgz", - "integrity": "sha512-H9P1shRGigORWJHUY2BRa2YurT+DVminrhuaYHsbhXBRsPmgB2Dx/30YLTnC1s5XmR9QIRUCsg/d3kyT1wd5Zg==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-18.2.12.tgz", + "integrity": "sha512-NtB6ypsaDyPE6/fqWOdfTmACs+yK5RqfH5tStEzWFeeDsIEDYKsJ06ypuRep7qTjYus5Rmttk0Ds+cFgz8JdUQ==", "license": "MIT", "dependencies": { "ajv": "8.17.1", @@ -283,12 +283,12 @@ } }, "node_modules/@angular-devkit/schematics": { - "version": "18.2.11", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-18.2.11.tgz", - "integrity": "sha512-efRK3FotTFp4KD5u42jWfXpHUALXB9kJNsWiB4wEImKFH6CN+vjBspJQuLqk2oeBFh/7D2qRMc5P+2tZHM5hdw==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-18.2.12.tgz", + "integrity": "sha512-mMea9txHbnCX5lXLHlo0RAgfhFHDio45/jMsREM2PA8UtVf2S8ltXz7ZwUrUyMQRv8vaSfn4ijDstF4hDMnRgQ==", "license": "MIT", "dependencies": { - "@angular-devkit/core": "18.2.11", + "@angular-devkit/core": "18.2.12", "jsonc-parser": "3.3.1", "magic-string": "0.30.11", "ora": "5.4.1", @@ -301,21 +301,21 @@ } }, "node_modules/@angular-eslint/bundled-angular-compiler": { - "version": "18.4.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-18.4.0.tgz", - "integrity": "sha512-HlFHt2qgdd+jqyVIkCXmrjHauXo/XY3Rp0UNabk83ejGi/raM/6lEFI7iFWzHxLyiAKk4OgGI5W26giSQw991A==", + "version": "18.4.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-18.4.1.tgz", + "integrity": "sha512-gCQC0mgBO1bwHDXL9CUgHW+Rf1XGZCLAopoXnggwxGkBCx+oww507t+jrSOxdh+4OTKU4ZfmbtWd7Y8AeXns8w==", "dev": true, "license": "MIT" }, "node_modules/@angular-eslint/eslint-plugin": { - "version": "18.4.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin/-/eslint-plugin-18.4.0.tgz", - "integrity": "sha512-Saz9lkWPN3da7ZKW17UsOSN7DeY+TPh+wz/6GCNZCh67Uw2wvMC9agb+4hgpZNXYCP5+u7erqzxQmBoWnS/A+A==", + "version": "18.4.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin/-/eslint-plugin-18.4.1.tgz", + "integrity": "sha512-FoHwj+AFo8ONKb8wEK5qpo6uefuyklZlDqErJxeC3fpNIJzDe8PWBcJsuZt7Wwm/HeggWgt0Au6h+3IEa0V3BQ==", "dev": true, "license": "MIT", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.4.0", - "@angular-eslint/utils": "18.4.0" + "@angular-eslint/bundled-angular-compiler": "18.4.1", + "@angular-eslint/utils": "18.4.1" }, "peerDependencies": { "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", @@ -324,14 +324,14 @@ } }, "node_modules/@angular-eslint/eslint-plugin-template": { - "version": "18.4.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-18.4.0.tgz", - "integrity": "sha512-n3uZFCy76DnggPqjSVFV3gYD1ik7jCG28o2/HO4kobcMNKnwW8XAlFUagQ4TipNQh7fQiAefsEqvv2quMsYDVw==", + "version": "18.4.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-18.4.1.tgz", + "integrity": "sha512-sofnKpi6wOZ6avVfYYqB7sCgGgWF2HgCZfW+IAp1MtVD2FBa1zTSbbfIZ1I8Akpd22UXa4LKJd0TLwm5XHHkiQ==", "dev": true, "license": "MIT", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.4.0", - "@angular-eslint/utils": "18.4.0", + "@angular-eslint/bundled-angular-compiler": "18.4.1", + "@angular-eslint/utils": "18.4.1", "aria-query": "5.3.2", "axobject-query": "4.1.0" }, @@ -343,13 +343,13 @@ } }, "node_modules/@angular-eslint/template-parser": { - "version": "18.4.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-18.4.0.tgz", - "integrity": "sha512-VTep3Xd3IOaRIPL+JN/TV4/2DqUPbjtF3TNY15diD/llnrEhqFnmsvMihexbQyTqzOG+zU554oK44YfvAtHOrw==", + "version": "18.4.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-18.4.1.tgz", + "integrity": "sha512-LsStXVyso/89gQU5eiJebB/b1j+wrRtTLjk+ODVUTa7NGCCT7B7xI6ToTchkBEpSTHLT9pEQXHsHer3FymsQRQ==", "dev": true, "license": "MIT", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.4.0", + "@angular-eslint/bundled-angular-compiler": "18.4.1", "eslint-scope": "^8.0.2" }, "peerDependencies": { @@ -358,13 +358,13 @@ } }, "node_modules/@angular-eslint/utils": { - "version": "18.4.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-18.4.0.tgz", - "integrity": "sha512-At1yS8GRviGBoaupiQwEOL4/IcZJCE/+2vpXdItMWPGB1HWetxlKAUZTMmIBX/r5Z7CoXxl+LbqpGhrhyzIQAg==", + "version": "18.4.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-18.4.1.tgz", + "integrity": "sha512-F5UGE1J/CRmTbl8vjexQRwRglNqnJwdXCUejaG+qlGssSHoWcRB+ubbR/na3PdnzeJdBE6DkLYElXnOQZ6YKfg==", "dev": true, "license": "MIT", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "18.4.0" + "@angular-eslint/bundled-angular-compiler": "18.4.1" }, "peerDependencies": { "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", @@ -373,9 +373,9 @@ } }, "node_modules/@angular/animations": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-18.2.10.tgz", - "integrity": "sha512-LT5+CocFZJ4t5jXsXLx5w/sBuWSxOEjmNTYga13usRcLOblrAB902pjUdFCHEZyrCUgm4MH8vov9fMS+Ks2GCw==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-18.2.12.tgz", + "integrity": "sha512-XcWH/VFQ1Rddhdqi/iU8lW3Qg96yVx1NPfrO5lhcSSvVUzYWTZ5r+jh3GqYqUgPWyEp1Kpw3FLsOgVcGcBWQkQ==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -384,17 +384,17 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/core": "18.2.10" + "@angular/core": "18.2.12" } }, "node_modules/@angular/build": { - "version": "18.2.11", - "resolved": "https://registry.npmjs.org/@angular/build/-/build-18.2.11.tgz", - "integrity": "sha512-AgirvSCmqUKiDE3C0rl3JA68OkOqQWDKUvjqRHXCkhxldLVOVoeIl87+jBYK/v9gcmk+K+ju+5wbGEfu1FjhiQ==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/build/-/build-18.2.12.tgz", + "integrity": "sha512-4Ohz+OSILoL+cCAQ4UTiCT5v6pctu3fXNoNpTEUK46OmxELk9jDITO5rNyNS7TxBn9wY69kjX5VcDf7MenquFQ==", "license": "MIT", "dependencies": { "@ampproject/remapping": "2.3.0", - "@angular-devkit/architect": "0.1802.11", + "@angular-devkit/architect": "0.1802.12", "@babel/core": "7.25.2", "@babel/helper-annotate-as-pure": "7.24.7", "@babel/helper-split-export-declaration": "7.24.7", @@ -456,18 +456,18 @@ } }, "node_modules/@angular/cli": { - "version": "18.2.11", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-18.2.11.tgz", - "integrity": "sha512-0JI1xjOLRemBPjdT/yVlabxc3Zkjqa/lhvVxxVC1XhKoW7yGxIGwNrQ4pka4CcQtCuktO6KPMmTGIu8YgC3cpw==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-18.2.12.tgz", + "integrity": "sha512-xhuZ/b7IhqNw1MgXf+arWf4x+GfUSt/IwbdWU4+CO8A7h0Y46zQywouP/KUK3cMQZfVdHdciTBvlpF3vFacA6Q==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/architect": "0.1802.11", - "@angular-devkit/core": "18.2.11", - "@angular-devkit/schematics": "18.2.11", + "@angular-devkit/architect": "0.1802.12", + "@angular-devkit/core": "18.2.12", + "@angular-devkit/schematics": "18.2.12", "@inquirer/prompts": "5.3.8", "@listr2/prompt-adapter-inquirer": "2.0.15", - "@schematics/angular": "18.2.11", + "@schematics/angular": "18.2.12", "@yarnpkg/lockfile": "1.1.0", "ini": "4.1.3", "jsonc-parser": "3.3.1", @@ -490,9 +490,9 @@ } }, "node_modules/@angular/common": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-18.2.10.tgz", - "integrity": "sha512-YzTCmuqLiOuT+Yv07vuKymDWiebOVZ8BuXakJiz4EM7FMoOw5gICHJ04jepZSjDNWpA16e7kJSdt5ucnmvCFDQ==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-18.2.12.tgz", + "integrity": "sha512-gI5o8Bccsi8ow8Wk2vG4Tw/Rw9LoHEA9j8+qHKNR/55SCBsz68Syg310dSyxy+sApJO2WiqIadr5VP36dlSUFw==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -501,14 +501,14 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/core": "18.2.10", + "@angular/core": "18.2.12", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/compiler": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-18.2.10.tgz", - "integrity": "sha512-cu+Uq1nnyl00Glg0+2uvm+Xpaq5b4YvWpaLGGtit7uGETAJ4L/frlBVeaTRhEoaIAGBI+RRlyuFLae+etQDA0w==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-18.2.12.tgz", + "integrity": "sha512-D5d5dLrjQal5DbAXJJNSsCC3UxzjOI2wbc+Iv+LOpRM1gpNwuYfZMX5W7cj62Ce4G2++78CJSppdKBp8D4HErQ==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -517,7 +517,7 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/core": "18.2.10" + "@angular/core": "18.2.12" }, "peerDependenciesMeta": { "@angular/core": { @@ -526,9 +526,9 @@ } }, "node_modules/@angular/compiler-cli": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-18.2.10.tgz", - "integrity": "sha512-CNFStKWMB89MFKAZZFUOhoQi+fHqRLgNOOrI73LjizXixvngEh3BDZJRtK9hbSGG+giujBrummEA60CWAw69MA==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-18.2.12.tgz", + "integrity": "sha512-IWimTNq5Q+i2Wxev6HLqnN4iYbPvLz04W1BBycT1LfGUsHcjFYLuUqbeUzHbk2snmBAzXkixgVpo8SF6P4Y5Pg==", "license": "MIT", "dependencies": { "@babel/core": "7.25.2", @@ -549,7 +549,7 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/compiler": "18.2.10", + "@angular/compiler": "18.2.12", "typescript": ">=5.4 <5.6" } }, @@ -582,9 +582,9 @@ } }, "node_modules/@angular/core": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.10.tgz", - "integrity": "sha512-EfxVz0pLaxnOppOYkdhnaUkk8HZT+uxaAGpJD3ppAa7YAWTE9xIGoNJmtS33cZNNOnvriMkdv7yn6pDtV4ct+Q==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.12.tgz", + "integrity": "sha512-wCf/OObwS6bpM60rk6bpMpCRGp0DlMLB1WNAMtfcaPNyqimVV5Bm98mWRhkOuRyvU3fU7iHhM/10ePVaoyu9+A==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -598,9 +598,9 @@ } }, "node_modules/@angular/forms": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-18.2.10.tgz", - "integrity": "sha512-2VprGB+enJIeqfz2oALmP/G/UiFzpZW6PHgyZXhk/0J/UMsa26JoYxwDFvfdm/WGTrB+VaQEG7in5xwiFPAFtQ==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-18.2.12.tgz", + "integrity": "sha512-FsukBJEU6jfAmht7TrODTkct/o4iwCZvGozuThOp0tYUPD/E1rZZzuKjEyTnT5Azpfkf0Wqx1nmpz80cczELOQ==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -609,16 +609,16 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/common": "18.2.10", - "@angular/core": "18.2.10", - "@angular/platform-browser": "18.2.10", + "@angular/common": "18.2.12", + "@angular/core": "18.2.12", + "@angular/platform-browser": "18.2.12", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/language-service": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-18.2.10.tgz", - "integrity": "sha512-V5yslbkFrBhGr70yK7Bauk8186Di9W8OQtR41fEvPEHecQ5IWjnXzPabl0rjOPtpcAARAYnbIq3sqjQygiX6fw==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-18.2.12.tgz", + "integrity": "sha512-oaiVAnGzmPZvrXdGh8XnosaqfEPbZxO2225MxbbrD49XTqUgpaS2zrz1Uf5j42e8qytA2kj8tckLq7PAMm0D1w==", "dev": true, "license": "MIT", "engines": { @@ -626,9 +626,9 @@ } }, "node_modules/@angular/platform-browser": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-18.2.10.tgz", - "integrity": "sha512-zKyRKFr3AaEA4SE/DEeb5FWHJutT26avHZog6ZGDkMeMN12zMtSqjPuTSgmDXCWleoOkzbb+nhAQ+fK/EyGyPA==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-18.2.12.tgz", + "integrity": "sha512-DRSMznuxuecrs+v5BRyd60/R4vjkQtuYUEPfzdo+rqxM83Dmr3PGtnqPRgd5oAFUbATxf02hQXijRD27K7rZRg==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -637,9 +637,9 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/animations": "18.2.10", - "@angular/common": "18.2.10", - "@angular/core": "18.2.10" + "@angular/animations": "18.2.12", + "@angular/common": "18.2.12", + "@angular/core": "18.2.12" }, "peerDependenciesMeta": { "@angular/animations": { @@ -648,9 +648,9 @@ } }, "node_modules/@angular/platform-browser-dynamic": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-18.2.10.tgz", - "integrity": "sha512-syKyOTgfQnMxfpDRP1khTSPZ5dsMgA8YQwNF6KsB3eZQl15CKSka7bzjMOUWeZ8M3WShOp1AzTf0MfwNeh0UBA==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-18.2.12.tgz", + "integrity": "sha512-dv1QEjYpcFno6+oUeGEDRWpB5g2Ufb0XkUbLJQIgrOk1Qbyzb8tmpDpTjok8jcKdquigMRWolr6Y1EOicfRlLw==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -659,16 +659,16 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/common": "18.2.10", - "@angular/compiler": "18.2.10", - "@angular/core": "18.2.10", - "@angular/platform-browser": "18.2.10" + "@angular/common": "18.2.12", + "@angular/compiler": "18.2.12", + "@angular/core": "18.2.12", + "@angular/platform-browser": "18.2.12" } }, "node_modules/@angular/router": { - "version": "18.2.10", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-18.2.10.tgz", - "integrity": "sha512-ZqJgOGOfvW0epsc7pIo7DffZqYHo3O9aUCVepZAhOxqtjF/sfhX2fy+A0xopTIiR0eM3LrT823V+2hjlBHj+CA==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-18.2.12.tgz", + "integrity": "sha512-cz/1YWOZadAT35PPPYmpK3HSzKOE56nlUHue5bFkw73VSZr2iBn03ALLpd9YKzWgRmx3y7DqnlQtCkDu9JPGKQ==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -677,9 +677,9 @@ "node": "^18.19.1 || ^20.11.1 || >=22.0.0" }, "peerDependencies": { - "@angular/common": "18.2.10", - "@angular/core": "18.2.10", - "@angular/platform-browser": "18.2.10", + "@angular/common": "18.2.12", + "@angular/core": "18.2.12", + "@angular/platform-browser": "18.2.12", "rxjs": "^6.5.3 || ^7.4.0" } }, @@ -897,9 +897,9 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz", - "integrity": "sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz", + "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==", "license": "MIT", "dependencies": { "@babel/helper-compilation-targets": "^7.22.6", @@ -3090,9 +3090,9 @@ } }, "node_modules/@eslint/compat": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.2.2.tgz", - "integrity": "sha512-jhgiIrsw+tRfcBQ4BFl2C3vCrIUw2trCY0cnDvGZpwTtKCEDmZhAtMfrEUP/KpnwM6PrO0T+Ltm+ccW74olG3Q==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.2.3.tgz", + "integrity": "sha512-wlZhwlDFxkxIZ571aH0FoK4h4Vwx7P3HJx62Gp8hTc10bfpwT2x0nULuAHmQSJBOWPgPeVf+9YtnD4j50zVHmA==", "dev": true, "license": "Apache-2.0", "engines": { @@ -3108,9 +3108,9 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.18.0.tgz", - "integrity": "sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.0.tgz", + "integrity": "sha512-zdHg2FPIFNKPdcHWtiNT+jEFCHYVplAXRDlQDyqy0zGx/q2parwh7brGJSiTxRk/TSMkbM//zt/f5CHgyTyaSQ==", "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^2.1.4", @@ -3144,18 +3144,18 @@ } }, "node_modules/@eslint/core": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.7.0.tgz", - "integrity": "sha512-xp5Jirz5DyPYlPiKat8jaq0EmYvDXKKpzTbxXMpT9eqlRJkRKIz9AGMdlvYjih+im+QlhWrpvVjl8IPC/lHlUw==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz", + "integrity": "sha512-7ATR9F0e4W85D/0w7cU0SNj7qkAexMG+bAHEZOjo9akvGuhHE2m7umzWzfnpa0XAg5Kxc1BWmtPMV67jJ+9VUg==", "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/eslintrc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", - "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", + "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", "license": "MIT", "dependencies": { "ajv": "^6.12.4", @@ -3250,9 +3250,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.13.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.13.0.tgz", - "integrity": "sha512-IFLyoY4d72Z5y/6o/BazFBezupzI/taV8sGumxTAVw3lXG9A6md1Dc34T9s1FoD/an9pJH8RHbAxsaEbBed9lA==", + "version": "9.15.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.15.0.tgz", + "integrity": "sha512-tMTqrY+EzbXmKJR5ToI8lxu7jaN5EdmrBFJpQk5JmSlyLsx6o4t27r883K5xsLuCYCpfKBCGswMSWXsM+jB7lg==", "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3268,9 +3268,9 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.2.tgz", - "integrity": "sha512-CXtq5nR4Su+2I47WPOlWud98Y5Lv8Kyxp2ukhgFx/eW6Blm18VXJO5WuQylPugRo8nbluoi6GvvxBLqHcvqUUw==", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz", + "integrity": "sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==", "license": "Apache-2.0", "dependencies": { "levn": "^0.4.1" @@ -3301,6 +3301,19 @@ "node": ">=18.18.0" } }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", @@ -3315,9 +3328,9 @@ } }, "node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", + "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", "license": "Apache-2.0", "engines": { "node": ">=18.18" @@ -3423,9 +3436,9 @@ } }, "node_modules/@inquirer/figures": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.7.tgz", - "integrity": "sha512-m+Trk77mp54Zma6xLkLuY+mvanPxlE4A7yNKs2HBiyZ4UkVs28Mv5c/pgWrHeInx+USHeX/WEPzjrWrcJiQgjw==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.8.tgz", + "integrity": "sha512-tKd+jsmhq21AP1LhexC0pPwsCxEhGgAkg28byjJAd+xhmIs8LUX8JbUc3vBf3PhLxWiB5EvyBE5X7JSPAqMAqg==", "license": "MIT", "engines": { "node": ">=18" @@ -4188,23 +4201,23 @@ ] }, "node_modules/@module-federation/bridge-react-webpack-plugin": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/bridge-react-webpack-plugin/-/bridge-react-webpack-plugin-0.6.6.tgz", - "integrity": "sha512-NANaSOKem+1t/Fbd1GjXnStJRe7O33ya+FR/yYkTUd1H5hmlzVDNo/lYxYuUl3O/gH9Lnlr2Gf9unyWoIW0wHw==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/bridge-react-webpack-plugin/-/bridge-react-webpack-plugin-0.6.9.tgz", + "integrity": "sha512-KXTPO0vkrtHEIcthU3TIQEkPxoytcmdyNXRwOojZEVQhqEefykAek48ndFiVTmyOu2LW2EuzP49Le8zY7nESWQ==", "dependencies": { - "@module-federation/sdk": "0.6.6", + "@module-federation/sdk": "0.6.9", "@types/semver": "7.5.8", "semver": "7.6.3" } }, "node_modules/@module-federation/data-prefetch": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/data-prefetch/-/data-prefetch-0.6.6.tgz", - "integrity": "sha512-rakEHrg2pqbOqJ3uWT2p3kgTCOxBQdEIqmew3XBAXTZ0NblZtkXeMHupcW/W6+ccvbPdn/T/PSICx9HHSvfEVg==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/data-prefetch/-/data-prefetch-0.6.9.tgz", + "integrity": "sha512-rpHxfHNkIiPA441GzXI6TMYjSrUjRWDwxJTvRQopX/P0jK5vKtNwT1UBTNF2DJkbtO1idljfhbrIufEg0OY72w==", "license": "MIT", "dependencies": { - "@module-federation/runtime": "0.6.6", - "@module-federation/sdk": "0.6.6", + "@module-federation/runtime": "0.6.9", + "@module-federation/sdk": "0.6.9", "fs-extra": "9.1.0" }, "peerDependencies": { @@ -4213,14 +4226,14 @@ } }, "node_modules/@module-federation/dts-plugin": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/dts-plugin/-/dts-plugin-0.6.6.tgz", - "integrity": "sha512-sNCghGgrpCOOVk2xpzgAGAFeo2ONcv6eAnEfe7Q2gD7R6NrGgOrB5KVhN/uWIzFJG8tqNfSSjam+woTyrrayfg==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/dts-plugin/-/dts-plugin-0.6.9.tgz", + "integrity": "sha512-uiMjjEFcMlOvRtNu8/tt7sJ5y7WTosTVym0V7lMQjgoeX0QesvZqRhgzw5gQcPcFvbk54RwTUI2rS8OEGScCFw==", "license": "MIT", "dependencies": { - "@module-federation/managers": "0.6.6", - "@module-federation/sdk": "0.6.6", - "@module-federation/third-party-dts-extractor": "0.6.6", + "@module-federation/managers": "0.6.9", + "@module-federation/sdk": "0.6.9", + "@module-federation/third-party-dts-extractor": "0.6.9", "adm-zip": "^0.5.10", "ansi-colors": "^4.1.3", "axios": "^1.7.4", @@ -4258,19 +4271,19 @@ } }, "node_modules/@module-federation/enhanced": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/enhanced/-/enhanced-0.6.6.tgz", - "integrity": "sha512-gGU1tjaksk5Q5X2zpVb/OmlwvKwVVjTXreuFwkK0Z+9QKM9jbu0B/tPSh6sqibPFeu1yM2HOFlOHJhvFs1PmsA==", - "license": "MIT", - "dependencies": { - "@module-federation/bridge-react-webpack-plugin": "0.6.6", - "@module-federation/data-prefetch": "0.6.6", - "@module-federation/dts-plugin": "0.6.6", - "@module-federation/managers": "0.6.6", - "@module-federation/manifest": "0.6.6", - "@module-federation/rspack": "0.6.6", - "@module-federation/runtime-tools": "0.6.6", - "@module-federation/sdk": "0.6.6", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/enhanced/-/enhanced-0.6.9.tgz", + "integrity": "sha512-4bEGQSE6zJ2FMdBTOrRiVjNNzWhUqzWEJGWbsr0bpLNAl4BVx2ah5MyKTrSYqaW//BRA2qc8rmrIreaIawr3kQ==", + "license": "MIT", + "dependencies": { + "@module-federation/bridge-react-webpack-plugin": "0.6.9", + "@module-federation/data-prefetch": "0.6.9", + "@module-federation/dts-plugin": "0.6.9", + "@module-federation/managers": "0.6.9", + "@module-federation/manifest": "0.6.9", + "@module-federation/rspack": "0.6.9", + "@module-federation/runtime-tools": "0.6.9", + "@module-federation/sdk": "0.6.9", "btoa": "^1.2.1", "upath": "2.0.1" }, @@ -4292,25 +4305,25 @@ } }, "node_modules/@module-federation/managers": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/managers/-/managers-0.6.6.tgz", - "integrity": "sha512-ryj2twbQmo2KhwKn1xYivpaW94l5wfplDU9FwVvW0wc8hC2lJnuGhoiZqXKL7lNaBrZXge3b43Zlgx5OnFfr6A==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/managers/-/managers-0.6.9.tgz", + "integrity": "sha512-q3AOQXcWWpdUZI1gDIi9j/UqcP+FJBYXj/e4pNp3QAteJwS/Ve9UP3y0hW27bIbAWZSSajWsYbf/+YLnktA/kQ==", "license": "MIT", "dependencies": { - "@module-federation/sdk": "0.6.6", + "@module-federation/sdk": "0.6.9", "find-pkg": "2.0.0", "fs-extra": "9.1.0" } }, "node_modules/@module-federation/manifest": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/manifest/-/manifest-0.6.6.tgz", - "integrity": "sha512-45ol0fC8RS2d+0iEt5zdp0vctE2CiOfA2kCmOFz79K33occi8sKmyevfSeZGckZy54NiMnLFteIYBsyIa+g7gg==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/manifest/-/manifest-0.6.9.tgz", + "integrity": "sha512-JMSPDpHODXOmTyJes8GJ950mbN7tqjQzqgFVUubDOVFOmlC0/MYaRzRPmkApz6d8nUfMbLZYzxNSaBHx8GP0/Q==", "license": "MIT", "dependencies": { - "@module-federation/dts-plugin": "0.6.6", - "@module-federation/managers": "0.6.6", - "@module-federation/sdk": "0.6.6", + "@module-federation/dts-plugin": "0.6.9", + "@module-federation/managers": "0.6.9", + "@module-federation/sdk": "0.6.9", "chalk": "3.0.0", "find-pkg": "2.0.0" } @@ -4329,17 +4342,17 @@ } }, "node_modules/@module-federation/rspack": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/rspack/-/rspack-0.6.6.tgz", - "integrity": "sha512-30X6QPrJ/eCcmUL4GQ06Z9bQwURBnJI0607Fw2ufmAbhDA0PJFtg7NFFfXzsdChms1ACVbgvgfBH8SJg8j3wBg==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/rspack/-/rspack-0.6.9.tgz", + "integrity": "sha512-N5yBqN8ijSRZKd0kbIvpZNil0y8rFa8cREKI1QsW1+EYUKwOUBFwF55tFdTmNCKmpZqSEBtcNjRGZXknsYPQxg==", "license": "MIT", "dependencies": { - "@module-federation/bridge-react-webpack-plugin": "0.6.6", - "@module-federation/dts-plugin": "0.6.6", - "@module-federation/managers": "0.6.6", - "@module-federation/manifest": "0.6.6", - "@module-federation/runtime-tools": "0.6.6", - "@module-federation/sdk": "0.6.6" + "@module-federation/bridge-react-webpack-plugin": "0.6.9", + "@module-federation/dts-plugin": "0.6.9", + "@module-federation/managers": "0.6.9", + "@module-federation/manifest": "0.6.9", + "@module-federation/runtime-tools": "0.6.9", + "@module-federation/sdk": "0.6.9" }, "peerDependencies": { "typescript": "^4.9.0 || ^5.0.0", @@ -4355,34 +4368,34 @@ } }, "node_modules/@module-federation/runtime": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.6.6.tgz", - "integrity": "sha512-QsKHUV2HALRzL6mPCdJEZTDuPReKC8MMXf+/VMCtQPp6JhLEjZIO06bfEZqXMbTbTYlMzntIwu1tGCbtJRZDOQ==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.6.9.tgz", + "integrity": "sha512-G1x+6jyW5sW1X+TtWaKigGhwqiHE8MESvi3ntE9ICxwELAGBonmsqDqnLSrdEy6poBKslvPANPJr0Nn9pvW9lg==", "license": "MIT", "dependencies": { - "@module-federation/sdk": "0.6.6" + "@module-federation/sdk": "0.6.9" } }, "node_modules/@module-federation/runtime-tools": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.6.6.tgz", - "integrity": "sha512-w2qHa41p6rADWMS1yBjpqNhaLZ4R5oRy9OYGPe6ywjh+8oqbiBl1CfQglcgEBIpHktEjV/upsgsnjHSdJBdeZw==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.6.9.tgz", + "integrity": "sha512-AhsEBXo8IW1ATMKS1xfJaxBiHu9n5z6WUOAIWdPpWXXBJhTFgOs0K1xAod0xLJY4YH/B5cwEcHRPN3FEs2/0Ww==", "license": "MIT", "dependencies": { - "@module-federation/runtime": "0.6.6", - "@module-federation/webpack-bundler-runtime": "0.6.6" + "@module-federation/runtime": "0.6.9", + "@module-federation/webpack-bundler-runtime": "0.6.9" } }, "node_modules/@module-federation/sdk": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.6.6.tgz", - "integrity": "sha512-tUv2kPi0FvplcpGi/g4nITAYVAR1RUZ6QvP71T8inmRZSrfcvk1QpGJiL36IjuS67SM3VAoXS0iJ2WX1Rgjvhg==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.6.9.tgz", + "integrity": "sha512-xmTxb9LgncxPGsBrN6AT/+aHnFGv8swbeNl0PcSeVbXTGLu3Gp7j+5J+AhJoWNB++SLguRwBd8LjB1d8mNKLDg==", "license": "MIT" }, "node_modules/@module-federation/third-party-dts-extractor": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/third-party-dts-extractor/-/third-party-dts-extractor-0.6.6.tgz", - "integrity": "sha512-xX9p17PpElzATNEulwlJJT731xST7T7OUIDSkkIghp/ICDmZd6WhYJvNBto7xbpaj5SIB7Ocdj4chNGv0xdYPw==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/third-party-dts-extractor/-/third-party-dts-extractor-0.6.9.tgz", + "integrity": "sha512-im00IQyX/siJz+SaAmJo6vGmMBig7UYzcrPD1N5NeiZonxdT1RZk9iXUP419UESgovYy4hM6w4qdCq6PMMl2bw==", "license": "MIT", "dependencies": { "find-pkg": "2.0.0", @@ -4391,13 +4404,13 @@ } }, "node_modules/@module-federation/webpack-bundler-runtime": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.6.6.tgz", - "integrity": "sha512-0UnY9m1fBgHwTpacYWbht1jB5X4Iqspiu1q8kfjUrv6y+R224//ydUFYYO8xfWx4V9SGQFKlU8XFH0FP/r0Hng==", + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.6.9.tgz", + "integrity": "sha512-ME1MjNT/a4MFI3HaJDM06olJ+/+H8lk4oDOdwwEZI2JSH3UoqCDrMcjSKCjBNMGzza57AowGobo1LHQeY8yZ8Q==", "license": "MIT", "dependencies": { - "@module-federation/runtime": "0.6.6", - "@module-federation/sdk": "0.6.6" + "@module-federation/runtime": "0.6.9", + "@module-federation/sdk": "0.6.9" } }, "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { @@ -4490,9 +4503,9 @@ } }, "node_modules/@ngtools/webpack": { - "version": "18.2.11", - "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-18.2.11.tgz", - "integrity": "sha512-iTdUGJ5O7yMm1DyCzyoMDMxBJ68emUSSXPWbQzEEdcqmtifRebn+VAq4vHN8OmtGM1mtuKeLEsbiZP8ywrw7Ug==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-18.2.12.tgz", + "integrity": "sha512-FFJAwtWbtpncMOVNuULPBwFJB7GSjiUwO93eGTzRp8O4EPQ8lCQeFbezQm/NP34+T0+GBLGzPSuQT+muob8YKw==", "license": "MIT", "engines": { "node": "^18.19.1 || ^20.11.1 || >=22.0.0", @@ -4822,23 +4835,23 @@ } }, "node_modules/@nrwl/devkit": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-19.8.8.tgz", - "integrity": "sha512-eikVLG60Zj4vA+mMs+ctH3JhwWYMMwNIelMT+7o7/QRn+ZAJK75EVRhSOQXly4jnRMno++ltIlsaTXxq3uhlrw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-19.8.11.tgz", + "integrity": "sha512-99GAJ7XK3uS0YyOfK/W3kvXo7mauA7XPee54ZVY/nG/MtFrJKaUBDcyE2meZzyZT0tGQoyGwSMsktp22it35Tw==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "19.8.8" + "@nx/devkit": "19.8.11" } }, "node_modules/@nrwl/devkit/node_modules/@nx/devkit": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.8.tgz", - "integrity": "sha512-JZtx+2J/9g4OCaNWNxW2udGxEtje0RZ75pybK4ZieiIQVXPsrInN/bpSJSEWW3xt90GlsaFPif39rBkmy6uoHg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.11.tgz", + "integrity": "sha512-9Ath0++R8lKeqSGmlZHNf99oa+7vKXWmjYnvDrhU7qq8RXpyccu6VhU11P69FH0oecg2lTNk6AGBXq12E8r2hQ==", "dev": true, "license": "MIT", "dependencies": { - "@nrwl/devkit": "19.8.8", + "@nrwl/devkit": "19.8.11", "ejs": "^3.1.7", "enquirer": "~2.3.6", "ignore": "^5.0.4", @@ -4853,42 +4866,42 @@ } }, "node_modules/@nrwl/eslint-plugin-nx": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nrwl/eslint-plugin-nx/-/eslint-plugin-nx-19.8.8.tgz", - "integrity": "sha512-pQjANrSiPbO31YK1tQhd8wty264FboMjIUt+WS06HlOOl05rCqPtl3OQ8jhHq5bv6xKftIdfs96NOcb3Nr7bdQ==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nrwl/eslint-plugin-nx/-/eslint-plugin-nx-19.8.11.tgz", + "integrity": "sha512-c4p4JnPX+oGjPZyhZxRwncL9YYhIyYaNg8M8S4LHxxqba7cEe9ip2SiT8FFN3b16+ayK/H+JMx40SniwRlG3gQ==", "dev": true, "license": "MIT", "dependencies": { - "@nx/eslint-plugin": "19.8.8" + "@nx/eslint-plugin": "19.8.11" } }, "node_modules/@nrwl/jest": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nrwl/jest/-/jest-19.8.8.tgz", - "integrity": "sha512-CtKywLhuYWJ06uxqm7RmW2Sfk0vJDsQg1XHhEQVrqps/XbnkMvu89+Uq3+bauikpuJkSRAsLKVISaj2giw25Yg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nrwl/jest/-/jest-19.8.11.tgz", + "integrity": "sha512-VngXsf9p+jhk46G/YSt3bPM2+3kiD8+3rvv8AHHzQISsja6d3x8wfrKN7jNDYyp4+lWPYqRnjTo4gP3niBbKVQ==", "dev": true, "license": "MIT", "dependencies": { - "@nx/jest": "19.8.8" + "@nx/jest": "19.8.11" } }, "node_modules/@nrwl/js": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nrwl/js/-/js-19.8.8.tgz", - "integrity": "sha512-k9DtDoTiBzPvUSij+Wa35kkawaIZh36ErKm4ZL1sGkaBdsQ8uKVjyO8n+iGjj5GftBsh01prpCgom9n1qrtPaw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nrwl/js/-/js-19.8.11.tgz", + "integrity": "sha512-2NIMOhjHbiEUj2HfU0glGXveUbTAidoIpNtiiNTUSrbklx+y5a2DuUm3eQp1GKEH4Pd9vu/hMMB1EQdhHL1nUQ==", "dev": true, "license": "MIT", "dependencies": { - "@nx/js": "19.8.8" + "@nx/js": "19.8.11" } }, "node_modules/@nrwl/tao": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-19.8.8.tgz", - "integrity": "sha512-TJ6NoI7pbdov8v/+QzW8toDLH1u2DNCMvwhNOx29bBPG0ycugmR+g2EqixujBgM1BeBQN99Fqi1ZR/ZOuHkemQ==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-19.8.11.tgz", + "integrity": "sha512-obsiOnWfPGWO5WO3sfuOkRl3rtizZI9l2SiDEgjjL1s1ubMMv4fDNaF29CyswCtC0p+qv99fUnIeqhbO7ejiyw==", "license": "MIT", "dependencies": { - "nx": "19.8.8", + "nx": "19.8.11", "tslib": "^2.3.0" }, "bin": { @@ -4896,28 +4909,28 @@ } }, "node_modules/@nrwl/workspace": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nrwl/workspace/-/workspace-19.8.8.tgz", - "integrity": "sha512-O2KTVeswxQ8pSxjod0GJyVPM3SGXqxPasQ/rx3neOUvoL9ke38vNlsp+ldCgQ3BwXlwpaH3wmjwROWFs3e7YHw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nrwl/workspace/-/workspace-19.8.11.tgz", + "integrity": "sha512-yj63R53Yj8gn5I0KvMezc0lr8hbdVdYVmTYaC5tob4K10cCvNAQm/zzPLcuKJeCzYa2r71A2f4q416jJLwCriw==", "dev": true, "license": "MIT", "dependencies": { - "@nx/workspace": "19.8.8" + "@nx/workspace": "19.8.11" } }, "node_modules/@nx/angular": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/angular/-/angular-20.0.6.tgz", - "integrity": "sha512-0UfCEp4JeQEYMpUjaipHEH/V/GRHGCd+vgPN9EdhpkSqw2YyuBXlZiX1q0DgzMxZRRBRTB+p37FgRPu32lOI6g==", - "license": "MIT", - "dependencies": { - "@module-federation/enhanced": "0.6.6", - "@nx/devkit": "20.0.6", - "@nx/eslint": "20.0.6", - "@nx/js": "20.0.6", - "@nx/web": "20.0.6", - "@nx/webpack": "20.0.6", - "@nx/workspace": "20.0.6", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/angular/-/angular-20.1.2.tgz", + "integrity": "sha512-brGmrT6DDPCV7liN69N5T0rHqkn2FO7zceAum++h/s65++g4CscZTIS0CyKr8ZBRG9wvDBuOWkKbnwtV9297HA==", + "license": "MIT", + "dependencies": { + "@module-federation/enhanced": "0.6.9", + "@nx/devkit": "20.1.2", + "@nx/eslint": "20.1.2", + "@nx/js": "20.1.2", + "@nx/web": "20.1.2", + "@nx/webpack": "20.1.2", + "@nx/workspace": "20.1.2", "@phenomnomnominal/tsquery": "~5.0.1", "@typescript-eslint/type-utils": "^8.0.0", "chalk": "^4.1.0", @@ -4939,9 +4952,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/js": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.0.6.tgz", - "integrity": "sha512-/bAMtcgKX1Te3yCzbbv+QQLnFwb6SxE0iCc6EzxiLepmGhnd0iOArUqepB1mVipfeaO37n00suFjFv1xsaqLHg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.1.2.tgz", + "integrity": "sha512-+ULLy0vuAUyRicQqjMsG3JmgEylZdciJJOuOanwrmmG/+jv64nUJYycZbwPmGsioViHk/0WB1d5SWWfH7cZ+Ww==", "license": "MIT", "dependencies": { "@babel/core": "^7.23.2", @@ -4951,8 +4964,8 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.22.5", "@babel/runtime": "^7.22.6", - "@nx/devkit": "20.0.6", - "@nx/workspace": "20.0.6", + "@nx/devkit": "20.1.2", + "@nx/workspace": "20.1.2", "@zkochan/js-yaml": "0.0.7", "babel-plugin-const-enum": "^1.0.1", "babel-plugin-macros": "^2.8.0", @@ -4985,9 +4998,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-darwin-arm64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.0.6.tgz", - "integrity": "sha512-SUVfEqzl/iy2NzTbpY2E9lHSxs8c9QERhTILp5OOt0Vgmhn9iTxVEIoSCjzz/MyX066eARarUymUyK4JCg3mqw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.1.2.tgz", + "integrity": "sha512-PJ91TQhd28kitDBubKUOXMYvrtSDrG+rr8MsIe9cHo1CvU9smcGVBwuHBxniq0DXsyOX/5GL6ngq7hjN2nQ3XQ==", "cpu": [ "arm64" ], @@ -5001,9 +5014,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-darwin-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.0.6.tgz", - "integrity": "sha512-JI0kcJGBeIj3sb+kC0nZMOSXFnvCOtGbAVK3HHJ9DSRxckLq5bImwqdfYSNJL9ocU8YU+Qds/SercEV02gQOkQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.1.2.tgz", + "integrity": "sha512-1fopau7nxIhTF26vDTIzMxl15AtW4FvUSdy+r1mNRKrKyjjpqnlu00SQBW7JzGV0agDD1B/61yYei5Q2aMOt7Q==", "cpu": [ "x64" ], @@ -5017,9 +5030,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-freebsd-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.0.6.tgz", - "integrity": "sha512-om9Sh5Pg5aRDlBWyHMAX/1swLSj2pCqk1grXN6RcJ8O3tXLI35fj4wz6sPDRASwC1xuHwET2DG/20Ec6n1Ko3A==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.1.2.tgz", + "integrity": "sha512-55YgIp3v4zz7xMzJO93dtglbOTER2XdS6jrCt8GbKaWGFl5drRrBoNGONtiGNU7C3hLx1VsorbynCkJT18PjKQ==", "cpu": [ "x64" ], @@ -5033,9 +5046,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.0.6.tgz", - "integrity": "sha512-XIomXUqnH3w1aqRu0T+Wcn9roXT1bG1PjuX+bmGLkSiZ+ZyY/zYfhg6WKbox3TqQcdC1jNUkzEQlLGcfWaGc6w==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.1.2.tgz", + "integrity": "sha512-sMhNA8uAV43UYVEXEa8TZ8Fjpom4CGq1umTptEGOF4TTtdNn2AUBreg+0bVODM8MMSzRWGI1VbkZzHESnAPwqw==", "cpu": [ "arm" ], @@ -5049,9 +5062,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-linux-arm64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.0.6.tgz", - "integrity": "sha512-Asx2F+WtauELssmrQf1y4ZeiMIsgbL/+PnD+WgbvHVWbl7cRUfLJqEhOR5fQG6CiNTIXvOyzXMoaJVA9hTub+Q==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.1.2.tgz", + "integrity": "sha512-bsevarNHglaYLmIvPNQOdHrBnBgaW3EOUM0flwaXdWuZbL1bWx8GoVwHp9yJpZOAOfIF/Nhq5iTpaZB2nYFrAA==", "cpu": [ "arm64" ], @@ -5065,9 +5078,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-linux-arm64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.0.6.tgz", - "integrity": "sha512-4lyBaLWSv7VNMOXWxtuDNiSOE4M5QGiVHimSvQ9PBwgnrvEuc6fCv/Nc8ecU0rINHRQJruYMTD/kKBCsahwJUQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.1.2.tgz", + "integrity": "sha512-GFZTptkhZPL/iZ3tYDmspIcPEaXyy/L/o59gyp33GoFAAyDhiXIF7J1Lz81Xn8VKrX6TvEY8/9qSh86pb7qzDQ==", "cpu": [ "arm64" ], @@ -5081,9 +5094,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-linux-x64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.0.6.tgz", - "integrity": "sha512-HGZzX7un/rJvADKwN27HM0e3Gx19hSndCoqZUtqHgrFRdUvTfHTWNpT6uZ5XW/5bNnRKdUinY9DHhlYpE0u4KQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.1.2.tgz", + "integrity": "sha512-yqEW/iglKT4d9lgfnwSNhmDzPxCkRhtdmZqOYpGDM0eZFwYwJF+WRGjW8xIqMj8PA1yrGItzXZOmyFjJqHAF2w==", "cpu": [ "x64" ], @@ -5097,9 +5110,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-linux-x64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.0.6.tgz", - "integrity": "sha512-OwMq+ozzCOCtAViOouHbe/MXqep/q4EKg44YelUqVNIe/2XimcIfMlBQFk1DOcmibesxa3yWMKAdg2IGUnG+pQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.1.2.tgz", + "integrity": "sha512-SP6PpWT4cQVrC4WJQdpfADrYJQzkbhgmcGleWbpr7II1HJgOsAcvoDwQGpPQX+3Wo+VBiNecvUAOzacMQkXPGw==", "cpu": [ "x64" ], @@ -5113,9 +5126,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-win32-arm64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.0.6.tgz", - "integrity": "sha512-2D8TIjyi5dJLy4cx8u7YKunW6+EG9FAuBUo75qMCozTBw1EPTK2lzwLE2d8C7WOxBA148O2wzD5uiX1vCt2Tzg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.1.2.tgz", + "integrity": "sha512-JZQx9gr39LY3D7uleiXlpxUsavuOrOQNBocwKHkAMnykaT/e1VCxTnm/hk+2b4foWwfURTqoRiFEba70iiCdYg==", "cpu": [ "arm64" ], @@ -5129,9 +5142,9 @@ } }, "node_modules/@nx/angular/node_modules/@nx/nx-win32-x64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.0.6.tgz", - "integrity": "sha512-B83kpN1+KdJ97P0Rw/KRyZ5fZPtKimvwg/TAJdWR1D8oqdrpaZwgTd9dcsTNavvynUsPqM3GdjmFKzTYTZ4MFQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.1.2.tgz", + "integrity": "sha512-6GmT8iswDiCvJaCtW9DpWeAQmLS/kfAuRLYBisfzlONuLPaDdjhgVIxZBqqUSFfclwcVz+NhIOGvdr0aGFZCtQ==", "cpu": [ "x64" ], @@ -5145,19 +5158,32 @@ } }, "node_modules/@nx/angular/node_modules/@nx/workspace": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.0.6.tgz", - "integrity": "sha512-A7lle47I4JggbhXoUVvkuvULqF0Xejy4LpE0txz9OIM5a9HxW1aIHYYQFuROBuVlMFxAJusPeYFJCCvb+qBxKw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.1.2.tgz", + "integrity": "sha512-YZiBwHU+NsJvJ7e7AZnyk5cP523AIHmHFf28nEpBY3zhxLghx/s9C99Swbw+uUyWlUf7JtTO9jB6OsEfMc38Uw==", "license": "MIT", "dependencies": { - "@nx/devkit": "20.0.6", + "@nx/devkit": "20.1.2", "chalk": "^4.1.0", "enquirer": "~2.3.6", - "nx": "20.0.6", + "nx": "20.1.2", "tslib": "^2.3.0", "yargs-parser": "21.1.1" } }, + "node_modules/@nx/angular/node_modules/@yarnpkg/parsers": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.2.tgz", + "integrity": "sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==", + "license": "BSD-2-Clause", + "dependencies": { + "js-yaml": "^3.10.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=18.12.0" + } + }, "node_modules/@nx/angular/node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", @@ -5271,15 +5297,15 @@ } }, "node_modules/@nx/angular/node_modules/nx": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/nx/-/nx-20.0.6.tgz", - "integrity": "sha512-z8PMPEXxtADwxsNXamZdDbx65fcNcR4gTmX7N94GKmpZNrjwd3m7RcnoYgQp5vA8kFQkMR+320mtq5NkGJPZvg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/nx/-/nx-20.1.2.tgz", + "integrity": "sha512-CvjmuQmI0RWLYZxRSIgQZmzsQv6dPp9oI0YZE3L1dagBPfTf5Cun65I0GLt7bdkDnVx2PGYkDbIoJSv2/V+83Q==", "hasInstallScript": true, "license": "MIT", "dependencies": { "@napi-rs/wasm-runtime": "0.2.4", "@yarnpkg/lockfile": "^1.1.0", - "@yarnpkg/parsers": "3.0.0-rc.46", + "@yarnpkg/parsers": "3.0.2", "@zkochan/js-yaml": "0.0.7", "axios": "^1.7.4", "chalk": "^4.1.0", @@ -5315,16 +5341,16 @@ "nx-cloud": "bin/nx-cloud.js" }, "optionalDependencies": { - "@nx/nx-darwin-arm64": "20.0.6", - "@nx/nx-darwin-x64": "20.0.6", - "@nx/nx-freebsd-x64": "20.0.6", - "@nx/nx-linux-arm-gnueabihf": "20.0.6", - "@nx/nx-linux-arm64-gnu": "20.0.6", - "@nx/nx-linux-arm64-musl": "20.0.6", - "@nx/nx-linux-x64-gnu": "20.0.6", - "@nx/nx-linux-x64-musl": "20.0.6", - "@nx/nx-win32-arm64-msvc": "20.0.6", - "@nx/nx-win32-x64-msvc": "20.0.6" + "@nx/nx-darwin-arm64": "20.1.2", + "@nx/nx-darwin-x64": "20.1.2", + "@nx/nx-freebsd-x64": "20.1.2", + "@nx/nx-linux-arm-gnueabihf": "20.1.2", + "@nx/nx-linux-arm64-gnu": "20.1.2", + "@nx/nx-linux-arm64-musl": "20.1.2", + "@nx/nx-linux-x64-gnu": "20.1.2", + "@nx/nx-linux-x64-musl": "20.1.2", + "@nx/nx-win32-arm64-msvc": "20.1.2", + "@nx/nx-win32-x64-msvc": "20.1.2" }, "peerDependencies": { "@swc-node/register": "^1.8.0", @@ -5497,9 +5523,9 @@ } }, "node_modules/@nx/devkit": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-20.0.6.tgz", - "integrity": "sha512-vUjVVEJgfq/roCzDDZDXduwnhVXl1MM5No2UELUka2oNBK09pPigdFxzUNh8XvmOyFskCGDTLKH/dAO5yTD5Bg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-20.1.2.tgz", + "integrity": "sha512-MTEWiEST7DhzZ2QmrixLnHfYVDZk7QN9omLL8m+5Etcn/3ZKa1aAo9Amd2MkUM+0MPoTKnxoGdw0fQUpAy21Mg==", "license": "MIT", "dependencies": { "ejs": "^3.1.7", @@ -5516,13 +5542,13 @@ } }, "node_modules/@nx/eslint": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/eslint/-/eslint-20.0.6.tgz", - "integrity": "sha512-07Ign5GQXZif6zHDR2oB4wkf2amSvoGhYWJ17fmqDsMF/nWYOohL+DbjAaqDORXWXL1bnmRBaj/lAkDNsmW3QA==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/eslint/-/eslint-20.1.2.tgz", + "integrity": "sha512-VMJ65E0jUEjup8hxz6LtqYbYnk2TUoLCM7ZV4rZdPqm0rLvlHDmb7BfdY2u2sZa3dwRDtupeDMlbyPX/Eb8Rcw==", "license": "MIT", "dependencies": { - "@nx/devkit": "20.0.6", - "@nx/js": "20.0.6", + "@nx/devkit": "20.1.2", + "@nx/js": "20.1.2", "semver": "^7.5.3", "tslib": "^2.3.0", "typescript": "~5.4.2" @@ -5538,16 +5564,16 @@ } }, "node_modules/@nx/eslint-plugin": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/eslint-plugin/-/eslint-plugin-19.8.8.tgz", - "integrity": "sha512-SxFCNqXMlGYc2P7ES6GQ8gcY17V5pBpenEwqEXdq1aUgWMqquqYUFKHd2rVcBKA5DinD+dKvOwZwZeuM+7ZI5g==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/eslint-plugin/-/eslint-plugin-19.8.11.tgz", + "integrity": "sha512-w3Fjv16N/KV0Z8+RCWi0OAUbRkNilmJ7dPiP1IEQq1ut2pbKIt/zfP8xOXMAXv/mmSurEMe3g0toMkyHgYCZdg==", "dev": true, "license": "MIT", "dependencies": { "@eslint/compat": "^1.1.1", - "@nrwl/eslint-plugin-nx": "19.8.8", - "@nx/devkit": "19.8.8", - "@nx/js": "19.8.8", + "@nrwl/eslint-plugin-nx": "19.8.11", + "@nx/devkit": "19.8.11", + "@nx/js": "19.8.11", "@typescript-eslint/type-utils": "^8.0.0", "@typescript-eslint/utils": "^8.0.0", "chalk": "^4.1.0", @@ -5568,13 +5594,13 @@ } }, "node_modules/@nx/eslint-plugin/node_modules/@nx/devkit": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.8.tgz", - "integrity": "sha512-JZtx+2J/9g4OCaNWNxW2udGxEtje0RZ75pybK4ZieiIQVXPsrInN/bpSJSEWW3xt90GlsaFPif39rBkmy6uoHg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.11.tgz", + "integrity": "sha512-9Ath0++R8lKeqSGmlZHNf99oa+7vKXWmjYnvDrhU7qq8RXpyccu6VhU11P69FH0oecg2lTNk6AGBXq12E8r2hQ==", "dev": true, "license": "MIT", "dependencies": { - "@nrwl/devkit": "19.8.8", + "@nrwl/devkit": "19.8.11", "ejs": "^3.1.7", "enquirer": "~2.3.6", "ignore": "^5.0.4", @@ -5589,9 +5615,9 @@ } }, "node_modules/@nx/eslint-plugin/node_modules/globals": { - "version": "15.11.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.11.0.tgz", - "integrity": "sha512-yeyNSjdbyVaWurlwCpcA6XNBrHTMIeDdj0/hnvX/OLJ9ekOXYbLsLinH/MucQyGvNnXhidTdNhTtJaffL2sMfw==", + "version": "15.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.12.0.tgz", + "integrity": "sha512-1+gLErljJFhbOVyaetcwJiJ4+eLe45S2E7P5UiZ9xGfeq3ATQf5DOv9G7MH3gGbKQLkzmNh2DxfZwLdw+j6oTQ==", "dev": true, "license": "MIT", "engines": { @@ -5602,9 +5628,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/js": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.0.6.tgz", - "integrity": "sha512-/bAMtcgKX1Te3yCzbbv+QQLnFwb6SxE0iCc6EzxiLepmGhnd0iOArUqepB1mVipfeaO37n00suFjFv1xsaqLHg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.1.2.tgz", + "integrity": "sha512-+ULLy0vuAUyRicQqjMsG3JmgEylZdciJJOuOanwrmmG/+jv64nUJYycZbwPmGsioViHk/0WB1d5SWWfH7cZ+Ww==", "license": "MIT", "dependencies": { "@babel/core": "^7.23.2", @@ -5614,8 +5640,8 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.22.5", "@babel/runtime": "^7.22.6", - "@nx/devkit": "20.0.6", - "@nx/workspace": "20.0.6", + "@nx/devkit": "20.1.2", + "@nx/workspace": "20.1.2", "@zkochan/js-yaml": "0.0.7", "babel-plugin-const-enum": "^1.0.1", "babel-plugin-macros": "^2.8.0", @@ -5648,9 +5674,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-darwin-arm64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.0.6.tgz", - "integrity": "sha512-SUVfEqzl/iy2NzTbpY2E9lHSxs8c9QERhTILp5OOt0Vgmhn9iTxVEIoSCjzz/MyX066eARarUymUyK4JCg3mqw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.1.2.tgz", + "integrity": "sha512-PJ91TQhd28kitDBubKUOXMYvrtSDrG+rr8MsIe9cHo1CvU9smcGVBwuHBxniq0DXsyOX/5GL6ngq7hjN2nQ3XQ==", "cpu": [ "arm64" ], @@ -5664,9 +5690,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-darwin-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.0.6.tgz", - "integrity": "sha512-JI0kcJGBeIj3sb+kC0nZMOSXFnvCOtGbAVK3HHJ9DSRxckLq5bImwqdfYSNJL9ocU8YU+Qds/SercEV02gQOkQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.1.2.tgz", + "integrity": "sha512-1fopau7nxIhTF26vDTIzMxl15AtW4FvUSdy+r1mNRKrKyjjpqnlu00SQBW7JzGV0agDD1B/61yYei5Q2aMOt7Q==", "cpu": [ "x64" ], @@ -5680,9 +5706,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-freebsd-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.0.6.tgz", - "integrity": "sha512-om9Sh5Pg5aRDlBWyHMAX/1swLSj2pCqk1grXN6RcJ8O3tXLI35fj4wz6sPDRASwC1xuHwET2DG/20Ec6n1Ko3A==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.1.2.tgz", + "integrity": "sha512-55YgIp3v4zz7xMzJO93dtglbOTER2XdS6jrCt8GbKaWGFl5drRrBoNGONtiGNU7C3hLx1VsorbynCkJT18PjKQ==", "cpu": [ "x64" ], @@ -5696,9 +5722,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.0.6.tgz", - "integrity": "sha512-XIomXUqnH3w1aqRu0T+Wcn9roXT1bG1PjuX+bmGLkSiZ+ZyY/zYfhg6WKbox3TqQcdC1jNUkzEQlLGcfWaGc6w==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.1.2.tgz", + "integrity": "sha512-sMhNA8uAV43UYVEXEa8TZ8Fjpom4CGq1umTptEGOF4TTtdNn2AUBreg+0bVODM8MMSzRWGI1VbkZzHESnAPwqw==", "cpu": [ "arm" ], @@ -5712,9 +5738,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-linux-arm64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.0.6.tgz", - "integrity": "sha512-Asx2F+WtauELssmrQf1y4ZeiMIsgbL/+PnD+WgbvHVWbl7cRUfLJqEhOR5fQG6CiNTIXvOyzXMoaJVA9hTub+Q==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.1.2.tgz", + "integrity": "sha512-bsevarNHglaYLmIvPNQOdHrBnBgaW3EOUM0flwaXdWuZbL1bWx8GoVwHp9yJpZOAOfIF/Nhq5iTpaZB2nYFrAA==", "cpu": [ "arm64" ], @@ -5728,9 +5754,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-linux-arm64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.0.6.tgz", - "integrity": "sha512-4lyBaLWSv7VNMOXWxtuDNiSOE4M5QGiVHimSvQ9PBwgnrvEuc6fCv/Nc8ecU0rINHRQJruYMTD/kKBCsahwJUQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.1.2.tgz", + "integrity": "sha512-GFZTptkhZPL/iZ3tYDmspIcPEaXyy/L/o59gyp33GoFAAyDhiXIF7J1Lz81Xn8VKrX6TvEY8/9qSh86pb7qzDQ==", "cpu": [ "arm64" ], @@ -5744,9 +5770,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-linux-x64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.0.6.tgz", - "integrity": "sha512-HGZzX7un/rJvADKwN27HM0e3Gx19hSndCoqZUtqHgrFRdUvTfHTWNpT6uZ5XW/5bNnRKdUinY9DHhlYpE0u4KQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.1.2.tgz", + "integrity": "sha512-yqEW/iglKT4d9lgfnwSNhmDzPxCkRhtdmZqOYpGDM0eZFwYwJF+WRGjW8xIqMj8PA1yrGItzXZOmyFjJqHAF2w==", "cpu": [ "x64" ], @@ -5760,9 +5786,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-linux-x64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.0.6.tgz", - "integrity": "sha512-OwMq+ozzCOCtAViOouHbe/MXqep/q4EKg44YelUqVNIe/2XimcIfMlBQFk1DOcmibesxa3yWMKAdg2IGUnG+pQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.1.2.tgz", + "integrity": "sha512-SP6PpWT4cQVrC4WJQdpfADrYJQzkbhgmcGleWbpr7II1HJgOsAcvoDwQGpPQX+3Wo+VBiNecvUAOzacMQkXPGw==", "cpu": [ "x64" ], @@ -5776,9 +5802,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-win32-arm64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.0.6.tgz", - "integrity": "sha512-2D8TIjyi5dJLy4cx8u7YKunW6+EG9FAuBUo75qMCozTBw1EPTK2lzwLE2d8C7WOxBA148O2wzD5uiX1vCt2Tzg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.1.2.tgz", + "integrity": "sha512-JZQx9gr39LY3D7uleiXlpxUsavuOrOQNBocwKHkAMnykaT/e1VCxTnm/hk+2b4foWwfURTqoRiFEba70iiCdYg==", "cpu": [ "arm64" ], @@ -5792,9 +5818,9 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/nx-win32-x64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.0.6.tgz", - "integrity": "sha512-B83kpN1+KdJ97P0Rw/KRyZ5fZPtKimvwg/TAJdWR1D8oqdrpaZwgTd9dcsTNavvynUsPqM3GdjmFKzTYTZ4MFQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.1.2.tgz", + "integrity": "sha512-6GmT8iswDiCvJaCtW9DpWeAQmLS/kfAuRLYBisfzlONuLPaDdjhgVIxZBqqUSFfclwcVz+NhIOGvdr0aGFZCtQ==", "cpu": [ "x64" ], @@ -5808,19 +5834,32 @@ } }, "node_modules/@nx/eslint/node_modules/@nx/workspace": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.0.6.tgz", - "integrity": "sha512-A7lle47I4JggbhXoUVvkuvULqF0Xejy4LpE0txz9OIM5a9HxW1aIHYYQFuROBuVlMFxAJusPeYFJCCvb+qBxKw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.1.2.tgz", + "integrity": "sha512-YZiBwHU+NsJvJ7e7AZnyk5cP523AIHmHFf28nEpBY3zhxLghx/s9C99Swbw+uUyWlUf7JtTO9jB6OsEfMc38Uw==", "license": "MIT", "dependencies": { - "@nx/devkit": "20.0.6", + "@nx/devkit": "20.1.2", "chalk": "^4.1.0", "enquirer": "~2.3.6", - "nx": "20.0.6", + "nx": "20.1.2", "tslib": "^2.3.0", "yargs-parser": "21.1.1" } }, + "node_modules/@nx/eslint/node_modules/@yarnpkg/parsers": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.2.tgz", + "integrity": "sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==", + "license": "BSD-2-Clause", + "dependencies": { + "js-yaml": "^3.10.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=18.12.0" + } + }, "node_modules/@nx/eslint/node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", @@ -5934,15 +5973,15 @@ } }, "node_modules/@nx/eslint/node_modules/nx": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/nx/-/nx-20.0.6.tgz", - "integrity": "sha512-z8PMPEXxtADwxsNXamZdDbx65fcNcR4gTmX7N94GKmpZNrjwd3m7RcnoYgQp5vA8kFQkMR+320mtq5NkGJPZvg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/nx/-/nx-20.1.2.tgz", + "integrity": "sha512-CvjmuQmI0RWLYZxRSIgQZmzsQv6dPp9oI0YZE3L1dagBPfTf5Cun65I0GLt7bdkDnVx2PGYkDbIoJSv2/V+83Q==", "hasInstallScript": true, "license": "MIT", "dependencies": { "@napi-rs/wasm-runtime": "0.2.4", "@yarnpkg/lockfile": "^1.1.0", - "@yarnpkg/parsers": "3.0.0-rc.46", + "@yarnpkg/parsers": "3.0.2", "@zkochan/js-yaml": "0.0.7", "axios": "^1.7.4", "chalk": "^4.1.0", @@ -5978,16 +6017,16 @@ "nx-cloud": "bin/nx-cloud.js" }, "optionalDependencies": { - "@nx/nx-darwin-arm64": "20.0.6", - "@nx/nx-darwin-x64": "20.0.6", - "@nx/nx-freebsd-x64": "20.0.6", - "@nx/nx-linux-arm-gnueabihf": "20.0.6", - "@nx/nx-linux-arm64-gnu": "20.0.6", - "@nx/nx-linux-arm64-musl": "20.0.6", - "@nx/nx-linux-x64-gnu": "20.0.6", - "@nx/nx-linux-x64-musl": "20.0.6", - "@nx/nx-win32-arm64-msvc": "20.0.6", - "@nx/nx-win32-x64-msvc": "20.0.6" + "@nx/nx-darwin-arm64": "20.1.2", + "@nx/nx-darwin-x64": "20.1.2", + "@nx/nx-freebsd-x64": "20.1.2", + "@nx/nx-linux-arm-gnueabihf": "20.1.2", + "@nx/nx-linux-arm64-gnu": "20.1.2", + "@nx/nx-linux-arm64-musl": "20.1.2", + "@nx/nx-linux-x64-gnu": "20.1.2", + "@nx/nx-linux-x64-musl": "20.1.2", + "@nx/nx-win32-arm64-msvc": "20.1.2", + "@nx/nx-win32-x64-msvc": "20.1.2" }, "peerDependencies": { "@swc-node/register": "^1.8.0", @@ -6159,17 +6198,17 @@ } }, "node_modules/@nx/jest": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/jest/-/jest-19.8.8.tgz", - "integrity": "sha512-CU1FnXj/6xSgzb2IF/OExlFYVqzpxvOAXNnAy327su13lhVKR5MLmk8RhSzx67l9kn7B5lD6c95cqqnIa0KZpA==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/jest/-/jest-19.8.11.tgz", + "integrity": "sha512-B2Gdo326E9jg9BgvonV7dVLWO34bq7eGSAmYjyMdpe2350ZBOX4nnuygJQZkuTpl8HP3z4VZHJU9OOmTxhgDlA==", "dev": true, "license": "MIT", "dependencies": { "@jest/reporters": "^29.4.1", "@jest/test-result": "^29.4.1", - "@nrwl/jest": "19.8.8", - "@nx/devkit": "19.8.8", - "@nx/js": "19.8.8", + "@nrwl/jest": "19.8.11", + "@nx/devkit": "19.8.11", + "@nx/js": "19.8.11", "@phenomnomnominal/tsquery": "~5.0.1", "chalk": "^4.1.0", "identity-obj-proxy": "3.0.0", @@ -6184,13 +6223,13 @@ } }, "node_modules/@nx/jest/node_modules/@nx/devkit": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.8.tgz", - "integrity": "sha512-JZtx+2J/9g4OCaNWNxW2udGxEtje0RZ75pybK4ZieiIQVXPsrInN/bpSJSEWW3xt90GlsaFPif39rBkmy6uoHg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.11.tgz", + "integrity": "sha512-9Ath0++R8lKeqSGmlZHNf99oa+7vKXWmjYnvDrhU7qq8RXpyccu6VhU11P69FH0oecg2lTNk6AGBXq12E8r2hQ==", "dev": true, "license": "MIT", "dependencies": { - "@nrwl/devkit": "19.8.8", + "@nrwl/devkit": "19.8.11", "ejs": "^3.1.7", "enquirer": "~2.3.6", "ignore": "^5.0.4", @@ -6205,9 +6244,9 @@ } }, "node_modules/@nx/js": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/js/-/js-19.8.8.tgz", - "integrity": "sha512-LFBa3gi0qEOKkDlTzPLUowzTV6VHfaDXv2YrQptbtKhRf57f3T4Q/aVf8cy1Nk4JDbfryFINis/X7j03dQxdMA==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/js/-/js-19.8.11.tgz", + "integrity": "sha512-aheBl5JvyATGZ0/yTBlVJ93XM4UKayy+sssXo6mt4+0Dum5HX5WLkN0zZgwzGf34IdyJSgxI67vgBqnvD20JEw==", "dev": true, "license": "MIT", "dependencies": { @@ -6218,9 +6257,9 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.22.5", "@babel/runtime": "^7.22.6", - "@nrwl/js": "19.8.8", - "@nx/devkit": "19.8.8", - "@nx/workspace": "19.8.8", + "@nrwl/js": "19.8.11", + "@nx/devkit": "19.8.11", + "@nx/workspace": "19.8.11", "babel-plugin-const-enum": "^1.0.1", "babel-plugin-macros": "^2.8.0", "babel-plugin-transform-typescript-metadata": "^0.3.1", @@ -6252,13 +6291,13 @@ } }, "node_modules/@nx/js/node_modules/@nx/devkit": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.8.tgz", - "integrity": "sha512-JZtx+2J/9g4OCaNWNxW2udGxEtje0RZ75pybK4ZieiIQVXPsrInN/bpSJSEWW3xt90GlsaFPif39rBkmy6uoHg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.11.tgz", + "integrity": "sha512-9Ath0++R8lKeqSGmlZHNf99oa+7vKXWmjYnvDrhU7qq8RXpyccu6VhU11P69FH0oecg2lTNk6AGBXq12E8r2hQ==", "dev": true, "license": "MIT", "dependencies": { - "@nrwl/devkit": "19.8.8", + "@nrwl/devkit": "19.8.11", "ejs": "^3.1.7", "enquirer": "~2.3.6", "ignore": "^5.0.4", @@ -6458,23 +6497,23 @@ } }, "node_modules/@nx/linter": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/linter/-/linter-19.8.8.tgz", - "integrity": "sha512-gbbYZuQLxv9BtWC0asyvkkPgr1jkgxFkPihTzEjN5JgriuxD3bXEqBiu9yAaWB1wR8nZZJBqugVHeJ08hP7AnA==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/linter/-/linter-19.8.11.tgz", + "integrity": "sha512-ZfFLH6VJQWj0G817gHLV4Ob9+seRYAHeriui9AaVFMyrhXKJurbCVWC4RTHGvaM3Zh+tXT3A8opdHEuYZFX2CA==", "dev": true, "license": "MIT", "dependencies": { - "@nx/eslint": "19.8.8" + "@nx/eslint": "19.8.11" } }, "node_modules/@nx/linter/node_modules/@nx/devkit": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.8.tgz", - "integrity": "sha512-JZtx+2J/9g4OCaNWNxW2udGxEtje0RZ75pybK4ZieiIQVXPsrInN/bpSJSEWW3xt90GlsaFPif39rBkmy6uoHg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.11.tgz", + "integrity": "sha512-9Ath0++R8lKeqSGmlZHNf99oa+7vKXWmjYnvDrhU7qq8RXpyccu6VhU11P69FH0oecg2lTNk6AGBXq12E8r2hQ==", "dev": true, "license": "MIT", "dependencies": { - "@nrwl/devkit": "19.8.8", + "@nrwl/devkit": "19.8.11", "ejs": "^3.1.7", "enquirer": "~2.3.6", "ignore": "^5.0.4", @@ -6489,15 +6528,15 @@ } }, "node_modules/@nx/linter/node_modules/@nx/eslint": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/eslint/-/eslint-19.8.8.tgz", - "integrity": "sha512-g6tJCC6GMxWujDufv9mjOw6gFvMqhAvQecsqN5/ilxBA1nWkdcUUqS0y9KMHwfwmg8CEGmu89PydxpKzvqNNDg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/eslint/-/eslint-19.8.11.tgz", + "integrity": "sha512-a9r0UG0so0OyeY9dLtGkzQwU69tnnyxwELgl0Myfdbm7rCspnU56ktpEXoVhlDyg/KZ5vWMiRkUshyaRkd4sIQ==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "19.8.8", - "@nx/js": "19.8.8", - "@nx/linter": "19.8.8", + "@nx/devkit": "19.8.11", + "@nx/js": "19.8.11", + "@nx/linter": "19.8.11", "semver": "^7.5.3", "tslib": "^2.3.0", "typescript": "~5.4.2" @@ -6527,9 +6566,9 @@ } }, "node_modules/@nx/nx-darwin-arm64": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-19.8.8.tgz", - "integrity": "sha512-r6kG9T676/V2GzWy2RA+wGT1klC9r3AdcY6d4gSOCoqcel8ht9weGcPUB4ysMKDyR/Lf7WA5YisSkjFDc0O48A==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-19.8.11.tgz", + "integrity": "sha512-LaYC6yOnaaySWOct2b4KeGCJHk8TK23J1j3IXxIZpySBek/UPRSKzwEpD6hPk/6KQzU93Jvs91OOyVOfGtQVyA==", "cpu": [ "arm64" ], @@ -6543,9 +6582,9 @@ } }, "node_modules/@nx/nx-darwin-x64": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-19.8.8.tgz", - "integrity": "sha512-hNvPQDjYki0seRgeNjXY4frt8OLj7IfOOCmh/VbspwGp2xWwXbh8Zxy9fWyxp15XTqybIzvYuj+P2qosMkYmCg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-19.8.11.tgz", + "integrity": "sha512-7YS0cSymnZ5+YSQw+Lb4pLPpbpEu0ifWtxdrxyiI/FSdpNrIL2v/HNJCPiME4Iwxhyu24yHbYvVl+9bG4H2DUg==", "cpu": [ "x64" ], @@ -6559,9 +6598,9 @@ } }, "node_modules/@nx/nx-freebsd-x64": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-19.8.8.tgz", - "integrity": "sha512-PRAavzIcGVmpj8zUEl6XMVoJ8MHc7kKP11AsrO7o4pYnI0aHwT639dnhSVZ1lLtpouYJZ2u7tE6A4fV9y4X2hA==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-19.8.11.tgz", + "integrity": "sha512-Wd8DhDW6CKq/Szl/tzdnBZ1URg/ChY9RWyME1vnusocikuTq1F87IxCahb++4HTT+PTrfoKowbDT0BCz4Xze3Q==", "cpu": [ "x64" ], @@ -6575,9 +6614,9 @@ } }, "node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-19.8.8.tgz", - "integrity": "sha512-sJEMnJFgrKo1LBDLbln7gH1blnwyO0M9/1+wuNtbanB63Xl177nGBZHts3y1HKt7S3yaVSwblmtFS5VD9U7HiQ==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-19.8.11.tgz", + "integrity": "sha512-UcPGv1xGBLEXeDukV/akmmt3luseoT64MiMIn61YajWtpQgG09jgW4v1j2zVZFNMDu2rdy7eMoe96sVp1hwoQA==", "cpu": [ "arm" ], @@ -6591,9 +6630,9 @@ } }, "node_modules/@nx/nx-linux-arm64-gnu": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-19.8.8.tgz", - "integrity": "sha512-A+/8lNrIqsey/chkWOCCByob1s3AOlcIXVlmWo8YzzMTK4kBkmKGiWsV23QVAZOrgAwfpcuV5A5ZqEqCtnH8fA==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-19.8.11.tgz", + "integrity": "sha512-h4saWb0mT1wQmhCE8KSNruc8+gjHphB3nGifdHzvMnAoEIlDPd4MyqM6RRehzR0NYE61GJyPNTOs9c9kLhPkow==", "cpu": [ "arm64" ], @@ -6607,9 +6646,9 @@ } }, "node_modules/@nx/nx-linux-arm64-musl": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-19.8.8.tgz", - "integrity": "sha512-InWILcL5Ku6URttDavfCUwfbJouHvQl+/o/KNMGC1EIjCFfQdEAfwgybo9eNcUQl6Xl5vx5NkA5+Ff7wbkMZdw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-19.8.11.tgz", + "integrity": "sha512-QEQ248nCXaRcgzWYzQxx/v+c/YqkAPPng1OypCVUkL3A00fFTPdwXJ0K4mqlikDb6lF/KaQKc7tc8xlj/bpuAg==", "cpu": [ "arm64" ], @@ -6623,9 +6662,9 @@ } }, "node_modules/@nx/nx-linux-x64-gnu": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-19.8.8.tgz", - "integrity": "sha512-LCfnm42cQUrrch/8RqVgC46bYovX/ZcbP44pmTgrkChfrmxDhdaIfi0m1aUWpfize6DvCWxvmg8VEaV+Cf4/cg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-19.8.11.tgz", + "integrity": "sha512-UXrZbyKUSW3gr5pebKQLDVlBwgR82jZFtvDWIw1a2V7cutdBDf5Qb7pfLXWxkEWQXpijE6yBK2UtO36DVahDBg==", "cpu": [ "x64" ], @@ -6639,9 +6678,9 @@ } }, "node_modules/@nx/nx-linux-x64-musl": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-19.8.8.tgz", - "integrity": "sha512-1noYDMQ0uZw0OeWe/JScx0QLNfPUy9fJLXwemRf5g2K69m0r/WRvTcWMa1+ZypPn75tp3fvIH+Nne1PS+REqYw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-19.8.11.tgz", + "integrity": "sha512-I6yawWQ/p483EC8Yrf3WjEUZjxd05cxR3bZYadcnbBfC6xVKckzKnw3d4xzrmK2ekQvcJjnpGesBrxNKoi/8YQ==", "cpu": [ "x64" ], @@ -6655,9 +6694,9 @@ } }, "node_modules/@nx/nx-win32-arm64-msvc": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-19.8.8.tgz", - "integrity": "sha512-gVEiPn1hjATQMeZ9unEmOTDS42oVLItlgm9+oXSW2AJArO1Add+47+nxVPMeOSk5x0gK0EZJ5gGdM8929qYfRA==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-19.8.11.tgz", + "integrity": "sha512-n0/Xrm9V0RrlABE5TUYaJH1iN3oJHrAPEvBTSr+rkXYdJus4iIZt1wfbZGfBatxmX31tF1xTWsYycsI+EHFUsQ==", "cpu": [ "arm64" ], @@ -6671,9 +6710,9 @@ } }, "node_modules/@nx/nx-win32-x64-msvc": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-19.8.8.tgz", - "integrity": "sha512-AkGmZnZoIY6lAWf7NKGzNFy2OrRj1vQjYCCi2FtB0QR+seX7PgvqD+pgalLhl5ZmteojKWSJlT9fitKp5K/Ezw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-19.8.11.tgz", + "integrity": "sha512-A8Xk8xlPm1VgHYwt3j6Tw5jv7bqRsop+u+pn3yCBw6Ztynf2fnhD+7ZGJDjtxiwivAXvW3fS0R/c6WYFGESAdQ==", "cpu": [ "x64" ], @@ -6687,13 +6726,13 @@ } }, "node_modules/@nx/web": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/web/-/web-20.0.6.tgz", - "integrity": "sha512-lYu9FddREZYbjbjS9YYnXu+uGQUB6MptNvPNSvYRRUcdq7c8Kh10P21YyK2Ox7FsEUeqly+XVvhlKNXeQF5anw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/web/-/web-20.1.2.tgz", + "integrity": "sha512-CRMAJXwj375J+/GI9hRfOt2SJ0DQ5prCzOcmXJvQIfHy3CT5chrkSj2qc7IgKkkMiqZojr4VCTUHmJ2WAR3sCw==", "license": "MIT", "dependencies": { - "@nx/devkit": "20.0.6", - "@nx/js": "20.0.6", + "@nx/devkit": "20.1.2", + "@nx/js": "20.1.2", "detect-port": "^1.5.1", "http-server": "^14.1.0", "picocolors": "^1.1.0", @@ -6701,9 +6740,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/js": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.0.6.tgz", - "integrity": "sha512-/bAMtcgKX1Te3yCzbbv+QQLnFwb6SxE0iCc6EzxiLepmGhnd0iOArUqepB1mVipfeaO37n00suFjFv1xsaqLHg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.1.2.tgz", + "integrity": "sha512-+ULLy0vuAUyRicQqjMsG3JmgEylZdciJJOuOanwrmmG/+jv64nUJYycZbwPmGsioViHk/0WB1d5SWWfH7cZ+Ww==", "license": "MIT", "dependencies": { "@babel/core": "^7.23.2", @@ -6713,8 +6752,8 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.22.5", "@babel/runtime": "^7.22.6", - "@nx/devkit": "20.0.6", - "@nx/workspace": "20.0.6", + "@nx/devkit": "20.1.2", + "@nx/workspace": "20.1.2", "@zkochan/js-yaml": "0.0.7", "babel-plugin-const-enum": "^1.0.1", "babel-plugin-macros": "^2.8.0", @@ -6747,9 +6786,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-darwin-arm64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.0.6.tgz", - "integrity": "sha512-SUVfEqzl/iy2NzTbpY2E9lHSxs8c9QERhTILp5OOt0Vgmhn9iTxVEIoSCjzz/MyX066eARarUymUyK4JCg3mqw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.1.2.tgz", + "integrity": "sha512-PJ91TQhd28kitDBubKUOXMYvrtSDrG+rr8MsIe9cHo1CvU9smcGVBwuHBxniq0DXsyOX/5GL6ngq7hjN2nQ3XQ==", "cpu": [ "arm64" ], @@ -6763,9 +6802,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-darwin-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.0.6.tgz", - "integrity": "sha512-JI0kcJGBeIj3sb+kC0nZMOSXFnvCOtGbAVK3HHJ9DSRxckLq5bImwqdfYSNJL9ocU8YU+Qds/SercEV02gQOkQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.1.2.tgz", + "integrity": "sha512-1fopau7nxIhTF26vDTIzMxl15AtW4FvUSdy+r1mNRKrKyjjpqnlu00SQBW7JzGV0agDD1B/61yYei5Q2aMOt7Q==", "cpu": [ "x64" ], @@ -6779,9 +6818,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-freebsd-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.0.6.tgz", - "integrity": "sha512-om9Sh5Pg5aRDlBWyHMAX/1swLSj2pCqk1grXN6RcJ8O3tXLI35fj4wz6sPDRASwC1xuHwET2DG/20Ec6n1Ko3A==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.1.2.tgz", + "integrity": "sha512-55YgIp3v4zz7xMzJO93dtglbOTER2XdS6jrCt8GbKaWGFl5drRrBoNGONtiGNU7C3hLx1VsorbynCkJT18PjKQ==", "cpu": [ "x64" ], @@ -6795,9 +6834,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.0.6.tgz", - "integrity": "sha512-XIomXUqnH3w1aqRu0T+Wcn9roXT1bG1PjuX+bmGLkSiZ+ZyY/zYfhg6WKbox3TqQcdC1jNUkzEQlLGcfWaGc6w==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.1.2.tgz", + "integrity": "sha512-sMhNA8uAV43UYVEXEa8TZ8Fjpom4CGq1umTptEGOF4TTtdNn2AUBreg+0bVODM8MMSzRWGI1VbkZzHESnAPwqw==", "cpu": [ "arm" ], @@ -6811,9 +6850,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-linux-arm64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.0.6.tgz", - "integrity": "sha512-Asx2F+WtauELssmrQf1y4ZeiMIsgbL/+PnD+WgbvHVWbl7cRUfLJqEhOR5fQG6CiNTIXvOyzXMoaJVA9hTub+Q==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.1.2.tgz", + "integrity": "sha512-bsevarNHglaYLmIvPNQOdHrBnBgaW3EOUM0flwaXdWuZbL1bWx8GoVwHp9yJpZOAOfIF/Nhq5iTpaZB2nYFrAA==", "cpu": [ "arm64" ], @@ -6827,9 +6866,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-linux-arm64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.0.6.tgz", - "integrity": "sha512-4lyBaLWSv7VNMOXWxtuDNiSOE4M5QGiVHimSvQ9PBwgnrvEuc6fCv/Nc8ecU0rINHRQJruYMTD/kKBCsahwJUQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.1.2.tgz", + "integrity": "sha512-GFZTptkhZPL/iZ3tYDmspIcPEaXyy/L/o59gyp33GoFAAyDhiXIF7J1Lz81Xn8VKrX6TvEY8/9qSh86pb7qzDQ==", "cpu": [ "arm64" ], @@ -6843,9 +6882,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-linux-x64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.0.6.tgz", - "integrity": "sha512-HGZzX7un/rJvADKwN27HM0e3Gx19hSndCoqZUtqHgrFRdUvTfHTWNpT6uZ5XW/5bNnRKdUinY9DHhlYpE0u4KQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.1.2.tgz", + "integrity": "sha512-yqEW/iglKT4d9lgfnwSNhmDzPxCkRhtdmZqOYpGDM0eZFwYwJF+WRGjW8xIqMj8PA1yrGItzXZOmyFjJqHAF2w==", "cpu": [ "x64" ], @@ -6859,9 +6898,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-linux-x64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.0.6.tgz", - "integrity": "sha512-OwMq+ozzCOCtAViOouHbe/MXqep/q4EKg44YelUqVNIe/2XimcIfMlBQFk1DOcmibesxa3yWMKAdg2IGUnG+pQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.1.2.tgz", + "integrity": "sha512-SP6PpWT4cQVrC4WJQdpfADrYJQzkbhgmcGleWbpr7II1HJgOsAcvoDwQGpPQX+3Wo+VBiNecvUAOzacMQkXPGw==", "cpu": [ "x64" ], @@ -6875,9 +6914,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-win32-arm64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.0.6.tgz", - "integrity": "sha512-2D8TIjyi5dJLy4cx8u7YKunW6+EG9FAuBUo75qMCozTBw1EPTK2lzwLE2d8C7WOxBA148O2wzD5uiX1vCt2Tzg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.1.2.tgz", + "integrity": "sha512-JZQx9gr39LY3D7uleiXlpxUsavuOrOQNBocwKHkAMnykaT/e1VCxTnm/hk+2b4foWwfURTqoRiFEba70iiCdYg==", "cpu": [ "arm64" ], @@ -6891,9 +6930,9 @@ } }, "node_modules/@nx/web/node_modules/@nx/nx-win32-x64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.0.6.tgz", - "integrity": "sha512-B83kpN1+KdJ97P0Rw/KRyZ5fZPtKimvwg/TAJdWR1D8oqdrpaZwgTd9dcsTNavvynUsPqM3GdjmFKzTYTZ4MFQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.1.2.tgz", + "integrity": "sha512-6GmT8iswDiCvJaCtW9DpWeAQmLS/kfAuRLYBisfzlONuLPaDdjhgVIxZBqqUSFfclwcVz+NhIOGvdr0aGFZCtQ==", "cpu": [ "x64" ], @@ -6907,19 +6946,32 @@ } }, "node_modules/@nx/web/node_modules/@nx/workspace": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.0.6.tgz", - "integrity": "sha512-A7lle47I4JggbhXoUVvkuvULqF0Xejy4LpE0txz9OIM5a9HxW1aIHYYQFuROBuVlMFxAJusPeYFJCCvb+qBxKw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.1.2.tgz", + "integrity": "sha512-YZiBwHU+NsJvJ7e7AZnyk5cP523AIHmHFf28nEpBY3zhxLghx/s9C99Swbw+uUyWlUf7JtTO9jB6OsEfMc38Uw==", "license": "MIT", "dependencies": { - "@nx/devkit": "20.0.6", + "@nx/devkit": "20.1.2", "chalk": "^4.1.0", "enquirer": "~2.3.6", - "nx": "20.0.6", + "nx": "20.1.2", "tslib": "^2.3.0", "yargs-parser": "21.1.1" } }, + "node_modules/@nx/web/node_modules/@yarnpkg/parsers": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.2.tgz", + "integrity": "sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==", + "license": "BSD-2-Clause", + "dependencies": { + "js-yaml": "^3.10.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=18.12.0" + } + }, "node_modules/@nx/web/node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", @@ -7033,15 +7085,15 @@ } }, "node_modules/@nx/web/node_modules/nx": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/nx/-/nx-20.0.6.tgz", - "integrity": "sha512-z8PMPEXxtADwxsNXamZdDbx65fcNcR4gTmX7N94GKmpZNrjwd3m7RcnoYgQp5vA8kFQkMR+320mtq5NkGJPZvg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/nx/-/nx-20.1.2.tgz", + "integrity": "sha512-CvjmuQmI0RWLYZxRSIgQZmzsQv6dPp9oI0YZE3L1dagBPfTf5Cun65I0GLt7bdkDnVx2PGYkDbIoJSv2/V+83Q==", "hasInstallScript": true, "license": "MIT", "dependencies": { "@napi-rs/wasm-runtime": "0.2.4", "@yarnpkg/lockfile": "^1.1.0", - "@yarnpkg/parsers": "3.0.0-rc.46", + "@yarnpkg/parsers": "3.0.2", "@zkochan/js-yaml": "0.0.7", "axios": "^1.7.4", "chalk": "^4.1.0", @@ -7077,16 +7129,16 @@ "nx-cloud": "bin/nx-cloud.js" }, "optionalDependencies": { - "@nx/nx-darwin-arm64": "20.0.6", - "@nx/nx-darwin-x64": "20.0.6", - "@nx/nx-freebsd-x64": "20.0.6", - "@nx/nx-linux-arm-gnueabihf": "20.0.6", - "@nx/nx-linux-arm64-gnu": "20.0.6", - "@nx/nx-linux-arm64-musl": "20.0.6", - "@nx/nx-linux-x64-gnu": "20.0.6", - "@nx/nx-linux-x64-musl": "20.0.6", - "@nx/nx-win32-arm64-msvc": "20.0.6", - "@nx/nx-win32-x64-msvc": "20.0.6" + "@nx/nx-darwin-arm64": "20.1.2", + "@nx/nx-darwin-x64": "20.1.2", + "@nx/nx-freebsd-x64": "20.1.2", + "@nx/nx-linux-arm-gnueabihf": "20.1.2", + "@nx/nx-linux-arm64-gnu": "20.1.2", + "@nx/nx-linux-arm64-musl": "20.1.2", + "@nx/nx-linux-x64-gnu": "20.1.2", + "@nx/nx-linux-x64-musl": "20.1.2", + "@nx/nx-win32-arm64-msvc": "20.1.2", + "@nx/nx-win32-x64-msvc": "20.1.2" }, "peerDependencies": { "@swc-node/register": "^1.8.0", @@ -7245,34 +7297,34 @@ } }, "node_modules/@nx/webpack": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/webpack/-/webpack-20.0.6.tgz", - "integrity": "sha512-LvjkJ0yVXDCNgxxIKYLMtEJVVdvBVHcB9mgwPdBfl38STAf/HwTuB7XXTZVYu+m9iPusU1VpFpaUlbpQN79f8A==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/webpack/-/webpack-20.1.2.tgz", + "integrity": "sha512-H67DkdpaGnUwYbz4u31+2/TSRmkvBQHX742FNKJAc1/D0uzHH6GI3am0h0QF9wrJyc/fXGVNfRZLEh9ScU70Jw==", "license": "MIT", "dependencies": { "@babel/core": "^7.23.2", "@module-federation/enhanced": "^0.6.0", "@module-federation/sdk": "^0.6.0", - "@nx/devkit": "20.0.6", - "@nx/js": "20.0.6", + "@nx/devkit": "20.1.2", + "@nx/js": "20.1.2", "@phenomnomnominal/tsquery": "~5.0.1", "ajv": "^8.12.0", "autoprefixer": "^10.4.9", "babel-loader": "^9.1.2", "browserslist": "^4.21.4", - "chalk": "^4.1.0", "copy-webpack-plugin": "^10.2.4", "css-loader": "^6.4.0", "css-minimizer-webpack-plugin": "^5.0.0", "express": "^4.19.2", "fork-ts-checker-webpack-plugin": "7.2.13", - "http-proxy-middleware": "^3.0.0", + "http-proxy-middleware": "^3.0.3", "less": "4.1.3", "less-loader": "11.1.0", "license-webpack-plugin": "^4.0.2", "loader-utils": "^2.0.3", "mini-css-extract-plugin": "~2.4.7", "parse5": "4.0.0", + "picocolors": "^1.1.0", "postcss": "^8.4.38", "postcss-import": "~14.1.0", "postcss-loader": "^6.1.1", @@ -7281,7 +7333,7 @@ "sass-loader": "^12.2.0", "source-map-loader": "^5.0.0", "style-loader": "^3.3.0", - "stylus": "^0.59.0", + "stylus": "^0.64.0", "stylus-loader": "^7.1.0", "terser-webpack-plugin": "^5.3.3", "ts-loader": "^9.3.1", @@ -7294,9 +7346,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/js": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.0.6.tgz", - "integrity": "sha512-/bAMtcgKX1Te3yCzbbv+QQLnFwb6SxE0iCc6EzxiLepmGhnd0iOArUqepB1mVipfeaO37n00suFjFv1xsaqLHg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/js/-/js-20.1.2.tgz", + "integrity": "sha512-+ULLy0vuAUyRicQqjMsG3JmgEylZdciJJOuOanwrmmG/+jv64nUJYycZbwPmGsioViHk/0WB1d5SWWfH7cZ+Ww==", "license": "MIT", "dependencies": { "@babel/core": "^7.23.2", @@ -7306,8 +7358,8 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.22.5", "@babel/runtime": "^7.22.6", - "@nx/devkit": "20.0.6", - "@nx/workspace": "20.0.6", + "@nx/devkit": "20.1.2", + "@nx/workspace": "20.1.2", "@zkochan/js-yaml": "0.0.7", "babel-plugin-const-enum": "^1.0.1", "babel-plugin-macros": "^2.8.0", @@ -7340,9 +7392,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-darwin-arm64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.0.6.tgz", - "integrity": "sha512-SUVfEqzl/iy2NzTbpY2E9lHSxs8c9QERhTILp5OOt0Vgmhn9iTxVEIoSCjzz/MyX066eARarUymUyK4JCg3mqw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-20.1.2.tgz", + "integrity": "sha512-PJ91TQhd28kitDBubKUOXMYvrtSDrG+rr8MsIe9cHo1CvU9smcGVBwuHBxniq0DXsyOX/5GL6ngq7hjN2nQ3XQ==", "cpu": [ "arm64" ], @@ -7356,9 +7408,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-darwin-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.0.6.tgz", - "integrity": "sha512-JI0kcJGBeIj3sb+kC0nZMOSXFnvCOtGbAVK3HHJ9DSRxckLq5bImwqdfYSNJL9ocU8YU+Qds/SercEV02gQOkQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-20.1.2.tgz", + "integrity": "sha512-1fopau7nxIhTF26vDTIzMxl15AtW4FvUSdy+r1mNRKrKyjjpqnlu00SQBW7JzGV0agDD1B/61yYei5Q2aMOt7Q==", "cpu": [ "x64" ], @@ -7372,9 +7424,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-freebsd-x64": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.0.6.tgz", - "integrity": "sha512-om9Sh5Pg5aRDlBWyHMAX/1swLSj2pCqk1grXN6RcJ8O3tXLI35fj4wz6sPDRASwC1xuHwET2DG/20Ec6n1Ko3A==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-20.1.2.tgz", + "integrity": "sha512-55YgIp3v4zz7xMzJO93dtglbOTER2XdS6jrCt8GbKaWGFl5drRrBoNGONtiGNU7C3hLx1VsorbynCkJT18PjKQ==", "cpu": [ "x64" ], @@ -7388,9 +7440,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.0.6.tgz", - "integrity": "sha512-XIomXUqnH3w1aqRu0T+Wcn9roXT1bG1PjuX+bmGLkSiZ+ZyY/zYfhg6WKbox3TqQcdC1jNUkzEQlLGcfWaGc6w==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-20.1.2.tgz", + "integrity": "sha512-sMhNA8uAV43UYVEXEa8TZ8Fjpom4CGq1umTptEGOF4TTtdNn2AUBreg+0bVODM8MMSzRWGI1VbkZzHESnAPwqw==", "cpu": [ "arm" ], @@ -7404,9 +7456,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-linux-arm64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.0.6.tgz", - "integrity": "sha512-Asx2F+WtauELssmrQf1y4ZeiMIsgbL/+PnD+WgbvHVWbl7cRUfLJqEhOR5fQG6CiNTIXvOyzXMoaJVA9hTub+Q==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-20.1.2.tgz", + "integrity": "sha512-bsevarNHglaYLmIvPNQOdHrBnBgaW3EOUM0flwaXdWuZbL1bWx8GoVwHp9yJpZOAOfIF/Nhq5iTpaZB2nYFrAA==", "cpu": [ "arm64" ], @@ -7420,9 +7472,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-linux-arm64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.0.6.tgz", - "integrity": "sha512-4lyBaLWSv7VNMOXWxtuDNiSOE4M5QGiVHimSvQ9PBwgnrvEuc6fCv/Nc8ecU0rINHRQJruYMTD/kKBCsahwJUQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-20.1.2.tgz", + "integrity": "sha512-GFZTptkhZPL/iZ3tYDmspIcPEaXyy/L/o59gyp33GoFAAyDhiXIF7J1Lz81Xn8VKrX6TvEY8/9qSh86pb7qzDQ==", "cpu": [ "arm64" ], @@ -7436,9 +7488,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-linux-x64-gnu": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.0.6.tgz", - "integrity": "sha512-HGZzX7un/rJvADKwN27HM0e3Gx19hSndCoqZUtqHgrFRdUvTfHTWNpT6uZ5XW/5bNnRKdUinY9DHhlYpE0u4KQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.1.2.tgz", + "integrity": "sha512-yqEW/iglKT4d9lgfnwSNhmDzPxCkRhtdmZqOYpGDM0eZFwYwJF+WRGjW8xIqMj8PA1yrGItzXZOmyFjJqHAF2w==", "cpu": [ "x64" ], @@ -7452,9 +7504,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-linux-x64-musl": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.0.6.tgz", - "integrity": "sha512-OwMq+ozzCOCtAViOouHbe/MXqep/q4EKg44YelUqVNIe/2XimcIfMlBQFk1DOcmibesxa3yWMKAdg2IGUnG+pQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-20.1.2.tgz", + "integrity": "sha512-SP6PpWT4cQVrC4WJQdpfADrYJQzkbhgmcGleWbpr7II1HJgOsAcvoDwQGpPQX+3Wo+VBiNecvUAOzacMQkXPGw==", "cpu": [ "x64" ], @@ -7468,9 +7520,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-win32-arm64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.0.6.tgz", - "integrity": "sha512-2D8TIjyi5dJLy4cx8u7YKunW6+EG9FAuBUo75qMCozTBw1EPTK2lzwLE2d8C7WOxBA148O2wzD5uiX1vCt2Tzg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-20.1.2.tgz", + "integrity": "sha512-JZQx9gr39LY3D7uleiXlpxUsavuOrOQNBocwKHkAMnykaT/e1VCxTnm/hk+2b4foWwfURTqoRiFEba70iiCdYg==", "cpu": [ "arm64" ], @@ -7484,9 +7536,9 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/nx-win32-x64-msvc": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.0.6.tgz", - "integrity": "sha512-B83kpN1+KdJ97P0Rw/KRyZ5fZPtKimvwg/TAJdWR1D8oqdrpaZwgTd9dcsTNavvynUsPqM3GdjmFKzTYTZ4MFQ==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.1.2.tgz", + "integrity": "sha512-6GmT8iswDiCvJaCtW9DpWeAQmLS/kfAuRLYBisfzlONuLPaDdjhgVIxZBqqUSFfclwcVz+NhIOGvdr0aGFZCtQ==", "cpu": [ "x64" ], @@ -7500,19 +7552,32 @@ } }, "node_modules/@nx/webpack/node_modules/@nx/workspace": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.0.6.tgz", - "integrity": "sha512-A7lle47I4JggbhXoUVvkuvULqF0Xejy4LpE0txz9OIM5a9HxW1aIHYYQFuROBuVlMFxAJusPeYFJCCvb+qBxKw==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-20.1.2.tgz", + "integrity": "sha512-YZiBwHU+NsJvJ7e7AZnyk5cP523AIHmHFf28nEpBY3zhxLghx/s9C99Swbw+uUyWlUf7JtTO9jB6OsEfMc38Uw==", "license": "MIT", "dependencies": { - "@nx/devkit": "20.0.6", + "@nx/devkit": "20.1.2", "chalk": "^4.1.0", "enquirer": "~2.3.6", - "nx": "20.0.6", + "nx": "20.1.2", "tslib": "^2.3.0", "yargs-parser": "21.1.1" } }, + "node_modules/@nx/webpack/node_modules/@yarnpkg/parsers": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.2.tgz", + "integrity": "sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==", + "license": "BSD-2-Clause", + "dependencies": { + "js-yaml": "^3.10.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=18.12.0" + } + }, "node_modules/@nx/webpack/node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", @@ -7824,15 +7889,15 @@ } }, "node_modules/@nx/webpack/node_modules/nx": { - "version": "20.0.6", - "resolved": "https://registry.npmjs.org/nx/-/nx-20.0.6.tgz", - "integrity": "sha512-z8PMPEXxtADwxsNXamZdDbx65fcNcR4gTmX7N94GKmpZNrjwd3m7RcnoYgQp5vA8kFQkMR+320mtq5NkGJPZvg==", + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/nx/-/nx-20.1.2.tgz", + "integrity": "sha512-CvjmuQmI0RWLYZxRSIgQZmzsQv6dPp9oI0YZE3L1dagBPfTf5Cun65I0GLt7bdkDnVx2PGYkDbIoJSv2/V+83Q==", "hasInstallScript": true, "license": "MIT", "dependencies": { "@napi-rs/wasm-runtime": "0.2.4", "@yarnpkg/lockfile": "^1.1.0", - "@yarnpkg/parsers": "3.0.0-rc.46", + "@yarnpkg/parsers": "3.0.2", "@zkochan/js-yaml": "0.0.7", "axios": "^1.7.4", "chalk": "^4.1.0", @@ -7868,16 +7933,16 @@ "nx-cloud": "bin/nx-cloud.js" }, "optionalDependencies": { - "@nx/nx-darwin-arm64": "20.0.6", - "@nx/nx-darwin-x64": "20.0.6", - "@nx/nx-freebsd-x64": "20.0.6", - "@nx/nx-linux-arm-gnueabihf": "20.0.6", - "@nx/nx-linux-arm64-gnu": "20.0.6", - "@nx/nx-linux-arm64-musl": "20.0.6", - "@nx/nx-linux-x64-gnu": "20.0.6", - "@nx/nx-linux-x64-musl": "20.0.6", - "@nx/nx-win32-arm64-msvc": "20.0.6", - "@nx/nx-win32-x64-msvc": "20.0.6" + "@nx/nx-darwin-arm64": "20.1.2", + "@nx/nx-darwin-x64": "20.1.2", + "@nx/nx-freebsd-x64": "20.1.2", + "@nx/nx-linux-arm-gnueabihf": "20.1.2", + "@nx/nx-linux-arm64-gnu": "20.1.2", + "@nx/nx-linux-arm64-musl": "20.1.2", + "@nx/nx-linux-x64-gnu": "20.1.2", + "@nx/nx-linux-x64-musl": "20.1.2", + "@nx/nx-win32-arm64-msvc": "20.1.2", + "@nx/nx-win32-x64-msvc": "20.1.2" }, "peerDependencies": { "@swc-node/register": "^1.8.0", @@ -8118,29 +8183,29 @@ } }, "node_modules/@nx/workspace": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-19.8.8.tgz", - "integrity": "sha512-CvD2fSTSt148yJagZVmGjyNIZ+q3IxPfVyAn+imH1Lui+rHz/6aijWWsAgIE62UKkNxBXyG4AV5N//y3Snv+mw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-19.8.11.tgz", + "integrity": "sha512-NmHkCWajKR2Xn/DiqKU6gLj/XKjB6Lolh4HWO+3PwK7Fo3dwlEBbx7wdyBjf8S5Kq1Ad0a3yh6dSiqF9ObDNAQ==", "dev": true, "license": "MIT", "dependencies": { - "@nrwl/workspace": "19.8.8", - "@nx/devkit": "19.8.8", + "@nrwl/workspace": "19.8.11", + "@nx/devkit": "19.8.11", "chalk": "^4.1.0", "enquirer": "~2.3.6", - "nx": "19.8.8", + "nx": "19.8.11", "tslib": "^2.3.0", "yargs-parser": "21.1.1" } }, "node_modules/@nx/workspace/node_modules/@nx/devkit": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.8.tgz", - "integrity": "sha512-JZtx+2J/9g4OCaNWNxW2udGxEtje0RZ75pybK4ZieiIQVXPsrInN/bpSJSEWW3xt90GlsaFPif39rBkmy6uoHg==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-19.8.11.tgz", + "integrity": "sha512-9Ath0++R8lKeqSGmlZHNf99oa+7vKXWmjYnvDrhU7qq8RXpyccu6VhU11P69FH0oecg2lTNk6AGBXq12E8r2hQ==", "dev": true, "license": "MIT", "dependencies": { - "@nrwl/devkit": "19.8.8", + "@nrwl/devkit": "19.8.11", "ejs": "^3.1.7", "enquirer": "~2.3.6", "ignore": "^5.0.4", @@ -8531,13 +8596,13 @@ ] }, "node_modules/@schematics/angular": { - "version": "18.2.11", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-18.2.11.tgz", - "integrity": "sha512-jT54mc9+hPOwie9bji/g2krVuK1kkNh2PNFGwfgCg3Ofmt3hcyOBai1DKuot5uLTX4VCCbvfwiVR/hJniQl2SA==", + "version": "18.2.12", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-18.2.12.tgz", + "integrity": "sha512-sIoeipsisK5eTLW3XuNZYcal83AfslBbgI7LnV+3VrXwpasKPGHwo2ZdwhCd2IXAkuJ02Iyu7MyV0aQRM9i/3g==", "license": "MIT", "dependencies": { - "@angular-devkit/core": "18.2.11", - "@angular-devkit/schematics": "18.2.11", + "@angular-devkit/core": "18.2.12", + "@angular-devkit/schematics": "18.2.12", "jsonc-parser": "3.3.1" }, "engines": { @@ -8718,15 +8783,15 @@ } }, "node_modules/@swc/core": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.7.42.tgz", - "integrity": "sha512-iQrRk3SKndQZ4ptJv1rzeQSiCYQIhMjiO97QXOlCcCoaazOLKPnLnXzU4Kv0FuBFyYfG2FE94BoR0XI2BN02qw==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.9.2.tgz", + "integrity": "sha512-dYyEkO6mRYtZFpnOsnYzv9rY69fHAHoawYOjGOEcxk9WYtaJhowMdP/w6NcOKnz2G7GlZaenjkzkMa6ZeQeMsg==", "devOptional": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { "@swc/counter": "^0.1.3", - "@swc/types": "^0.1.13" + "@swc/types": "^0.1.15" }, "engines": { "node": ">=10" @@ -8736,16 +8801,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.7.42", - "@swc/core-darwin-x64": "1.7.42", - "@swc/core-linux-arm-gnueabihf": "1.7.42", - "@swc/core-linux-arm64-gnu": "1.7.42", - "@swc/core-linux-arm64-musl": "1.7.42", - "@swc/core-linux-x64-gnu": "1.7.42", - "@swc/core-linux-x64-musl": "1.7.42", - "@swc/core-win32-arm64-msvc": "1.7.42", - "@swc/core-win32-ia32-msvc": "1.7.42", - "@swc/core-win32-x64-msvc": "1.7.42" + "@swc/core-darwin-arm64": "1.9.2", + "@swc/core-darwin-x64": "1.9.2", + "@swc/core-linux-arm-gnueabihf": "1.9.2", + "@swc/core-linux-arm64-gnu": "1.9.2", + "@swc/core-linux-arm64-musl": "1.9.2", + "@swc/core-linux-x64-gnu": "1.9.2", + "@swc/core-linux-x64-musl": "1.9.2", + "@swc/core-win32-arm64-msvc": "1.9.2", + "@swc/core-win32-ia32-msvc": "1.9.2", + "@swc/core-win32-x64-msvc": "1.9.2" }, "peerDependencies": { "@swc/helpers": "*" @@ -8757,9 +8822,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.42.tgz", - "integrity": "sha512-fWhaCs2+8GDRIcjExVDEIfbptVrxDqG8oHkESnXgymmvqTWzWei5SOnPNMS8Q+MYsn/b++Y2bDxkcwmq35Bvxg==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.9.2.tgz", + "integrity": "sha512-nETmsCoY29krTF2PtspEgicb3tqw7Ci5sInTI03EU5zpqYbPjoPH99BVTjj0OsF53jP5MxwnLI5Hm21lUn1d6A==", "cpu": [ "arm64" ], @@ -8774,9 +8839,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.7.42.tgz", - "integrity": "sha512-ZaVHD2bijrlkCyD7NDzLmSK849Jgcx+6DdL4x1dScoz1slJ8GTvLtEu0JOUaaScQwA+cVlhmrmlmi9ssjbRLGQ==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.9.2.tgz", + "integrity": "sha512-9gD+bwBz8ZByjP6nZTXe/hzd0tySIAjpDHgkFiUrc+5zGF+rdTwhcNrzxNHJmy6mw+PW38jqII4uspFHUqqxuQ==", "cpu": [ "x64" ], @@ -8791,9 +8856,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.42.tgz", - "integrity": "sha512-iF0BJj7hVTbY/vmbvyzVTh/0W80+Q4fbOYschdUM3Bsud39TA+lSaPOefOHywkNH58EQ1z3EAxYcJOWNES7GFQ==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.9.2.tgz", + "integrity": "sha512-kYq8ief1Qrn+WmsTWAYo4r+Coul4dXN6cLFjiPZ29Cv5pyU+GFvSPAB4bEdMzwy99rCR0u2P10UExaeCjurjvg==", "cpu": [ "arm" ], @@ -8808,9 +8873,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.42.tgz", - "integrity": "sha512-xGu8j+DOLYTLkVmsfZPJbNPW1EkiWgSucT0nOlz77bLxImukt/0+HVm2hOwHSKuArQ8C3cjahAMY3b/s4VH2ww==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.9.2.tgz", + "integrity": "sha512-n0W4XiXlmEIVqxt+rD3ZpkogsEWUk1jJ+i5bQNgB+1JuWh0fBE8c/blDgTQXa0GB5lTPVDZQussgdNOCnAZwiA==", "cpu": [ "arm64" ], @@ -8825,9 +8890,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.42.tgz", - "integrity": "sha512-qtW3JNO7i1yHEko59xxz+jY38+tYmB96JGzj6XzygMbYJYZDYbrOpXQvKbMGNG3YeTDan7Fp2jD0dlKf7NgDPA==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.9.2.tgz", + "integrity": "sha512-8xzrOmsyCC1zrx2Wzx/h8dVsdewO1oMCwBTLc1gSJ/YllZYTb04pNm6NsVbzUX2tKddJVRgSJXV10j/NECLwpA==", "cpu": [ "arm64" ], @@ -8842,9 +8907,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.42.tgz", - "integrity": "sha512-F9WY1TN+hhhtiEzZjRQziNLt36M5YprMeOBHjsLVNqwgflzleSI7ulgnlQECS8c8zESaXj3ksGduAoJYtPC1cA==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.9.2.tgz", + "integrity": "sha512-kZrNz/PjRQKcchWF6W292jk3K44EoVu1ad5w+zbS4jekIAxsM8WwQ1kd+yjUlN9jFcF8XBat5NKIs9WphJCVXg==", "cpu": [ "x64" ], @@ -8859,9 +8924,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.42.tgz", - "integrity": "sha512-7YMdOaYKLMQ8JGfnmRDwidpLFs/6ka+80zekeM0iCVO48yLrJR36G0QGXzMjKsXI0BPhq+mboZRRENK4JfQnEA==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.9.2.tgz", + "integrity": "sha512-TTIpR4rjMkhX1lnFR+PSXpaL83TrQzp9znRdp2TzYrODlUd/R20zOwSo9vFLCyH6ZoD47bccY7QeGZDYT3nlRg==", "cpu": [ "x64" ], @@ -8876,9 +8941,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.42.tgz", - "integrity": "sha512-C5CYWaIZEyqPl5W/EwcJ/mLBJFHVoUEa/IwWi0b4q2fCXcSCktQGwKXOQ+d67GneiZoiq0HasgcdMmMpGS9YRQ==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.9.2.tgz", + "integrity": "sha512-+Eg2d4icItKC0PMjZxH7cSYFLWk0aIp94LNmOw6tPq0e69ax6oh10upeq0D1fjWsKLmOJAWEvnXlayZcijEXDw==", "cpu": [ "arm64" ], @@ -8893,9 +8958,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.42.tgz", - "integrity": "sha512-3j47seZ5pO62mbrqvPe1iwhe2BXnM5q7iB+n2xgA38PCGYt0mnaJafqmpCXm/uYZOCMqSNynaoOWCMMZm4sqtA==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.9.2.tgz", + "integrity": "sha512-nLWBi4vZDdM/LkiQmPCakof8Dh1/t5EM7eudue04V1lIcqx9YHVRS3KMwEaCoHLGg0c312Wm4YgrWQd9vwZ5zQ==", "cpu": [ "ia32" ], @@ -8910,9 +8975,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.7.42", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.42.tgz", - "integrity": "sha512-FXl9MdeUogZLGDcLr6QIRdDVkpG0dkN4MLM4dwQ5kcAk+XfKPrQibX6M2kcfhsCx+jtBqtK7hRFReRXPWJZGbA==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.9.2.tgz", + "integrity": "sha512-ik/k+JjRJBFkXARukdU82tSVx0CbExFQoQ78qTO682esbYXzjdB5eLVkoUbwen299pnfr88Kn4kyIqFPTje8Xw==", "cpu": [ "x64" ], @@ -8934,19 +8999,19 @@ "license": "Apache-2.0" }, "node_modules/@swc/helpers": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.13.tgz", - "integrity": "sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==", + "version": "0.5.15", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", + "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", "dev": true, "license": "Apache-2.0", "dependencies": { - "tslib": "^2.4.0" + "tslib": "^2.8.0" } }, "node_modules/@swc/types": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.13.tgz", - "integrity": "sha512-JL7eeCk6zWCbiYQg2xQSdLXQJl8Qoc9rXmG2cEKvHe3CKwMHwHGpfOb8frzNLmbycOo6I51qxnLnn9ESf4I20Q==", + "version": "0.1.16", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.16.tgz", + "integrity": "sha512-okcPxwxfdKUPrH15TbMcuqMJBu6QcxjHwyhYj1IPyaSAKHY7SHqhaS2UCANaOQ/+E6Dor50IgNpSbeJNqcuehw==", "devOptional": true, "license": "Apache-2.0", "dependencies": { @@ -9277,9 +9342,9 @@ } }, "node_modules/@types/node": { - "version": "22.8.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.4.tgz", - "integrity": "sha512-SpNNxkftTJOPk0oN+y2bIqurEXHTA2AOZ3EJDDKeJ5VzkvvORSvmQXGQarcOzWV1ac7DCaPBEdMDxBsM+d8jWw==", + "version": "22.9.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.1.tgz", + "integrity": "sha512-p8Yy/8sw1caA8CdRIQBG5tiLHmxtQKObCijiAa9Ez+d4+PRffM4054xbju0msf+cvhJpnFEeNjxmVT/0ipktrg==", "license": "MIT", "dependencies": { "undici-types": "~6.19.8" @@ -9301,9 +9366,9 @@ "license": "MIT" }, "node_modules/@types/qs": { - "version": "6.9.16", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.16.tgz", - "integrity": "sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A==", + "version": "6.9.17", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.17.tgz", + "integrity": "sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==", "license": "MIT" }, "node_modules/@types/range-parser": { @@ -9384,9 +9449,9 @@ "license": "MIT" }, "node_modules/@types/ws": { - "version": "8.5.12", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz", - "integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==", + "version": "8.5.13", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz", + "integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==", "license": "MIT", "dependencies": { "@types/node": "*" @@ -9408,17 +9473,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.12.2.tgz", - "integrity": "sha512-gQxbxM8mcxBwaEmWdtLCIGLfixBMHhQjBqR8sVWNTPpcj45WlYL2IObS/DNMLH1DBP0n8qz+aiiLTGfopPEebw==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.15.0.tgz", + "integrity": "sha512-+zkm9AR1Ds9uLWN3fkoeXgFppaQ+uEVtfOV62dDmsy9QCNqlRHWNEck4yarvRNrvRcHQLGfqBNui3cimoz8XAg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.12.2", - "@typescript-eslint/type-utils": "8.12.2", - "@typescript-eslint/utils": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2", + "@typescript-eslint/scope-manager": "8.15.0", + "@typescript-eslint/type-utils": "8.15.0", + "@typescript-eslint/utils": "8.15.0", + "@typescript-eslint/visitor-keys": "8.15.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -9442,16 +9507,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.12.2.tgz", - "integrity": "sha512-MrvlXNfGPLH3Z+r7Tk+Z5moZAc0dzdVjTgUgwsdGweH7lydysQsnSww3nAmsq8blFuRD5VRlAr9YdEFw3e6PBw==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.15.0.tgz", + "integrity": "sha512-7n59qFpghG4uazrF9qtGKBZXn7Oz4sOMm8dwNWDQY96Xlm2oX67eipqcblDj+oY1lLCbf1oltMZFpUso66Kl1A==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "8.12.2", - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/typescript-estree": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2", + "@typescript-eslint/scope-manager": "8.15.0", + "@typescript-eslint/types": "8.15.0", + "@typescript-eslint/typescript-estree": "8.15.0", + "@typescript-eslint/visitor-keys": "8.15.0", "debug": "^4.3.4" }, "engines": { @@ -9471,13 +9536,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.12.2.tgz", - "integrity": "sha512-gPLpLtrj9aMHOvxJkSbDBmbRuYdtiEbnvO25bCMza3DhMjTQw0u7Y1M+YR5JPbMsXXnSPuCf5hfq0nEkQDL/JQ==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.15.0.tgz", + "integrity": "sha512-QRGy8ADi4J7ii95xz4UoiymmmMd/zuy9azCaamnZ3FM8T5fZcex8UfJcjkiEZjJSztKfEBe3dZ5T/5RHAmw2mA==", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2" + "@typescript-eslint/types": "8.15.0", + "@typescript-eslint/visitor-keys": "8.15.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -9488,13 +9553,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.12.2.tgz", - "integrity": "sha512-bwuU4TAogPI+1q/IJSKuD4shBLc/d2vGcRT588q+jzayQyjVK2X6v/fbR4InY2U2sgf8MEvVCqEWUzYzgBNcGQ==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.15.0.tgz", + "integrity": "sha512-UU6uwXDoI3JGSXmcdnP5d8Fffa2KayOhUUqr/AiBnG1Gl7+7ut/oyagVeSkh7bxQ0zSXV9ptRh/4N15nkCqnpw==", "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.12.2", - "@typescript-eslint/utils": "8.12.2", + "@typescript-eslint/typescript-estree": "8.15.0", + "@typescript-eslint/utils": "8.15.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -9505,6 +9570,9 @@ "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" + }, "peerDependenciesMeta": { "typescript": { "optional": true @@ -9512,9 +9580,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.12.2.tgz", - "integrity": "sha512-VwDwMF1SZ7wPBUZwmMdnDJ6sIFk4K4s+ALKLP6aIQsISkPv8jhiw65sAK6SuWODN/ix+m+HgbYDkH+zLjrzvOA==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.15.0.tgz", + "integrity": "sha512-n3Gt8Y/KyJNe0S3yDCD2RVKrHBC4gTUcLTebVBXacPy091E6tNspFLKRXlk3hwT4G55nfr1n2AdFqi/XMxzmPQ==", "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -9525,13 +9593,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.12.2.tgz", - "integrity": "sha512-mME5MDwGe30Pq9zKPvyduyU86PH7aixwqYR2grTglAdB+AN8xXQ1vFGpYaUSJ5o5P/5znsSBeNcs5g5/2aQwow==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.15.0.tgz", + "integrity": "sha512-1eMp2JgNec/niZsR7ioFBlsh/Fk0oJbhaqO0jRyQBMgkz7RrFfkqF9lYYmBoGBaSiLnu8TAPQTwoTUiSTUW9dg==", "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2", + "@typescript-eslint/types": "8.15.0", + "@typescript-eslint/visitor-keys": "8.15.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -9568,15 +9636,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.12.2.tgz", - "integrity": "sha512-UTTuDIX3fkfAz6iSVa5rTuSfWIYZ6ATtEocQ/umkRSyC9O919lbZ8dcH7mysshrCdrAM03skJOEYaBugxN+M6A==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.15.0.tgz", + "integrity": "sha512-k82RI9yGhr0QM3Dnq+egEpz9qB6Un+WLYhmoNcvl8ltMEededhh7otBVVIDDsEEttauwdY/hQoSsOv13lxrFzQ==", "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.12.2", - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/typescript-estree": "8.12.2" + "@typescript-eslint/scope-manager": "8.15.0", + "@typescript-eslint/types": "8.15.0", + "@typescript-eslint/typescript-estree": "8.15.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -9587,16 +9655,21 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.12.2.tgz", - "integrity": "sha512-PChz8UaKQAVNHghsHcPyx1OMHoFRUEA7rJSK/mDhdq85bk+PLsUHUBqTQTFt18VJZbmxBovM65fezlheQRsSDA==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.15.0.tgz", + "integrity": "sha512-h8vYOulWec9LhpwfAdZf2bjr8xIp0KNKnpgqSz0qqYYKAW/QZKw3ktRndbiAtUz4acH4QLQavwZBYCc0wulA/Q==", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.12.2", - "eslint-visitor-keys": "^3.4.3" + "@typescript-eslint/types": "8.15.0", + "eslint-visitor-keys": "^4.2.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -9606,6 +9679,18 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@vitejs/plugin-basic-ssl": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.1.0.tgz", @@ -9619,148 +9704,148 @@ } }, "node_modules/@webassemblyjs/ast": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", - "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", "license": "MIT", "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", "license": "MIT" }, "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", "license": "MIT" }, "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", - "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", "license": "MIT" }, "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", "license": "MIT", "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", "license": "MIT" }, "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", - "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", "license": "MIT", "dependencies": { - "@webassemblyjs/ast": "1.12.1", - "@webassemblyjs/helper-buffer": "1.12.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.12.1" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" } }, "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", "license": "MIT", "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", "license": "Apache-2.0", "dependencies": { "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", "license": "MIT" }, "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz", - "integrity": "sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", "license": "MIT", "dependencies": { - "@webassemblyjs/ast": "1.12.1", - "@webassemblyjs/helper-buffer": "1.12.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.12.1", - "@webassemblyjs/wasm-gen": "1.12.1", - "@webassemblyjs/wasm-opt": "1.12.1", - "@webassemblyjs/wasm-parser": "1.12.1", - "@webassemblyjs/wast-printer": "1.12.1" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" } }, "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz", - "integrity": "sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", "license": "MIT", "dependencies": { - "@webassemblyjs/ast": "1.12.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz", - "integrity": "sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", "license": "MIT", "dependencies": { - "@webassemblyjs/ast": "1.12.1", - "@webassemblyjs/helper-buffer": "1.12.1", - "@webassemblyjs/wasm-gen": "1.12.1", - "@webassemblyjs/wasm-parser": "1.12.1" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" } }, "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz", - "integrity": "sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", "license": "MIT", "dependencies": { - "@webassemblyjs/ast": "1.12.1", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "node_modules/@webassemblyjs/wast-printer": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz", - "integrity": "sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", "license": "MIT", "dependencies": { - "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, @@ -10458,13 +10543,13 @@ } }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.11", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz", - "integrity": "sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz", + "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==", "license": "MIT", "dependencies": { "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.2", + "@babel/helper-define-polyfill-provider": "^0.6.3", "semver": "^6.3.1" }, "peerDependencies": { @@ -10494,12 +10579,12 @@ } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz", - "integrity": "sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz", + "integrity": "sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==", "license": "MIT", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2" + "@babel/helper-define-polyfill-provider": "^0.6.3" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -10680,9 +10765,9 @@ "license": "MIT" }, "node_modules/bonjour-service": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.2.1.tgz", - "integrity": "sha512-oSzCS2zV14bh2kji6vNe7vrpJYCHGvcZnlffFQ1MEoX/WOeQ/teD8SYWKR942OI3INjq8OMNJlbPK5LLLUxFDw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.3.0.tgz", + "integrity": "sha512-3YuAUiSkWykd+2Azjgyxei8OWf8thdn8AITIog2M4UICzoqfjlqr64WIjEXZllf/W6vK1goqleSR6brGomxQqA==", "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.3", @@ -10969,9 +11054,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001676", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001676.tgz", - "integrity": "sha512-Qz6zwGCiPghQXGJvgQAem79esjitvJ+CxSbSQkW9H/UX5hg8XM88d4lp2W+MEQ81j+Hip58Il+jGVdazk1z9cw==", + "version": "1.0.30001680", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", + "integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==", "funding": [ { "type": "opencollective", @@ -11620,9 +11705,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -12263,12 +12348,12 @@ } }, "node_modules/dotenv-expand": { - "version": "11.0.6", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.6.tgz", - "integrity": "sha512-8NHi73otpWsZGBSZwwknTXS5pqMOrk9+Ssrna8xCaxkzEpU9OTf9R5ArQGVw03//Zmk9MOwLPng9WwndvpAJ5g==", + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", + "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", "license": "BSD-2-Clause", "dependencies": { - "dotenv": "^16.4.4" + "dotenv": "^16.4.5" }, "engines": { "node": ">=12" @@ -12311,9 +12396,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.50", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.50.tgz", - "integrity": "sha512-eMVObiUQ2LdgeO1F/ySTXsvqvxb6ZH2zPGaMYsWzRDdOddUa77tdmI0ltg+L16UpbWdhPmuF3wIQYyQq65WfZw==", + "version": "1.5.63", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.63.tgz", + "integrity": "sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==", "license": "ISC" }, "node_modules/emittery": { @@ -12613,31 +12698,31 @@ } }, "node_modules/eslint": { - "version": "9.13.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.13.0.tgz", - "integrity": "sha512-EYZK6SX6zjFHST/HRytOdA/zE72Cq/bfw45LSyuwrdvcclb/gqV8RRQxywOBEWO2+WDpva6UZa4CcDeJKzUCFA==", + "version": "9.15.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.15.0.tgz", + "integrity": "sha512-7CrWySmIibCgT1Os28lUU6upBshZ+GxybLOrmRzi08kS8MBuO8QA7pXEgYgY5W8vK3e74xv0lpjo9DbaGU9Rkw==", "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.11.0", - "@eslint/config-array": "^0.18.0", - "@eslint/core": "^0.7.0", - "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "9.13.0", - "@eslint/plugin-kit": "^0.2.0", - "@humanfs/node": "^0.16.5", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.9.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.15.0", + "@eslint/plugin-kit": "^0.2.3", + "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.3.1", + "@humanwhocodes/retry": "^0.4.1", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.5", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.1.0", - "eslint-visitor-keys": "^4.1.0", - "espree": "^10.2.0", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -12651,8 +12736,7 @@ "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "text-table": "^0.2.0" + "optionator": "^0.9.3" }, "bin": { "eslint": "bin/eslint.js" @@ -13344,9 +13428,9 @@ } }, "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", "license": "ISC" }, "node_modules/follow-redirects": { @@ -13618,6 +13702,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "devOptional": true, "license": "ISC" }, "node_modules/fsevents": { @@ -13719,6 +13804,7 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", + "devOptional": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -13757,6 +13843,7 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "devOptional": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", @@ -13767,6 +13854,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "devOptional": true, "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" @@ -14496,6 +14584,7 @@ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "devOptional": true, "license": "ISC", "dependencies": { "once": "^1.3.0", @@ -15388,9 +15477,9 @@ } }, "node_modules/jest-preset-angular": { - "version": "14.2.4", - "resolved": "https://registry.npmjs.org/jest-preset-angular/-/jest-preset-angular-14.2.4.tgz", - "integrity": "sha512-xyhkaiBdn3keBgxxkcbqZu/my3ADU9NcDrz6DaMuGRaxz/bf6ZC1qxZ1eQuz5V1WuA3/rD64VA3Kke8P6E9qNg==", + "version": "14.3.2", + "resolved": "https://registry.npmjs.org/jest-preset-angular/-/jest-preset-angular-14.3.2.tgz", + "integrity": "sha512-Aoei1O/o7x1I6bSCpU08jGqtQ2RBq7HvNbMIo/vHHbM50v4HX1gF3sWZTkM0U0KorNkdwZeONjMsPNwHyUAKqA==", "dev": true, "license": "MIT", "dependencies": { @@ -17273,9 +17362,9 @@ } }, "node_modules/node-gyp-build": { - "version": "4.8.2", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.2.tgz", - "integrity": "sha512-IRUxE4BVsHWXkV/SFOut4qTlagw2aM8T5/vnTsmrHJvVoKueJHRc/JaFND7QDDc61kLYUJ6qlZM3sqTSyx2dTw==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", + "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", "license": "MIT", "optional": true, "bin": { @@ -17576,14 +17665,14 @@ "license": "MIT" }, "node_modules/nx": { - "version": "19.8.8", - "resolved": "https://registry.npmjs.org/nx/-/nx-19.8.8.tgz", - "integrity": "sha512-Qvxy87uX8/Mre+GgXn5+uf3ehMn1mqO35UwJChVGWbuKJUELqrwvDRPfWcXNfwKniBmUL89gtO18OOZigx8YCw==", + "version": "19.8.11", + "resolved": "https://registry.npmjs.org/nx/-/nx-19.8.11.tgz", + "integrity": "sha512-NGKY3o+bm6SMVoP/VFh+rjjjoghLqy+MG/fldYBFiZ2oI30Nhisn19EypMomBrUlS8jhJR0PE9H8/c/yORr9PA==", "hasInstallScript": true, "license": "MIT", "dependencies": { "@napi-rs/wasm-runtime": "0.2.4", - "@nrwl/tao": "19.8.8", + "@nrwl/tao": "19.8.11", "@yarnpkg/lockfile": "^1.1.0", "@yarnpkg/parsers": "3.0.0-rc.46", "@zkochan/js-yaml": "0.0.7", @@ -17622,16 +17711,16 @@ "nx-cloud": "bin/nx-cloud.js" }, "optionalDependencies": { - "@nx/nx-darwin-arm64": "19.8.8", - "@nx/nx-darwin-x64": "19.8.8", - "@nx/nx-freebsd-x64": "19.8.8", - "@nx/nx-linux-arm-gnueabihf": "19.8.8", - "@nx/nx-linux-arm64-gnu": "19.8.8", - "@nx/nx-linux-arm64-musl": "19.8.8", - "@nx/nx-linux-x64-gnu": "19.8.8", - "@nx/nx-linux-x64-musl": "19.8.8", - "@nx/nx-win32-arm64-msvc": "19.8.8", - "@nx/nx-win32-x64-msvc": "19.8.8" + "@nx/nx-darwin-arm64": "19.8.11", + "@nx/nx-darwin-x64": "19.8.11", + "@nx/nx-freebsd-x64": "19.8.11", + "@nx/nx-linux-arm-gnueabihf": "19.8.11", + "@nx/nx-linux-arm64-gnu": "19.8.11", + "@nx/nx-linux-arm64-musl": "19.8.11", + "@nx/nx-linux-x64-gnu": "19.8.11", + "@nx/nx-linux-x64-musl": "19.8.11", + "@nx/nx-win32-arm64-msvc": "19.8.11", + "@nx/nx-win32-x64-msvc": "19.8.11" }, "peerDependencies": { "@swc-node/register": "^1.8.0", @@ -17788,9 +17877,9 @@ } }, "node_modules/object-inspect": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", - "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", + "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", "license": "MIT", "engines": { "node": ">= 0.4" @@ -17954,9 +18043,9 @@ "license": "ISC" }, "node_modules/ordered-binary": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.5.2.tgz", - "integrity": "sha512-JTo+4+4Fw7FreyAvlSLjb1BBVaxEQAacmjD3jjuyPZclpbEghTvQZbXBb2qPd2LeIMxiHwXBZUcpmG2Gl/mDEA==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.5.3.tgz", + "integrity": "sha512-oGFr3T+pYdTGJ+YFEILMpS3es+GiIbs9h/XQrclBXUtd44ey7XwfsMzM31f64I1SQOawDoDr/D823kNCADI8TA==", "license": "MIT" }, "node_modules/os-tmpdir": { @@ -18051,9 +18140,9 @@ } }, "node_modules/p-retry": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-6.2.0.tgz", - "integrity": "sha512-JA6nkq6hKyWLLasXQXUrO4z8BUZGUt/LjlJxx8Gb2+2ntodU/SS63YZ8b0LUTbQ8ZB9iwOfhEPhg4ykKnn2KsA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-6.2.1.tgz", + "integrity": "sha512-hEt02O4hUct5wtwg4H4KcWgDdm+l1bOaEy/hWzd8xtXB9BqxTWBBhb+2ImAtH4Cv4rPjV76xN3Zumqk3k3AhhQ==", "license": "MIT", "dependencies": { "@types/retry": "0.12.2", @@ -18261,6 +18350,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -18743,13 +18833,13 @@ } }, "node_modules/postcss-modules-local-by-default": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.5.tgz", - "integrity": "sha512-6MieY7sIfTK0hYfafw1OMEG+2bg8Q1ocHCpoWLqOKj3JXlKu4G7btkmM/B7lFubYkYWmRSPLZi5chid63ZaZYw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.1.0.tgz", + "integrity": "sha512-rm0bdSv4jC3BDma3s9H19ZddW0aHX6EoqwDYU2IfZhRN+53QrufTRo2IdkAbRqLx4R2IYbZnbjKKxg4VN5oU9Q==", "license": "MIT", "dependencies": { "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", + "postcss-selector-parser": "^7.0.0", "postcss-value-parser": "^4.1.0" }, "engines": { @@ -18759,13 +18849,26 @@ "postcss": "^8.1.0" } }, + "node_modules/postcss-modules-local-by-default/node_modules/postcss-selector-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz", + "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/postcss-modules-scope": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.0.tgz", - "integrity": "sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz", + "integrity": "sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==", "license": "ISC", "dependencies": { - "postcss-selector-parser": "^6.0.4" + "postcss-selector-parser": "^7.0.0" }, "engines": { "node": "^10 || ^12 || >= 14" @@ -18774,6 +18877,19 @@ "postcss": "^8.1.0" } }, + "node_modules/postcss-modules-scope/node_modules/postcss-selector-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz", + "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/postcss-modules-values": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", @@ -19154,11 +19270,14 @@ "optional": true }, "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.10.0.tgz", + "integrity": "sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==", "devOptional": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + } }, "node_modules/punycode": { "version": "2.3.1", @@ -19229,9 +19348,9 @@ "license": "MIT" }, "node_modules/rambda": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/rambda/-/rambda-9.3.0.tgz", - "integrity": "sha512-cl/7DCCKNxmsbc0dXZTJTY08rvDdzLhVfE6kPBson1fWzDapLzv0RKSzjpmAqP53fkQqAvq05gpUVHTrUNsuxg==", + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/rambda/-/rambda-9.4.0.tgz", + "integrity": "sha512-B7y7goUd+g0hNl5ODGUejNNERQL5gD8uANJ5Y5aHly8v0jKesFlwIe7prPfuJxttDpe3otQzHJ4NXMpTmL9ELA==", "license": "MIT" }, "node_modules/randombytes": { @@ -19844,8 +19963,7 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==", - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/saxes": { "version": "6.0.0", @@ -20744,22 +20862,22 @@ } }, "node_modules/stylus": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.59.0.tgz", - "integrity": "sha512-lQ9w/XIOH5ZHVNuNbWW8D822r+/wBSO/d6XvtyHLF7LW4KaCIDeVbvn5DF8fGCJAUCwVhVi/h6J0NUcnylUEjg==", + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.64.0.tgz", + "integrity": "sha512-ZIdT8eUv8tegmqy1tTIdJv9We2DumkNZFdCF5mz/Kpq3OcTaxSuCAYZge6HKK2CmNC02G1eJig2RV7XTw5hQrA==", "license": "MIT", "dependencies": { - "@adobe/css-tools": "^4.0.1", + "@adobe/css-tools": "~4.3.3", "debug": "^4.3.2", - "glob": "^7.1.6", - "sax": "~1.2.4", + "glob": "^10.4.5", + "sax": "~1.4.1", "source-map": "^0.7.3" }, "bin": { "stylus": "bin/stylus" }, "engines": { - "node": "*" + "node": ">=16" }, "funding": { "url": "https://opencollective.com/stylus" @@ -20786,11 +20904,40 @@ "webpack": "^5.0.0" } }, - "node_modules/stylus/node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "license": "ISC" + "node_modules/stylus/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/stylus/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } }, "node_modules/supports-color": { "version": "7.2.0", @@ -21132,12 +21279,6 @@ "node": "*" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "license": "MIT" - }, "node_modules/thingies": { "version": "1.21.0", "resolved": "https://registry.npmjs.org/thingies/-/thingies-1.21.0.tgz", @@ -21426,9 +21567,9 @@ } }, "node_modules/tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "license": "0BSD" }, "node_modules/tsscmp": { @@ -22247,9 +22388,9 @@ } }, "node_modules/vite/node_modules/postcss": { - "version": "8.4.47", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz", - "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==", + "version": "8.4.49", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", + "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", "funding": [ { "type": "opencollective", @@ -22267,7 +22408,7 @@ "license": "MIT", "dependencies": { "nanoid": "^3.3.7", - "picocolors": "^1.1.0", + "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, "engines": { diff --git a/examples/frontend/angular/package.json b/examples/frontend/angular/package.json index 19874ecc5..b2b96f597 100644 --- a/examples/frontend/angular/package.json +++ b/examples/frontend/angular/package.json @@ -11,54 +11,54 @@ }, "private": true, "dependencies": { - "@angular/animations": "~18.2.9", - "@angular/common": "~18.2.9", - "@angular/compiler": "~18.2.9", - "@angular/core": "~18.2.9", - "@angular/forms": "~18.2.9", - "@angular/platform-browser": "~18.2.9", - "@angular/platform-browser-dynamic": "~18.2.9", - "@angular/router": "~18.2.9", - "@nx/angular": "20.0.6", + "@angular/animations": "~18.2.12", + "@angular/common": "~18.2.12", + "@angular/compiler": "~18.2.12", + "@angular/core": "~18.2.12", + "@angular/forms": "~18.2.12", + "@angular/platform-browser": "~18.2.12", + "@angular/platform-browser-dynamic": "~18.2.12", + "@angular/router": "~18.2.12", + "@nx/angular": "20.1.2", "casper-sdk": "file:../../../pkg", "highlight.js": "^11.8.0", "promise-worker": "^2.0.1", "rxjs": "~7.8.0", - "tslib": "^2.3.0", + "tslib": "^2.8.1", "zone.js": "~0.14.10" }, "devDependencies": { - "@angular-devkit/build-angular": "^18.2.9", - "@angular-devkit/core": "~18.2.9", - "@angular-devkit/schematics": "~18.2.9", + "@angular-devkit/build-angular": "^18.2.12", + "@angular-devkit/core": "~18.2.12", + "@angular-devkit/schematics": "~18.2.12", "@angular-eslint/eslint-plugin": "~18.4.0", "@angular-eslint/eslint-plugin-template": "~18.4.0", "@angular-eslint/template-parser": "~18.4.0", - "@angular/cli": "~18.2.9", - "@angular/compiler-cli": "~18.2.9", - "@angular/language-service": "~18.2.9", - "@nx/eslint-plugin": "19.8.8", - "@nx/jest": "19.8.8", - "@nx/js": "19.8.8", - "@nx/linter": "19.8.8", - "@nx/workspace": "19.8.8", - "@schematics/angular": "~18.2.9", + "@angular/cli": "~18.2.12", + "@angular/compiler-cli": "~18.2.12", + "@angular/language-service": "~18.2.12", + "@nx/eslint-plugin": "19.8.11", + "@nx/jest": "19.8.11", + "@nx/js": "19.8.11", + "@nx/linter": "19.8.11", + "@nx/workspace": "19.8.11", + "@schematics/angular": "~18.2.12", "@swc-node/register": "~1.10.9", - "@swc/core": "~1.7.6", - "@swc/helpers": "~0.5.11", + "@swc/core": "~1.9.2", + "@swc/helpers": "~0.5.15", "@types/jest": "^29.5.12", - "@types/node": "22.8.4", - "@typescript-eslint/eslint-plugin": "^8.12.0", - "@typescript-eslint/parser": "^8.12.0", - "@typescript-eslint/utils": "^8.12.0", - "eslint": "~9.13.0", + "@types/node": "22.9.1", + "@typescript-eslint/eslint-plugin": "^8.15.0", + "@typescript-eslint/parser": "^8.15.0", + "@typescript-eslint/utils": "^8.15.0", + "eslint": "~9.15.0", "eslint-config-prettier": "9.1.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-environment-node": "^29.7.0", - "jest-preset-angular": "~14.2.2", + "jest-preset-angular": "~14.3.2", "jsonc-eslint-parser": "^2.4.0", - "nx": "19.8.8", + "nx": "19.8.11", "prettier": "^3.2.5", "ts-jest": "^29.1.4", "ts-node": "~10.9.2", diff --git a/pkg-nodejs/casper_rust_wasm_sdk.d.ts b/pkg-nodejs/casper_rust_wasm_sdk.d.ts index ef7346871..8385a87eb 100644 --- a/pkg-nodejs/casper_rust_wasm_sdk.d.ts +++ b/pkg-nodejs/casper_rust_wasm_sdk.d.ts @@ -1833,6 +1833,60 @@ export class RecordId { } export class SDK { free(): void; + /** + * Parses transaction options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing transaction options to be parsed. + * + * # Returns + * + * Parsed transaction options as a `GetTransactionOptions` struct. + * @param {any} options + * @returns {getTransactionOptions} + */ + get_transaction_options(options: any): getTransactionOptions; + /** + * Retrieves transaction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + get_transaction(options?: getTransactionOptions): Promise; + /** + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + info_get_transaction(options?: getTransactionOptions): Promise; + /** + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} + */ + get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; + /** + * JS function for speculative execution. + * + * # Arguments + * + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; /** * @param {any} options * @returns {getAccountOptions} @@ -1871,579 +1925,900 @@ export class SDK { */ state_get_account_info(options?: getAccountOptions): Promise; /** - * Parses balance options from a JsValue. + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. * @param {any} options - * @returns {getBalanceOptions} + * @returns {getAuctionInfoOptions} */ - get_balance_options(options: any): getBalanceOptions; + get_auction_info_options(options: any): getAuctionInfoOptions; /** - * Retrieves balance information using the provided options. + * Retrieves auction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - get_balance(options?: getBalanceOptions): Promise; + get_auction_info(options?: getAuctionInfoOptions): Promise; /** - * JavaScript Alias for `get_balance`. + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} + */ + state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; + /** + * Parses deploy options from a JsValue. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `options` - A JsValue containing deploy options to be parsed. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} */ - state_get_balance(options?: getBalanceOptions): Promise; + get_deploy_options(options: any): getDeployOptions; /** - * Asynchronously retrieves the chainspec. + * Retrieves deploy information using the provided options. * * # Arguments * - * * `verbosity` - An optional `Verbosity` parameter. - * * `rpc_address` - An optional rpc address as a string. + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; + get_deploy(options?: getDeployOptions): Promise; /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - info_get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; + info_get_deploy(options?: getDeployOptions): Promise; /** - * Retrieves node status information using the provided options. + * @param {any} options + * @returns {getEntityOptions} + */ + get_entity_options(options: any): getEntityOptions; + /** + * Retrieves entity information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. * * # Arguments * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: + * - `entity_identifier`: Identifier for the entity. + * - `entity_identifier_as_string`: String representation of the entity identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. * * # Returns * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; + get_entity(options?: getEntityOptions): Promise; /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; + state_get_entity(options?: getEntityOptions): Promise; /** - * Parses query global state options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query global state options to be parsed. - * - * # Returns - * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. * @param {any} options - * @returns {queryGlobalStateOptions} + * @returns {getEraInfoOptions} */ - query_global_state_options(options: any): queryGlobalStateOptions; + get_era_info_options(options: any): getEraInfoOptions; /** - * Retrieves global state information using the provided options. + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + get_era_info(options?: getEraInfoOptions): Promise; + /** + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; + /** + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - query_global_state(options?: queryGlobalStateOptions): Promise; + deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses block transfers options from a JsValue. + * Retrieves peers asynchronously. * * # Arguments * - * * `options` - A JsValue containing block transfers options to be parsed. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. - * @param {any} options - * @returns {getBlockTransfersOptions} + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_block_transfers_options(options: any): getBlockTransfersOptions; + get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves block transfers information using the provided options. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Lists available RPCs using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} - */ - get_block_transfers(options?: getBlockTransfersOptions): Promise; - /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the listing process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; + list_rpcs(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses deploy options from a JsValue. + * JS function for `make_deploy`. * * # Arguments * - * * `options` - A JsValue containing deploy options to be parsed. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. * * # Returns * - * Parsed deploy options as a `GetDeployOptions` struct. - * @param {any} options - * @returns {getDeployOptions} + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - get_deploy_options(options: any): getDeployOptions; + make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; /** - * Retrieves deploy information using the provided options. + * JS function for `sign_deploy`. * * # Arguments * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} - */ - get_deploy(options?: getDeployOptions): Promise; - /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} */ - info_get_deploy(options?: getDeployOptions): Promise; + sign_deploy(deploy: Deploy, secret_key: string): Deploy; /** - * Parses state root hash options from a JsValue. + * JS function for `make_transaction`. * * # Arguments * - * * `options` - A JsValue containing state root hash options to be parsed. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * Parsed state root hash options as a `GetStateRootHashOptions` struct. - * @param {any} options - * @returns {getStateRootHashOptions} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} */ - get_state_root_hash_options(options: any): getStateRootHashOptions; + make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; /** - * Retrieves state root hash information using the provided options. + * JS function for `sign_transaction`. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} */ - get_state_root_hash(options?: getStateRootHashOptions): Promise; + sign_transaction(transaction: Transaction, secret_key: string): Transaction; /** - * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). - * - * # Arguments - * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * Deserialize query_contract_key_options from a JavaScript object. + * @param {any} options + * @returns {queryContractKeyOptions} */ - chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; + query_contract_key_options(options: any): queryContractKeyOptions; /** - * Parses transaction options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing transaction options to be parsed. - * - * # Returns - * - * Parsed transaction options as a `GetTransactionOptions` struct. - * @param {any} options - * @returns {getTransactionOptions} + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} */ - get_transaction_options(options: any): getTransactionOptions; + query_contract_key(options?: queryContractKeyOptions): Promise; /** - * Retrieves transaction information using the provided options. + * Puts a deploy using the provided options. * * # Arguments * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_transaction(options?: getTransactionOptions): Promise; + put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - info_get_transaction(options?: getTransactionOptions): Promise; + account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses query balance options from a JsValue. + * JS function for speculative transfer transaction. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * Parsed query balance options as a `QueryBalanceOptions` struct. - * @param {any} options - * @returns {queryBalanceOptions} + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - query_balance_options(options: any): queryBalanceOptions; + speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves balance information using the provided options. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceOptions | undefined} [options] - * @returns {Promise} - */ - query_balance(options?: queryBalanceOptions): Promise; - /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecTxnOptions} + * Returns a `JsError` if there is an error during the call. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; + call_entrypoint_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; /** - * JS function for speculative execution. + * Installs a smart contract with the specified parameters and returns the result. * * # Arguments - * - * * `options` - The options for speculative execution. + *. + * * `transaction_params` - Transaction parameters. + * * `transaction_bytes` - Transaction Bytes to install + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} - */ - speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; - /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecDeployOptions} - */ - get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; - /** - * JS function for speculative execution. - * - * # Arguments - * - * * `options` - The options for speculative execution. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. * - * # Returns + * # Errors * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the installation. + * @param {TransactionStrParams} transaction_params + * @param {Bytes} transaction_bytes + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; + install(transaction_params: TransactionStrParams, transaction_bytes: Bytes, rpc_address?: string): Promise; /** - * JS function for `make_transfer`. + * JS function for speculative transfer. * * # Arguments * - * * `amount` - The transfer amount. + * * `amount` - The amount to transfer. * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. - * * `deploy_params` - The deploy parameters. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {string} amount * @param {string} target_account * @param {string | undefined} transfer_id * @param {DeployStrParams} deploy_params * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; + speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for `sign_transaction`. + * Puts a transaction using the provided options. * * # Arguments * - * * `transaction` - The transaction to sign. - * * `secret_key` - The secret key for signing. + * * `transaction` - The `Transaction` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * The signed `Transaction`. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the transaction process. * @param {Transaction} transaction - * @param {string} secret_key - * @returns {Transaction} - */ - sign_transaction(transaction: Transaction, secret_key: string): Transaction; - /** - * @param {string | undefined} [rpc_address] - * @param {string | undefined} [node_address] * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address?: string, node_address?: string, verbosity?: Verbosity); - /** * @param {string | undefined} [rpc_address] - * @returns {string} + * @returns {Promise} */ - getRPCAddress(rpc_address?: string): string; + put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; /** + * JavaScript Alias for `put_transaction`. + * @param {Transaction} transaction + * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - setRPCAddress(rpc_address?: string): void; + account_put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * @param {string | undefined} [node_address] - * @returns {string} + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - getNodeAddress(node_address?: string): string; + watchDeploy(events_url: string, timeout_duration?: number): Watcher; /** - * @param {string | undefined} [node_address] + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - setNodeAddress(node_address?: string): void; + watchTransaction(events_url: string, timeout_duration?: number): Watcher; /** - * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - getVerbosity(verbosity?: Verbosity): Verbosity; + waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; /** - * @param {Verbosity | undefined} [verbosity] + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - setVerbosity(verbosity?: Verbosity): void; + waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; /** - * Parses auction info options from a JsValue. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Transaction Builder parameters. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; + /** + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; + /** + * Parses block options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block options to be parsed. + * + * # Returns + * + * Parsed block options as a `GetBlockOptions` struct. * @param {any} options - * @returns {getAuctionInfoOptions} + * @returns {getBlockOptions} */ - get_auction_info_options(options: any): getAuctionInfoOptions; + get_block_options(options: any): getBlockOptions; /** - * Retrieves auction information using the provided options. + * Retrieves block information using the provided options. * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - get_auction_info(options?: getAuctionInfoOptions): Promise; + get_block(options?: getBlockOptions): Promise; /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for the `get_block`. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; + chain_get_block(options?: getBlockOptions): Promise; /** - * @param {any} options - * @returns {getEntityOptions} + * Asynchronously retrieves the chainspec. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` parameter. + * * `rpc_address` - An optional rpc address as a string. + * + * # Returns + * + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_entity_options(options: any): getEntityOptions; + get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves entity information using the provided options. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Retrieves node status information using the provided options. * - * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Parses state root hash options from a JsValue. * * # Arguments * - * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: - * - `entity_identifier`: Identifier for the entity. - * - `entity_identifier_as_string`: String representation of the entity identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `options` - A JsValue containing state root hash options to be parsed. * * # Returns * - * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. + * Parsed state root hash options as a `GetStateRootHashOptions` struct. + * @param {any} options + * @returns {getStateRootHashOptions} + */ + get_state_root_hash_options(options: any): getStateRootHashOptions; + /** + * Retrieves state root hash information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - get_entity(options?: getEntityOptions): Promise; + get_state_root_hash(options?: getStateRootHashOptions): Promise; /** - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - state_get_entity(options?: getEntityOptions): Promise; + chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; /** - * Parses era summary options from a JsValue. + * Parses query balance options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing era summary options to be parsed. + * * `options` - A JsValue containing query balance options to be parsed. * * # Returns * - * Parsed era summary options as a `GetEraSummaryOptions` struct. + * Parsed query balance options as a `QueryBalanceOptions` struct. * @param {any} options - * @returns {getEraSummaryOptions} + * @returns {queryBalanceOptions} */ - get_era_summary_options(options: any): getEraSummaryOptions; + query_balance_options(options: any): queryBalanceOptions; /** - * Retrieves era summary information using the provided options. + * Retrieves balance information using the provided options. * * # Arguments * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * @param {queryBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary(options?: getEraSummaryOptions): Promise; + query_balance(options?: queryBalanceOptions): Promise; /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * @param {any} options + * @returns {queryBalanceDetailsOptions} */ - chain_get_era_summary(options?: getEraSummaryOptions): Promise; + query_balance_details_options(options: any): queryBalanceDetailsOptions; /** - * Retrieves validator changes using the provided options. + * Retrieves balance information using the provided options. * * # Arguments * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} + */ + query_balance_details(options?: queryBalanceDetailsOptions): Promise; + /** + * This function allows executing a transaction speculatively. + * + * # Arguments + * + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - Transactionment parameters for the transaction. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. + * + * # Returns + * + * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} + */ + speculative_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * JavaScript function for transactioning with deserialized parameters. + * + * # Arguments + * + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Session parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. + * + * # Returns + * + * A result containing PutTransactionResult or a JsError. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * JS function for transaction transferring funds. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * JS function for `make_transfer`. + * + * # Arguments + * + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; + /** + * JS function for `make_transfer_transaction`. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. + * + * # Returns + * + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} + */ + make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; + /** + * @param {string | undefined} [rpc_address] + * @param {string | undefined} [node_address] + * @param {Verbosity | undefined} [verbosity] + */ + constructor(rpc_address?: string, node_address?: string, verbosity?: Verbosity); + /** + * @param {string | undefined} [rpc_address] + * @returns {string} + */ + getRPCAddress(rpc_address?: string): string; + /** + * @param {string | undefined} [rpc_address] + */ + setRPCAddress(rpc_address?: string): void; + /** + * @param {string | undefined} [node_address] + * @returns {string} */ - get_validator_changes(verbosity?: Verbosity, rpc_address?: string): Promise; + getNodeAddress(node_address?: string): string; /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] */ - info_get_validator_change(verbosity?: Verbosity, rpc_address?: string): Promise; + setNodeAddress(node_address?: string): void; /** - * Deserialize query_contract_key_options from a JavaScript object. - * @param {any} options - * @returns {queryContractKeyOptions} + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} */ - query_contract_key_options(options: any): queryContractKeyOptions; + getVerbosity(verbosity?: Verbosity): Verbosity; /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} + * @param {Verbosity | undefined} [verbosity] */ - query_contract_key(options?: queryContractKeyOptions): Promise; + setVerbosity(verbosity?: Verbosity): void; /** * @param {string | undefined} [node_address] * @returns {Promise} @@ -2580,359 +2955,76 @@ export class SDK { */ get_binary_delegator_reward_by_era(validator_key: PublicKey, delegator_key: PublicKey, era: EraId, node_address?: string): Promise; /** - * @param {PublicKey} validator_key - * @param {PublicKey} delegator_key - * @param {bigint} block_height - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_delegator_reward_by_block_height(validator_key: PublicKey, delegator_key: PublicKey, block_height: bigint, node_address?: string): Promise; - /** - * @param {PublicKey} validator_key - * @param {PublicKey} delegator_key - * @param {BlockHash} block_hash - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_delegator_reward_by_block_hash(validator_key: PublicKey, delegator_key: PublicKey, block_hash: BlockHash, node_address?: string): Promise; - /** - * @param {RecordId} record_id - * @param {Uint8Array} key - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_read_record(record_id: RecordId, key: Uint8Array, node_address?: string): Promise; - /** - * @param {Key} key - * @param {(string)[]} path - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_global_state_item(key: Key, path: (string)[], node_address?: string): Promise; - /** - * @param {Digest} state_root_hash - * @param {Key} key - * @param {(string)[]} path - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_global_state_item_by_state_root_hash(state_root_hash: Digest, key: Key, path: (string)[], node_address?: string): Promise; - /** - * @param {BlockHash} block_hash - * @param {Key} key - * @param {(string)[]} path - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_global_state_item_by_block_hash(block_hash: BlockHash, key: Key, path: (string)[], node_address?: string): Promise; - /** - * @param {bigint} block_height - * @param {Key} key - * @param {(string)[]} path - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_global_state_item_by_block_height(block_height: bigint, key: Key, path: (string)[], node_address?: string): Promise; - /** - * @param {Transaction} transaction - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_try_accept_transaction(transaction: Transaction, node_address?: string): Promise; - /** - * @param {Transaction} transaction - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_try_speculative_execution(transaction: Transaction, node_address?: string): Promise; - /** - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_protocol_version(node_address?: string): Promise; - /** - * Parses block options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing block options to be parsed. - * - * # Returns - * - * Parsed block options as a `GetBlockOptions` struct. - * @param {any} options - * @returns {getBlockOptions} - */ - get_block_options(options: any): getBlockOptions; - /** - * Retrieves block information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} - */ - get_block(options?: getBlockOptions): Promise; - /** - * JavaScript Alias for the `get_block`. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} - */ - chain_get_block(options?: getBlockOptions): Promise; - /** - * Parses dictionary item options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing dictionary item options to be parsed. - * - * # Returns - * - * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. - * @param {any} options - * @returns {getDictionaryItemOptions} - */ - get_dictionary_item_options(options: any): getDictionaryItemOptions; - /** - * Retrieves dictionary item information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - get_dictionary_item(options?: getDictionaryItemOptions): Promise; - /** - * JavaScript Alias for `get_dictionary_item` - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - state_get_dictionary_item(options?: getDictionaryItemOptions): Promise; - /** - * @param {any} options - * @returns {getEraInfoOptions} - */ - get_era_info_options(options: any): getEraInfoOptions; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_era_info(options?: getEraInfoOptions): Promise; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; - /** - * Retrieves peers asynchronously. - * - * # Arguments - * - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Lists available RPCs using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the listing process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - list_rpcs(verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JavaScript function for transactioning with deserialized parameters. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Session parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. - * - * # Returns - * - * A result containing PutTransactionResult or a JsError. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {PublicKey} validator_key + * @param {PublicKey} delegator_key + * @param {bigint} block_height + * @param {string | undefined} [node_address] + * @returns {Promise} */ - transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + get_binary_delegator_reward_by_block_height(validator_key: PublicKey, delegator_key: PublicKey, block_height: bigint, node_address?: string): Promise; /** - * JS function for `make_deploy`. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. - * - * # Returns - * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * @param {PublicKey} validator_key + * @param {PublicKey} delegator_key + * @param {BlockHash} block_hash + * @param {string | undefined} [node_address] + * @returns {Promise} */ - make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; + get_binary_delegator_reward_by_block_hash(validator_key: PublicKey, delegator_key: PublicKey, block_hash: BlockHash, node_address?: string): Promise; /** - * JS function for `sign_deploy`. - * - * # Arguments - * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. - * - * # Returns - * - * The signed `Deploy`. - * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} + * @param {RecordId} record_id + * @param {Uint8Array} key + * @param {string | undefined} [node_address] + * @returns {Promise} */ - sign_deploy(deploy: Deploy, secret_key: string): Deploy; + get_binary_read_record(record_id: RecordId, key: Uint8Array, node_address?: string): Promise; /** - * Deserialize query_contract_dict_options from a JavaScript object. - * @param {any} options - * @returns {queryContractDictOptions} + * @param {Key} key + * @param {(string)[]} path + * @param {string | undefined} [node_address] + * @returns {Promise} */ - query_contract_dict_options(options: any): queryContractDictOptions; + get_binary_global_state_item(key: Key, path: (string)[], node_address?: string): Promise; /** - * JavaScript function for query_contract_dict with deserialized options. - * @param {queryContractDictOptions | undefined} [options] - * @returns {Promise} + * @param {Digest} state_root_hash + * @param {Key} key + * @param {(string)[]} path + * @param {string | undefined} [node_address] + * @returns {Promise} */ - query_contract_dict(options?: queryContractDictOptions): Promise; + get_binary_global_state_item_by_state_root_hash(state_root_hash: Digest, key: Key, path: (string)[], node_address?: string): Promise; /** - * Puts a transaction using the provided options. - * - * # Arguments - * - * * `transaction` - The `Transaction` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the transaction process. - * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {BlockHash} block_hash + * @param {Key} key + * @param {(string)[]} path + * @param {string | undefined} [node_address] + * @returns {Promise} */ - put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; + get_binary_global_state_item_by_block_hash(block_hash: BlockHash, key: Key, path: (string)[], node_address?: string): Promise; + /** + * @param {bigint} block_height + * @param {Key} key + * @param {(string)[]} path + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_global_state_item_by_block_height(block_height: bigint, key: Key, path: (string)[], node_address?: string): Promise; /** - * JavaScript Alias for `put_transaction`. * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - account_put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; + get_binary_try_accept_transaction(transaction: Transaction, node_address?: string): Promise; /** - * This function allows executing a transaction speculatively. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - Transactionment parameters for the transaction. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {Transaction} transaction + * @param {string | undefined} [node_address] + * @returns {Promise} */ - speculative_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + get_binary_try_speculative_execution(transaction: Transaction, node_address?: string): Promise; /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; + get_binary_protocol_version(node_address?: string): Promise; /** * This function allows executing a deploy speculatively. * @@ -2982,345 +3074,253 @@ export class SDK { */ transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for speculative transfer. - * - * # Arguments - * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JS function for transaction transferring funds. + * Parses balance options from a JsValue. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). + * * `options` - A JsValue containing balance options to be parsed. * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} */ - transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + get_balance_options(options: any): getBalanceOptions; /** - * Installs a smart contract with the specified parameters and returns the result. + * Retrieves balance information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the installation. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; + get_balance(options?: getBalanceOptions): Promise; /** - * JavaScript function for deploying with deserialized parameters. + * JavaScript Alias for `get_balance`. * * # Arguments * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + state_get_balance(options?: getBalanceOptions): Promise; /** - * Parses query balance options from a JsValue. + * Parses block transfers options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `options` - A JsValue containing block transfers options to be parsed. * * # Returns * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. * @param {any} options - * @returns {queryBalanceDetailsOptions} + * @returns {getBlockTransfersOptions} */ - query_balance_details_options(options: any): queryBalanceDetailsOptions; + get_block_transfers_options(options: any): getBlockTransfersOptions; /** - * Retrieves balance information using the provided options. + * Retrieves block transfers information using the provided options. * * # Arguments * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - query_balance_details(options?: queryBalanceDetailsOptions): Promise; + get_block_transfers(options?: getBlockTransfersOptions): Promise; /** - * JS function for speculative transfer transaction. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; /** - * JS function for `make_transaction`. + * Parses dictionary item options from a JsValue. * * # Arguments * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. + * * `options` - A JsValue containing dictionary item options to be parsed. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @returns {Transaction} + * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * @param {any} options + * @returns {getDictionaryItemOptions} */ - make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; + get_dictionary_item_options(options: any): getDictionaryItemOptions; /** - * JS function for `make_transfer_transaction`. + * Retrieves dictionary item information using the provided options. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. + * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @returns {Transaction} + * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} */ - make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; + get_dictionary_item(options?: getDictionaryItemOptions): Promise; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias + * JavaScript Alias for `get_dictionary_item` + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} + */ + state_get_dictionary_item(options?: getDictionaryItemOptions): Promise; + /** + * Parses era summary options from a JsValue. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - A JsValue containing era summary options to be parsed. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * Parsed era summary options as a `GetEraSummaryOptions` struct. + * @param {any} options + * @returns {getEraSummaryOptions} */ - watchDeploy(events_url: string, timeout_duration?: number): Watcher; + get_era_summary_options(options: any): getEraSummaryOptions; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Retrieves era summary information using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - watchTransaction(events_url: string, timeout_duration?: number): Watcher; + get_era_summary(options?: getEraSummaryOptions): Promise; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_era_summary(options?: getEraSummaryOptions): Promise; + /** + * Retrieves validator changes using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; + get_validator_changes(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_validator_change(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Parses query global state options from a JsValue. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - A JsValue containing query global state options to be parsed. * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} */ - waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; + query_global_state_options(options: any): queryGlobalStateOptions; /** - * Calls a smart contract entry point with the specified parameters and returns the result. + * Retrieves global state information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the call. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} */ - call_entrypoint_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; + query_global_state(options?: queryGlobalStateOptions): Promise; /** - * Installs a smart contract with the specified parameters and returns the result. + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecDeployOptions} + */ + get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; + /** + * JS function for speculative execution. * * # Arguments - *. - * * `transaction_params` - Transaction parameters. - * * `transaction_bytes` - Transaction Bytes to install - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * * `options` - The options for speculative execution. * - * # Errors + * # Returns * - * Returns a `JsError` if there is an error during the installation. - * @param {TransactionStrParams} transaction_params - * @param {Bytes} transaction_bytes - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} */ - install(transaction_params: TransactionStrParams, transaction_bytes: Bytes, rpc_address?: string): Promise; + speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; + /** + * Deserialize query_contract_dict_options from a JavaScript object. + * @param {any} options + * @returns {queryContractDictOptions} + */ + query_contract_dict_options(options: any): queryContractDictOptions; + /** + * JavaScript function for query_contract_dict with deserialized options. + * @param {queryContractDictOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_dict(options?: queryContractDictOptions): Promise; } export class SessionStrParams { free(): void; @@ -3570,9 +3570,11 @@ export class TransactionBuilderParams { /** * @param {Bytes | undefined} [transaction_bytes] * @param {boolean | undefined} [is_install_upgrade] + * @param {bigint | undefined} [transferred_value] + * @param {Bytes | undefined} [seed] * @returns {TransactionBuilderParams} */ - static newSession(transaction_bytes?: Bytes, is_install_upgrade?: boolean): TransactionBuilderParams; + static newSession(transaction_bytes?: Bytes, is_install_upgrade?: boolean, transferred_value?: bigint, seed?: Bytes): TransactionBuilderParams; /** * @param {URef | undefined} maybe_source * @param {TransferTarget} target @@ -3584,29 +3586,33 @@ export class TransactionBuilderParams { /** * @param {AddressableEntityHash} entity_hash * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntity(entity_hash: AddressableEntityHash, entry_point: string): TransactionBuilderParams; + static newInvocableEntity(entity_hash: AddressableEntityHash, entry_point: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {string} entity_alias * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntityAlias(entity_alias: string, entry_point: string): TransactionBuilderParams; + static newInvocableEntityAlias(entity_alias: string, entry_point: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {PackageHash} package_hash * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackage(package_hash: PackageHash, entry_point: string, maybe_entity_version?: string): TransactionBuilderParams; + static newPackage(package_hash: PackageHash, entry_point: string, maybe_entity_version?: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {string} package_alias * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackageAlias(package_alias: string, entry_point: string, maybe_entity_version?: string): TransactionBuilderParams; + static newPackageAlias(package_alias: string, entry_point: string, maybe_entity_version?: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {PublicKey} public_key * @param {number} delegation_rate @@ -3720,8 +3726,11 @@ export class TransactionStrParams { * @param {string | undefined} [gas_price_tolerance] * @param {string | undefined} [receipt] * @param {boolean | undefined} [standard_payment] + * @param {string | undefined} [transferred_value] + * @param {string | undefined} [session_entry_point] + * @param {Bytes | undefined} [chunked_args] */ - constructor(chain_name: string, initiator_addr?: string, secret_key?: string, timestamp?: string, ttl?: string, session_args_simple?: (string)[], session_args_json?: string, pricing_mode?: PricingMode, additional_computation_factor?: string, payment_amount?: string, gas_price_tolerance?: string, receipt?: string, standard_payment?: boolean); + constructor(chain_name: string, initiator_addr?: string, secret_key?: string, timestamp?: string, ttl?: string, session_args_simple?: (string)[], session_args_json?: string, pricing_mode?: PricingMode, additional_computation_factor?: string, payment_amount?: string, gas_price_tolerance?: string, receipt?: string, standard_payment?: boolean, transferred_value?: string, session_entry_point?: string, chunked_args?: Bytes); /** * @param {string} chain_name * @param {string | undefined} [initiator_addr] @@ -3734,6 +3743,7 @@ export class TransactionStrParams { setDefaultTTL(): void; additional_computation_factor: string; chain_name: string; + chunked_args: Bytes; gas_price_tolerance: string; initiator_addr: string; payment_amount: string; @@ -3742,8 +3752,10 @@ export class TransactionStrParams { secret_key: string; session_args_json: string; session_args_simple: (string)[]; + session_entry_point: string; standard_payment: boolean; timestamp?: string; + transferred_value: string; ttl?: string; } export class TransferAddr { diff --git a/pkg-nodejs/casper_rust_wasm_sdk.js b/pkg-nodejs/casper_rust_wasm_sdk.js index e39b1b18c..9ccc9961e 100644 --- a/pkg-nodejs/casper_rust_wasm_sdk.js +++ b/pkg-nodejs/casper_rust_wasm_sdk.js @@ -187,26 +187,19 @@ function makeMutClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_38(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae2e6541fe204983(arg0, arg1); + wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd1bf6ecddece6326(arg0, arg1); } function __wbg_adapter_41(arg0, arg1, arg2) { - wasm.closure969_externref_shim(arg0, arg1, arg2); + wasm.closure958_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_48(arg0, arg1, arg2) { - wasm.closure1166_externref_shim(arg0, arg1, arg2); + wasm.closure1148_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_51(arg0, arg1, arg2) { - wasm.closure1174_externref_shim(arg0, arg1, arg2); -} - -function passArray8ToWasm0(arg, malloc) { - const ptr = malloc(arg.length * 1, 1) >>> 0; - getUint8ArrayMemory0().set(arg, ptr / 1); - WASM_VECTOR_LEN = arg.length; - return ptr; + wasm.closure1160_externref_shim(arg0, arg1, arg2); } function takeFromExternrefTable0(idx) { @@ -215,9 +208,11 @@ function takeFromExternrefTable0(idx) { return value; } -function getArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); +function passArray8ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 1, 1) >>> 0; + getUint8ArrayMemory0().set(arg, ptr / 1); + WASM_VECTOR_LEN = arg.length; + return ptr; } function _assertClass(instance, klass) { @@ -232,6 +227,16 @@ function addToExternrefTable0(obj) { wasm.__wbindgen_export_2.set(idx, obj); return idx; } + +function passArrayJsValueToWasm0(array, malloc) { + const ptr = malloc(array.length * 4, 4) >>> 0; + const mem = getDataViewMemory0(); + for (let i = 0; i < array.length; i++) { + mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); + } + WASM_VECTOR_LEN = array.length; + return ptr; +} /** * Converts a hexadecimal string to a regular string. * @@ -260,6 +265,10 @@ module.exports.hexToString = function(hex_string) { } }; +function getArrayU8FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); +} /** * Converts a hexadecimal string to a Uint8Array. * @@ -529,14 +538,15 @@ module.exports.makeDictionaryItemKey = function(key, value) { } }; -function passArrayJsValueToWasm0(array, malloc) { - const ptr = malloc(array.length * 4, 4) >>> 0; +function getArrayJsValueFromWasm0(ptr, len) { + ptr = ptr >>> 0; const mem = getDataViewMemory0(); - for (let i = 0; i < array.length; i++) { - mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); + const result = []; + for (let i = ptr; i < ptr + 4 * len; i += 4) { + result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); } - WASM_VECTOR_LEN = array.length; - return ptr; + wasm.__externref_drop_slice(ptr, len); + return result; } function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } @@ -549,19 +559,8 @@ function handleError(f, args) { wasm.__wbindgen_exn_store(idx); } } - -function getArrayJsValueFromWasm0(ptr, len) { - ptr = ptr >>> 0; - const mem = getDataViewMemory0(); - const result = []; - for (let i = ptr; i < ptr + 4 * len; i += 4) { - result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); - } - wasm.__externref_drop_slice(ptr, len); - return result; -} -function __wbg_adapter_1205(arg0, arg1, arg2, arg3) { - wasm.closure1724_externref_shim(arg0, arg1, arg2, arg3); +function __wbg_adapter_1211(arg0, arg1, arg2, arg3) { + wasm.closure1697_externref_shim(arg0, arg1, arg2, arg3); } module.exports.PricingMode = Object.freeze({ Fixed:0,"0":"Fixed",Classic:1,"1":"Classic",Reserved:2,"2":"Reserved", }); @@ -2847,7 +2846,7 @@ class EntityIdentifier { static fromPublicKey(key) { _assertClass(key, PublicKey); var ptr0 = key.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromPublicKey(ptr0); + const ret = wasm.entityidentifier_fromPublicKey(ptr0); return EntityIdentifier.__wrap(ret); } /** @@ -2857,7 +2856,7 @@ class EntityIdentifier { static fromAccountHash(account_hash) { _assertClass(account_hash, AccountHash); var ptr0 = account_hash.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromAccountHash(ptr0); + const ret = wasm.entityidentifier_fromAccountHash(ptr0); return EntityIdentifier.__wrap(ret); } /** @@ -5775,7 +5774,7 @@ class PurseIdentifier { constructor(key) { _assertClass(key, PublicKey); var ptr0 = key.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromPublicKey(ptr0); + const ret = wasm.purseidentifier_fromPublicKey(ptr0); this.__wbg_ptr = ret >>> 0; PurseIdentifierFinalization.register(this, this.__wbg_ptr, this); return this; @@ -5787,7 +5786,7 @@ class PurseIdentifier { static fromAccountHash(account_hash) { _assertClass(account_hash, AccountHash); var ptr0 = account_hash.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromAccountHash(ptr0); + const ret = wasm.purseidentifier_fromAccountHash(ptr0); return PurseIdentifier.__wrap(ret); } /** @@ -6163,6 +6162,96 @@ class SDK { const ptr = this.__destroy_into_raw(); wasm.__wbg_sdk_free(ptr, 0); } + /** + * Parses transaction options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing transaction options to be parsed. + * + * # Returns + * + * Parsed transaction options as a `GetTransactionOptions` struct. + * @param {any} options + * @returns {getTransactionOptions} + */ + get_transaction_options(options) { + const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getTransactionOptions.__wrap(ret[0]); + } + /** + * Retrieves transaction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + get_transaction(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getTransactionOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + info_get_transaction(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getTransactionOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} + */ + get_speculative_exec_options(options) { + const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getSpeculativeExecTxnOptions.__wrap(ret[0]); + } + /** + * JS function for speculative execution. + * + * # Arguments + * + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecTxnOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + return ret; + } /** * @param {any} options * @returns {getAccountOptions} @@ -6223,566 +6312,615 @@ class SDK { return ret; } /** - * Parses balance options from a JsValue. + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. * @param {any} options - * @returns {getBalanceOptions} + * @returns {getAuctionInfoOptions} */ - get_balance_options(options) { - const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); + get_auction_info_options(options) { + const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBalanceOptions.__wrap(ret[0]); + return getAuctionInfoOptions.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * Retrieves auction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - get_balance(options) { + get_auction_info(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); + _assertClass(options, getAuctionInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); return ret; } /** - * JavaScript Alias for `get_balance`. - * - * # Arguments - * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - state_get_balance(options) { + state_get_auction_info_js_alias(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); + _assertClass(options, getAuctionInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); return ret; } /** - * Asynchronously retrieves the chainspec. + * Parses deploy options from a JsValue. * * # Arguments * - * * `verbosity` - An optional `Verbosity` parameter. - * * `rpc_address` - An optional rpc address as a string. + * * `options` - A JsValue containing deploy options to be parsed. * * # Returns * - * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} */ - info_get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; + get_deploy_options(options) { + const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getDeployOptions.__wrap(ret[0]); } /** - * Retrieves node status information using the provided options. + * Retrieves deploy information using the provided options. * * # Arguments * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - get_node_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Parses query global state options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query global state options to be parsed. - * - * # Returns - * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. - * @param {any} options - * @returns {queryGlobalStateOptions} - */ - query_global_state_options(options) { - const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); + get_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDeployOptions); + ptr0 = options.__destroy_into_raw(); } - return queryGlobalStateOptions.__wrap(ret[0]); + const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + return ret; } /** - * Retrieves global state information using the provided options. - * - * # Arguments - * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - query_global_state(options) { + info_get_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryGlobalStateOptions); + _assertClass(options, getDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * Parses block transfers options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing block transfers options to be parsed. - * - * # Returns - * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. * @param {any} options - * @returns {getBlockTransfersOptions} + * @returns {getEntityOptions} */ - get_block_transfers_options(options) { - const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); + get_entity_options(options) { + const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBlockTransfersOptions.__wrap(ret[0]); + return getEntityOptions.__wrap(ret[0]); } /** - * Retrieves block transfers information using the provided options. + * Retrieves entity information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: + * - `entity_identifier`: Identifier for the entity. + * - `entity_identifier_as_string`: String representation of the entity identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - get_block_transfers(options) { + get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block_transfers(options) { + state_get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * Parses deploy options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing deploy options to be parsed. - * - * # Returns - * - * Parsed deploy options as a `GetDeployOptions` struct. * @param {any} options - * @returns {getDeployOptions} + * @returns {getEraInfoOptions} */ - get_deploy_options(options) { - const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); + get_era_info_options(options) { + const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getDeployOptions.__wrap(ret[0]); + return getEraInfoOptions.__wrap(ret[0]); } /** - * Retrieves deploy information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} */ - get_deploy(options) { + get_era_info(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getEraInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} */ - info_get_deploy(options) { + chain_get_era_info_by_switch_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getEraInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr, ptr0); return ret; } /** - * Parses state root hash options from a JsValue. + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `options` - A JsValue containing state root hash options to be parsed. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * Parsed state root hash options as a `GetStateRootHashOptions` struct. - * @param {any} options - * @returns {getStateRootHashOptions} + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_state_root_hash_options(options) { - const ret = wasm.sdk_get_state_root_hash_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getStateRootHashOptions.__wrap(ret[0]); + deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return ret; } /** - * Retrieves state root hash information using the provided options. + * Retrieves peers asynchronously. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_state_root_hash(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getStateRootHashOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_state_root_hash(this.__wbg_ptr, ptr0); + get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Lists available RPCs using the provided options. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the listing process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - chain_get_state_root_hash(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getStateRootHashOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr, ptr0); + list_rpcs(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Parses transaction options from a JsValue. + * JS function for `make_deploy`. * * # Arguments * - * * `options` - A JsValue containing transaction options to be parsed. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. * * # Returns * - * Parsed transaction options as a `GetTransactionOptions` struct. - * @param {any} options - * @returns {getTransactionOptions} + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - get_transaction_options(options) { - const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); + make_deploy(deploy_params, session_params, payment_params) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getTransactionOptions.__wrap(ret[0]); + return Deploy.__wrap(ret[0]); } /** - * Retrieves transaction information using the provided options. + * JS function for `sign_deploy`. * * # Arguments * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} - */ - get_transaction(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} */ - info_get_transaction(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); - return ret; + sign_deploy(deploy, secret_key) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); } /** - * Parses query balance options from a JsValue. + * JS function for `make_transaction`. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * Parsed query balance options as a `QueryBalanceOptions` struct. - * @param {any} options - * @returns {queryBalanceOptions} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} */ - query_balance_options(options) { - const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); + make_transaction(builder_params, transaction_params) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryBalanceOptions.__wrap(ret[0]); + return Transaction.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * JS function for `sign_transaction`. * * # Arguments * - * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceOptions | undefined} [options] - * @returns {Promise} + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} */ - query_balance(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryBalanceOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); - return ret; + sign_transaction(transaction, secret_key) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); + return Transaction.__wrap(ret); } /** - * Get options for speculative execution from a JavaScript value. + * Deserialize query_contract_key_options from a JavaScript object. * @param {any} options - * @returns {getSpeculativeExecTxnOptions} + * @returns {queryContractKeyOptions} */ - get_speculative_exec_options(options) { - const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); + query_contract_key_options(options) { + const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getSpeculativeExecTxnOptions.__wrap(ret[0]); + return queryContractKeyOptions.__wrap(ret[0]); } /** - * JS function for speculative execution. + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_key(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractKeyOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Puts a deploy using the provided options. * * # Arguments * - * * `options` - The options for speculative execution. + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - speculative_exec(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecTxnOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); return ret; } /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecDeployOptions} + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_speculative_exec_deploy_options(options) { - const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getSpeculativeExecDeployOptions.__wrap(ret[0]); + account_put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; } /** - * JS function for speculative execution. + * JS function for speculative transfer transaction. * * # Arguments * - * * `options` - The options for speculative execution. + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - speculative_exec_deploy(options) { + speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecDeployOptions); - ptr0 = options.__destroy_into_raw(); + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); } - const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); return ret; } /** - * JS function for `make_transfer`. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `amount` - The transfer amount. - * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. * * `deploy_params` - The deploy parameters. - * * `payment_params` - The payment parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return ret; + } + /** + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + *. + * * `transaction_params` - Transaction parameters. + * * `transaction_bytes` - Transaction Bytes to install + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {TransactionStrParams} transaction_params + * @param {Bytes} transaction_bytes + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + install(transaction_params, transaction_bytes, rpc_address) { + _assertClass(transaction_params, TransactionStrParams); + var ptr0 = transaction_params.__destroy_into_raw(); + _assertClass(transaction_bytes, Bytes); + var ptr1 = transaction_bytes.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + return ret; + } + /** + * JS function for speculative transfer. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id * @param {DeployStrParams} deploy_params * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -6793,305 +6931,321 @@ class SDK { var ptr3 = deploy_params.__destroy_into_raw(); _assertClass(payment_params, PaymentStrParams); var ptr4 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Deploy.__wrap(ret[0]); + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; } /** - * JS function for `sign_transaction`. + * Puts a transaction using the provided options. * * # Arguments * - * * `transaction` - The transaction to sign. - * * `secret_key` - The secret key for signing. + * * `transaction` - The `Transaction` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * The signed `Transaction`. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the transaction process. * @param {Transaction} transaction - * @param {string} secret_key - * @returns {Transaction} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - sign_transaction(transaction, secret_key) { + put_transaction(transaction, verbosity, rpc_address) { _assertClass(transaction, Transaction); var ptr0 = transaction.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); - return Transaction.__wrap(ret); - } - /** - * @param {string | undefined} [rpc_address] - * @param {string | undefined} [node_address] - * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address, node_address, verbosity) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_new(ptr0, len0, ptr1, len1, isLikeNone(verbosity) ? 3 : verbosity); - this.__wbg_ptr = ret >>> 0; - SDKFinalization.register(this, this.__wbg_ptr, this); - return this; - } - /** - * @param {string | undefined} [rpc_address] - * @returns {string} - */ - getRPCAddress(rpc_address) { - let deferred2_0; - let deferred2_1; - try { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); - deferred2_0 = ret[0]; - deferred2_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); - } - } - /** - * @param {string | undefined} [rpc_address] - */ - setRPCAddress(rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } - } - /** - * @param {string | undefined} [node_address] - * @returns {string} - */ - getNodeAddress(node_address) { - let deferred2_0; - let deferred2_1; - try { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_getNodeAddress(this.__wbg_ptr, ptr0, len0); - deferred2_0 = ret[0]; - deferred2_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); - } - } - /** - * @param {string | undefined} [node_address] - */ - setNodeAddress(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_setNodeAddress(this.__wbg_ptr, ptr0, len0); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } + const ret = wasm.sdk_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; } /** + * JavaScript Alias for `put_transaction`. + * @param {Transaction} transaction * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - getVerbosity(verbosity) { - const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + account_put_transaction(transaction, verbosity, rpc_address) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); return ret; } /** - * @param {Verbosity | undefined} [verbosity] + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - setVerbosity(verbosity) { - const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } + watchDeploy(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); } /** - * Parses auction info options from a JsValue. + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. - * @param {any} options - * @returns {getAuctionInfoOptions} + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - get_auction_info_options(options) { - const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getAuctionInfoOptions.__wrap(ret[0]); + watchTransaction(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); } /** - * Retrieves auction information using the provided options. + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - get_auction_info(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); + waitDeploy(events_url, deploy_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); return ret; } /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - state_get_auction_info_js_alias(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); + waitTransaction(events_url, target_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); return ret; } /** - * @param {any} options - * @returns {getEntityOptions} - */ - get_entity_options(options) { - const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getEntityOptions.__wrap(ret[0]); - } - /** - * Retrieves entity information using the provided options. - * - * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: - * - `entity_identifier`: Identifier for the entity. - * - `entity_identifier_as_string`: String representation of the entity identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Transaction Builder parameters. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_entity(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); + call_entrypoint(builder_params, transaction_params, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); return ret; } /** - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - state_get_entity(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); + install_deploy(deploy_params, session_params, payment_amount, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); return ret; } /** - * Parses era summary options from a JsValue. + * Parses block options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing era summary options to be parsed. + * * `options` - A JsValue containing block options to be parsed. * * # Returns * - * Parsed era summary options as a `GetEraSummaryOptions` struct. + * Parsed block options as a `GetBlockOptions` struct. * @param {any} options - * @returns {getEraSummaryOptions} + * @returns {getBlockOptions} */ - get_era_summary_options(options) { - const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); + get_block_options(options) { + const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getEraSummaryOptions.__wrap(ret[0]); + return getBlockOptions.__wrap(ret[0]); } /** - * Retrieves era summary information using the provided options. + * Retrieves block information using the provided options. * * # Arguments * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary(options) { + get_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); + _assertClass(options, getBlockOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for the `get_block`. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - chain_get_era_summary(options) { + chain_get_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); + _assertClass(options, getBlockOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves validator changes using the provided options. + * Asynchronously retrieves the chainspec. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` parameter. + * * `rpc_address` - An optional rpc address as a string. + * + * # Returns + * + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Retrieves node status information using the provided options. * * # Arguments * @@ -7100,283 +7254,692 @@ class SDK { * * # Returns * - * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - get_validator_changes(verbosity, rpc_address) { + get_node_status(verbosity, rpc_address) { var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - info_get_validator_change(verbosity, rpc_address) { + info_get_status(verbosity, rpc_address) { var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Deserialize query_contract_key_options from a JavaScript object. + * Parses state root hash options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing state root hash options to be parsed. + * + * # Returns + * + * Parsed state root hash options as a `GetStateRootHashOptions` struct. * @param {any} options - * @returns {queryContractKeyOptions} + * @returns {getStateRootHashOptions} */ - query_contract_key_options(options) { - const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); + get_state_root_hash_options(options) { + const ret = wasm.sdk_get_state_root_hash_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryContractKeyOptions.__wrap(ret[0]); + return getStateRootHashOptions.__wrap(ret[0]); } /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} + * Retrieves state root hash information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - query_contract_key(options) { + get_state_root_hash(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryContractKeyOptions); + _assertClass(options, getStateRootHashOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_latest_switch_block_header(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_latest_switch_block_header(this.__wbg_ptr, ptr0, len0); - return ret; - } - /** - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_latest_block_header(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_latest_block_header(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_state_root_hash(this.__wbg_ptr, ptr0); return ret; } /** - * @param {bigint} height - * @param {string | undefined} [node_address] - * @returns {Promise} + * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - get_binary_block_header_by_height(height, node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_block_header_by_height(this.__wbg_ptr, height, ptr0, len0); + chain_get_state_root_hash(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getStateRootHashOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr, ptr0); return ret; } /** - * @param {BlockHash} block_hash - * @param {string | undefined} [node_address] - * @returns {Promise} + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceOptions` struct. + * @param {any} options + * @returns {queryBalanceOptions} */ - get_binary_block_header_by_hash(block_hash, node_address) { - _assertClass(block_hash, BlockHash); - var ptr0 = block_hash.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_block_header_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); - return ret; + query_balance_options(options) { + const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryBalanceOptions.__wrap(ret[0]); } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_binary_latest_signed_block(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_latest_signed_block(this.__wbg_ptr, ptr0, len0); + query_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); return ret; } /** - * @param {bigint} height - * @param {string | undefined} [node_address] - * @returns {Promise} + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * @param {any} options + * @returns {queryBalanceDetailsOptions} */ - get_binary_signed_block_by_height(height, node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_signed_block_by_height(this.__wbg_ptr, height, ptr0, len0); - return ret; + query_balance_details_options(options) { + const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryBalanceDetailsOptions.__wrap(ret[0]); } /** - * @param {BlockHash} block_hash - * @param {string | undefined} [node_address] - * @returns {Promise} + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} */ - get_binary_signed_block_by_hash(block_hash, node_address) { - _assertClass(block_hash, BlockHash); - var ptr0 = block_hash.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_signed_block_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); + query_balance_details(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryBalanceDetailsOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); return ret; } /** - * @param {TransactionHash} hash - * @param {boolean} with_finalized_approvals - * @param {string | undefined} [node_address] - * @returns {Promise} + * This function allows executing a transaction speculatively. + * + * # Arguments + * + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - Transactionment parameters for the transaction. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. + * + * # Returns + * + * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_binary_transaction_by_hash(hash, with_finalized_approvals, node_address) { - _assertClass(hash, TransactionHash); - var ptr0 = hash.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_transaction_by_hash(this.__wbg_ptr, ptr0, with_finalized_approvals, ptr1, len1); + speculative_transaction(builder_params, transaction_params, verbosity, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); return ret; } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * JavaScript function for transactioning with deserialized parameters. + * + * # Arguments + * + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Session parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. + * + * # Returns + * + * A result containing PutTransactionResult or a JsError. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_binary_peers(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_peers(this.__wbg_ptr, ptr0, len0); + transaction(builder_params, transaction_params, verbosity, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); return ret; } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * JS function for transaction transferring funds. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_binary_uptime(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_uptime(this.__wbg_ptr, ptr0, len0); + transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { + let ptr0 = 0; + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); + } + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); return ret; } /** + * JS function for `make_transfer`. + * + * # Arguments + * + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return Deploy.__wrap(ret[0]); + } + /** + * JS function for `make_transfer_transaction`. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. + * + * # Returns + * + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} + */ + make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { + let ptr0 = 0; + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); + } + const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return Transaction.__wrap(ret[0]); + } + /** + * @param {string | undefined} [rpc_address] * @param {string | undefined} [node_address] - * @returns {Promise} + * @param {Verbosity | undefined} [verbosity] */ - get_binary_last_progress(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + constructor(rpc_address, node_address, verbosity) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_last_progress(this.__wbg_ptr, ptr0, len0); - return ret; + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_new(ptr0, len0, ptr1, len1, isLikeNone(verbosity) ? 3 : verbosity); + this.__wbg_ptr = ret >>> 0; + SDKFinalization.register(this, this.__wbg_ptr, this); + return this; } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * @param {string | undefined} [rpc_address] + * @returns {string} */ - get_binary_reactor_state(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + getRPCAddress(rpc_address) { + let deferred2_0; + let deferred2_1; + try { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); + deferred2_0 = ret[0]; + deferred2_1 = ret[1]; + return getStringFromWasm0(ret[0], ret[1]); + } finally { + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } + } + /** + * @param {string | undefined} [rpc_address] + */ + setRPCAddress(rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_reactor_state(this.__wbg_ptr, ptr0, len0); - return ret; + const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } } /** * @param {string | undefined} [node_address] - * @returns {Promise} + * @returns {string} */ - get_binary_network_name(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_network_name(this.__wbg_ptr, ptr0, len0); - return ret; + getNodeAddress(node_address) { + let deferred2_0; + let deferred2_1; + try { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_getNodeAddress(this.__wbg_ptr, ptr0, len0); + deferred2_0 = ret[0]; + deferred2_1 = ret[1]; + return getStringFromWasm0(ret[0], ret[1]); + } finally { + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } } /** * @param {string | undefined} [node_address] - * @returns {Promise} */ - get_binary_consensus_validator_changes(node_address) { + setNodeAddress(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_consensus_validator_changes(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_setNodeAddress(this.__wbg_ptr, ptr0, len0); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } + /** + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} + */ + getVerbosity(verbosity) { + const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); return ret; } + /** + * @param {Verbosity | undefined} [verbosity] + */ + setVerbosity(verbosity) { + const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } /** * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_block_synchronizer_status(node_address) { + get_binary_latest_switch_block_header(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_block_synchronizer_status(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_latest_switch_block_header(this.__wbg_ptr, ptr0, len0); return ret; } /** * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_available_block_range(node_address) { + get_binary_latest_block_header(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_available_block_range(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_latest_block_header(this.__wbg_ptr, ptr0, len0); return ret; } /** + * @param {bigint} height * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_next_upgrade(node_address) { + get_binary_block_header_by_height(height, node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_next_upgrade(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_block_header_by_height(this.__wbg_ptr, height, ptr0, len0); return ret; } /** + * @param {BlockHash} block_hash * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_consensus_status(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_consensus_status(this.__wbg_ptr, ptr0, len0); + get_binary_block_header_by_hash(block_hash, node_address) { + _assertClass(block_hash, BlockHash); + var ptr0 = block_hash.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_block_header_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); return ret; } /** * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_chainspec_raw_bytes(node_address) { + get_binary_latest_signed_block(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_chainspec_raw_bytes(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_latest_signed_block(this.__wbg_ptr, ptr0, len0); return ret; } /** + * @param {bigint} height * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_node_status(node_address) { + get_binary_signed_block_by_height(height, node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_node_status(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_signed_block_by_height(this.__wbg_ptr, height, ptr0, len0); return ret; } /** - * @param {PublicKey} validator_key - * @param {EraId} era + * @param {BlockHash} block_hash * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_validator_reward_by_era(validator_key, era, node_address) { - _assertClass(validator_key, PublicKey); - var ptr0 = validator_key.__destroy_into_raw(); - _assertClass(era, EraId); - var ptr1 = era.__destroy_into_raw(); - var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; + get_binary_signed_block_by_hash(block_hash, node_address) { + _assertClass(block_hash, BlockHash); + var ptr0 = block_hash.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_signed_block_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); + return ret; + } + /** + * @param {TransactionHash} hash + * @param {boolean} with_finalized_approvals + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_transaction_by_hash(hash, with_finalized_approvals, node_address) { + _assertClass(hash, TransactionHash); + var ptr0 = hash.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_transaction_by_hash(this.__wbg_ptr, ptr0, with_finalized_approvals, ptr1, len1); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_peers(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_peers(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_uptime(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_uptime(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_last_progress(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_last_progress(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_reactor_state(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_reactor_state(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_network_name(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_network_name(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_consensus_validator_changes(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_consensus_validator_changes(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_block_synchronizer_status(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_block_synchronizer_status(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_available_block_range(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_available_block_range(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_next_upgrade(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_next_upgrade(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_consensus_status(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_consensus_status(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_chainspec_raw_bytes(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_chainspec_raw_bytes(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_node_status(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_node_status(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {PublicKey} validator_key + * @param {EraId} era + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_validator_reward_by_era(validator_key, era, node_address) { + _assertClass(validator_key, PublicKey); + var ptr0 = validator_key.__destroy_into_raw(); + _assertClass(era, EraId); + var ptr1 = era.__destroy_into_raw(); + var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; const ret = wasm.sdk_get_binary_validator_reward_by_era(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); return ret; } @@ -7539,491 +8102,53 @@ class SDK { * @param {bigint} block_height * @param {Key} key * @param {(string)[]} path - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_global_state_item_by_block_height(block_height, key, path, node_address) { - _assertClass(key, Key); - var ptr0 = key.__destroy_into_raw(); - const ptr1 = passArrayJsValueToWasm0(path, wasm.__wbindgen_malloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_global_state_item_by_block_height(this.__wbg_ptr, block_height, ptr0, ptr1, len1, ptr2, len2); - return ret; - } - /** - * @param {Transaction} transaction - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_try_accept_transaction(transaction, node_address) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_try_accept_transaction(this.__wbg_ptr, ptr0, ptr1, len1); - return ret; - } - /** - * @param {Transaction} transaction - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_try_speculative_execution(transaction, node_address) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_try_speculative_execution(this.__wbg_ptr, ptr0, ptr1, len1); - return ret; - } - /** - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_protocol_version(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_protocol_version(this.__wbg_ptr, ptr0, len0); - return ret; - } - /** - * Parses block options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing block options to be parsed. - * - * # Returns - * - * Parsed block options as a `GetBlockOptions` struct. - * @param {any} options - * @returns {getBlockOptions} - */ - get_block_options(options) { - const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getBlockOptions.__wrap(ret[0]); - } - /** - * Retrieves block information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} - */ - get_block(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); - return ret; - } - /** - * JavaScript Alias for the `get_block`. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} - */ - chain_get_block(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Parses dictionary item options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing dictionary item options to be parsed. - * - * # Returns - * - * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. - * @param {any} options - * @returns {getDictionaryItemOptions} - */ - get_dictionary_item_options(options) { - const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getDictionaryItemOptions.__wrap(ret[0]); - } - /** - * Retrieves dictionary item information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - get_dictionary_item(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); - return ret; - } - /** - * JavaScript Alias for `get_dictionary_item` - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - state_get_dictionary_item(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {any} options - * @returns {getEraInfoOptions} - */ - get_era_info_options(options) { - const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getEraInfoOptions.__wrap(ret[0]); - } - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_era_info(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEraInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - chain_get_era_info_by_switch_block(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEraInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Retrieves peers asynchronously. - * - * # Arguments - * - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Lists available RPCs using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the listing process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - list_rpcs(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * JavaScript function for transactioning with deserialized parameters. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Session parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. - * - * # Returns - * - * A result containing PutTransactionResult or a JsError. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - transaction(builder_params, transaction_params, verbosity, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); - return ret; - } - /** - * JS function for `make_deploy`. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. - * - * # Returns - * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} - */ - make_deploy(deploy_params, session_params, payment_params) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Deploy.__wrap(ret[0]); - } - /** - * JS function for `sign_deploy`. - * - * # Arguments - * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. - * - * # Returns - * - * The signed `Deploy`. - * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} - */ - sign_deploy(deploy, secret_key) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); - return Deploy.__wrap(ret); - } - /** - * Deserialize query_contract_dict_options from a JavaScript object. - * @param {any} options - * @returns {queryContractDictOptions} - */ - query_contract_dict_options(options) { - const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return queryContractDictOptions.__wrap(ret[0]); - } - /** - * JavaScript function for query_contract_dict with deserialized options. - * @param {queryContractDictOptions | undefined} [options] - * @returns {Promise} - */ - query_contract_dict(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryContractDictOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_global_state_item_by_block_height(block_height, key, path, node_address) { + _assertClass(key, Key); + var ptr0 = key.__destroy_into_raw(); + const ptr1 = passArrayJsValueToWasm0(path, wasm.__wbindgen_malloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_global_state_item_by_block_height(this.__wbg_ptr, block_height, ptr0, ptr1, len1, ptr2, len2); return ret; } /** - * Puts a transaction using the provided options. - * - * # Arguments - * - * * `transaction` - The `Transaction` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the transaction process. * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - put_transaction(transaction, verbosity, rpc_address) { + get_binary_try_accept_transaction(transaction, node_address) { _assertClass(transaction, Transaction); var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + const ret = wasm.sdk_get_binary_try_accept_transaction(this.__wbg_ptr, ptr0, ptr1, len1); return ret; } /** - * JavaScript Alias for `put_transaction`. * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - account_put_transaction(transaction, verbosity, rpc_address) { + get_binary_try_speculative_execution(transaction, node_address) { _assertClass(transaction, Transaction); var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * This function allows executing a transaction speculatively. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - Transactionment parameters for the transaction. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transaction(builder_params, transaction_params, verbosity, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); + const ret = wasm.sdk_get_binary_try_speculative_execution(this.__wbg_ptr, ptr0, ptr1, len1); return ret; } /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - call_entrypoint(builder_params, transaction_params, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + get_binary_protocol_version(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_protocol_version(this.__wbg_ptr, ptr0, len0); return ret; } /** @@ -8101,517 +8226,391 @@ class SDK { return ret; } /** - * JS function for speculative transfer. - * - * # Arguments - * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { - const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - _assertClass(deploy_params, DeployStrParams); - var ptr3 = deploy_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr4 = payment_params.__destroy_into_raw(); - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * JS function for transaction transferring funds. + * Parses balance options from a JsValue. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). + * * `options` - A JsValue containing balance options to be parsed. * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} */ - transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { - let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); + get_balance_options(options) { + const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; + return getBalanceOptions.__wrap(ret[0]); } /** - * Installs a smart contract with the specified parameters and returns the result. + * Retrieves balance information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. * * # Errors - * - * Returns a `JsError` if there is an error during the installation. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - install_deploy(deploy_params, session_params, payment_amount, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * JavaScript function for deploying with deserialized parameters. + * JavaScript Alias for `get_balance`. * * # Arguments * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + state_get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * Parses query balance options from a JsValue. + * Parses block transfers options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `options` - A JsValue containing block transfers options to be parsed. * * # Returns * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. * @param {any} options - * @returns {queryBalanceDetailsOptions} + * @returns {getBlockTransfersOptions} */ - query_balance_details_options(options) { - const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); + get_block_transfers_options(options) { + const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryBalanceDetailsOptions.__wrap(ret[0]); + return getBlockTransfersOptions.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * Retrieves block transfers information using the provided options. * * # Arguments * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - query_balance_details(options) { + get_block_transfers(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryBalanceDetailsOptions); + _assertClass(options, getBlockTransfersOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); return ret; } /** - * JS function for speculative transfer transaction. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { + chain_get_block_transfers(options) { let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); + if (!isLikeNone(options)) { + _assertClass(options, getBlockTransfersOptions); + ptr0 = options.__destroy_into_raw(); } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); return ret; } /** - * JS function for `make_transaction`. + * Parses dictionary item options from a JsValue. * * # Arguments * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. + * * `options` - A JsValue containing dictionary item options to be parsed. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @returns {Transaction} + * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * @param {any} options + * @returns {getDictionaryItemOptions} */ - make_transaction(builder_params, transaction_params) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); + get_dictionary_item_options(options) { + const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Transaction.__wrap(ret[0]); + return getDictionaryItemOptions.__wrap(ret[0]); } /** - * JS function for `make_transfer_transaction`. + * Retrieves dictionary item information using the provided options. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. + * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @returns {Transaction} + * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} */ - make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { + get_dictionary_item(options) { let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); } - const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); + const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); + return ret; + } + /** + * JavaScript Alias for `get_dictionary_item` + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} + */ + state_get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Parses era summary options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing era summary options to be parsed. + * + * # Returns + * + * Parsed era summary options as a `GetEraSummaryOptions` struct. + * @param {any} options + * @returns {getEraSummaryOptions} + */ + get_era_summary_options(options) { + const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Transaction.__wrap(ret[0]); + return getEraSummaryOptions.__wrap(ret[0]); } /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias + * Retrieves era summary information using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} + */ + get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + return ret; + } + /** + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - watchDeploy(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); + chain_get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); + return ret; } /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Retrieves validator changes using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - watchTransaction(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); + get_validator_changes(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; } /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - waitDeploy(events_url, deploy_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + info_get_validator_change(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Parses query global state options from a JsValue. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - A JsValue containing query global state options to be parsed. * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} */ - waitTransaction(events_url, target_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return ret; + query_global_state_options(options) { + const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryGlobalStateOptions.__wrap(ret[0]); } /** - * Calls a smart contract entry point with the specified parameters and returns the result. + * Retrieves global state information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the call. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} */ - call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + query_global_state(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryGlobalStateOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); return ret; } /** - * Installs a smart contract with the specified parameters and returns the result. + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecDeployOptions} + */ + get_speculative_exec_deploy_options(options) { + const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getSpeculativeExecDeployOptions.__wrap(ret[0]); + } + /** + * JS function for speculative execution. * * # Arguments - *. - * * `transaction_params` - Transaction parameters. - * * `transaction_bytes` - Transaction Bytes to install - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * * `options` - The options for speculative execution. * - * # Errors + * # Returns * - * Returns a `JsError` if there is an error during the installation. - * @param {TransactionStrParams} transaction_params - * @param {Bytes} transaction_bytes - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} */ - install(transaction_params, transaction_bytes, rpc_address) { - _assertClass(transaction_params, TransactionStrParams); - var ptr0 = transaction_params.__destroy_into_raw(); - _assertClass(transaction_bytes, Bytes); - var ptr1 = transaction_bytes.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_install(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + speculative_exec_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecDeployOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Deserialize query_contract_dict_options from a JavaScript object. + * @param {any} options + * @returns {queryContractDictOptions} + */ + query_contract_dict_options(options) { + const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryContractDictOptions.__wrap(ret[0]); + } + /** + * JavaScript function for query_contract_dict with deserialized options. + * @param {queryContractDictOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_dict(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractDictOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); return ret; } } @@ -9027,7 +9026,7 @@ class SpeculativeExecTxnResult { * @returns {BlockHash} */ get block_hash() { - const ret = wasm.speculativeexecresult_block_hash(this.__wbg_ptr); + const ret = wasm.speculativeexectxnresult_block_hash(this.__wbg_ptr); return BlockHash.__wrap(ret); } /** @@ -9618,15 +9617,22 @@ class TransactionBuilderParams { /** * @param {Bytes | undefined} [transaction_bytes] * @param {boolean | undefined} [is_install_upgrade] + * @param {bigint | undefined} [transferred_value] + * @param {Bytes | undefined} [seed] * @returns {TransactionBuilderParams} */ - static newSession(transaction_bytes, is_install_upgrade) { + static newSession(transaction_bytes, is_install_upgrade, transferred_value, seed) { let ptr0 = 0; if (!isLikeNone(transaction_bytes)) { _assertClass(transaction_bytes, Bytes); ptr0 = transaction_bytes.__destroy_into_raw(); } - const ret = wasm.transactionbuilderparams_newSession(ptr0, isLikeNone(is_install_upgrade) ? 0xFFFFFF : is_install_upgrade ? 1 : 0); + let ptr1 = 0; + if (!isLikeNone(seed)) { + _assertClass(seed, Bytes); + ptr1 = seed.__destroy_into_raw(); + } + const ret = wasm.transactionbuilderparams_newSession(ptr0, isLikeNone(is_install_upgrade) ? 0xFFFFFF : is_install_upgrade ? 1 : 0, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value, ptr1); return TransactionBuilderParams.__wrap(ret); } /** @@ -9652,59 +9658,63 @@ class TransactionBuilderParams { /** * @param {AddressableEntityHash} entity_hash * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntity(entity_hash, entry_point) { + static newInvocableEntity(entity_hash, entry_point, transferred_value) { _assertClass(entity_hash, AddressableEntityHash); var ptr0 = entity_hash.__destroy_into_raw(); const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newInvocableEntity(ptr0, ptr1, len1); + const ret = wasm.transactionbuilderparams_newInvocableEntity(ptr0, ptr1, len1, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** * @param {string} entity_alias * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntityAlias(entity_alias, entry_point) { + static newInvocableEntityAlias(entity_alias, entry_point, transferred_value) { const ptr0 = passStringToWasm0(entity_alias, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newInvocableEntityAlias(ptr0, len0, ptr1, len1); + const ret = wasm.transactionbuilderparams_newInvocableEntityAlias(ptr0, len0, ptr1, len1, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** * @param {PackageHash} package_hash * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackage(package_hash, entry_point, maybe_entity_version) { + static newPackage(package_hash, entry_point, maybe_entity_version, transferred_value) { _assertClass(package_hash, PackageHash); var ptr0 = package_hash.__destroy_into_raw(); const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; var ptr2 = isLikeNone(maybe_entity_version) ? 0 : passStringToWasm0(maybe_entity_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len2 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newPackage(ptr0, ptr1, len1, ptr2, len2); + const ret = wasm.transactionbuilderparams_newPackage(ptr0, ptr1, len1, ptr2, len2, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** * @param {string} package_alias * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackageAlias(package_alias, entry_point, maybe_entity_version) { + static newPackageAlias(package_alias, entry_point, maybe_entity_version, transferred_value) { const ptr0 = passStringToWasm0(package_alias, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; var ptr2 = isLikeNone(maybe_entity_version) ? 0 : passStringToWasm0(maybe_entity_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len2 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newPackageAlias(ptr0, len0, ptr1, len1, ptr2, len2); + const ret = wasm.transactionbuilderparams_newPackageAlias(ptr0, len0, ptr1, len1, ptr2, len2, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** @@ -10372,8 +10382,11 @@ class TransactionStrParams { * @param {string | undefined} [gas_price_tolerance] * @param {string | undefined} [receipt] * @param {boolean | undefined} [standard_payment] + * @param {string | undefined} [transferred_value] + * @param {string | undefined} [session_entry_point] + * @param {Bytes | undefined} [chunked_args] */ - constructor(chain_name, initiator_addr, secret_key, timestamp, ttl, session_args_simple, session_args_json, pricing_mode, additional_computation_factor, payment_amount, gas_price_tolerance, receipt, standard_payment) { + constructor(chain_name, initiator_addr, secret_key, timestamp, ttl, session_args_simple, session_args_json, pricing_mode, additional_computation_factor, payment_amount, gas_price_tolerance, receipt, standard_payment, transferred_value, session_entry_point, chunked_args) { const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; var ptr1 = isLikeNone(initiator_addr) ? 0 : passStringToWasm0(initiator_addr, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -10396,7 +10409,16 @@ class TransactionStrParams { var len9 = WASM_VECTOR_LEN; var ptr10 = isLikeNone(receipt) ? 0 : passStringToWasm0(receipt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len10 = WASM_VECTOR_LEN; - const ret = wasm.transactionstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(pricing_mode) ? 3 : pricing_mode, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, isLikeNone(standard_payment) ? 0xFFFFFF : standard_payment ? 1 : 0); + var ptr11 = isLikeNone(transferred_value) ? 0 : passStringToWasm0(transferred_value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len11 = WASM_VECTOR_LEN; + var ptr12 = isLikeNone(session_entry_point) ? 0 : passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len12 = WASM_VECTOR_LEN; + let ptr13 = 0; + if (!isLikeNone(chunked_args)) { + _assertClass(chunked_args, Bytes); + ptr13 = chunked_args.__destroy_into_raw(); + } + const ret = wasm.transactionstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(pricing_mode) ? 3 : pricing_mode, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, isLikeNone(standard_payment) ? 0xFFFFFF : standard_payment ? 1 : 0, ptr11, len11, ptr12, len12, ptr13); this.__wbg_ptr = ret >>> 0; TransactionStrParamsFinalization.register(this, this.__wbg_ptr, this); return this; @@ -10667,6 +10689,61 @@ class TransactionStrParams { set standard_payment(standard_payment) { wasm.transactionstrparams_set_standard_payment(this.__wbg_ptr, standard_payment); } + /** + * @returns {string | undefined} + */ + get transferred_value() { + const ret = wasm.transactionstrparams_transferred_value(this.__wbg_ptr); + let v1; + if (ret[0] !== 0) { + v1 = getStringFromWasm0(ret[0], ret[1]).slice(); + wasm.__wbindgen_free(ret[0], ret[1] * 1, 1); + } + return v1; + } + /** + * @param {string} transferred_value + */ + set transferred_value(transferred_value) { + const ptr0 = passStringToWasm0(transferred_value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.transactionstrparams_set_transferred_value(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_entry_point() { + const ret = wasm.transactionstrparams_session_entry_point(this.__wbg_ptr); + let v1; + if (ret[0] !== 0) { + v1 = getStringFromWasm0(ret[0], ret[1]).slice(); + wasm.__wbindgen_free(ret[0], ret[1] * 1, 1); + } + return v1; + } + /** + * @param {string} session_entry_point + */ + set session_entry_point(session_entry_point) { + const ptr0 = passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.transactionstrparams_set_session_entry_point(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Bytes | undefined} + */ + get chunked_args() { + const ret = wasm.transactionstrparams_chunked_args(this.__wbg_ptr); + return ret === 0 ? undefined : Bytes.__wrap(ret); + } + /** + * @param {Bytes} chunked_args + */ + set chunked_args(chunked_args) { + _assertClass(chunked_args, Bytes); + var ptr0 = chunked_args.__destroy_into_raw(); + wasm.transactionstrparams_set_chunked_args(this.__wbg_ptr, ptr0); + } } module.exports.TransactionStrParams = TransactionStrParams; @@ -11338,7 +11415,7 @@ class getAuctionInfoOptions { * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -11350,7 +11427,7 @@ class getAuctionInfoOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12041,7 +12118,7 @@ class getEntityOptions { set entity_identifier_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {string | undefined} @@ -12061,13 +12138,13 @@ class getEntityOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12079,7 +12156,7 @@ class getEntityOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12099,20 +12176,20 @@ class getEntityOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getaccountoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getentityoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getentityoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getEntityOptions = getEntityOptions; @@ -12160,13 +12237,13 @@ class getEraInfoOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12178,7 +12255,7 @@ class getEraInfoOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12198,20 +12275,20 @@ class getEraInfoOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getEraInfoOptions = getEraInfoOptions; @@ -12261,13 +12338,13 @@ class getEraSummaryOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12279,7 +12356,7 @@ class getEraSummaryOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12299,20 +12376,20 @@ class getEraSummaryOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getEraSummaryOptions = getEraSummaryOptions; @@ -12473,7 +12550,7 @@ class getSpeculativeExecTxnOptions { set transaction_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr, ptr0, len0); } /** * The transaction to execute. @@ -12515,14 +12592,14 @@ class getSpeculativeExecTxnOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * The verbosity level for logging. * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** @@ -12530,7 +12607,7 @@ class getSpeculativeExecTxnOptions { * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getSpeculativeExecTxnOptions = getSpeculativeExecTxnOptions; @@ -12580,13 +12657,13 @@ class getStateRootHashOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12598,7 +12675,7 @@ class getStateRootHashOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12618,20 +12695,20 @@ class getStateRootHashOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getStateRootHashOptions = getStateRootHashOptions; @@ -12681,7 +12758,7 @@ class getTransactionOptions { set transaction_hash_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_gettransactionoptions_transaction_hash_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {TransactionHash | undefined} @@ -12705,14 +12782,14 @@ class getTransactionOptions { * @returns {boolean | undefined} */ get finalized_approvals() { - const ret = wasm.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr); + const ret = wasm.__wbg_get_gettransactionoptions_finalized_approvals(this.__wbg_ptr); return ret === 0xFFFFFF ? undefined : ret !== 0; } /** * @param {boolean | undefined} [arg0] */ set finalized_approvals(arg0) { - wasm.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0); + wasm.__wbg_set_gettransactionoptions_finalized_approvals(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0); } /** * @returns {string | undefined} @@ -12732,20 +12809,20 @@ class getTransactionOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_gettransactionoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_gettransactionoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_gettransactionoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getTransactionOptions = getTransactionOptions; @@ -12972,13 +13049,13 @@ class queryBalanceOptions { set purse_identifier_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {PurseIdentifier | undefined} */ get purse_identifier() { - const ret = wasm.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr); return ret === 0 ? undefined : PurseIdentifier.__wrap(ret); } /** @@ -12990,13 +13067,13 @@ class queryBalanceOptions { _assertClass(arg0, PurseIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr, ptr0); } /** * @returns {GlobalStateIdentifier | undefined} */ get global_state_identifier() { - const ret = wasm.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr); return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); } /** @@ -13008,7 +13085,7 @@ class queryBalanceOptions { _assertClass(arg0, GlobalStateIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -13028,13 +13105,13 @@ class queryBalanceOptions { set state_root_hash_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {Digest | undefined} */ get state_root_hash() { - const ret = wasm.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr); return ret === 0 ? undefined : Digest.__wrap(ret); } /** @@ -13046,7 +13123,7 @@ class queryBalanceOptions { _assertClass(arg0, Digest); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -13066,7 +13143,7 @@ class queryBalanceOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {string | undefined} @@ -13086,20 +13163,20 @@ class queryBalanceOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_querybalancedetailsoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.queryBalanceOptions = queryBalanceOptions; @@ -13268,7 +13345,7 @@ class queryContractKeyOptions { * @returns {EntityIdentifier | undefined} */ get entity_identifier() { - const ret = wasm.__wbg_get_getentityoptions_entity_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querycontractkeyoptions_entity_identifier(this.__wbg_ptr); return ret === 0 ? undefined : EntityIdentifier.__wrap(ret); } /** @@ -13280,7 +13357,7 @@ class queryContractKeyOptions { _assertClass(arg0, EntityIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getentityoptions_entity_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querycontractkeyoptions_entity_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -13300,13 +13377,13 @@ class queryContractKeyOptions { set entity_identifier_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querycontractkeyoptions_entity_identifier_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -13318,7 +13395,7 @@ class queryContractKeyOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -13338,7 +13415,7 @@ class queryContractKeyOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {string | undefined} @@ -13358,7 +13435,7 @@ class queryContractKeyOptions { set path_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {Path | undefined} @@ -13629,58 +13706,43 @@ class queryGlobalStateOptions { } module.exports.queryGlobalStateOptions = queryGlobalStateOptions; -module.exports.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { - const ret = arg0.isConnected(); - return ret; -}, arguments) }; - module.exports.__wbindgen_error_new = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return ret; }; -module.exports.__wbindgen_boolean_get = function(arg0) { - const v = arg0; - const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; - return ret; -}; - module.exports.__wbindgen_string_new = function(arg0, arg1) { const ret = getStringFromWasm0(arg0, arg1); return ret; }; -module.exports.__wbg_getblockresult_new = function(arg0) { - const ret = GetBlockResult.__wrap(arg0); +module.exports.__wbg_getdeployresult_new = function(arg0) { + const ret = GetDeployResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getnodestatusresult_new = function(arg0) { - const ret = GetNodeStatusResult.__wrap(arg0); +module.exports.__wbg_puttransactionresult_new = function(arg0) { + const ret = PutTransactionResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getchainspecresult_new = function(arg0) { - const ret = GetChainspecResult.__wrap(arg0); +module.exports.__wbg_getdictionaryitemresult_new = function(arg0) { + const ret = GetDictionaryItemResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { - const ret = arg0.getVersion(); +module.exports.__wbg_querybalanceresult_new = function(arg0) { + const ret = QueryBalanceResult.__wrap(arg0); return ret; -}, arguments) }; +}; -module.exports.__wbindgen_string_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); +module.exports.__wbg_putdeployresult_new = function(arg0) { + const ret = PutDeployResult.__wrap(arg0); + return ret; }; -module.exports.__wbg_puttransactionresult_new = function(arg0) { - const ret = PutTransactionResult.__wrap(arg0); +module.exports.__wbg_getpeersresult_new = function(arg0) { + const ret = GetPeersResult.__wrap(arg0); return ret; }; @@ -13689,33 +13751,39 @@ module.exports.__wbg_getbalanceresult_new = function(arg0) { return ret; }; -module.exports.__wbg_getvalidatorchangesresult_new = function(arg0) { - const ret = GetValidatorChangesResult.__wrap(arg0); +module.exports.__wbg_geterasummaryresult_new = function(arg0) { + const ret = GetEraSummaryResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getpeersresult_new = function(arg0) { - const ret = GetPeersResult.__wrap(arg0); +module.exports.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { + const ret = arg0.requestSwitchAccount(); + return ret; +}, arguments) }; + +module.exports.__wbindgen_boolean_get = function(arg0) { + const v = arg0; + const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; return ret; }; -module.exports.__wbg_putdeployresult_new = function(arg0) { - const ret = PutDeployResult.__wrap(arg0); +module.exports.__wbg_querybalancedetailsresult_new = function(arg0) { + const ret = QueryBalanceDetailsResult.__wrap(arg0); return ret; }; -module.exports.__wbg_listrpcsresult_new = function(arg0) { - const ret = ListRpcsResult.__wrap(arg0); +module.exports.__wbg_getchainspecresult_new = function(arg0) { + const ret = GetChainspecResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getauctioninforesult_new = function(arg0) { - const ret = GetAuctionInfoResult.__wrap(arg0); +module.exports.__wbg_getblockresult_new = function(arg0) { + const ret = GetBlockResult.__wrap(arg0); return ret; }; -module.exports.__wbg_geterasummaryresult_new = function(arg0) { - const ret = GetEraSummaryResult.__wrap(arg0); +module.exports.__wbg_getvalidatorchangesresult_new = function(arg0) { + const ret = GetValidatorChangesResult.__wrap(arg0); return ret; }; @@ -13724,85 +13792,94 @@ module.exports.__wbg_speculativeexecresult_new = function(arg0) { return ret; }; -module.exports.__wbg_getdictionaryitemresult_new = function(arg0) { - const ret = GetDictionaryItemResult.__wrap(arg0); +module.exports.__wbg_geterainforesult_new = function(arg0) { + const ret = GetEraInfoResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getaccountresult_new = function(arg0) { - const ret = GetAccountResult.__wrap(arg0); +module.exports.__wbg_queryglobalstateresult_new = function(arg0) { + const ret = QueryGlobalStateResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getaddressableentityresult_new = function(arg0) { - const ret = GetAddressableEntityResult.__wrap(arg0); +module.exports.__wbg_transaction_new = function(arg0) { + const ret = Transaction.__wrap(arg0); return ret; }; -module.exports.__wbg_gettransactionresult_new = function(arg0) { - const ret = GetTransactionResult.__wrap(arg0); +module.exports.__wbg_speculativeexectxnresult_new = function(arg0) { + const ret = SpeculativeExecTxnResult.__wrap(arg0); return ret; }; -module.exports.__wbg_speculativeexectxnresult_new = function(arg0) { - const ret = SpeculativeExecTxnResult.__wrap(arg0); +module.exports.__wbg_getaddressableentityresult_new = function(arg0) { + const ret = GetAddressableEntityResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getdeployresult_new = function(arg0) { - const ret = GetDeployResult.__wrap(arg0); +module.exports.__wbg_deploy_new = function(arg0) { + const ret = Deploy.__wrap(arg0); return ret; }; -module.exports.__wbg_transaction_new = function(arg0) { - const ret = Transaction.__wrap(arg0); +module.exports.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { + const ret = arg0.getVersion(); return ret; +}, arguments) }; + +module.exports.__wbindgen_string_get = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; -module.exports.__wbg_queryglobalstateresult_new = function(arg0) { - const ret = QueryGlobalStateResult.__wrap(arg0); +module.exports.__wbg_getblocktransfersresult_new = function(arg0) { + const ret = GetBlockTransfersResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getstateroothashresult_new = function(arg0) { - const ret = GetStateRootHashResult.__wrap(arg0); +module.exports.__wbg_getauctioninforesult_new = function(arg0) { + const ret = GetAuctionInfoResult.__wrap(arg0); return ret; }; -module.exports.__wbg_querybalancedetailsresult_new = function(arg0) { - const ret = QueryBalanceDetailsResult.__wrap(arg0); +module.exports.__wbg_listrpcsresult_new = function(arg0) { + const ret = ListRpcsResult.__wrap(arg0); return ret; }; -module.exports.__wbg_geterainforesult_new = function(arg0) { - const ret = GetEraInfoResult.__wrap(arg0); +module.exports.__wbg_getaccountresult_new = function(arg0) { + const ret = GetAccountResult.__wrap(arg0); return ret; }; -module.exports.__wbg_disconnectFromSite_2d2501f4e00e57c8 = function() { return handleError(function (arg0) { - const ret = arg0.disconnectFromSite(); +module.exports.__wbg_getstateroothashresult_new = function(arg0) { + const ret = GetStateRootHashResult.__wrap(arg0); return ret; -}, arguments) }; +}; -module.exports.__wbg_querybalanceresult_new = function(arg0) { - const ret = QueryBalanceResult.__wrap(arg0); +module.exports.__wbg_getnodestatusresult_new = function(arg0) { + const ret = GetNodeStatusResult.__wrap(arg0); return ret; }; -module.exports.__wbg_deploy_new = function(arg0) { - const ret = Deploy.__wrap(arg0); +module.exports.__wbg_gettransactionresult_new = function(arg0) { + const ret = GetTransactionResult.__wrap(arg0); return ret; }; -module.exports.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { - const ret = arg0.requestSwitchAccount(); +module.exports.__wbg_disconnectFromSite_2d2501f4e00e57c8 = function() { return handleError(function (arg0) { + const ret = arg0.disconnectFromSite(); return ret; }, arguments) }; -module.exports.__wbg_getblocktransfersresult_new = function(arg0) { - const ret = GetBlockTransfersResult.__wrap(arg0); +module.exports.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { + const ret = arg0.isConnected(); return ret; -}; +}, arguments) }; module.exports.__wbg_signMessage_c2bf40612e99c084 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.signMessage(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); @@ -13819,6 +13896,11 @@ module.exports.__wbg_getActivePublicKey_7cd2af2b4a2b810f = function() { return h return ret; }, arguments) }; +module.exports.__wbg_messages_new = function(arg0) { + const ret = Messages.__wrap(arg0); + return ret; +}; + module.exports.__wbindgen_cb_drop = function(arg0) { const obj = arg0.original; if (obj.cnt-- == 1) { @@ -13829,16 +13911,6 @@ module.exports.__wbindgen_cb_drop = function(arg0) { return ret; }; -module.exports.__wbg_messages_new = function(arg0) { - const ret = Messages.__wrap(arg0); - return ret; -}; - -module.exports.__wbindgen_is_undefined = function(arg0) { - const ret = arg0 === undefined; - return ret; -}; - module.exports.__wbg_error_d52bf4e1868fa715 = function(arg0, arg1) { console.error(getStringFromWasm0(arg0, arg1)); }; @@ -13847,11 +13919,6 @@ module.exports.__wbg_log_5199e4d2d51afa95 = function(arg0, arg1) { console.log(getStringFromWasm0(arg0, arg1)); }; -module.exports.__wbindgen_jsval_eq = function(arg0, arg1) { - const ret = arg0 === arg1; - return ret; -}; - module.exports.__wbindgen_number_get = function(arg0, arg1) { const obj = arg1; const ret = typeof(obj) === 'number' ? obj : undefined; @@ -13859,28 +13926,38 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) { getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); }; -module.exports.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); +module.exports.__wbg_subscription_unwrap = function(arg0) { + const ret = Subscription.__unwrap(arg0); + return ret; +}; module.exports.__wbg_messages_unwrap = function(arg0) { const ret = Messages.__unwrap(arg0); return ret; }; -module.exports.__wbg_subscription_unwrap = function(arg0) { - const ret = Subscription.__unwrap(arg0); +module.exports.__wbindgen_is_null = function(arg0) { + const ret = arg0 === null; return ret; }; -module.exports.__wbg_sign_5740ada8ba2ef8c3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - const ret = arg0.sign(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); +module.exports.__wbindgen_is_undefined = function(arg0) { + const ret = arg0 === undefined; return ret; -}, arguments) }; +}; -module.exports.__wbindgen_is_null = function(arg0) { - const ret = arg0 === null; +module.exports.__wbindgen_jsval_eq = function(arg0, arg1) { + const ret = arg0 === arg1; return ret; }; +module.exports.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); + +module.exports.__wbg_sign_5740ada8ba2ef8c3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + const ret = arg0.sign(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + return ret; +}, arguments) }; + module.exports.__wbindgen_is_function = function(arg0) { const ret = typeof(arg0) === 'function'; return ret; @@ -14315,7 +14392,7 @@ module.exports.__wbg_new_1073970097e5a420 = function(arg0, arg1) { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_1205(a, state0.b, arg0, arg1); + return __wbg_adapter_1211(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -14433,33 +14510,33 @@ module.exports.__wbindgen_memory = function() { return ret; }; -module.exports.__wbindgen_closure_wrapper1671 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 537, __wbg_adapter_38); +module.exports.__wbindgen_closure_wrapper1500 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 536, __wbg_adapter_38); return ret; }; -module.exports.__wbindgen_closure_wrapper5370 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 970, __wbg_adapter_41); +module.exports.__wbindgen_closure_wrapper5314 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_41); return ret; }; -module.exports.__wbindgen_closure_wrapper5372 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 970, __wbg_adapter_41); +module.exports.__wbindgen_closure_wrapper5316 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_41); return ret; }; -module.exports.__wbindgen_closure_wrapper5374 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 970, __wbg_adapter_41); +module.exports.__wbindgen_closure_wrapper5318 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_41); return ret; }; -module.exports.__wbindgen_closure_wrapper6066 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1167, __wbg_adapter_48); +module.exports.__wbindgen_closure_wrapper5988 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1149, __wbg_adapter_48); return ret; }; -module.exports.__wbindgen_closure_wrapper6086 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1175, __wbg_adapter_51); +module.exports.__wbindgen_closure_wrapper6025 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1161, __wbg_adapter_51); return ret; }; diff --git a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm index 1159c789f..a70aec331 100644 Binary files a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm and b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm differ diff --git a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts index d5f4bed83..6354c6a03 100644 --- a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts +++ b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts @@ -1,115 +1,28 @@ /* tslint:disable */ /* eslint-disable */ export const memory: WebAssembly.Memory; -export function __wbg_dictionaryaddr_free(a: number, b: number): void; -export function dictionaryaddr_new(a: number, b: number): Array; -export function __wbg_signatureresponse_free(a: number, b: number): void; -export function signatureresponse_is_cancelled(a: number): number; -export function signatureresponse_get_signature_hex(a: number): Array; -export function signatureresponse_get_signature(a: number): Array; -export function __wbg_getaccountresult_free(a: number, b: number): void; -export function getaccountresult_api_version(a: number): number; -export function getaccountresult_account(a: number): number; -export function getaccountresult_merkle_proof(a: number): Array; -export function getaccountresult_toJson(a: number): number; -export function __wbg_getaccountoptions_free(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier(a: number): number; -export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; -export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_verbosity(a: number): number; -export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; -export function sdk_get_account_options(a: number, b: number): Array; -export function sdk_get_account(a: number, b: number): number; -export function sdk_state_get_account_info(a: number, b: number): number; -export function __wbg_getbalanceresult_free(a: number, b: number): void; -export function getbalanceresult_api_version(a: number): number; -export function getbalanceresult_balance_value(a: number): number; -export function getbalanceresult_merkle_proof(a: number): Array; -export function getbalanceresult_toJson(a: number): number; -export function __wbg_getbalanceoptions_free(a: number, b: number): void; -export function __wbg_get_getbalanceoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_getbalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getbalanceoptions_state_root_hash(a: number): number; -export function __wbg_set_getbalanceoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_getbalanceoptions_purse_uref_as_string(a: number): Array; -export function __wbg_set_getbalanceoptions_purse_uref_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getbalanceoptions_purse_uref(a: number): number; -export function __wbg_set_getbalanceoptions_purse_uref(a: number, b: number): void; -export function __wbg_get_getbalanceoptions_rpc_address(a: number): Array; -export function __wbg_set_getbalanceoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getbalanceoptions_verbosity(a: number): number; -export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): void; -export function sdk_get_balance_options(a: number, b: number): Array; -export function sdk_get_balance(a: number, b: number): number; -export function sdk_state_get_balance(a: number, b: number): number; -export function __wbg_getchainspecresult_free(a: number, b: number): void; -export function getchainspecresult_api_version(a: number): number; -export function getchainspecresult_chainspec_bytes(a: number): number; -export function getchainspecresult_toJson(a: number): number; -export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; -export function __wbg_getnodestatusresult_free(a: number, b: number): void; -export function getnodestatusresult_api_version(a: number): number; -export function getnodestatusresult_chainspec_name(a: number): Array; -export function getnodestatusresult_starting_state_root_hash(a: number): number; -export function getnodestatusresult_peers(a: number): number; -export function getnodestatusresult_last_added_block_info(a: number): number; -export function getnodestatusresult_our_public_signing_key(a: number): number; -export function getnodestatusresult_round_length(a: number): number; -export function getnodestatusresult_next_upgrade(a: number): number; -export function getnodestatusresult_build_version(a: number): Array; -export function getnodestatusresult_uptime(a: number): number; -export function getnodestatusresult_reactor_state(a: number): number; -export function getnodestatusresult_last_progress(a: number): number; -export function getnodestatusresult_available_block_range(a: number): number; -export function getnodestatusresult_block_sync(a: number): number; -export function getnodestatusresult_toJson(a: number): number; -export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; -export function __wbg_queryglobalstateresult_free(a: number, b: number): void; -export function queryglobalstateresult_api_version(a: number): number; -export function queryglobalstateresult_block_header(a: number): number; -export function queryglobalstateresult_stored_value(a: number): number; -export function queryglobalstateresult_merkle_proof(a: number): Array; -export function queryglobalstateresult_toJson(a: number): number; -export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; -export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; -export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key(a: number): number; -export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_path(a: number): number; -export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; -export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; -export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; -export function sdk_query_global_state_options(a: number, b: number): Array; -export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_accessrights_free(a: number, b: number): void; +export function accessrights_NONE(): number; +export function accessrights_READ(): number; +export function accessrights_WRITE(): number; +export function accessrights_ADD(): number; +export function accessrights_READ_ADD(): number; +export function accessrights_READ_WRITE(): number; +export function accessrights_ADD_WRITE(): number; +export function accessrights_READ_ADD_WRITE(): number; +export function accessrights_new(a: number): Array; +export function accessrights_from_bits(a: number, b: number, c: number): number; +export function accessrights_is_readable(a: number): number; +export function accessrights_is_writeable(a: number): number; +export function accessrights_is_addable(a: number): number; +export function accessrights_is_none(a: number): number; export function __wbg_entityaddr_free(a: number, b: number): void; export function entityaddr_fromFormattedStr(a: number, b: number): Array; export function entityaddr_toFormattedString(a: number): Array; export function entityaddr_toHexString(a: number): Array; export function entityaddr_toJson(a: number): number; -export function __wbg_bytes_free(a: number, b: number): void; -export function bytes_new(): number; -export function bytes_fromUint8Array(a: number): number; +export function __wbg_transferaddr_free(a: number, b: number): void; +export function transferaddr_new(a: number, b: number): Array; export function __wbg_deploy_free(a: number, b: number): void; export function deploy_new(a: number): number; export function deploy_toJson(a: number): number; @@ -151,6 +64,14 @@ export function deploy_account(a: number): Array; export function deploy_paymentAmount(a: number, b: number): Array; export function deploy_args(a: number): number; export function deploy_addArg(a: number, b: number, c: number, d: number): Array; +export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; +export function dictionaryitemstrparams_new(): number; +export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; +export function dictionaryitemstrparams_toJson(a: number): number; export function __wbg_paymentstrparams_free(a: number, b: number): void; export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; export function paymentstrparams_payment_amount(a: number): Array; @@ -173,148 +94,147 @@ export function paymentstrparams_payment_version(a: number): Array; export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; export function paymentstrparams_payment_entry_point(a: number): Array; export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; -export function __wbg_blockhash_free(a: number, b: number): void; -export function blockhash_new_js_alias(a: number, b: number): Array; -export function blockhash_fromDigest(a: number): Array; -export function blockhash_toJson(a: number): number; -export function blockhash_toString(a: number): Array; -export function __wbg_contractpackagehash_free(a: number, b: number): void; -export function contractpackagehash_new_js_alias(a: number, b: number): Array; -export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; -export function contractpackagehash_toFormattedString(a: number): Array; -export function contractpackagehash_fromUint8Array(a: number, b: number): number; -export function __wbg_deployhash_free(a: number, b: number): void; -export function deployhash_new_js_alias(a: number, b: number): Array; -export function deployhash_toJson(a: number): number; -export function deployhash_toString(a: number): Array; -export function __wbg_packagehash_free(a: number, b: number): void; -export function packagehash_new_js_alias(a: number, b: number): Array; -export function packagehash_fromFormattedStr(a: number, b: number): Array; -export function packagehash_toFormattedString(a: number): Array; -export function packagehash_fromUint8Array(a: number, b: number): number; -export function __wbg_globalstateidentifier_free(a: number, b: number): void; -export function globalstateidentifier_new(a: number): number; -export function globalstateidentifier_fromBlockHash(a: number): number; -export function globalstateidentifier_fromBlockHeight(a: number): number; -export function globalstateidentifier_fromStateRootHash(a: number): number; -export function globalstateidentifier_toJson(a: number): number; -export function __wbg_getblocktransfersresult_free(a: number, b: number): void; -export function getblocktransfersresult_api_version(a: number): number; -export function getblocktransfersresult_block_hash(a: number): number; -export function getblocktransfersresult_transfers(a: number): number; -export function getblocktransfersresult_toJson(a: number): number; -export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; -export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; -export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; -export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; -export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; -export function sdk_get_block_transfers_options(a: number, b: number): Array; -export function sdk_get_block_transfers(a: number, b: number): number; -export function sdk_chain_get_block_transfers(a: number, b: number): number; -export function __wbg_getdeployresult_free(a: number, b: number): void; -export function getdeployresult_api_version(a: number): number; -export function getdeployresult_deploy(a: number): number; -export function getdeployresult_execution_info(a: number): number; -export function getdeployresult_toJson(a: number): number; -export function __wbg_getdeployoptions_free(a: number, b: number): void; -export function __wbg_get_getdeployoptions_deploy_hash_as_string(a: number): Array; -export function __wbg_set_getdeployoptions_deploy_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getdeployoptions_deploy_hash(a: number): number; -export function __wbg_set_getdeployoptions_deploy_hash(a: number, b: number): void; -export function __wbg_get_getdeployoptions_finalized_approvals(a: number): number; -export function __wbg_set_getdeployoptions_finalized_approvals(a: number, b: number): void; -export function __wbg_get_getdeployoptions_rpc_address(a: number): Array; -export function __wbg_set_getdeployoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getdeployoptions_verbosity(a: number): number; -export function __wbg_set_getdeployoptions_verbosity(a: number, b: number): void; -export function sdk_get_deploy_options(a: number, b: number): Array; -export function sdk_get_deploy(a: number, b: number): number; -export function sdk_info_get_deploy(a: number, b: number): number; -export function __wbg_getstateroothashresult_free(a: number, b: number): void; -export function getstateroothashresult_api_version(a: number): number; -export function getstateroothashresult_state_root_hash(a: number): number; -export function getstateroothashresult_state_root_hash_as_string(a: number): Array; -export function getstateroothashresult_toString(a: number): Array; -export function getstateroothashresult_toJson(a: number): number; -export function __wbg_getstateroothashoptions_free(a: number, b: number): void; -export function sdk_get_state_root_hash_options(a: number, b: number): Array; -export function sdk_get_state_root_hash(a: number, b: number): number; -export function sdk_chain_get_state_root_hash(a: number, b: number): number; -export function __wbg_gettransactionresult_free(a: number, b: number): void; -export function gettransactionresult_api_version(a: number): number; -export function gettransactionresult_transaction(a: number): number; -export function gettransactionresult_execution_info(a: number): number; -export function gettransactionresult_toJson(a: number): number; -export function __wbg_gettransactionoptions_free(a: number, b: number): void; -export function __wbg_get_gettransactionoptions_transaction_hash(a: number): number; -export function __wbg_set_gettransactionoptions_transaction_hash(a: number, b: number): void; -export function sdk_get_transaction_options(a: number, b: number): Array; -export function sdk_get_transaction(a: number, b: number): number; -export function sdk_info_get_transaction(a: number, b: number): number; -export function __wbg_querybalanceresult_free(a: number, b: number): void; -export function querybalanceresult_api_version(a: number): number; -export function querybalanceresult_balance(a: number): number; -export function querybalanceresult_toJson(a: number): number; -export function __wbg_querybalanceoptions_free(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_purse_identifier_as_string(a: number): Array; -export function __wbg_set_querybalanceoptions_purse_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_purse_identifier(a: number): number; -export function __wbg_set_querybalanceoptions_purse_identifier(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_global_state_identifier(a: number): number; -export function __wbg_set_querybalanceoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_querybalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_state_root_hash(a: number): number; -export function __wbg_set_querybalanceoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_querybalanceoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_rpc_address(a: number): Array; -export function __wbg_set_querybalanceoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_verbosity(a: number): number; -export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; -export function sdk_query_balance_options(a: number, b: number): Array; -export function sdk_query_balance(a: number, b: number): number; -export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; -export function speculativeexectxnresult_api_version(a: number): number; -export function speculativeexectxnresult_execution_result(a: number): number; -export function speculativeexectxnresult_toJson(a: number): number; -export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; -export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; -export function sdk_get_speculative_exec_options(a: number, b: number): Array; -export function sdk_speculative_exec(a: number, b: number): number; -export function __wbg_speculativeexecresult_free(a: number, b: number): void; -export function speculativeexecresult_api_version(a: number): number; -export function speculativeexecresult_block_hash(a: number): number; -export function speculativeexecresult_execution_result(a: number): number; -export function speculativeexecresult_toJson(a: number): number; -export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; -export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; -export function sdk_speculative_exec_deploy(a: number, b: number): number; -export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; -export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; -export function __wbg_sdk_free(a: number, b: number): void; -export function sdk_new(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_getRPCAddress(a: number, b: number, c: number): Array; -export function sdk_setRPCAddress(a: number, b: number, c: number): Array; -export function sdk_getNodeAddress(a: number, b: number, c: number): Array; -export function sdk_setNodeAddress(a: number, b: number, c: number): Array; -export function sdk_getVerbosity(a: number, b: number): number; -export function sdk_setVerbosity(a: number, b: number): Array; +export function __wbg_digest_free(a: number, b: number): void; +export function digest_new_js_alias(a: number, b: number): Array; +export function digest_fromString(a: number, b: number): Array; +export function digest_fromRaw(a: number, b: number): Array; +export function digest_toJson(a: number): number; +export function digest_toString(a: number): Array; +export function __wbg_transactionhash_free(a: number, b: number): void; +export function transactionhash_new_js_alias(a: number, b: number): Array; +export function transactionhash_fromRaw(a: number, b: number): Array; +export function transactionhash_digest(a: number): Array; +export function transactionhash_toJson(a: number): number; +export function transactionhash_toString(a: number): Array; +export function __wbg_accountidentifier_free(a: number, b: number): void; +export function accountidentifier_fromFormattedStr(a: number, b: number): Array; +export function accountidentifier_fromPublicKey(a: number): number; +export function accountidentifier_fromAccountHash(a: number): number; +export function accountidentifier_toJson(a: number): number; +export function __wbg_publickey_free(a: number, b: number): void; +export function publickey_new_js_alias(a: number, b: number): Array; +export function publickey_fromUint8Array(a: number, b: number): Array; +export function publickey_toAccountHash(a: number): number; +export function publickey_toPurseUref(a: number): number; +export function publickey_toJson(a: number): number; +export function __wbg_recordid_free(a: number, b: number): void; +export function recordid_new_js_alias(a: number): Array; +export function __wbg_transaction_free(a: number, b: number): void; +export function transaction_new(a: number): number; +export function transaction_toJson(a: number): number; +export function transaction_newSession(a: number, b: number): Array; +export function transaction_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; +export function transaction_withTTL(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withChainName(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withPublicKey(a: number, b: number, c: number, d: number): number; +export function transaction_withAccountHash(a: number, b: number, c: number, d: number): number; +export function transaction_withEntryPoint(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withEntityHash(a: number, b: number, c: number, d: number): number; +export function transaction_withPackageHash(a: number, b: number, c: number, d: number): number; +export function transaction_withTransactionBytes(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withSecretKey(a: number, b: number, c: number): number; +export function transaction_verify(a: number): number; +export function transaction_hash(a: number): number; +export function transaction_expired(a: number): number; +export function transaction_expires(a: number): number; +export function transaction_signers(a: number): number; +export function transaction_authorization_keys(a: number): number; +export function transaction_sign(a: number, b: number, c: number): number; +export function transaction_approvalsHash(a: number): number; +export function transaction_approvals(a: number): number; +export function transaction_is_native(a: number): number; +export function transaction_target(a: number): number; +export function transaction_is_standard_payment(a: number): number; +export function transaction_session_args(a: number): number; +export function transaction_addSignature(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_entry_point(a: number): Array; +export function transaction_ttl(a: number): Array; +export function transaction_timestamp(a: number): Array; +export function transaction_size_estimate(a: number): number; +export function transaction_chain_name(a: number): Array; +export function transaction_initiator_addr(a: number): Array; +export function transaction_pricing_mode(a: number): number; +export function transaction_additional_computation_factor(a: number): number; +export function transaction_receipt(a: number): number; +export function transaction_gas_price_tolerance(a: number): number; +export function transaction_account_hash(a: number): number; +export function transaction_addArg(a: number, b: number, c: number, d: number): Array; +export function __wbg_transactionstrparams_free(a: number, b: number): void; +export function transactionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number): number; +export function transactionstrparams_new_with_defaults(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; +export function transactionstrparams_secret_key(a: number): Array; +export function transactionstrparams_set_secret_key(a: number, b: number, c: number): void; +export function transactionstrparams_timestamp(a: number): Array; +export function transactionstrparams_set_timestamp(a: number, b: number, c: number): void; +export function transactionstrparams_setDefaultTimestamp(a: number): void; +export function transactionstrparams_ttl(a: number): Array; +export function transactionstrparams_set_ttl(a: number, b: number, c: number): void; +export function transactionstrparams_setDefaultTTL(a: number): void; +export function transactionstrparams_chain_name(a: number): Array; +export function transactionstrparams_set_chain_name(a: number, b: number, c: number): void; +export function transactionstrparams_initiator_addr(a: number): Array; +export function transactionstrparams_set_initiator_addr(a: number, b: number, c: number): void; +export function transactionstrparams_session_args_simple(a: number): number; +export function transactionstrparams_set_session_args_simple(a: number, b: number, c: number): void; +export function transactionstrparams_session_args_json(a: number): Array; +export function transactionstrparams_set_session_args_json(a: number, b: number, c: number): void; +export function transactionstrparams_pricing_mode(a: number): number; +export function transactionstrparams_set_pricing_mode(a: number, b: number): void; +export function transactionstrparams_additional_computation_factor(a: number): Array; +export function transactionstrparams_set_additional_computation_factor(a: number, b: number, c: number): void; +export function transactionstrparams_payment_amount(a: number): Array; +export function transactionstrparams_set_payment_amount(a: number, b: number, c: number): void; +export function transactionstrparams_gas_price_tolerance(a: number): Array; +export function transactionstrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; +export function transactionstrparams_receipt(a: number): Array; +export function transactionstrparams_set_receipt(a: number, b: number, c: number): void; +export function transactionstrparams_standard_payment(a: number): number; +export function transactionstrparams_set_standard_payment(a: number, b: number): void; +export function transactionstrparams_transferred_value(a: number): Array; +export function transactionstrparams_set_transferred_value(a: number, b: number, c: number): void; +export function transactionstrparams_session_entry_point(a: number): Array; +export function transactionstrparams_set_session_entry_point(a: number, b: number, c: number): void; +export function transactionstrparams_chunked_args(a: number): number; +export function transactionstrparams_set_chunked_args(a: number, b: number): void; +export function __wbg_gettransactionresult_free(a: number, b: number): void; +export function gettransactionresult_api_version(a: number): number; +export function gettransactionresult_transaction(a: number): number; +export function gettransactionresult_execution_info(a: number): number; +export function gettransactionresult_toJson(a: number): number; +export function __wbg_gettransactionoptions_free(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; +export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_gettransactionoptions_transaction_hash(a: number): number; +export function __wbg_set_gettransactionoptions_transaction_hash(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; +export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; +export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_gettransactionoptions_verbosity(a: number): number; +export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; +export function sdk_get_transaction_options(a: number, b: number): Array; +export function sdk_get_transaction(a: number, b: number): number; +export function sdk_info_get_transaction(a: number, b: number): number; +export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; +export function speculativeexectxnresult_api_version(a: number): number; +export function speculativeexectxnresult_block_hash(a: number): number; +export function speculativeexectxnresult_execution_result(a: number): number; +export function speculativeexectxnresult_toJson(a: number): number; +export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; +export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; +export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; +export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; +export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; +export function sdk_get_speculative_exec_options(a: number, b: number): Array; +export function sdk_speculative_exec(a: number, b: number): number; export function hexToString(a: number, b: number): Array; export function hexToUint8Array(a: number, b: number): Array; +export function uint8ArrayToBytes(a: number): number; export function motesToCSPR(a: number, b: number): Array; export function jsonPrettyPrint(a: number, b: number): Array; export function publicKeyFromSecretKey(a: number, b: number): Array; @@ -324,39 +244,31 @@ export function accountHashToBase64Key(a: number, b: number): Array; export function getTimestamp(): number; export function encodeLowerBlake2b(a: number, b: number): number; export function makeDictionaryItemKey(a: number, b: number, c: number): Array; -export function deployhash_fromDigest(a: number): Array; -export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; -export function uint8ArrayToBytes(a: number): number; -export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; -export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; -export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; -export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; -export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; -export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; -export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; -export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; -export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; -export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; -export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; -export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; -export function __wbg_get_gettransactionoptions_verbosity(a: number): number; -export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; -export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; -export function speculativeexectxnresult_block_hash(a: number): number; -export function __wbg_urefaddr_free(a: number, b: number): void; -export function urefaddr_new(a: number, b: number): Array; -export function __wbg_argssimple_free(a: number, b: number): void; -export function __wbg_blockidentifier_free(a: number, b: number): void; -export function blockidentifier_new(a: number): number; -export function blockidentifier_from_hash(a: number): number; -export function blockidentifier_fromHeight(a: number): number; -export function blockidentifier_toJson(a: number): number; +export function accountidentifier_new(a: number, b: number): Array; +export function __wbg_peerentry_free(a: number, b: number): void; +export function peerentry_node_id(a: number): Array; +export function peerentry_address(a: number): Array; +export function __wbg_getaccountresult_free(a: number, b: number): void; +export function getaccountresult_api_version(a: number): number; +export function getaccountresult_account(a: number): number; +export function getaccountresult_merkle_proof(a: number): Array; +export function getaccountresult_toJson(a: number): number; +export function __wbg_getaccountoptions_free(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier(a: number): number; +export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; +export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_verbosity(a: number): number; +export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; +export function sdk_get_account_options(a: number, b: number): Array; +export function sdk_get_account(a: number, b: number): number; +export function sdk_state_get_account_info(a: number, b: number): number; export function __wbg_getauctioninforesult_free(a: number, b: number): void; export function getauctioninforesult_api_version(a: number): number; export function getauctioninforesult_auction_state(a: number): number; @@ -364,8 +276,6 @@ export function getauctioninforesult_toJson(a: number): number; export function __wbg_getauctioninfooptions_free(a: number, b: number): void; export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number): Array; export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; export function __wbg_get_getauctioninfooptions_rpc_address(a: number): Array; export function __wbg_set_getauctioninfooptions_rpc_address(a: number, b: number, c: number): void; export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; @@ -373,371 +283,70 @@ export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): export function sdk_get_auction_info_options(a: number, b: number): Array; export function sdk_get_auction_info(a: number, b: number): number; export function sdk_state_get_auction_info_js_alias(a: number, b: number): number; +export function __wbg_getdeployresult_free(a: number, b: number): void; +export function getdeployresult_api_version(a: number): number; +export function getdeployresult_deploy(a: number): number; +export function getdeployresult_execution_info(a: number): number; +export function getdeployresult_toJson(a: number): number; +export function __wbg_getdeployoptions_free(a: number, b: number): void; +export function __wbg_get_getdeployoptions_deploy_hash_as_string(a: number): Array; +export function __wbg_set_getdeployoptions_deploy_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_deploy_hash(a: number): number; +export function __wbg_set_getdeployoptions_deploy_hash(a: number, b: number): void; +export function __wbg_get_getdeployoptions_finalized_approvals(a: number): number; +export function __wbg_set_getdeployoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_getdeployoptions_rpc_address(a: number): Array; +export function __wbg_set_getdeployoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_verbosity(a: number): number; +export function __wbg_set_getdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_deploy_options(a: number, b: number): Array; +export function sdk_get_deploy(a: number, b: number): number; +export function sdk_info_get_deploy(a: number, b: number): number; export function __wbg_getaddressableentityresult_free(a: number, b: number): void; export function getaddressableentityresult_api_version(a: number): number; export function getaddressableentityresult_entity_result(a: number): number; export function getaddressableentityresult_merkle_proof(a: number): Array; export function getaddressableentityresult_toJson(a: number): number; -export function __wbg_getentityoptions_free(a: number, b: number): void; export function __wbg_get_getentityoptions_entity_identifier(a: number): number; export function __wbg_set_getentityoptions_entity_identifier(a: number, b: number): void; -export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; +export function sdk_get_entity_options(a: number, b: number): Array; +export function sdk_get_entity(a: number, b: number): number; +export function sdk_state_get_entity(a: number, b: number): number; +export function __wbg_geterainforesult_free(a: number, b: number): void; +export function geterainforesult_api_version(a: number): number; +export function geterainforesult_era_summary(a: number): number; +export function geterainforesult_toJson(a: number): number; +export function sdk_get_era_info_options(a: number, b: number): Array; +export function sdk_get_era_info(a: number, b: number): number; +export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; +export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; +export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; +export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; export function __wbg_set_getentityoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; export function __wbg_set_getentityoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_rpc_address(a: number): Array; export function __wbg_set_getentityoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_verbosity(a: number): number; +export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; export function __wbg_set_getentityoptions_verbosity(a: number, b: number): void; -export function sdk_get_entity_options(a: number, b: number): Array; -export function sdk_get_entity(a: number, b: number): number; -export function sdk_state_get_entity(a: number, b: number): number; -export function __wbg_geterasummaryresult_free(a: number, b: number): void; -export function geterasummaryresult_api_version(a: number): number; -export function geterasummaryresult_era_summary(a: number): number; -export function geterasummaryresult_toJson(a: number): number; -export function __wbg_geterasummaryoptions_free(a: number, b: number): void; -export function sdk_get_era_summary_options(a: number, b: number): Array; -export function sdk_get_era_summary(a: number, b: number): number; -export function sdk_chain_get_era_summary(a: number, b: number): number; -export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; -export function getvalidatorchangesresult_api_version(a: number): number; -export function getvalidatorchangesresult_changes(a: number): number; -export function getvalidatorchangesresult_toJson(a: number): number; -export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; -export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_path(a: number): number; -export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; -export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; -export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; -export function sdk_query_contract_key_options(a: number, b: number): Array; -export function sdk_query_contract_key(a: number, b: number): number; -export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; -export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; -export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; -export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; -export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; -export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; -export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; -export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; -export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; -export function sdk_get_binary_latest_switch_block_header(a: number, b: number, c: number): number; -export function sdk_get_binary_latest_block_header(a: number, b: number, c: number): number; -export function sdk_get_binary_block_header_by_height(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_block_header_by_hash(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_latest_signed_block(a: number, b: number, c: number): number; -export function sdk_get_binary_signed_block_by_height(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_signed_block_by_hash(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_transaction_by_hash(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_peers(a: number, b: number, c: number): number; -export function sdk_get_binary_uptime(a: number, b: number, c: number): number; -export function sdk_get_binary_last_progress(a: number, b: number, c: number): number; -export function sdk_get_binary_reactor_state(a: number, b: number, c: number): number; -export function sdk_get_binary_network_name(a: number, b: number, c: number): number; -export function sdk_get_binary_consensus_validator_changes(a: number, b: number, c: number): number; -export function sdk_get_binary_block_synchronizer_status(a: number, b: number, c: number): number; -export function sdk_get_binary_available_block_range(a: number, b: number, c: number): number; -export function sdk_get_binary_next_upgrade(a: number, b: number, c: number): number; -export function sdk_get_binary_consensus_status(a: number, b: number, c: number): number; -export function sdk_get_binary_chainspec_raw_bytes(a: number, b: number, c: number): number; -export function sdk_get_binary_node_status(a: number, b: number, c: number): number; -export function sdk_get_binary_validator_reward_by_era(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_validator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_validator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_delegator_reward_by_era(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_delegator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_delegator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_read_record(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_global_state_item(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_global_state_item_by_state_root_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_get_binary_global_state_item_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_get_binary_global_state_item_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_get_binary_try_accept_transaction(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_try_speculative_execution(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_protocol_version(a: number, b: number, c: number): number; -export function __wbg_accessrights_free(a: number, b: number): void; -export function accessrights_NONE(): number; -export function accessrights_READ(): number; -export function accessrights_WRITE(): number; -export function accessrights_ADD(): number; -export function accessrights_READ_ADD(): number; -export function accessrights_READ_WRITE(): number; -export function accessrights_ADD_WRITE(): number; -export function accessrights_READ_ADD_WRITE(): number; -export function accessrights_new(a: number): Array; -export function accessrights_from_bits(a: number, b: number, c: number): number; -export function accessrights_is_readable(a: number): number; -export function accessrights_is_writeable(a: number): number; -export function accessrights_is_addable(a: number): number; -export function accessrights_is_none(a: number): number; -export function __wbg_transferaddr_free(a: number, b: number): void; -export function transferaddr_new(a: number, b: number): Array; -export function __wbg_getblockresult_free(a: number, b: number): void; -export function getblockresult_api_version(a: number): number; -export function getblockresult_block(a: number): number; -export function getblockresult_toJson(a: number): number; -export function __wbg_getblockoptions_free(a: number, b: number): void; -export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getblockoptions_rpc_address(a: number): Array; -export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_verbosity(a: number): number; -export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; -export function sdk_get_block_options(a: number, b: number): Array; -export function sdk_get_block(a: number, b: number): number; -export function sdk_chain_get_block(a: number, b: number): number; -export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; -export function getdictionaryitemresult_api_version(a: number): number; -export function getdictionaryitemresult_dictionary_key(a: number): Array; -export function getdictionaryitemresult_stored_value(a: number): number; -export function getdictionaryitemresult_merkle_proof(a: number): Array; -export function getdictionaryitemresult_toJson(a: number): number; -export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; -export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; -export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; -export function sdk_get_dictionary_item_options(a: number, b: number): Array; -export function sdk_get_dictionary_item(a: number, b: number): number; -export function sdk_state_get_dictionary_item(a: number, b: number): number; -export function __wbg_geterainforesult_free(a: number, b: number): void; -export function geterainforesult_api_version(a: number): number; -export function geterainforesult_era_summary(a: number): number; -export function geterainforesult_toJson(a: number): number; -export function sdk_get_era_info_options(a: number, b: number): Array; -export function sdk_get_era_info(a: number, b: number): number; -export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; -export function __wbg_getpeersresult_free(a: number, b: number): void; -export function getpeersresult_api_version(a: number): number; -export function getpeersresult_peers(a: number): number; -export function getpeersresult_toJson(a: number): number; -export function sdk_get_peers(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; -export function __wbg_listrpcsresult_free(a: number, b: number): void; -export function listrpcsresult_api_version(a: number): number; -export function listrpcsresult_name(a: number): Array; -export function listrpcsresult_schema(a: number): number; -export function listrpcsresult_toJson(a: number): number; -export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; -export function __wbg_puttransactionresult_free(a: number, b: number): void; -export function puttransactionresult_api_version(a: number): number; -export function puttransactionresult_transaction_hash(a: number): number; -export function puttransactionresult_toJson(a: number): number; -export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; -export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; -export function sdk_query_contract_dict_options(a: number, b: number): Array; -export function sdk_query_contract_dict(a: number, b: number): number; -export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; -export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_getentityoptions_rpc_address(a: number): Array; export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number): Array; export function __wbg_get_geterainfooptions_rpc_address(a: number): Array; -export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; +export function __wbg_get_getentityoptions_verbosity(a: number): number; export function __wbg_get_geterainfooptions_verbosity(a: number): number; -export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_getentityoptions_free(a: number, b: number): void; export function __wbg_geterainfooptions_free(a: number, b: number): void; -export function __wbg_querycontractdictoptions_free(a: number, b: number): void; -export function __wbg_hashaddr_free(a: number, b: number): void; -export function hashaddr_new(a: number, b: number): Array; -export function hashaddr_toBytes(a: number): Array; -export function hashaddr_toHexString(a: number): Array; -export function __wbg_deploystrparams_free(a: number, b: number): void; -export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function deploystrparams_secret_key(a: number): Array; -export function deploystrparams_set_secret_key(a: number, b: number, c: number): void; -export function deploystrparams_timestamp(a: number): Array; -export function deploystrparams_set_timestamp(a: number, b: number, c: number): void; -export function deploystrparams_setDefaultTimestamp(a: number): void; -export function deploystrparams_ttl(a: number): Array; -export function deploystrparams_set_ttl(a: number, b: number, c: number): void; -export function deploystrparams_setDefaultTTL(a: number): void; -export function deploystrparams_chain_name(a: number): Array; -export function deploystrparams_set_chain_name(a: number, b: number, c: number): void; -export function deploystrparams_session_account(a: number): Array; -export function deploystrparams_set_session_account(a: number, b: number, c: number): void; -export function deploystrparams_gas_price_tolerance(a: number): Array; -export function deploystrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; -export function __wbg_accounthash_free(a: number, b: number): void; -export function accounthash_new_js_alias(a: number, b: number): Array; -export function accounthash_fromFormattedStr(a: number, b: number): Array; -export function accounthash_fromPublicKey(a: number): number; -export function accounthash_toFormattedString(a: number): Array; -export function accounthash_toHexString(a: number): Array; -export function accounthash_fromUint8Array(a: number, b: number): number; -export function accounthash_toJson(a: number): number; -export function __wbg_addressableentityhash_free(a: number, b: number): void; -export function addressableentityhash_new_js_alias(a: number, b: number): Array; -export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; -export function addressableentityhash_toFormattedString(a: number): Array; -export function addressableentityhash_fromUint8Array(a: number, b: number): number; -export function __wbg_transactionhash_free(a: number, b: number): void; -export function transactionhash_new_js_alias(a: number, b: number): Array; -export function transactionhash_fromRaw(a: number, b: number): Array; -export function transactionhash_digest(a: number): Array; -export function transactionhash_toJson(a: number): number; -export function transactionhash_toString(a: number): Array; -export function __wbg_dictionaryitemidentifier_free(a: number, b: number): void; -export function dictionaryitemidentifier_newFromAccountInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; -export function dictionaryitemidentifier_newFromContractInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; -export function dictionaryitemidentifier_newFromEntityInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; -export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number): Array; -export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number): Array; -export function dictionaryitemidentifier_toJson(a: number): number; -export function __wbg_recordid_free(a: number, b: number): void; -export function recordid_new_js_alias(a: number): Array; -export function __wbg_transaction_free(a: number, b: number): void; -export function transaction_new(a: number): number; -export function transaction_toJson(a: number): number; -export function transaction_newSession(a: number, b: number): Array; -export function transaction_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; -export function transaction_withTTL(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withChainName(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withPublicKey(a: number, b: number, c: number, d: number): number; -export function transaction_withAccountHash(a: number, b: number, c: number, d: number): number; -export function transaction_withEntryPoint(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withEntityHash(a: number, b: number, c: number, d: number): number; -export function transaction_withPackageHash(a: number, b: number, c: number, d: number): number; -export function transaction_withTransactionBytes(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withSecretKey(a: number, b: number, c: number): number; -export function transaction_verify(a: number): number; -export function transaction_hash(a: number): number; -export function transaction_expired(a: number): number; -export function transaction_expires(a: number): number; -export function transaction_signers(a: number): number; -export function transaction_authorization_keys(a: number): number; -export function transaction_sign(a: number, b: number, c: number): number; -export function transaction_approvalsHash(a: number): number; -export function transaction_approvals(a: number): number; -export function transaction_is_native(a: number): number; -export function transaction_target(a: number): number; -export function transaction_is_standard_payment(a: number): number; -export function transaction_session_args(a: number): number; -export function transaction_addSignature(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_entry_point(a: number): Array; -export function transaction_ttl(a: number): Array; -export function transaction_timestamp(a: number): Array; -export function transaction_size_estimate(a: number): number; -export function transaction_chain_name(a: number): Array; -export function transaction_initiator_addr(a: number): Array; -export function transaction_pricing_mode(a: number): number; -export function transaction_additional_computation_factor(a: number): number; -export function transaction_receipt(a: number): number; -export function transaction_gas_price_tolerance(a: number): number; -export function transaction_account_hash(a: number): number; -export function transaction_addArg(a: number, b: number, c: number, d: number): Array; -export function __wbg_transactionstrparams_free(a: number, b: number): void; -export function transactionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number): number; -export function transactionstrparams_new_with_defaults(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; -export function transactionstrparams_secret_key(a: number): Array; -export function transactionstrparams_set_secret_key(a: number, b: number, c: number): void; -export function transactionstrparams_timestamp(a: number): Array; -export function transactionstrparams_set_timestamp(a: number, b: number, c: number): void; -export function transactionstrparams_setDefaultTimestamp(a: number): void; -export function transactionstrparams_ttl(a: number): Array; -export function transactionstrparams_set_ttl(a: number, b: number, c: number): void; -export function transactionstrparams_setDefaultTTL(a: number): void; -export function transactionstrparams_chain_name(a: number): Array; -export function transactionstrparams_set_chain_name(a: number, b: number, c: number): void; -export function transactionstrparams_initiator_addr(a: number): Array; -export function transactionstrparams_set_initiator_addr(a: number, b: number, c: number): void; -export function transactionstrparams_session_args_simple(a: number): number; -export function transactionstrparams_set_session_args_simple(a: number, b: number, c: number): void; -export function transactionstrparams_session_args_json(a: number): Array; -export function transactionstrparams_set_session_args_json(a: number, b: number, c: number): void; -export function transactionstrparams_pricing_mode(a: number): number; -export function transactionstrparams_set_pricing_mode(a: number, b: number): void; -export function transactionstrparams_additional_computation_factor(a: number): Array; -export function transactionstrparams_set_additional_computation_factor(a: number, b: number, c: number): void; -export function transactionstrparams_payment_amount(a: number): Array; -export function transactionstrparams_set_payment_amount(a: number, b: number, c: number): void; -export function transactionstrparams_gas_price_tolerance(a: number): Array; -export function transactionstrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; -export function transactionstrparams_receipt(a: number): Array; -export function transactionstrparams_set_receipt(a: number, b: number, c: number): void; -export function transactionstrparams_standard_payment(a: number): number; -export function transactionstrparams_set_standard_payment(a: number, b: number): void; -export function __wbg_uref_free(a: number, b: number): void; -export function uref_new_js_alias(a: number, b: number, c: number): Array; -export function uref_fromFormattedStr(a: number, b: number): Array; -export function uref_fromUint8Array(a: number, b: number, c: number): number; -export function uref_toFormattedString(a: number): Array; -export function uref_toJson(a: number): number; -export function sdk_put_transaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_account_put_transaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_speculative_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_eraid_free(a: number, b: number): void; -export function eraid_new(a: number): number; -export function eraid_value(a: number): number; -export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function __wbg_casperwallet_free(a: number, b: number): void; -export function casperwallet_new(): number; -export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; -export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; -export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_connect(a: number): number; -export function casperwallet_disconnect(a: number): number; -export function casperwallet_isConnected(a: number): number; -export function casperwallet_getVersion(a: number): number; -export function casperwallet_getActivePublicKey(a: number): number; -export function casperwallet_switchAccount(a: number): number; -export function __wbg_peerentry_free(a: number, b: number): void; -export function peerentry_node_id(a: number): Array; -export function peerentry_address(a: number): Array; -export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; -export function dictionaryitemstrparams_new(): number; -export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; -export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; -export function dictionaryitemstrparams_toJson(a: number): number; +export function __wbg_urefaddr_free(a: number, b: number): void; +export function urefaddr_new(a: number, b: number): Array; +export function __wbg_bytes_free(a: number, b: number): void; +export function bytes_new(): number; +export function bytes_fromUint8Array(a: number): number; +export function __wbg_argssimple_free(a: number, b: number): void; export function __wbg_sessionstrparams_free(a: number, b: number): void; export function sessionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; export function sessionstrparams_session_hash(a: number): Array; @@ -762,29 +371,238 @@ export function sessionstrparams_session_entry_point(a: number): Array; export function sessionstrparams_set_session_entry_point(a: number, b: number, c: number): void; export function sessionstrparams_is_session_transfer(a: number): number; export function sessionstrparams_set_is_session_transfer(a: number, b: number): void; -export function __wbg_digest_free(a: number, b: number): void; -export function digest_new_js_alias(a: number, b: number): Array; -export function digest_fromString(a: number, b: number): Array; -export function digest_fromRaw(a: number, b: number): Array; -export function digest_toJson(a: number): number; -export function digest_toString(a: number): Array; +export function __wbg_signatureresponse_free(a: number, b: number): void; +export function signatureresponse_is_cancelled(a: number): number; +export function signatureresponse_get_signature_hex(a: number): Array; +export function signatureresponse_get_signature(a: number): Array; +export function __wbg_putdeployresult_free(a: number, b: number): void; +export function putdeployresult_api_version(a: number): number; +export function putdeployresult_deploy_hash(a: number): number; +export function putdeployresult_toJson(a: number): number; +export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_getpeersresult_free(a: number, b: number): void; +export function getpeersresult_api_version(a: number): number; +export function getpeersresult_peers(a: number): number; +export function getpeersresult_toJson(a: number): number; +export function sdk_get_peers(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; +export function __wbg_listrpcsresult_free(a: number, b: number): void; +export function listrpcsresult_api_version(a: number): number; +export function listrpcsresult_name(a: number): Array; +export function listrpcsresult_schema(a: number): number; +export function listrpcsresult_toJson(a: number): number; +export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; +export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; +export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; +export function sdk_make_transaction(a: number, b: number, c: number): Array; +export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; +export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; +export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_path(a: number): number; +export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; +export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; +export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; +export function sdk_query_contract_key_options(a: number, b: number): Array; +export function sdk_query_contract_key(a: number, b: number): number; +export function __wbg_eraid_free(a: number, b: number): void; +export function eraid_new(a: number): number; +export function eraid_value(a: number): number; +export function __wbg_blockidentifier_free(a: number, b: number): void; +export function blockidentifier_new(a: number): number; +export function blockidentifier_from_hash(a: number): number; +export function blockidentifier_fromHeight(a: number): number; +export function blockidentifier_toJson(a: number): number; +export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_install(a: number, b: number, c: number, d: number, e: number): number; +export function __wbg_hashaddr_free(a: number, b: number): void; +export function hashaddr_new(a: number, b: number): Array; +export function hashaddr_toBytes(a: number): Array; +export function hashaddr_toHexString(a: number): Array; +export function __wbg_blockhash_free(a: number, b: number): void; +export function blockhash_new_js_alias(a: number, b: number): Array; +export function blockhash_fromDigest(a: number): Array; +export function blockhash_toJson(a: number): number; +export function blockhash_toString(a: number): Array; +export function __wbg_deployhash_free(a: number, b: number): void; +export function deployhash_new_js_alias(a: number, b: number): Array; +export function deployhash_toJson(a: number): number; +export function deployhash_toString(a: number): Array; +export function __wbg_entityidentifier_free(a: number, b: number): void; +export function entityidentifier_fromFormattedStr(a: number, b: number): Array; +export function entityidentifier_fromPublicKey(a: number): number; +export function entityidentifier_fromAccountHash(a: number): number; +export function entityidentifier_fromEntityAddr(a: number): number; +export function entityidentifier_toJson(a: number): number; +export function __wbg_path_free(a: number, b: number): void; +export function path_new(a: number): number; +export function path_fromArray(a: number): number; +export function path_toJson(a: number): number; +export function path_toString(a: number): Array; +export function path_is_empty(a: number): number; +export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_put_transaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_transaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_watcher_free(a: number, b: number): void; +export function watcher_new(a: number, b: number, c: number, d: number): number; +export function watcher_subscribe(a: number, b: number, c: number): Array; +export function watcher_unsubscribe(a: number, b: number, c: number): void; +export function watcher_start(a: number): number; +export function watcher_stop(a: number): void; +export function __wbg_subscription_free(a: number, b: number): void; +export function __wbg_get_subscription_eventHandlerFn(a: number): number; +export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; +export function subscription_new(a: number, b: number, c: number): number; +export function __wbg_failure_free(a: number, b: number): void; +export function __wbg_get_failure_cost(a: number): Array; +export function __wbg_set_failure_cost(a: number, b: number, c: number): void; +export function __wbg_get_failure_error_message(a: number): Array; +export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; +export function __wbg_version2_free(a: number, b: number): void; +export function __wbg_get_version2_error_message(a: number): Array; +export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; +export function __wbg_payment_free(a: number, b: number): void; +export function __wbg_executionresult_free(a: number, b: number): void; +export function __wbg_get_executionresult_Success(a: number): number; +export function __wbg_set_executionresult_Success(a: number, b: number): void; +export function __wbg_get_executionresult_Failure(a: number): number; +export function __wbg_set_executionresult_Failure(a: number, b: number): void; +export function __wbg_hashstring_free(a: number, b: number): void; +export function hashstring_Deploy(a: number): Array; +export function hashstring_toString(a: number): Array; +export function __wbg_publickeystring_free(a: number, b: number): void; +export function __wbg_message_free(a: number, b: number): void; +export function __wbg_messages_free(a: number, b: number): void; +export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_message(a: number): number; +export function __wbg_set_messages_message(a: number, b: number): void; +export function __wbg_get_messages_topic_name(a: number): Array; +export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_name_hash(a: number): Array; +export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_index(a: number): number; +export function __wbg_set_messages_topic_index(a: number, b: number): void; +export function __wbg_get_messages_block_index(a: number): number; +export function __wbg_set_messages_block_index(a: number, b: number): void; +export function __wbg_transactionprocessed_free(a: number, b: number): void; +export function __wbg_get_transactionprocessed_hash(a: number): number; +export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; +export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; +export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; +export function __wbg_get_transactionprocessed_timestamp(a: number): Array; +export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; +export function __wbg_get_transactionprocessed_execution_result(a: number): number; +export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; +export function __wbg_get_transactionprocessed_messages(a: number): Array; +export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; +export function __wbg_body_free(a: number, b: number): void; +export function __wbg_get_body_transaction_processed(a: number): number; +export function __wbg_set_body_transaction_processed(a: number, b: number): void; +export function body_get_deploy_processed(a: number): number; +export function __wbg_eventparseresult_free(a: number, b: number): void; +export function __wbg_get_eventparseresult_err(a: number): Array; +export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; +export function __wbg_get_eventparseresult_body(a: number): number; +export function __wbg_set_eventparseresult_body(a: number, b: number): void; +export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function deployhash_fromDigest(a: number): Array; +export function __wbg_get_version2_initiator(a: number): number; +export function hashstring_Version1(a: number): Array; +export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; +export function __wbg_set_version2_limit(a: number, b: number, c: number): void; +export function __wbg_set_payment_source(a: number, b: number, c: number): void; +export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; +export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; +export function __wbg_set_message_String(a: number, b: number, c: number): void; +export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; +export function __wbg_set_version2_cost(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; +export function __wbg_set_version2_initiator(a: number, b: number): void; +export function body_get_transaction_processed(a: number): number; +export function __wbg_get_subscription_targetHash(a: number): Array; +export function __wbg_get_version2_limit(a: number): Array; +export function __wbg_get_payment_source(a: number): Array; +export function __wbg_get_hashstring_hash(a: number): Array; +export function __wbg_get_publickeystring_PublicKey(a: number): Array; +export function __wbg_get_message_String(a: number): Array; +export function __wbg_get_messages_entity_hash(a: number): Array; +export function __wbg_get_version2_cost(a: number): Array; +export function __wbg_get_version2_consumed(a: number): Array; +export function __wbg_get_transactionprocessed_ttl(a: number): Array; +export function __wbg_get_transactionprocessed_block_hash(a: number): Array; +export function entityidentifier_new_js_alias(a: number, b: number): Array; +export function __wbg_dictionaryaddr_free(a: number, b: number): void; +export function dictionaryaddr_new(a: number, b: number): Array; +export function __wbg_deploystrparams_free(a: number, b: number): void; +export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function deploystrparams_secret_key(a: number): Array; +export function deploystrparams_set_secret_key(a: number, b: number, c: number): void; +export function deploystrparams_timestamp(a: number): Array; +export function deploystrparams_set_timestamp(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTimestamp(a: number): void; +export function deploystrparams_ttl(a: number): Array; +export function deploystrparams_set_ttl(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTTL(a: number): void; +export function deploystrparams_chain_name(a: number): Array; +export function deploystrparams_set_chain_name(a: number, b: number, c: number): void; +export function deploystrparams_session_account(a: number): Array; +export function deploystrparams_set_session_account(a: number, b: number, c: number): void; +export function deploystrparams_gas_price_tolerance(a: number): Array; +export function deploystrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; +export function __wbg_accounthash_free(a: number, b: number): void; +export function accounthash_new_js_alias(a: number, b: number): Array; +export function accounthash_fromFormattedStr(a: number, b: number): Array; +export function accounthash_fromPublicKey(a: number): number; +export function accounthash_toFormattedString(a: number): Array; +export function accounthash_toHexString(a: number): Array; +export function accounthash_fromUint8Array(a: number, b: number): number; +export function accounthash_toJson(a: number): number; +export function __wbg_addressableentityhash_free(a: number, b: number): void; +export function addressableentityhash_new_js_alias(a: number, b: number): Array; +export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; +export function addressableentityhash_toFormattedString(a: number): Array; +export function addressableentityhash_fromUint8Array(a: number, b: number): number; export function __wbg_contracthash_free(a: number, b: number): void; export function contracthash_new_js_alias(a: number, b: number): Array; export function contracthash_fromFormattedStr(a: number, b: number): Array; export function contracthash_toFormattedString(a: number): Array; export function contracthash_fromUint8Array(a: number, b: number): number; -export function __wbg_accountidentifier_free(a: number, b: number): void; -export function accountidentifier_fromFormattedStr(a: number, b: number): Array; -export function accountidentifier_fromPublicKey(a: number): number; -export function accountidentifier_fromAccountHash(a: number): number; -export function accountidentifier_toJson(a: number): number; -export function __wbg_entityidentifier_free(a: number, b: number): void; -export function entityidentifier_fromFormattedStr(a: number, b: number): Array; -export function entityidentifier_fromEntityAddr(a: number): number; -export function entityidentifier_toJson(a: number): number; -export function __wbg_purseidentifier_free(a: number, b: number): void; -export function purseidentifier_fromURef(a: number): number; -export function purseidentifier_toJson(a: number): number; +export function __wbg_contractpackagehash_free(a: number, b: number): void; +export function contractpackagehash_new_js_alias(a: number, b: number): Array; +export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; +export function contractpackagehash_toFormattedString(a: number): Array; +export function contractpackagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_packagehash_free(a: number, b: number): void; +export function packagehash_new_js_alias(a: number, b: number): Array; +export function packagehash_fromFormattedStr(a: number, b: number): Array; +export function packagehash_toFormattedString(a: number): Array; +export function packagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_dictionaryitemidentifier_free(a: number, b: number): void; +export function dictionaryitemidentifier_newFromAccountInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; +export function dictionaryitemidentifier_newFromContractInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; +export function dictionaryitemidentifier_newFromEntityInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; +export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number): Array; +export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number): Array; +export function dictionaryitemidentifier_toJson(a: number): number; export function __wbg_key_free(a: number, b: number): void; export function key_new(a: number): Array; export function key_toJson(a: number): number; @@ -814,27 +632,15 @@ export function key_asBalance(a: number): number; export function key_intoURef(a: number): number; export function key_urefToHash(a: number): number; export function key_withdrawToUnbond(a: number): number; -export function __wbg_path_free(a: number, b: number): void; -export function path_new(a: number): number; -export function path_fromArray(a: number): number; -export function path_toJson(a: number): number; -export function path_toString(a: number): Array; -export function path_is_empty(a: number): number; -export function __wbg_publickey_free(a: number, b: number): void; -export function publickey_new_js_alias(a: number, b: number): Array; -export function publickey_fromUint8Array(a: number, b: number): Array; -export function publickey_toAccountHash(a: number): number; -export function publickey_toPurseUref(a: number): number; -export function publickey_toJson(a: number): number; export function __wbg_transfertarget_free(a: number, b: number): void; export function transfertarget_new(a: number, b: number, c: number, d: number): number; export function __wbg_transactionbuilderparams_free(a: number, b: number): void; -export function transactionbuilderparams_newSession(a: number, b: number): number; +export function transactionbuilderparams_newSession(a: number, b: number, c: number, d: number, e: number): number; export function transactionbuilderparams_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number): number; -export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number): number; -export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number, d: number, e: number): number; +export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; export function transactionbuilderparams_newAddBid(a: number, b: number, c: number, d: number, e: number, f: number): number; export function transactionbuilderparams_newDelegate(a: number, b: number, c: number, d: number): number; export function transactionbuilderparams_newUndelegate(a: number, b: number, c: number, d: number): number; @@ -878,11 +684,69 @@ export function transactionbuilderparams_maximum_delegation_amount(a: number): A export function transactionbuilderparams_set_maximum_delegation_amount(a: number, b: number): void; export function transactionbuilderparams_is_install_upgrade(a: number): number; export function transactionbuilderparams_set_is_install_upgrade(a: number, b: number): void; -export function __wbg_putdeployresult_free(a: number, b: number): void; -export function putdeployresult_api_version(a: number): number; -export function putdeployresult_deploy_hash(a: number): number; -export function putdeployresult_toJson(a: number): number; -export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_uref_free(a: number, b: number): void; +export function uref_new_js_alias(a: number, b: number, c: number): Array; +export function uref_fromFormattedStr(a: number, b: number): Array; +export function uref_fromUint8Array(a: number, b: number, c: number): number; +export function uref_toFormattedString(a: number): Array; +export function uref_toJson(a: number): number; +export function __wbg_getblockresult_free(a: number, b: number): void; +export function getblockresult_api_version(a: number): number; +export function getblockresult_block(a: number): number; +export function getblockresult_toJson(a: number): number; +export function __wbg_getblockoptions_free(a: number, b: number): void; +export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblockoptions_rpc_address(a: number): Array; +export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_verbosity(a: number): number; +export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; +export function sdk_get_block_options(a: number, b: number): Array; +export function sdk_get_block(a: number, b: number): number; +export function sdk_chain_get_block(a: number, b: number): number; +export function __wbg_getchainspecresult_free(a: number, b: number): void; +export function getchainspecresult_api_version(a: number): number; +export function getchainspecresult_chainspec_bytes(a: number): number; +export function getchainspecresult_toJson(a: number): number; +export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; +export function __wbg_getnodestatusresult_free(a: number, b: number): void; +export function getnodestatusresult_api_version(a: number): number; +export function getnodestatusresult_chainspec_name(a: number): Array; +export function getnodestatusresult_starting_state_root_hash(a: number): number; +export function getnodestatusresult_peers(a: number): number; +export function getnodestatusresult_last_added_block_info(a: number): number; +export function getnodestatusresult_our_public_signing_key(a: number): number; +export function getnodestatusresult_round_length(a: number): number; +export function getnodestatusresult_next_upgrade(a: number): number; +export function getnodestatusresult_build_version(a: number): Array; +export function getnodestatusresult_uptime(a: number): number; +export function getnodestatusresult_reactor_state(a: number): number; +export function getnodestatusresult_last_progress(a: number): number; +export function getnodestatusresult_available_block_range(a: number): number; +export function getnodestatusresult_block_sync(a: number): number; +export function getnodestatusresult_toJson(a: number): number; +export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; +export function __wbg_getstateroothashresult_free(a: number, b: number): void; +export function getstateroothashresult_api_version(a: number): number; +export function getstateroothashresult_state_root_hash(a: number): number; +export function getstateroothashresult_state_root_hash_as_string(a: number): Array; +export function getstateroothashresult_toString(a: number): Array; +export function getstateroothashresult_toJson(a: number): number; +export function __wbg_getstateroothashoptions_free(a: number, b: number): void; +export function sdk_get_state_root_hash_options(a: number, b: number): Array; +export function sdk_get_state_root_hash(a: number, b: number): number; +export function sdk_chain_get_state_root_hash(a: number, b: number): number; +export function __wbg_querybalanceresult_free(a: number, b: number): void; +export function querybalanceresult_api_version(a: number): number; +export function querybalanceresult_balance(a: number): number; +export function querybalanceresult_toJson(a: number): number; +export function __wbg_querybalanceoptions_free(a: number, b: number): void; +export function sdk_query_balance_options(a: number, b: number): Array; +export function sdk_query_balance(a: number, b: number): number; export function __wbg_querybalancedetailsresult_free(a: number, b: number): void; export function querybalancedetailsresult_api_version(a: number): number; export function querybalancedetailsresult_total_balance(a: number): number; @@ -909,107 +773,249 @@ export function __wbg_get_querybalancedetailsoptions_verbosity(a: number): numbe export function __wbg_set_querybalancedetailsoptions_verbosity(a: number, b: number): void; export function sdk_query_balance_details_options(a: number, b: number): Array; export function sdk_query_balance_details(a: number, b: number): number; -export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_make_transaction(a: number, b: number, c: number): Array; -export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; -export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_watcher_free(a: number, b: number): void; -export function watcher_new(a: number, b: number, c: number, d: number): number; -export function watcher_subscribe(a: number, b: number, c: number): Array; -export function watcher_unsubscribe(a: number, b: number, c: number): void; -export function watcher_start(a: number): number; -export function watcher_stop(a: number): void; -export function __wbg_subscription_free(a: number, b: number): void; -export function __wbg_get_subscription_eventHandlerFn(a: number): number; -export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; -export function subscription_new(a: number, b: number, c: number): number; -export function __wbg_failure_free(a: number, b: number): void; -export function __wbg_get_failure_cost(a: number): Array; -export function __wbg_set_failure_cost(a: number, b: number, c: number): void; -export function __wbg_get_failure_error_message(a: number): Array; -export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; -export function __wbg_version2_free(a: number, b: number): void; -export function __wbg_get_version2_error_message(a: number): Array; -export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; -export function __wbg_payment_free(a: number, b: number): void; -export function __wbg_executionresult_free(a: number, b: number): void; -export function __wbg_get_executionresult_Success(a: number): number; -export function __wbg_set_executionresult_Success(a: number, b: number): void; -export function __wbg_get_executionresult_Failure(a: number): number; -export function __wbg_set_executionresult_Failure(a: number, b: number): void; -export function __wbg_hashstring_free(a: number, b: number): void; -export function hashstring_Deploy(a: number): Array; -export function hashstring_toString(a: number): Array; -export function __wbg_publickeystring_free(a: number, b: number): void; -export function __wbg_message_free(a: number, b: number): void; -export function __wbg_messages_free(a: number, b: number): void; -export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_message(a: number): number; -export function __wbg_set_messages_message(a: number, b: number): void; -export function __wbg_get_messages_topic_name(a: number): Array; -export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_name_hash(a: number): Array; -export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_index(a: number): number; -export function __wbg_set_messages_topic_index(a: number, b: number): void; -export function __wbg_get_messages_block_index(a: number): number; -export function __wbg_set_messages_block_index(a: number, b: number): void; -export function __wbg_transactionprocessed_free(a: number, b: number): void; -export function __wbg_get_transactionprocessed_hash(a: number): number; -export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; -export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; -export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; -export function __wbg_get_transactionprocessed_timestamp(a: number): Array; -export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; -export function __wbg_get_transactionprocessed_execution_result(a: number): number; -export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; -export function __wbg_get_transactionprocessed_messages(a: number): Array; -export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; -export function __wbg_body_free(a: number, b: number): void; -export function __wbg_get_body_transaction_processed(a: number): number; -export function __wbg_set_body_transaction_processed(a: number, b: number): void; -export function body_get_deploy_processed(a: number): number; -export function __wbg_eventparseresult_free(a: number, b: number): void; -export function __wbg_get_eventparseresult_err(a: number): Array; -export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; -export function __wbg_get_eventparseresult_body(a: number): number; -export function __wbg_set_eventparseresult_body(a: number, b: number): void; -export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_install(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_get_version2_initiator(a: number): number; -export function hashstring_Version1(a: number): Array; -export function accountidentifier_new(a: number, b: number): Array; -export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; -export function __wbg_set_version2_limit(a: number, b: number, c: number): void; -export function __wbg_set_payment_source(a: number, b: number, c: number): void; -export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; -export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; -export function __wbg_set_message_String(a: number, b: number, c: number): void; -export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; -export function __wbg_set_version2_cost(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; -export function __wbg_set_version2_initiator(a: number, b: number): void; -export function body_get_transaction_processed(a: number): number; -export function entityidentifier_fromPublicKey(a: number): number; +export function sdk_speculative_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function __wbg_puttransactionresult_free(a: number, b: number): void; +export function puttransactionresult_api_version(a: number): number; +export function puttransactionresult_transaction_hash(a: number): number; +export function puttransactionresult_toJson(a: number): number; +export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function __wbg_sdk_free(a: number, b: number): void; +export function sdk_new(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_getRPCAddress(a: number, b: number, c: number): Array; +export function sdk_setRPCAddress(a: number, b: number, c: number): Array; +export function sdk_getNodeAddress(a: number, b: number, c: number): Array; +export function sdk_setNodeAddress(a: number, b: number, c: number): Array; +export function sdk_getVerbosity(a: number, b: number): number; +export function sdk_setVerbosity(a: number, b: number): Array; +export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; +export function __wbg_get_querybalanceoptions_global_state_identifier(a: number): number; +export function __wbg_get_querybalanceoptions_purse_identifier(a: number): number; +export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_purse_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_state_root_hash(a: number): number; +export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; +export function __wbg_get_querybalanceoptions_purse_identifier_as_string(a: number): Array; +export function __wbg_get_querybalanceoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_get_querybalanceoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_querybalanceoptions_rpc_address(a: number): Array; +export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; +export function __wbg_get_querybalanceoptions_verbosity(a: number): number; +export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_purse_identifier(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_global_state_identifier(a: number, b: number): void; +export function sdk_get_binary_latest_switch_block_header(a: number, b: number, c: number): number; +export function sdk_get_binary_latest_block_header(a: number, b: number, c: number): number; +export function sdk_get_binary_block_header_by_height(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_block_header_by_hash(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_latest_signed_block(a: number, b: number, c: number): number; +export function sdk_get_binary_signed_block_by_height(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_signed_block_by_hash(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_transaction_by_hash(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_peers(a: number, b: number, c: number): number; +export function sdk_get_binary_uptime(a: number, b: number, c: number): number; +export function sdk_get_binary_last_progress(a: number, b: number, c: number): number; +export function sdk_get_binary_reactor_state(a: number, b: number, c: number): number; +export function sdk_get_binary_network_name(a: number, b: number, c: number): number; +export function sdk_get_binary_consensus_validator_changes(a: number, b: number, c: number): number; +export function sdk_get_binary_block_synchronizer_status(a: number, b: number, c: number): number; +export function sdk_get_binary_available_block_range(a: number, b: number, c: number): number; +export function sdk_get_binary_next_upgrade(a: number, b: number, c: number): number; +export function sdk_get_binary_consensus_status(a: number, b: number, c: number): number; +export function sdk_get_binary_chainspec_raw_bytes(a: number, b: number, c: number): number; +export function sdk_get_binary_node_status(a: number, b: number, c: number): number; +export function sdk_get_binary_validator_reward_by_era(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_validator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_validator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_delegator_reward_by_era(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_delegator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_delegator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_read_record(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_global_state_item(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_global_state_item_by_state_root_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_get_binary_global_state_item_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_get_binary_global_state_item_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_get_binary_try_accept_transaction(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_try_speculative_execution(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_protocol_version(a: number, b: number, c: number): number; +export function __wbg_casperwallet_free(a: number, b: number): void; +export function casperwallet_new(): number; +export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; +export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; +export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_connect(a: number): number; +export function casperwallet_disconnect(a: number): number; +export function casperwallet_isConnected(a: number): number; +export function casperwallet_getVersion(a: number): number; +export function casperwallet_getActivePublicKey(a: number): number; +export function casperwallet_switchAccount(a: number): number; +export function __wbg_globalstateidentifier_free(a: number, b: number): void; +export function globalstateidentifier_new(a: number): number; +export function globalstateidentifier_fromBlockHash(a: number): number; +export function globalstateidentifier_fromBlockHeight(a: number): number; +export function globalstateidentifier_fromStateRootHash(a: number): number; +export function globalstateidentifier_toJson(a: number): number; +export function __wbg_purseidentifier_free(a: number, b: number): void; export function purseidentifier_fromPublicKey(a: number): number; -export function entityidentifier_fromAccountHash(a: number): number; export function purseidentifier_fromAccountHash(a: number): number; -export function __wbg_get_subscription_targetHash(a: number): Array; -export function __wbg_get_version2_limit(a: number): Array; -export function __wbg_get_payment_source(a: number): Array; -export function __wbg_get_hashstring_hash(a: number): Array; -export function __wbg_get_publickeystring_PublicKey(a: number): Array; -export function __wbg_get_message_String(a: number): Array; -export function __wbg_get_messages_entity_hash(a: number): Array; -export function __wbg_get_version2_cost(a: number): Array; -export function __wbg_get_version2_consumed(a: number): Array; -export function __wbg_get_transactionprocessed_ttl(a: number): Array; -export function __wbg_get_transactionprocessed_block_hash(a: number): Array; -export function entityidentifier_new_js_alias(a: number, b: number): Array; +export function purseidentifier_fromURef(a: number): number; +export function purseidentifier_toJson(a: number): number; +export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getbalanceresult_free(a: number, b: number): void; +export function getbalanceresult_api_version(a: number): number; +export function getbalanceresult_balance_value(a: number): number; +export function getbalanceresult_merkle_proof(a: number): Array; +export function getbalanceresult_toJson(a: number): number; +export function __wbg_getbalanceoptions_free(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_getbalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash(a: number): number; +export function __wbg_set_getbalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_purse_uref_as_string(a: number): Array; +export function __wbg_set_getbalanceoptions_purse_uref_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_purse_uref(a: number): number; +export function __wbg_set_getbalanceoptions_purse_uref(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_rpc_address(a: number): Array; +export function __wbg_set_getbalanceoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_verbosity(a: number): number; +export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): void; +export function sdk_get_balance_options(a: number, b: number): Array; +export function sdk_get_balance(a: number, b: number): number; +export function sdk_state_get_balance(a: number, b: number): number; +export function __wbg_getblocktransfersresult_free(a: number, b: number): void; +export function getblocktransfersresult_api_version(a: number): number; +export function getblocktransfersresult_block_hash(a: number): number; +export function getblocktransfersresult_transfers(a: number): number; +export function getblocktransfersresult_toJson(a: number): number; +export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; +export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; +export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; +export function sdk_get_block_transfers_options(a: number, b: number): Array; +export function sdk_get_block_transfers(a: number, b: number): number; +export function sdk_chain_get_block_transfers(a: number, b: number): number; +export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; +export function getdictionaryitemresult_api_version(a: number): number; +export function getdictionaryitemresult_dictionary_key(a: number): Array; +export function getdictionaryitemresult_stored_value(a: number): number; +export function getdictionaryitemresult_merkle_proof(a: number): Array; +export function getdictionaryitemresult_toJson(a: number): number; +export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; +export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; +export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; +export function sdk_get_dictionary_item_options(a: number, b: number): Array; +export function sdk_get_dictionary_item(a: number, b: number): number; +export function sdk_state_get_dictionary_item(a: number, b: number): number; +export function __wbg_geterasummaryresult_free(a: number, b: number): void; +export function geterasummaryresult_api_version(a: number): number; +export function geterasummaryresult_era_summary(a: number): number; +export function geterasummaryresult_toJson(a: number): number; +export function __wbg_geterasummaryoptions_free(a: number, b: number): void; +export function sdk_get_era_summary_options(a: number, b: number): Array; +export function sdk_get_era_summary(a: number, b: number): number; +export function sdk_chain_get_era_summary(a: number, b: number): number; +export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; +export function getvalidatorchangesresult_api_version(a: number): number; +export function getvalidatorchangesresult_changes(a: number): number; +export function getvalidatorchangesresult_toJson(a: number): number; +export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; +export function __wbg_queryglobalstateresult_free(a: number, b: number): void; +export function queryglobalstateresult_api_version(a: number): number; +export function queryglobalstateresult_block_header(a: number): number; +export function queryglobalstateresult_stored_value(a: number): number; +export function queryglobalstateresult_merkle_proof(a: number): Array; +export function queryglobalstateresult_toJson(a: number): number; +export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; +export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; +export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key(a: number): number; +export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_path(a: number): number; +export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; +export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; +export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; +export function sdk_query_global_state_options(a: number, b: number): Array; +export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_speculativeexecresult_free(a: number, b: number): void; +export function speculativeexecresult_api_version(a: number): number; +export function speculativeexecresult_block_hash(a: number): number; +export function speculativeexecresult_execution_result(a: number): number; +export function speculativeexecresult_toJson(a: number): number; +export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; +export function sdk_speculative_exec_deploy(a: number, b: number): number; +export function __wbg_querycontractdictoptions_free(a: number, b: number): void; +export function sdk_query_contract_dict_options(a: number, b: number): Array; +export function sdk_query_contract_dict(a: number, b: number): number; +export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; +export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; +export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; +export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; export function __wbg_intounderlyingbytesource_free(a: number, b: number): void; export function intounderlyingbytesource_type(a: number): number; export function intounderlyingbytesource_autoAllocateChunkSize(a: number): number; @@ -1027,14 +1033,14 @@ export function __wbindgen_malloc(a: number, b: number): number; export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; export const __wbindgen_export_2: WebAssembly.Table; export const __wbindgen_export_3: WebAssembly.Table; -export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae2e6541fe204983(a: number, b: number): void; -export function closure969_externref_shim(a: number, b: number, c: number): void; -export function closure1166_externref_shim(a: number, b: number, c: number): void; -export function closure1174_externref_shim(a: number, b: number, c: number): void; +export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd1bf6ecddece6326(a: number, b: number): void; +export function closure958_externref_shim(a: number, b: number, c: number): void; +export function closure1148_externref_shim(a: number, b: number, c: number): void; +export function closure1160_externref_shim(a: number, b: number, c: number): void; export function __externref_table_dealloc(a: number): void; export function __wbindgen_free(a: number, b: number, c: number): void; export function __externref_table_alloc(): number; -export function __wbindgen_exn_store(a: number): void; export function __externref_drop_slice(a: number, b: number): void; -export function closure1724_externref_shim(a: number, b: number, c: number, d: number): void; +export function __wbindgen_exn_store(a: number): void; +export function closure1697_externref_shim(a: number, b: number, c: number, d: number): void; export function __wbindgen_start(): void; diff --git a/pkg/casper_rust_wasm_sdk.d.ts b/pkg/casper_rust_wasm_sdk.d.ts index f9a4927b4..2ba653fa9 100644 --- a/pkg/casper_rust_wasm_sdk.d.ts +++ b/pkg/casper_rust_wasm_sdk.d.ts @@ -1833,6 +1833,60 @@ export class RecordId { } export class SDK { free(): void; + /** + * Parses transaction options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing transaction options to be parsed. + * + * # Returns + * + * Parsed transaction options as a `GetTransactionOptions` struct. + * @param {any} options + * @returns {getTransactionOptions} + */ + get_transaction_options(options: any): getTransactionOptions; + /** + * Retrieves transaction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + get_transaction(options?: getTransactionOptions): Promise; + /** + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + info_get_transaction(options?: getTransactionOptions): Promise; + /** + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} + */ + get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; + /** + * JS function for speculative execution. + * + * # Arguments + * + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; /** * @param {any} options * @returns {getAccountOptions} @@ -1871,543 +1925,619 @@ export class SDK { */ state_get_account_info(options?: getAccountOptions): Promise; /** - * Parses balance options from a JsValue. + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. * @param {any} options - * @returns {getBalanceOptions} + * @returns {getAuctionInfoOptions} */ - get_balance_options(options: any): getBalanceOptions; + get_auction_info_options(options: any): getAuctionInfoOptions; /** - * Retrieves balance information using the provided options. + * Retrieves auction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - get_balance(options?: getBalanceOptions): Promise; + get_auction_info(options?: getAuctionInfoOptions): Promise; /** - * JavaScript Alias for `get_balance`. + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} + */ + state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; + /** + * Parses deploy options from a JsValue. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `options` - A JsValue containing deploy options to be parsed. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} */ - state_get_balance(options?: getBalanceOptions): Promise; + get_deploy_options(options: any): getDeployOptions; /** - * Asynchronously retrieves the chainspec. + * Retrieves deploy information using the provided options. * * # Arguments * - * * `verbosity` - An optional `Verbosity` parameter. - * * `rpc_address` - An optional rpc address as a string. + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; + get_deploy(options?: getDeployOptions): Promise; /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - info_get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; + info_get_deploy(options?: getDeployOptions): Promise; /** - * Retrieves node status information using the provided options. + * @param {any} options + * @returns {getEntityOptions} + */ + get_entity_options(options: any): getEntityOptions; + /** + * Retrieves entity information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. * * # Arguments * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: + * - `entity_identifier`: Identifier for the entity. + * - `entity_identifier_as_string`: String representation of the entity identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. * * # Returns * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; + get_entity(options?: getEntityOptions): Promise; /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; + state_get_entity(options?: getEntityOptions): Promise; /** - * Parses query global state options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query global state options to be parsed. - * - * # Returns - * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. * @param {any} options - * @returns {queryGlobalStateOptions} + * @returns {getEraInfoOptions} */ - query_global_state_options(options: any): queryGlobalStateOptions; + get_era_info_options(options: any): getEraInfoOptions; /** - * Retrieves global state information using the provided options. + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + get_era_info(options?: getEraInfoOptions): Promise; + /** + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; + /** + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - query_global_state(options?: queryGlobalStateOptions): Promise; + deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses block transfers options from a JsValue. + * Retrieves peers asynchronously. * * # Arguments * - * * `options` - A JsValue containing block transfers options to be parsed. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. - * @param {any} options - * @returns {getBlockTransfersOptions} + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_block_transfers_options(options: any): getBlockTransfersOptions; + get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves block transfers information using the provided options. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Lists available RPCs using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} - */ - get_block_transfers(options?: getBlockTransfersOptions): Promise; - /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the listing process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; + list_rpcs(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses deploy options from a JsValue. + * JS function for `make_deploy`. * * # Arguments * - * * `options` - A JsValue containing deploy options to be parsed. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. * * # Returns * - * Parsed deploy options as a `GetDeployOptions` struct. - * @param {any} options - * @returns {getDeployOptions} + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - get_deploy_options(options: any): getDeployOptions; + make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; /** - * Retrieves deploy information using the provided options. + * JS function for `sign_deploy`. * * # Arguments * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} - */ - get_deploy(options?: getDeployOptions): Promise; - /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} */ - info_get_deploy(options?: getDeployOptions): Promise; + sign_deploy(deploy: Deploy, secret_key: string): Deploy; /** - * Parses state root hash options from a JsValue. + * JS function for `make_transaction`. * * # Arguments * - * * `options` - A JsValue containing state root hash options to be parsed. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * Parsed state root hash options as a `GetStateRootHashOptions` struct. - * @param {any} options - * @returns {getStateRootHashOptions} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} */ - get_state_root_hash_options(options: any): getStateRootHashOptions; + make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; /** - * Retrieves state root hash information using the provided options. + * JS function for `sign_transaction`. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} */ - get_state_root_hash(options?: getStateRootHashOptions): Promise; + sign_transaction(transaction: Transaction, secret_key: string): Transaction; /** - * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). - * - * # Arguments - * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * Deserialize query_contract_key_options from a JavaScript object. + * @param {any} options + * @returns {queryContractKeyOptions} */ - chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; + query_contract_key_options(options: any): queryContractKeyOptions; /** - * Parses transaction options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing transaction options to be parsed. - * - * # Returns - * - * Parsed transaction options as a `GetTransactionOptions` struct. - * @param {any} options - * @returns {getTransactionOptions} + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} */ - get_transaction_options(options: any): getTransactionOptions; + query_contract_key(options?: queryContractKeyOptions): Promise; /** - * Retrieves transaction information using the provided options. + * Puts a deploy using the provided options. * * # Arguments * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_transaction(options?: getTransactionOptions): Promise; + put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - info_get_transaction(options?: getTransactionOptions): Promise; + account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses query balance options from a JsValue. + * JS function for speculative transfer transaction. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * Parsed query balance options as a `QueryBalanceOptions` struct. - * @param {any} options - * @returns {queryBalanceOptions} + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - query_balance_options(options: any): queryBalanceOptions; + speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves balance information using the provided options. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceOptions | undefined} [options] - * @returns {Promise} - */ - query_balance(options?: queryBalanceOptions): Promise; - /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecTxnOptions} + * Returns a `JsError` if there is an error during the call. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; + call_entrypoint_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; /** - * JS function for speculative execution. + * Installs a smart contract with the specified parameters and returns the result. * * # Arguments - * - * * `options` - The options for speculative execution. + *. + * * `transaction_params` - Transaction parameters. + * * `transaction_bytes` - Transaction Bytes to install + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} - */ - speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; - /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecDeployOptions} - */ - get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; - /** - * JS function for speculative execution. - * - * # Arguments - * - * * `options` - The options for speculative execution. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. * - * # Returns + * # Errors * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the installation. + * @param {TransactionStrParams} transaction_params + * @param {Bytes} transaction_bytes + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; + install(transaction_params: TransactionStrParams, transaction_bytes: Bytes, rpc_address?: string): Promise; /** - * JS function for `make_transfer`. + * JS function for speculative transfer. * * # Arguments * - * * `amount` - The transfer amount. + * * `amount` - The amount to transfer. * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. - * * `deploy_params` - The deploy parameters. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {string} amount * @param {string} target_account * @param {string | undefined} transfer_id * @param {DeployStrParams} deploy_params * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; + speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for `sign_transaction`. + * Puts a transaction using the provided options. * * # Arguments * - * * `transaction` - The transaction to sign. - * * `secret_key` - The secret key for signing. + * * `transaction` - The `Transaction` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * The signed `Transaction`. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the transaction process. * @param {Transaction} transaction - * @param {string} secret_key - * @returns {Transaction} - */ - sign_transaction(transaction: Transaction, secret_key: string): Transaction; - /** - * @param {string | undefined} [rpc_address] - * @param {string | undefined} [node_address] * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address?: string, node_address?: string, verbosity?: Verbosity); - /** * @param {string | undefined} [rpc_address] - * @returns {string} + * @returns {Promise} */ - getRPCAddress(rpc_address?: string): string; + put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; /** + * JavaScript Alias for `put_transaction`. + * @param {Transaction} transaction + * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - setRPCAddress(rpc_address?: string): void; - /** - * @param {string | undefined} [node_address] - * @returns {string} - */ - getNodeAddress(node_address?: string): string; + account_put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * @param {string | undefined} [node_address] + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - setNodeAddress(node_address?: string): void; + watchDeploy(events_url: string, timeout_duration?: number): Watcher; /** - * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - getVerbosity(verbosity?: Verbosity): Verbosity; + watchTransaction(events_url: string, timeout_duration?: number): Watcher; /** - * @param {Verbosity | undefined} [verbosity] + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - setVerbosity(verbosity?: Verbosity): void; + waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; /** - * Parses auction info options from a JsValue. + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. - * @param {any} options - * @returns {getAuctionInfoOptions} + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - get_auction_info_options(options: any): getAuctionInfoOptions; + waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; /** - * Retrieves auction information using the provided options. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Transaction Builder parameters. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_auction_info(options?: getAuctionInfoOptions): Promise; - /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} - */ - state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; - /** - * @param {any} options - * @returns {getEntityOptions} + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_entity_options(options: any): getEntityOptions; + call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; /** - * Retrieves entity information using the provided options. - * - * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. + * Installs a smart contract with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: - * - `entity_identifier`: Identifier for the entity. - * - `entity_identifier_as_string`: String representation of the entity identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_entity(options?: getEntityOptions): Promise; + install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; /** - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Parses block options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block options to be parsed. + * + * # Returns + * + * Parsed block options as a `GetBlockOptions` struct. + * @param {any} options + * @returns {getBlockOptions} */ - state_get_entity(options?: getEntityOptions): Promise; + get_block_options(options: any): getBlockOptions; /** - * Parses era summary options from a JsValue. + * Retrieves block information using the provided options. * * # Arguments * - * * `options` - A JsValue containing era summary options to be parsed. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * Parsed era summary options as a `GetEraSummaryOptions` struct. - * @param {any} options - * @returns {getEraSummaryOptions} + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary_options(options: any): getEraSummaryOptions; + get_block(options?: getBlockOptions): Promise; /** - * Retrieves era summary information using the provided options. + * JavaScript Alias for the `get_block`. * * # Arguments * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary(options?: getEraSummaryOptions): Promise; + chain_get_block(options?: getBlockOptions): Promise; /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * Asynchronously retrieves the chainspec. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` parameter. + * * `rpc_address` - An optional rpc address as a string. + * + * # Returns + * + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - chain_get_era_summary(options?: getEraSummaryOptions): Promise; + get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves validator changes using the provided options. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_chainspec(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Retrieves node status information using the provided options. * * # Arguments * @@ -2416,44 +2546,289 @@ export class SDK { * * # Returns * - * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - get_validator_changes(verbosity?: Verbosity, rpc_address?: string): Promise; + get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; /** * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - info_get_validator_change(verbosity?: Verbosity, rpc_address?: string): Promise; + info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Deserialize query_contract_key_options from a JavaScript object. + * Parses state root hash options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing state root hash options to be parsed. + * + * # Returns + * + * Parsed state root hash options as a `GetStateRootHashOptions` struct. * @param {any} options - * @returns {queryContractKeyOptions} - */ - query_contract_key_options(options: any): queryContractKeyOptions; - /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} - */ - query_contract_key(options?: queryContractKeyOptions): Promise; - /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * @returns {getStateRootHashOptions} */ - get_binary_latest_switch_block_header(node_address?: string): Promise; + get_state_root_hash_options(options: any): getStateRootHashOptions; /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * Retrieves state root hash information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - get_binary_latest_block_header(node_address?: string): Promise; + get_state_root_hash(options?: getStateRootHashOptions): Promise; + /** + * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; + /** + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceOptions` struct. + * @param {any} options + * @returns {queryBalanceOptions} + */ + query_balance_options(options: any): queryBalanceOptions; + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceOptions | undefined} [options] + * @returns {Promise} + */ + query_balance(options?: queryBalanceOptions): Promise; + /** + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * @param {any} options + * @returns {queryBalanceDetailsOptions} + */ + query_balance_details_options(options: any): queryBalanceDetailsOptions; + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} + */ + query_balance_details(options?: queryBalanceDetailsOptions): Promise; + /** + * This function allows executing a transaction speculatively. + * + * # Arguments + * + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - Transactionment parameters for the transaction. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. + * + * # Returns + * + * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + speculative_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * JavaScript function for transactioning with deserialized parameters. + * + * # Arguments + * + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Session parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. + * + * # Returns + * + * A result containing PutTransactionResult or a JsError. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * JS function for transaction transferring funds. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * JS function for `make_transfer`. + * + * # Arguments + * + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; + /** + * JS function for `make_transfer_transaction`. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. + * + * # Returns + * + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} + */ + make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; + /** + * @param {string | undefined} [rpc_address] + * @param {string | undefined} [node_address] + * @param {Verbosity | undefined} [verbosity] + */ + constructor(rpc_address?: string, node_address?: string, verbosity?: Verbosity); + /** + * @param {string | undefined} [rpc_address] + * @returns {string} + */ + getRPCAddress(rpc_address?: string): string; + /** + * @param {string | undefined} [rpc_address] + */ + setRPCAddress(rpc_address?: string): void; + /** + * @param {string | undefined} [node_address] + * @returns {string} + */ + getNodeAddress(node_address?: string): string; + /** + * @param {string | undefined} [node_address] + */ + setNodeAddress(node_address?: string): void; + /** + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} + */ + getVerbosity(verbosity?: Verbosity): Verbosity; + /** + * @param {Verbosity | undefined} [verbosity] + */ + setVerbosity(verbosity?: Verbosity): void; + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_latest_switch_block_header(node_address?: string): Promise; + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_latest_block_header(node_address?: string): Promise; /** * @param {bigint} height * @param {string | undefined} [node_address] @@ -2651,55 +3026,136 @@ export class SDK { */ get_binary_protocol_version(node_address?: string): Promise; /** - * Parses block options from a JsValue. + * This function allows executing a deploy speculatively. * * # Arguments * - * * `options` - A JsValue containing block options to be parsed. + * * `deploy_params` - Deployment parameters for the deploy. + * * `session_params` - Session parameters for the deploy. + * * `payment_params` - Payment parameters for the deploy. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * Parsed block options as a `GetBlockOptions` struct. - * @param {any} options - * @returns {getBlockOptions} + * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_block_options(options: any): getBlockOptions; + speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves block information using the provided options. + * JS function for transferring funds. * * # Arguments * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Parses balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing balance options to be parsed. + * + * # Returns + * + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} + */ + get_balance_options(options: any): getBalanceOptions; + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_block(options?: getBlockOptions): Promise; + get_balance(options?: getBalanceOptions): Promise; /** - * JavaScript Alias for the `get_block`. + * JavaScript Alias for `get_balance`. * * # Arguments * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} + */ + state_get_balance(options?: getBalanceOptions): Promise; + /** + * Parses block transfers options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block transfers options to be parsed. + * + * # Returns + * + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * @param {any} options + * @returns {getBlockTransfersOptions} + */ + get_block_transfers_options(options: any): getBlockTransfersOptions; + /** + * Retrieves block transfers information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block(options?: getBlockOptions): Promise; + get_block_transfers(options?: getBlockTransfersOptions): Promise; + /** + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; /** * Parses dictionary item options from a JsValue. * @@ -2739,44 +3195,44 @@ export class SDK { */ state_get_dictionary_item(options?: getDictionaryItemOptions): Promise; /** + * Parses era summary options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing era summary options to be parsed. + * + * # Returns + * + * Parsed era summary options as a `GetEraSummaryOptions` struct. * @param {any} options - * @returns {getEraInfoOptions} - */ - get_era_info_options(options: any): getEraInfoOptions; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_era_info(options?: getEraInfoOptions): Promise; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} + * @returns {getEraSummaryOptions} */ - chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; + get_era_summary_options(options: any): getEraSummaryOptions; /** - * Retrieves peers asynchronously. + * Retrieves era summary information using the provided options. * * # Arguments * - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; + get_era_summary(options?: getEraSummaryOptions): Promise; /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - info_get_peers(verbosity?: Verbosity, rpc_address?: string): Promise; + chain_get_era_summary(options?: getEraSummaryOptions): Promise; /** - * Lists available RPCs using the provided options. + * Retrieves validator changes using the provided options. * * # Arguments * @@ -2785,70 +3241,74 @@ export class SDK { * * # Returns * - * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the listing process. + * Returns a `JsError` if there is an error during the retrieval process. * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - list_rpcs(verbosity?: Verbosity, rpc_address?: string): Promise; + get_validator_changes(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JavaScript function for transactioning with deserialized parameters. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_validator_change(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Parses query global state options from a JsValue. * * # Arguments * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Session parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - A JsValue containing query global state options to be parsed. * * # Returns * - * A result containing PutTransactionResult or a JsError. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} */ - transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + query_global_state_options(options: any): queryGlobalStateOptions; /** - * JS function for `make_deploy`. + * Retrieves global state information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} */ - make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; + query_global_state(options?: queryGlobalStateOptions): Promise; /** - * JS function for `sign_deploy`. + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecDeployOptions} + */ + get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; + /** + * JS function for speculative execution. * * # Arguments * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. + * * `options` - The options for speculative execution. * * # Returns * - * The signed `Deploy`. - * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} */ - sign_deploy(deploy: Deploy, secret_key: string): Deploy; + speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; /** * Deserialize query_contract_dict_options from a JavaScript object. * @param {any} options @@ -2861,669 +3321,209 @@ export class SDK { * @returns {Promise} */ query_contract_dict(options?: queryContractDictOptions): Promise; +} +export class SessionStrParams { + free(): void; /** - * Puts a transaction using the provided options. - * - * # Arguments - * - * * `transaction` - The `Transaction` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the transaction process. - * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [session_hash] + * @param {string | undefined} [session_name] + * @param {string | undefined} [session_package_hash] + * @param {string | undefined} [session_package_name] + * @param {string | undefined} [session_path] + * @param {Bytes | undefined} [session_bytes] + * @param {Array | undefined} [session_args_simple] + * @param {string | undefined} [session_args_json] + * @param {string | undefined} [session_version] + * @param {string | undefined} [session_entry_point] + * @param {boolean | undefined} [is_session_transfer] */ - put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JavaScript Alias for `put_transaction`. - * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + constructor(session_hash?: string, session_name?: string, session_package_hash?: string, session_package_name?: string, session_path?: string, session_bytes?: Bytes, session_args_simple?: Array, session_args_json?: string, session_version?: string, session_entry_point?: string, is_session_transfer?: boolean); + is_session_transfer: boolean; + session_args_json: string; + session_args_simple: Array; + session_bytes: Bytes; + session_entry_point: string; + session_hash: string; + session_name: string; + session_package_hash: string; + session_package_name: string; + session_path: string; + session_version: string; +} +export class SignatureResponse { + free(): void; + /** + * @returns {boolean} */ - account_put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; + is_cancelled(): boolean; /** - * This function allows executing a transaction speculatively. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - Transactionment parameters for the transaction. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {string} */ - speculative_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + get_signature_hex(): string; /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Uint8Array} */ - call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; + get_signature(): Uint8Array; +} +export class SpeculativeExecResult { + free(): void; /** - * This function allows executing a deploy speculatively. - * - * # Arguments - * - * * `deploy_params` - Deployment parameters for the deploy. - * * `session_params` - Session parameters for the deploy. - * * `payment_params` - Payment parameters for the deploy. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Convert the result to JSON format. + * @returns {any} */ - speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + toJson(): any; +/** + * Get the API version of the result. + */ + readonly api_version: any; +/** + * Get the block hash. + */ + readonly block_hash: BlockHash; +/** + * Get the execution result. + */ + readonly execution_result: any; +} +export class SpeculativeExecTxnResult { + free(): void; /** - * JS function for transferring funds. - * - * # Arguments - * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Convert the result to JSON format. + * @returns {any} */ - transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + toJson(): any; +/** + * Get the API version of the result. + */ + readonly api_version: any; +/** + * Get the block hash. + */ + readonly block_hash: BlockHash; +/** + * Get the execution result. + */ + readonly execution_result: any; +} +/** + * Represents a subscription to transaction events for wasm32 target architecture. + */ +export class Subscription { + free(): void; /** - * JS function for speculative transfer. + * Constructor for Subscription for wasm32 target architecture. * * # Arguments * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * * `transaction_hash` - Transaction hash to identify the subscription. + * * `event_handler_fn` - Handler function for transaction events. + * @param {string} target_hash + * @param {Function} event_handler_fn */ - speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + constructor(target_hash: string, event_handler_fn: Function); +/** + * Handler function for transaction events. + */ + eventHandlerFn: Function; +/** + * Transaction target hash to identify the subscription. + */ + targetHash: string; +} +export class Transaction { + free(): void; /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {any} transaction */ - put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; + constructor(transaction: any); /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {any} */ - account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; + toJson(): any; + /** + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} + */ + static newSession(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; /** - * JS function for transaction transferring funds. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. * @param {URef | undefined} maybe_source * @param {string} target_account * @param {string} amount * @param {TransactionStrParams} transaction_params * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Transaction} */ - transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + static newTransfer(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; /** - * Installs a smart contract with the specified parameters and returns the result. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the installation. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string} ttl + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; + withTTL(ttl: string, secret_key?: string): Transaction; /** - * JavaScript function for deploying with deserialized parameters. - * - * # Arguments - * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. - * - * # Returns - * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string} timestamp + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + withTimestamp(timestamp: string, secret_key?: string): Transaction; /** - * Parses query balance options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query balance options to be parsed. - * - * # Returns - * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. - * @param {any} options - * @returns {queryBalanceDetailsOptions} + * @param {string} chain_name + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - query_balance_details_options(options: any): queryBalanceDetailsOptions; + withChainName(chain_name: string, secret_key?: string): Transaction; /** - * Retrieves balance information using the provided options. - * - * # Arguments - * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} + * @param {PublicKey} public_key + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - query_balance_details(options?: queryBalanceDetailsOptions): Promise; + withPublicKey(public_key: PublicKey, secret_key?: string): Transaction; /** - * JS function for speculative transfer transaction. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {AccountHash} account_hash + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + withAccountHash(account_hash: AccountHash, secret_key?: string): Transaction; /** - * JS function for `make_transaction`. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. - * - * # Returns - * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params + * @param {string} entry_point + * @param {string | undefined} [secret_key] * @returns {Transaction} */ - make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; + withEntryPoint(entry_point: string, secret_key?: string): Transaction; /** - * JS function for `make_transfer_transaction`. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. - * - * # Returns - * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] + * @param {AddressableEntityHash} hash + * @param {string | undefined} [secret_key] * @returns {Transaction} */ - make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; + withEntityHash(hash: AddressableEntityHash, secret_key?: string): Transaction; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * @param {PackageHash} package_hash + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - watchDeploy(events_url: string, timeout_duration?: number): Watcher; + withPackageHash(package_hash: PackageHash, secret_key?: string): Transaction; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * @param {Bytes} transaction_bytes + * @param {boolean | undefined} [is_install_upgrade] + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - watchTransaction(events_url: string, timeout_duration?: number): Watcher; + withTransactionBytes(transaction_bytes: Bytes, is_install_upgrade?: boolean, secret_key?: string): Transaction; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * @param {string | undefined} [secret_key] + * @returns {Transaction} */ - waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; + withSecretKey(secret_key?: string): Transaction; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * @returns {boolean} */ - waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; + verify(): boolean; /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string} secret_key + * @returns {Transaction} */ - call_entrypoint_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; - /** - * Installs a smart contract with the specified parameters and returns the result. - * - * # Arguments - *. - * * `transaction_params` - Transaction parameters. - * * `transaction_bytes` - Transaction Bytes to install - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the installation. - * @param {TransactionStrParams} transaction_params - * @param {Bytes} transaction_bytes - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - install(transaction_params: TransactionStrParams, transaction_bytes: Bytes, rpc_address?: string): Promise; -} -export class SessionStrParams { - free(): void; - /** - * @param {string | undefined} [session_hash] - * @param {string | undefined} [session_name] - * @param {string | undefined} [session_package_hash] - * @param {string | undefined} [session_package_name] - * @param {string | undefined} [session_path] - * @param {Bytes | undefined} [session_bytes] - * @param {Array | undefined} [session_args_simple] - * @param {string | undefined} [session_args_json] - * @param {string | undefined} [session_version] - * @param {string | undefined} [session_entry_point] - * @param {boolean | undefined} [is_session_transfer] - */ - constructor(session_hash?: string, session_name?: string, session_package_hash?: string, session_package_name?: string, session_path?: string, session_bytes?: Bytes, session_args_simple?: Array, session_args_json?: string, session_version?: string, session_entry_point?: string, is_session_transfer?: boolean); - is_session_transfer: boolean; - session_args_json: string; - session_args_simple: Array; - session_bytes: Bytes; - session_entry_point: string; - session_hash: string; - session_name: string; - session_package_hash: string; - session_package_name: string; - session_path: string; - session_version: string; -} -export class SignatureResponse { - free(): void; - /** - * @returns {boolean} - */ - is_cancelled(): boolean; - /** - * @returns {string} - */ - get_signature_hex(): string; - /** - * @returns {Uint8Array} - */ - get_signature(): Uint8Array; -} -export class SpeculativeExecResult { - free(): void; - /** - * Convert the result to JSON format. - * @returns {any} - */ - toJson(): any; -/** - * Get the API version of the result. - */ - readonly api_version: any; -/** - * Get the block hash. - */ - readonly block_hash: BlockHash; -/** - * Get the execution result. - */ - readonly execution_result: any; -} -export class SpeculativeExecTxnResult { - free(): void; - /** - * Convert the result to JSON format. - * @returns {any} - */ - toJson(): any; -/** - * Get the API version of the result. - */ - readonly api_version: any; -/** - * Get the block hash. - */ - readonly block_hash: BlockHash; -/** - * Get the execution result. - */ - readonly execution_result: any; -} -/** - * Represents a subscription to transaction events for wasm32 target architecture. - */ -export class Subscription { - free(): void; - /** - * Constructor for Subscription for wasm32 target architecture. - * - * # Arguments - * - * * `transaction_hash` - Transaction hash to identify the subscription. - * * `event_handler_fn` - Handler function for transaction events. - * @param {string} target_hash - * @param {Function} event_handler_fn - */ - constructor(target_hash: string, event_handler_fn: Function); -/** - * Handler function for transaction events. - */ - eventHandlerFn: Function; -/** - * Transaction target hash to identify the subscription. - */ - targetHash: string; -} -export class Transaction { - free(): void; - /** - * @param {any} transaction - */ - constructor(transaction: any); - /** - * @returns {any} - */ - toJson(): any; - /** - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @returns {Transaction} - */ - static newSession(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; - /** - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @returns {Transaction} - */ - static newTransfer(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; - /** - * @param {string} ttl - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withTTL(ttl: string, secret_key?: string): Transaction; - /** - * @param {string} timestamp - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withTimestamp(timestamp: string, secret_key?: string): Transaction; - /** - * @param {string} chain_name - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withChainName(chain_name: string, secret_key?: string): Transaction; - /** - * @param {PublicKey} public_key - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withPublicKey(public_key: PublicKey, secret_key?: string): Transaction; - /** - * @param {AccountHash} account_hash - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withAccountHash(account_hash: AccountHash, secret_key?: string): Transaction; - /** - * @param {string} entry_point - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withEntryPoint(entry_point: string, secret_key?: string): Transaction; - /** - * @param {AddressableEntityHash} hash - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withEntityHash(hash: AddressableEntityHash, secret_key?: string): Transaction; - /** - * @param {PackageHash} package_hash - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withPackageHash(package_hash: PackageHash, secret_key?: string): Transaction; - /** - * @param {Bytes} transaction_bytes - * @param {boolean | undefined} [is_install_upgrade] - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withTransactionBytes(transaction_bytes: Bytes, is_install_upgrade?: boolean, secret_key?: string): Transaction; - /** - * @param {string | undefined} [secret_key] - * @returns {Transaction} - */ - withSecretKey(secret_key?: string): Transaction; - /** - * @returns {boolean} - */ - verify(): boolean; - /** - * @param {string} secret_key - * @returns {Transaction} - */ - sign(secret_key: string): Transaction; + sign(secret_key: string): Transaction; /** * @returns {any} */ @@ -3570,9 +3570,11 @@ export class TransactionBuilderParams { /** * @param {Bytes | undefined} [transaction_bytes] * @param {boolean | undefined} [is_install_upgrade] + * @param {bigint | undefined} [transferred_value] + * @param {Bytes | undefined} [seed] * @returns {TransactionBuilderParams} */ - static newSession(transaction_bytes?: Bytes, is_install_upgrade?: boolean): TransactionBuilderParams; + static newSession(transaction_bytes?: Bytes, is_install_upgrade?: boolean, transferred_value?: bigint, seed?: Bytes): TransactionBuilderParams; /** * @param {URef | undefined} maybe_source * @param {TransferTarget} target @@ -3584,29 +3586,33 @@ export class TransactionBuilderParams { /** * @param {AddressableEntityHash} entity_hash * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntity(entity_hash: AddressableEntityHash, entry_point: string): TransactionBuilderParams; + static newInvocableEntity(entity_hash: AddressableEntityHash, entry_point: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {string} entity_alias * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntityAlias(entity_alias: string, entry_point: string): TransactionBuilderParams; + static newInvocableEntityAlias(entity_alias: string, entry_point: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {PackageHash} package_hash * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackage(package_hash: PackageHash, entry_point: string, maybe_entity_version?: string): TransactionBuilderParams; + static newPackage(package_hash: PackageHash, entry_point: string, maybe_entity_version?: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {string} package_alias * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackageAlias(package_alias: string, entry_point: string, maybe_entity_version?: string): TransactionBuilderParams; + static newPackageAlias(package_alias: string, entry_point: string, maybe_entity_version?: string, transferred_value?: bigint): TransactionBuilderParams; /** * @param {PublicKey} public_key * @param {number} delegation_rate @@ -3720,8 +3726,11 @@ export class TransactionStrParams { * @param {string | undefined} [gas_price_tolerance] * @param {string | undefined} [receipt] * @param {boolean | undefined} [standard_payment] + * @param {string | undefined} [transferred_value] + * @param {string | undefined} [session_entry_point] + * @param {Bytes | undefined} [chunked_args] */ - constructor(chain_name: string, initiator_addr?: string, secret_key?: string, timestamp?: string, ttl?: string, session_args_simple?: (string)[], session_args_json?: string, pricing_mode?: PricingMode, additional_computation_factor?: string, payment_amount?: string, gas_price_tolerance?: string, receipt?: string, standard_payment?: boolean); + constructor(chain_name: string, initiator_addr?: string, secret_key?: string, timestamp?: string, ttl?: string, session_args_simple?: (string)[], session_args_json?: string, pricing_mode?: PricingMode, additional_computation_factor?: string, payment_amount?: string, gas_price_tolerance?: string, receipt?: string, standard_payment?: boolean, transferred_value?: string, session_entry_point?: string, chunked_args?: Bytes); /** * @param {string} chain_name * @param {string | undefined} [initiator_addr] @@ -3734,6 +3743,7 @@ export class TransactionStrParams { setDefaultTTL(): void; additional_computation_factor: string; chain_name: string; + chunked_args: Bytes; gas_price_tolerance: string; initiator_addr: string; payment_amount: string; @@ -3742,8 +3752,10 @@ export class TransactionStrParams { secret_key: string; session_args_json: string; session_args_simple: (string)[]; + session_entry_point: string; standard_payment: boolean; timestamp?: string; + transferred_value: string; ttl?: string; } export class TransferAddr { @@ -4113,115 +4125,28 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl export interface InitOutput { readonly memory: WebAssembly.Memory; - readonly __wbg_dictionaryaddr_free: (a: number, b: number) => void; - readonly dictionaryaddr_new: (a: number, b: number) => Array; - readonly __wbg_signatureresponse_free: (a: number, b: number) => void; - readonly signatureresponse_is_cancelled: (a: number) => number; - readonly signatureresponse_get_signature_hex: (a: number) => Array; - readonly signatureresponse_get_signature: (a: number) => Array; - readonly __wbg_getaccountresult_free: (a: number, b: number) => void; - readonly getaccountresult_api_version: (a: number) => number; - readonly getaccountresult_account: (a: number) => number; - readonly getaccountresult_merkle_proof: (a: number) => Array; - readonly getaccountresult_toJson: (a: number) => number; - readonly __wbg_getaccountoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getaccountoptions_account_identifier: (a: number) => number; - readonly __wbg_set_getaccountoptions_account_identifier: (a: number, b: number) => void; - readonly __wbg_get_getaccountoptions_account_identifier_as_string: (a: number) => Array; - readonly __wbg_set_getaccountoptions_account_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getaccountoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getaccountoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getaccountoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getaccountoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getaccountoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getaccountoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getaccountoptions_verbosity: (a: number) => number; - readonly __wbg_set_getaccountoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_account_options: (a: number, b: number) => Array; - readonly sdk_get_account: (a: number, b: number) => number; - readonly sdk_state_get_account_info: (a: number, b: number) => number; - readonly __wbg_getbalanceresult_free: (a: number, b: number) => void; - readonly getbalanceresult_api_version: (a: number) => number; - readonly getbalanceresult_balance_value: (a: number) => number; - readonly getbalanceresult_merkle_proof: (a: number) => Array; - readonly getbalanceresult_toJson: (a: number) => number; - readonly __wbg_getbalanceoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getbalanceoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_getbalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getbalanceoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_getbalanceoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_getbalanceoptions_purse_uref_as_string: (a: number) => Array; - readonly __wbg_set_getbalanceoptions_purse_uref_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getbalanceoptions_purse_uref: (a: number) => number; - readonly __wbg_set_getbalanceoptions_purse_uref: (a: number, b: number) => void; - readonly __wbg_get_getbalanceoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getbalanceoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getbalanceoptions_verbosity: (a: number) => number; - readonly __wbg_set_getbalanceoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_balance_options: (a: number, b: number) => Array; - readonly sdk_get_balance: (a: number, b: number) => number; - readonly sdk_state_get_balance: (a: number, b: number) => number; - readonly __wbg_getchainspecresult_free: (a: number, b: number) => void; - readonly getchainspecresult_api_version: (a: number) => number; - readonly getchainspecresult_chainspec_bytes: (a: number) => number; - readonly getchainspecresult_toJson: (a: number) => number; - readonly sdk_get_chainspec: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_chainspec: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_getnodestatusresult_free: (a: number, b: number) => void; - readonly getnodestatusresult_api_version: (a: number) => number; - readonly getnodestatusresult_chainspec_name: (a: number) => Array; - readonly getnodestatusresult_starting_state_root_hash: (a: number) => number; - readonly getnodestatusresult_peers: (a: number) => number; - readonly getnodestatusresult_last_added_block_info: (a: number) => number; - readonly getnodestatusresult_our_public_signing_key: (a: number) => number; - readonly getnodestatusresult_round_length: (a: number) => number; - readonly getnodestatusresult_next_upgrade: (a: number) => number; - readonly getnodestatusresult_build_version: (a: number) => Array; - readonly getnodestatusresult_uptime: (a: number) => number; - readonly getnodestatusresult_reactor_state: (a: number) => number; - readonly getnodestatusresult_last_progress: (a: number) => number; - readonly getnodestatusresult_available_block_range: (a: number) => number; - readonly getnodestatusresult_block_sync: (a: number) => number; - readonly getnodestatusresult_toJson: (a: number) => number; - readonly sdk_get_node_status: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_status: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_queryglobalstateresult_free: (a: number, b: number) => void; - readonly queryglobalstateresult_api_version: (a: number) => number; - readonly queryglobalstateresult_block_header: (a: number) => number; - readonly queryglobalstateresult_stored_value: (a: number) => number; - readonly queryglobalstateresult_merkle_proof: (a: number) => Array; - readonly queryglobalstateresult_toJson: (a: number) => number; - readonly __wbg_queryglobalstateoptions_free: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_global_state_identifier: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_global_state_identifier: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_key_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_key_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_key: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_key: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_path_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_path_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_path: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_path: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_verbosity: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_verbosity: (a: number, b: number) => void; - readonly sdk_query_global_state_options: (a: number, b: number) => Array; - readonly sdk_query_global_state: (a: number, b: number) => number; + readonly __wbg_accessrights_free: (a: number, b: number) => void; + readonly accessrights_NONE: () => number; + readonly accessrights_READ: () => number; + readonly accessrights_WRITE: () => number; + readonly accessrights_ADD: () => number; + readonly accessrights_READ_ADD: () => number; + readonly accessrights_READ_WRITE: () => number; + readonly accessrights_ADD_WRITE: () => number; + readonly accessrights_READ_ADD_WRITE: () => number; + readonly accessrights_new: (a: number) => Array; + readonly accessrights_from_bits: (a: number, b: number, c: number) => number; + readonly accessrights_is_readable: (a: number) => number; + readonly accessrights_is_writeable: (a: number) => number; + readonly accessrights_is_addable: (a: number) => number; + readonly accessrights_is_none: (a: number) => number; readonly __wbg_entityaddr_free: (a: number, b: number) => void; readonly entityaddr_fromFormattedStr: (a: number, b: number) => Array; readonly entityaddr_toFormattedString: (a: number) => Array; readonly entityaddr_toHexString: (a: number) => Array; readonly entityaddr_toJson: (a: number) => number; - readonly __wbg_bytes_free: (a: number, b: number) => void; - readonly bytes_new: () => number; - readonly bytes_fromUint8Array: (a: number) => number; + readonly __wbg_transferaddr_free: (a: number, b: number) => void; + readonly transferaddr_new: (a: number, b: number) => Array; readonly __wbg_deploy_free: (a: number, b: number) => void; readonly deploy_new: (a: number) => number; readonly deploy_toJson: (a: number) => number; @@ -4263,6 +4188,14 @@ export interface InitOutput { readonly deploy_paymentAmount: (a: number, b: number) => Array; readonly deploy_args: (a: number) => number; readonly deploy_addArg: (a: number, b: number, c: number, d: number) => Array; + readonly __wbg_dictionaryitemstrparams_free: (a: number, b: number) => void; + readonly dictionaryitemstrparams_new: () => number; + readonly dictionaryitemstrparams_setAccountNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setContractNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setEntityNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setUref: (a: number, b: number, c: number, d: number, e: number) => void; + readonly dictionaryitemstrparams_setDictionary: (a: number, b: number, c: number) => void; + readonly dictionaryitemstrparams_toJson: (a: number) => number; readonly __wbg_paymentstrparams_free: (a: number, b: number) => void; readonly paymentstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => number; readonly paymentstrparams_payment_amount: (a: number) => Array; @@ -4285,148 +4218,147 @@ export interface InitOutput { readonly paymentstrparams_set_payment_version: (a: number, b: number, c: number) => void; readonly paymentstrparams_payment_entry_point: (a: number) => Array; readonly paymentstrparams_set_payment_entry_point: (a: number, b: number, c: number) => void; - readonly __wbg_blockhash_free: (a: number, b: number) => void; - readonly blockhash_new_js_alias: (a: number, b: number) => Array; - readonly blockhash_fromDigest: (a: number) => Array; - readonly blockhash_toJson: (a: number) => number; - readonly blockhash_toString: (a: number) => Array; - readonly __wbg_contractpackagehash_free: (a: number, b: number) => void; - readonly contractpackagehash_new_js_alias: (a: number, b: number) => Array; - readonly contractpackagehash_fromFormattedStr: (a: number, b: number) => Array; - readonly contractpackagehash_toFormattedString: (a: number) => Array; - readonly contractpackagehash_fromUint8Array: (a: number, b: number) => number; - readonly __wbg_deployhash_free: (a: number, b: number) => void; - readonly deployhash_new_js_alias: (a: number, b: number) => Array; - readonly deployhash_toJson: (a: number) => number; - readonly deployhash_toString: (a: number) => Array; - readonly __wbg_packagehash_free: (a: number, b: number) => void; - readonly packagehash_new_js_alias: (a: number, b: number) => Array; - readonly packagehash_fromFormattedStr: (a: number, b: number) => Array; - readonly packagehash_toFormattedString: (a: number) => Array; - readonly packagehash_fromUint8Array: (a: number, b: number) => number; - readonly __wbg_globalstateidentifier_free: (a: number, b: number) => void; - readonly globalstateidentifier_new: (a: number) => number; - readonly globalstateidentifier_fromBlockHash: (a: number) => number; - readonly globalstateidentifier_fromBlockHeight: (a: number) => number; - readonly globalstateidentifier_fromStateRootHash: (a: number) => number; - readonly globalstateidentifier_toJson: (a: number) => number; - readonly __wbg_getblocktransfersresult_free: (a: number, b: number) => void; - readonly getblocktransfersresult_api_version: (a: number) => number; - readonly getblocktransfersresult_block_hash: (a: number) => number; - readonly getblocktransfersresult_transfers: (a: number) => number; - readonly getblocktransfersresult_toJson: (a: number) => number; - readonly __wbg_getblocktransfersoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getblocktransfersoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getblocktransfersoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getblocktransfersoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getblocktransfersoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getblocktransfersoptions_verbosity: (a: number) => number; - readonly __wbg_set_getblocktransfersoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_get_getblocktransfersoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getblocktransfersoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly sdk_get_block_transfers_options: (a: number, b: number) => Array; - readonly sdk_get_block_transfers: (a: number, b: number) => number; - readonly sdk_chain_get_block_transfers: (a: number, b: number) => number; - readonly __wbg_getdeployresult_free: (a: number, b: number) => void; - readonly getdeployresult_api_version: (a: number) => number; - readonly getdeployresult_deploy: (a: number) => number; - readonly getdeployresult_execution_info: (a: number) => number; - readonly getdeployresult_toJson: (a: number) => number; - readonly __wbg_getdeployoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getdeployoptions_deploy_hash_as_string: (a: number) => Array; - readonly __wbg_set_getdeployoptions_deploy_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getdeployoptions_deploy_hash: (a: number) => number; - readonly __wbg_set_getdeployoptions_deploy_hash: (a: number, b: number) => void; - readonly __wbg_get_getdeployoptions_finalized_approvals: (a: number) => number; - readonly __wbg_set_getdeployoptions_finalized_approvals: (a: number, b: number) => void; - readonly __wbg_get_getdeployoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getdeployoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getdeployoptions_verbosity: (a: number) => number; - readonly __wbg_set_getdeployoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_deploy_options: (a: number, b: number) => Array; - readonly sdk_get_deploy: (a: number, b: number) => number; - readonly sdk_info_get_deploy: (a: number, b: number) => number; - readonly __wbg_getstateroothashresult_free: (a: number, b: number) => void; - readonly getstateroothashresult_api_version: (a: number) => number; - readonly getstateroothashresult_state_root_hash: (a: number) => number; - readonly getstateroothashresult_state_root_hash_as_string: (a: number) => Array; - readonly getstateroothashresult_toString: (a: number) => Array; - readonly getstateroothashresult_toJson: (a: number) => number; - readonly __wbg_getstateroothashoptions_free: (a: number, b: number) => void; - readonly sdk_get_state_root_hash_options: (a: number, b: number) => Array; - readonly sdk_get_state_root_hash: (a: number, b: number) => number; - readonly sdk_chain_get_state_root_hash: (a: number, b: number) => number; + readonly __wbg_digest_free: (a: number, b: number) => void; + readonly digest_new_js_alias: (a: number, b: number) => Array; + readonly digest_fromString: (a: number, b: number) => Array; + readonly digest_fromRaw: (a: number, b: number) => Array; + readonly digest_toJson: (a: number) => number; + readonly digest_toString: (a: number) => Array; + readonly __wbg_transactionhash_free: (a: number, b: number) => void; + readonly transactionhash_new_js_alias: (a: number, b: number) => Array; + readonly transactionhash_fromRaw: (a: number, b: number) => Array; + readonly transactionhash_digest: (a: number) => Array; + readonly transactionhash_toJson: (a: number) => number; + readonly transactionhash_toString: (a: number) => Array; + readonly __wbg_accountidentifier_free: (a: number, b: number) => void; + readonly accountidentifier_fromFormattedStr: (a: number, b: number) => Array; + readonly accountidentifier_fromPublicKey: (a: number) => number; + readonly accountidentifier_fromAccountHash: (a: number) => number; + readonly accountidentifier_toJson: (a: number) => number; + readonly __wbg_publickey_free: (a: number, b: number) => void; + readonly publickey_new_js_alias: (a: number, b: number) => Array; + readonly publickey_fromUint8Array: (a: number, b: number) => Array; + readonly publickey_toAccountHash: (a: number) => number; + readonly publickey_toPurseUref: (a: number) => number; + readonly publickey_toJson: (a: number) => number; + readonly __wbg_recordid_free: (a: number, b: number) => void; + readonly recordid_new_js_alias: (a: number) => Array; + readonly __wbg_transaction_free: (a: number, b: number) => void; + readonly transaction_new: (a: number) => number; + readonly transaction_toJson: (a: number) => number; + readonly transaction_newSession: (a: number, b: number) => Array; + readonly transaction_newTransfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => Array; + readonly transaction_withTTL: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transaction_withTimestamp: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transaction_withChainName: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transaction_withPublicKey: (a: number, b: number, c: number, d: number) => number; + readonly transaction_withAccountHash: (a: number, b: number, c: number, d: number) => number; + readonly transaction_withEntryPoint: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transaction_withEntityHash: (a: number, b: number, c: number, d: number) => number; + readonly transaction_withPackageHash: (a: number, b: number, c: number, d: number) => number; + readonly transaction_withTransactionBytes: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transaction_withSecretKey: (a: number, b: number, c: number) => number; + readonly transaction_verify: (a: number) => number; + readonly transaction_hash: (a: number) => number; + readonly transaction_expired: (a: number) => number; + readonly transaction_expires: (a: number) => number; + readonly transaction_signers: (a: number) => number; + readonly transaction_authorization_keys: (a: number) => number; + readonly transaction_sign: (a: number, b: number, c: number) => number; + readonly transaction_approvalsHash: (a: number) => number; + readonly transaction_approvals: (a: number) => number; + readonly transaction_is_native: (a: number) => number; + readonly transaction_target: (a: number) => number; + readonly transaction_is_standard_payment: (a: number) => number; + readonly transaction_session_args: (a: number) => number; + readonly transaction_addSignature: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transaction_entry_point: (a: number) => Array; + readonly transaction_ttl: (a: number) => Array; + readonly transaction_timestamp: (a: number) => Array; + readonly transaction_size_estimate: (a: number) => number; + readonly transaction_chain_name: (a: number) => Array; + readonly transaction_initiator_addr: (a: number) => Array; + readonly transaction_pricing_mode: (a: number) => number; + readonly transaction_additional_computation_factor: (a: number) => number; + readonly transaction_receipt: (a: number) => number; + readonly transaction_gas_price_tolerance: (a: number) => number; + readonly transaction_account_hash: (a: number) => number; + readonly transaction_addArg: (a: number, b: number, c: number, d: number) => Array; + readonly __wbg_transactionstrparams_free: (a: number, b: number) => void; + readonly transactionstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number) => number; + readonly transactionstrparams_new_with_defaults: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number; + readonly transactionstrparams_secret_key: (a: number) => Array; + readonly transactionstrparams_set_secret_key: (a: number, b: number, c: number) => void; + readonly transactionstrparams_timestamp: (a: number) => Array; + readonly transactionstrparams_set_timestamp: (a: number, b: number, c: number) => void; + readonly transactionstrparams_setDefaultTimestamp: (a: number) => void; + readonly transactionstrparams_ttl: (a: number) => Array; + readonly transactionstrparams_set_ttl: (a: number, b: number, c: number) => void; + readonly transactionstrparams_setDefaultTTL: (a: number) => void; + readonly transactionstrparams_chain_name: (a: number) => Array; + readonly transactionstrparams_set_chain_name: (a: number, b: number, c: number) => void; + readonly transactionstrparams_initiator_addr: (a: number) => Array; + readonly transactionstrparams_set_initiator_addr: (a: number, b: number, c: number) => void; + readonly transactionstrparams_session_args_simple: (a: number) => number; + readonly transactionstrparams_set_session_args_simple: (a: number, b: number, c: number) => void; + readonly transactionstrparams_session_args_json: (a: number) => Array; + readonly transactionstrparams_set_session_args_json: (a: number, b: number, c: number) => void; + readonly transactionstrparams_pricing_mode: (a: number) => number; + readonly transactionstrparams_set_pricing_mode: (a: number, b: number) => void; + readonly transactionstrparams_additional_computation_factor: (a: number) => Array; + readonly transactionstrparams_set_additional_computation_factor: (a: number, b: number, c: number) => void; + readonly transactionstrparams_payment_amount: (a: number) => Array; + readonly transactionstrparams_set_payment_amount: (a: number, b: number, c: number) => void; + readonly transactionstrparams_gas_price_tolerance: (a: number) => Array; + readonly transactionstrparams_set_gas_price_tolerance: (a: number, b: number, c: number) => void; + readonly transactionstrparams_receipt: (a: number) => Array; + readonly transactionstrparams_set_receipt: (a: number, b: number, c: number) => void; + readonly transactionstrparams_standard_payment: (a: number) => number; + readonly transactionstrparams_set_standard_payment: (a: number, b: number) => void; + readonly transactionstrparams_transferred_value: (a: number) => Array; + readonly transactionstrparams_set_transferred_value: (a: number, b: number, c: number) => void; + readonly transactionstrparams_session_entry_point: (a: number) => Array; + readonly transactionstrparams_set_session_entry_point: (a: number, b: number, c: number) => void; + readonly transactionstrparams_chunked_args: (a: number) => number; + readonly transactionstrparams_set_chunked_args: (a: number, b: number) => void; readonly __wbg_gettransactionresult_free: (a: number, b: number) => void; readonly gettransactionresult_api_version: (a: number) => number; readonly gettransactionresult_transaction: (a: number) => number; readonly gettransactionresult_execution_info: (a: number) => number; readonly gettransactionresult_toJson: (a: number) => number; readonly __wbg_gettransactionoptions_free: (a: number, b: number) => void; + readonly __wbg_get_gettransactionoptions_transaction_hash_as_string: (a: number) => Array; + readonly __wbg_set_gettransactionoptions_transaction_hash_as_string: (a: number, b: number, c: number) => void; readonly __wbg_get_gettransactionoptions_transaction_hash: (a: number) => number; readonly __wbg_set_gettransactionoptions_transaction_hash: (a: number, b: number) => void; - readonly sdk_get_transaction_options: (a: number, b: number) => Array; - readonly sdk_get_transaction: (a: number, b: number) => number; + readonly __wbg_get_gettransactionoptions_finalized_approvals: (a: number) => number; + readonly __wbg_set_gettransactionoptions_finalized_approvals: (a: number, b: number) => void; + readonly __wbg_get_gettransactionoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_gettransactionoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_gettransactionoptions_verbosity: (a: number) => number; + readonly __wbg_set_gettransactionoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_transaction_options: (a: number, b: number) => Array; + readonly sdk_get_transaction: (a: number, b: number) => number; readonly sdk_info_get_transaction: (a: number, b: number) => number; - readonly __wbg_querybalanceresult_free: (a: number, b: number) => void; - readonly querybalanceresult_api_version: (a: number) => number; - readonly querybalanceresult_balance: (a: number) => number; - readonly querybalanceresult_toJson: (a: number) => number; - readonly __wbg_querybalanceoptions_free: (a: number, b: number) => void; - readonly __wbg_get_querybalanceoptions_purse_identifier_as_string: (a: number) => Array; - readonly __wbg_set_querybalanceoptions_purse_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalanceoptions_purse_identifier: (a: number) => number; - readonly __wbg_set_querybalanceoptions_purse_identifier: (a: number, b: number) => void; - readonly __wbg_get_querybalanceoptions_global_state_identifier: (a: number) => number; - readonly __wbg_set_querybalanceoptions_global_state_identifier: (a: number, b: number) => void; - readonly __wbg_get_querybalanceoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_querybalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalanceoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_querybalanceoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_querybalanceoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_querybalanceoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalanceoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_querybalanceoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalanceoptions_verbosity: (a: number) => number; - readonly __wbg_set_querybalanceoptions_verbosity: (a: number, b: number) => void; - readonly sdk_query_balance_options: (a: number, b: number) => Array; - readonly sdk_query_balance: (a: number, b: number) => number; readonly __wbg_speculativeexectxnresult_free: (a: number, b: number) => void; readonly speculativeexectxnresult_api_version: (a: number) => number; + readonly speculativeexectxnresult_block_hash: (a: number) => number; readonly speculativeexectxnresult_execution_result: (a: number) => number; readonly speculativeexectxnresult_toJson: (a: number) => number; readonly __wbg_getspeculativeexectxnoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexectxnoptions_transaction_as_string: (a: number) => Array; + readonly __wbg_set_getspeculativeexectxnoptions_transaction_as_string: (a: number, b: number, c: number) => void; readonly __wbg_get_getspeculativeexectxnoptions_transaction: (a: number) => number; readonly __wbg_set_getspeculativeexectxnoptions_transaction: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexectxnoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getspeculativeexectxnoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexectxnoptions_verbosity: (a: number) => number; + readonly __wbg_set_getspeculativeexectxnoptions_verbosity: (a: number, b: number) => void; readonly sdk_get_speculative_exec_options: (a: number, b: number) => Array; readonly sdk_speculative_exec: (a: number, b: number) => number; - readonly __wbg_speculativeexecresult_free: (a: number, b: number) => void; - readonly speculativeexecresult_api_version: (a: number) => number; - readonly speculativeexecresult_block_hash: (a: number) => number; - readonly speculativeexecresult_execution_result: (a: number) => number; - readonly speculativeexecresult_toJson: (a: number) => number; - readonly __wbg_getspeculativeexecdeployoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_deploy_as_string: (a: number) => Array; - readonly __wbg_set_getspeculativeexecdeployoptions_deploy_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_deploy: (a: number) => number; - readonly __wbg_set_getspeculativeexecdeployoptions_deploy: (a: number, b: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getspeculativeexecdeployoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_verbosity: (a: number) => number; - readonly __wbg_set_getspeculativeexecdeployoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_speculative_exec_deploy_options: (a: number, b: number) => Array; - readonly sdk_speculative_exec_deploy: (a: number, b: number) => number; - readonly sdk_make_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; - readonly sdk_sign_transaction: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_sdk_free: (a: number, b: number) => void; - readonly sdk_new: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_getRPCAddress: (a: number, b: number, c: number) => Array; - readonly sdk_setRPCAddress: (a: number, b: number, c: number) => Array; - readonly sdk_getNodeAddress: (a: number, b: number, c: number) => Array; - readonly sdk_setNodeAddress: (a: number, b: number, c: number) => Array; - readonly sdk_getVerbosity: (a: number, b: number) => number; - readonly sdk_setVerbosity: (a: number, b: number) => Array; readonly hexToString: (a: number, b: number) => Array; readonly hexToUint8Array: (a: number, b: number) => Array; + readonly uint8ArrayToBytes: (a: number) => number; readonly motesToCSPR: (a: number, b: number) => Array; readonly jsonPrettyPrint: (a: number, b: number) => Array; readonly publicKeyFromSecretKey: (a: number, b: number) => Array; @@ -4436,39 +4368,31 @@ export interface InitOutput { readonly getTimestamp: () => number; readonly encodeLowerBlake2b: (a: number, b: number) => number; readonly makeDictionaryItemKey: (a: number, b: number, c: number) => Array; - readonly deployhash_fromDigest: (a: number) => Array; - readonly __wbg_get_getstateroothashoptions_maybe_block_identifier: (a: number) => number; - readonly uint8ArrayToBytes: (a: number) => number; - readonly __wbg_set_getstateroothashoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_gettransactionoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_getspeculativeexectxnoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_getstateroothashoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_getstateroothashoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_set_gettransactionoptions_transaction_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_gettransactionoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_set_getspeculativeexectxnoptions_transaction_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_getspeculativeexectxnoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_gettransactionoptions_finalized_approvals: (a: number) => number; - readonly __wbg_set_gettransactionoptions_finalized_approvals: (a: number, b: number) => void; - readonly __wbg_get_getstateroothashoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_get_getstateroothashoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_gettransactionoptions_transaction_hash_as_string: (a: number) => Array; - readonly __wbg_get_gettransactionoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_getspeculativeexectxnoptions_transaction_as_string: (a: number) => Array; - readonly __wbg_get_getspeculativeexectxnoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_getstateroothashoptions_verbosity: (a: number) => number; - readonly __wbg_get_gettransactionoptions_verbosity: (a: number) => number; - readonly __wbg_get_getspeculativeexectxnoptions_verbosity: (a: number) => number; - readonly __wbg_set_getstateroothashoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly speculativeexectxnresult_block_hash: (a: number) => number; - readonly __wbg_urefaddr_free: (a: number, b: number) => void; - readonly urefaddr_new: (a: number, b: number) => Array; - readonly __wbg_argssimple_free: (a: number, b: number) => void; - readonly __wbg_blockidentifier_free: (a: number, b: number) => void; - readonly blockidentifier_new: (a: number) => number; - readonly blockidentifier_from_hash: (a: number) => number; - readonly blockidentifier_fromHeight: (a: number) => number; - readonly blockidentifier_toJson: (a: number) => number; + readonly accountidentifier_new: (a: number, b: number) => Array; + readonly __wbg_peerentry_free: (a: number, b: number) => void; + readonly peerentry_node_id: (a: number) => Array; + readonly peerentry_address: (a: number) => Array; + readonly __wbg_getaccountresult_free: (a: number, b: number) => void; + readonly getaccountresult_api_version: (a: number) => number; + readonly getaccountresult_account: (a: number) => number; + readonly getaccountresult_merkle_proof: (a: number) => Array; + readonly getaccountresult_toJson: (a: number) => number; + readonly __wbg_getaccountoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_account_identifier: (a: number) => number; + readonly __wbg_set_getaccountoptions_account_identifier: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_account_identifier_as_string: (a: number) => Array; + readonly __wbg_set_getaccountoptions_account_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getaccountoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getaccountoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getaccountoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_verbosity: (a: number) => number; + readonly __wbg_set_getaccountoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_account_options: (a: number, b: number) => Array; + readonly sdk_get_account: (a: number, b: number) => number; + readonly sdk_state_get_account_info: (a: number, b: number) => number; readonly __wbg_getauctioninforesult_free: (a: number, b: number) => void; readonly getauctioninforesult_api_version: (a: number) => number; readonly getauctioninforesult_auction_state: (a: number) => number; @@ -4476,8 +4400,6 @@ export interface InitOutput { readonly __wbg_getauctioninfooptions_free: (a: number, b: number) => void; readonly __wbg_get_getauctioninfooptions_maybe_block_id_as_string: (a: number) => Array; readonly __wbg_set_getauctioninfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getauctioninfooptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getauctioninfooptions_maybe_block_identifier: (a: number, b: number) => void; readonly __wbg_get_getauctioninfooptions_rpc_address: (a: number) => Array; readonly __wbg_set_getauctioninfooptions_rpc_address: (a: number, b: number, c: number) => void; readonly __wbg_get_getauctioninfooptions_verbosity: (a: number) => number; @@ -4485,371 +4407,70 @@ export interface InitOutput { readonly sdk_get_auction_info_options: (a: number, b: number) => Array; readonly sdk_get_auction_info: (a: number, b: number) => number; readonly sdk_state_get_auction_info_js_alias: (a: number, b: number) => number; + readonly __wbg_getdeployresult_free: (a: number, b: number) => void; + readonly getdeployresult_api_version: (a: number) => number; + readonly getdeployresult_deploy: (a: number) => number; + readonly getdeployresult_execution_info: (a: number) => number; + readonly getdeployresult_toJson: (a: number) => number; + readonly __wbg_getdeployoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getdeployoptions_deploy_hash_as_string: (a: number) => Array; + readonly __wbg_set_getdeployoptions_deploy_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdeployoptions_deploy_hash: (a: number) => number; + readonly __wbg_set_getdeployoptions_deploy_hash: (a: number, b: number) => void; + readonly __wbg_get_getdeployoptions_finalized_approvals: (a: number) => number; + readonly __wbg_set_getdeployoptions_finalized_approvals: (a: number, b: number) => void; + readonly __wbg_get_getdeployoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getdeployoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdeployoptions_verbosity: (a: number) => number; + readonly __wbg_set_getdeployoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_deploy_options: (a: number, b: number) => Array; + readonly sdk_get_deploy: (a: number, b: number) => number; + readonly sdk_info_get_deploy: (a: number, b: number) => number; readonly __wbg_getaddressableentityresult_free: (a: number, b: number) => void; readonly getaddressableentityresult_api_version: (a: number) => number; readonly getaddressableentityresult_entity_result: (a: number) => number; readonly getaddressableentityresult_merkle_proof: (a: number) => Array; readonly getaddressableentityresult_toJson: (a: number) => number; - readonly __wbg_getentityoptions_free: (a: number, b: number) => void; readonly __wbg_get_getentityoptions_entity_identifier: (a: number) => number; readonly __wbg_set_getentityoptions_entity_identifier: (a: number, b: number) => void; - readonly __wbg_get_getentityoptions_entity_identifier_as_string: (a: number) => Array; - readonly __wbg_set_getentityoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getentityoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getentityoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getentityoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getentityoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getentityoptions_verbosity: (a: number) => number; - readonly __wbg_set_getentityoptions_verbosity: (a: number, b: number) => void; readonly sdk_get_entity_options: (a: number, b: number) => Array; readonly sdk_get_entity: (a: number, b: number) => number; readonly sdk_state_get_entity: (a: number, b: number) => number; - readonly __wbg_geterasummaryresult_free: (a: number, b: number) => void; - readonly geterasummaryresult_api_version: (a: number) => number; - readonly geterasummaryresult_era_summary: (a: number) => number; - readonly geterasummaryresult_toJson: (a: number) => number; - readonly __wbg_geterasummaryoptions_free: (a: number, b: number) => void; - readonly sdk_get_era_summary_options: (a: number, b: number) => Array; - readonly sdk_get_era_summary: (a: number, b: number) => number; - readonly sdk_chain_get_era_summary: (a: number, b: number) => number; - readonly __wbg_getvalidatorchangesresult_free: (a: number, b: number) => void; - readonly getvalidatorchangesresult_api_version: (a: number) => number; - readonly getvalidatorchangesresult_changes: (a: number) => number; - readonly getvalidatorchangesresult_toJson: (a: number) => number; - readonly sdk_get_validator_changes: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_validator_change: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_querycontractkeyoptions_free: (a: number, b: number) => void; - readonly __wbg_get_querycontractkeyoptions_path: (a: number) => number; - readonly __wbg_set_querycontractkeyoptions_path: (a: number, b: number) => void; - readonly __wbg_get_querycontractkeyoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_querycontractkeyoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_querycontractkeyoptions_verbosity: (a: number) => number; - readonly __wbg_set_querycontractkeyoptions_verbosity: (a: number, b: number) => void; - readonly sdk_query_contract_key_options: (a: number, b: number) => Array; - readonly sdk_query_contract_key: (a: number, b: number) => number; + readonly __wbg_geterainforesult_free: (a: number, b: number) => void; + readonly geterainforesult_api_version: (a: number) => number; + readonly geterainforesult_era_summary: (a: number) => number; + readonly geterainforesult_toJson: (a: number) => number; + readonly sdk_get_era_info_options: (a: number, b: number) => Array; + readonly sdk_get_era_info: (a: number, b: number) => number; + readonly sdk_chain_get_era_info_by_switch_block: (a: number, b: number) => number; + readonly __wbg_get_getauctioninfooptions_maybe_block_identifier: (a: number) => number; readonly __wbg_get_getentityoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_get_geterasummaryoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_get_querycontractkeyoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_get_querycontractkeyoptions_entity_identifier: (a: number) => number; - readonly __wbg_set_geterasummaryoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_geterasummaryoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_geterasummaryoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractkeyoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractkeyoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractkeyoptions_path_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_geterasummaryoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_get_geterasummaryoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_querycontractkeyoptions_entity_identifier_as_string: (a: number) => Array; - readonly __wbg_get_querycontractkeyoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_get_querycontractkeyoptions_path_as_string: (a: number) => Array; - readonly __wbg_get_geterasummaryoptions_verbosity: (a: number) => number; + readonly __wbg_get_geterainfooptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getentityoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_getentityoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_getentityoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_geterainfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_geterainfooptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_getentityoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_geterainfooptions_verbosity: (a: number, b: number) => void; + readonly __wbg_get_getentityoptions_entity_identifier_as_string: (a: number) => Array; + readonly __wbg_get_getentityoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_getentityoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_geterainfooptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_geterainfooptions_rpc_address: (a: number) => Array; + readonly __wbg_get_getentityoptions_verbosity: (a: number) => number; + readonly __wbg_get_geterainfooptions_verbosity: (a: number) => number; + readonly __wbg_set_getauctioninfooptions_maybe_block_identifier: (a: number, b: number) => void; readonly __wbg_set_getentityoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_set_geterasummaryoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_set_querycontractkeyoptions_entity_identifier: (a: number, b: number) => void; - readonly __wbg_set_querycontractkeyoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly sdk_get_binary_latest_switch_block_header: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_latest_block_header: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_block_header_by_height: (a: number, b: number, c: number, d: number) => number; - readonly sdk_get_binary_block_header_by_hash: (a: number, b: number, c: number, d: number) => number; - readonly sdk_get_binary_latest_signed_block: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_signed_block_by_height: (a: number, b: number, c: number, d: number) => number; - readonly sdk_get_binary_signed_block_by_hash: (a: number, b: number, c: number, d: number) => number; - readonly sdk_get_binary_transaction_by_hash: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_get_binary_peers: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_uptime: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_last_progress: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_reactor_state: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_network_name: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_consensus_validator_changes: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_block_synchronizer_status: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_available_block_range: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_next_upgrade: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_consensus_status: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_chainspec_raw_bytes: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_node_status: (a: number, b: number, c: number) => number; - readonly sdk_get_binary_validator_reward_by_era: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_get_binary_validator_reward_by_block_height: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_get_binary_validator_reward_by_block_hash: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_get_binary_delegator_reward_by_era: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_get_binary_delegator_reward_by_block_height: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_get_binary_delegator_reward_by_block_hash: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_get_binary_read_record: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_get_binary_global_state_item: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_get_binary_global_state_item_by_state_root_hash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_get_binary_global_state_item_by_block_hash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_get_binary_global_state_item_by_block_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_get_binary_try_accept_transaction: (a: number, b: number, c: number, d: number) => number; - readonly sdk_get_binary_try_speculative_execution: (a: number, b: number, c: number, d: number) => number; - readonly sdk_get_binary_protocol_version: (a: number, b: number, c: number) => number; - readonly __wbg_accessrights_free: (a: number, b: number) => void; - readonly accessrights_NONE: () => number; - readonly accessrights_READ: () => number; - readonly accessrights_WRITE: () => number; - readonly accessrights_ADD: () => number; - readonly accessrights_READ_ADD: () => number; - readonly accessrights_READ_WRITE: () => number; - readonly accessrights_ADD_WRITE: () => number; - readonly accessrights_READ_ADD_WRITE: () => number; - readonly accessrights_new: (a: number) => Array; - readonly accessrights_from_bits: (a: number, b: number, c: number) => number; - readonly accessrights_is_readable: (a: number) => number; - readonly accessrights_is_writeable: (a: number) => number; - readonly accessrights_is_addable: (a: number) => number; - readonly accessrights_is_none: (a: number) => number; - readonly __wbg_transferaddr_free: (a: number, b: number) => void; - readonly transferaddr_new: (a: number, b: number) => Array; - readonly __wbg_getblockresult_free: (a: number, b: number) => void; - readonly getblockresult_api_version: (a: number) => number; - readonly getblockresult_block: (a: number) => number; - readonly getblockresult_toJson: (a: number) => number; - readonly __wbg_getblockoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getblockoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getblockoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getblockoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getblockoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getblockoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getblockoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getblockoptions_verbosity: (a: number) => number; - readonly __wbg_set_getblockoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_block_options: (a: number, b: number) => Array; - readonly sdk_get_block: (a: number, b: number) => number; - readonly sdk_chain_get_block: (a: number, b: number) => number; - readonly __wbg_getdictionaryitemresult_free: (a: number, b: number) => void; - readonly getdictionaryitemresult_api_version: (a: number) => number; - readonly getdictionaryitemresult_dictionary_key: (a: number) => Array; - readonly getdictionaryitemresult_stored_value: (a: number) => number; - readonly getdictionaryitemresult_merkle_proof: (a: number) => Array; - readonly getdictionaryitemresult_toJson: (a: number) => number; - readonly __wbg_getdictionaryitemoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_getdictionaryitemoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getdictionaryitemoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_dictionary_item_params: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_dictionary_item_params: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_dictionary_item_identifier: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_dictionary_item_identifier: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getdictionaryitemoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getdictionaryitemoptions_verbosity: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_dictionary_item_options: (a: number, b: number) => Array; - readonly sdk_get_dictionary_item: (a: number, b: number) => number; - readonly sdk_state_get_dictionary_item: (a: number, b: number) => number; - readonly __wbg_geterainforesult_free: (a: number, b: number) => void; - readonly geterainforesult_api_version: (a: number) => number; - readonly geterainforesult_era_summary: (a: number) => number; - readonly geterainforesult_toJson: (a: number) => number; - readonly sdk_get_era_info_options: (a: number, b: number) => Array; - readonly sdk_get_era_info: (a: number, b: number) => number; - readonly sdk_chain_get_era_info_by_switch_block: (a: number, b: number) => number; - readonly __wbg_getpeersresult_free: (a: number, b: number) => void; - readonly getpeersresult_api_version: (a: number) => number; - readonly getpeersresult_peers: (a: number) => number; - readonly getpeersresult_toJson: (a: number) => number; - readonly sdk_get_peers: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_peers: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_listrpcsresult_free: (a: number, b: number) => void; - readonly listrpcsresult_api_version: (a: number) => number; - readonly listrpcsresult_name: (a: number) => Array; - readonly listrpcsresult_schema: (a: number) => number; - readonly listrpcsresult_toJson: (a: number) => number; - readonly sdk_list_rpcs: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_puttransactionresult_free: (a: number, b: number) => void; - readonly puttransactionresult_api_version: (a: number) => number; - readonly puttransactionresult_transaction_hash: (a: number) => number; - readonly puttransactionresult_toJson: (a: number) => number; - readonly sdk_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_make_deploy: (a: number, b: number, c: number, d: number) => Array; - readonly sdk_sign_deploy: (a: number, b: number, c: number, d: number) => number; - readonly sdk_query_contract_dict_options: (a: number, b: number) => Array; - readonly sdk_query_contract_dict: (a: number, b: number) => number; - readonly __wbg_get_geterainfooptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_get_querycontractdictoptions_dictionary_item_params: (a: number) => number; - readonly __wbg_get_querycontractdictoptions_dictionary_item_identifier: (a: number) => number; - readonly __wbg_set_geterainfooptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_querycontractdictoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_querycontractdictoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_set_geterainfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_geterainfooptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractdictoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractdictoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_querycontractdictoptions_state_root_hash: (a: number) => number; - readonly __wbg_get_geterainfooptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_get_geterainfooptions_rpc_address: (a: number) => Array; - readonly __wbg_get_querycontractdictoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_get_querycontractdictoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_geterainfooptions_verbosity: (a: number) => number; - readonly __wbg_get_querycontractdictoptions_verbosity: (a: number) => number; readonly __wbg_set_geterainfooptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_set_querycontractdictoptions_dictionary_item_params: (a: number, b: number) => void; - readonly __wbg_set_querycontractdictoptions_dictionary_item_identifier: (a: number, b: number) => void; + readonly __wbg_getentityoptions_free: (a: number, b: number) => void; readonly __wbg_geterainfooptions_free: (a: number, b: number) => void; - readonly __wbg_querycontractdictoptions_free: (a: number, b: number) => void; - readonly __wbg_hashaddr_free: (a: number, b: number) => void; - readonly hashaddr_new: (a: number, b: number) => Array; - readonly hashaddr_toBytes: (a: number) => Array; - readonly hashaddr_toHexString: (a: number) => Array; - readonly __wbg_deploystrparams_free: (a: number, b: number) => void; - readonly deploystrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly deploystrparams_secret_key: (a: number) => Array; - readonly deploystrparams_set_secret_key: (a: number, b: number, c: number) => void; - readonly deploystrparams_timestamp: (a: number) => Array; - readonly deploystrparams_set_timestamp: (a: number, b: number, c: number) => void; - readonly deploystrparams_setDefaultTimestamp: (a: number) => void; - readonly deploystrparams_ttl: (a: number) => Array; - readonly deploystrparams_set_ttl: (a: number, b: number, c: number) => void; - readonly deploystrparams_setDefaultTTL: (a: number) => void; - readonly deploystrparams_chain_name: (a: number) => Array; - readonly deploystrparams_set_chain_name: (a: number, b: number, c: number) => void; - readonly deploystrparams_session_account: (a: number) => Array; - readonly deploystrparams_set_session_account: (a: number, b: number, c: number) => void; - readonly deploystrparams_gas_price_tolerance: (a: number) => Array; - readonly deploystrparams_set_gas_price_tolerance: (a: number, b: number, c: number) => void; - readonly __wbg_accounthash_free: (a: number, b: number) => void; - readonly accounthash_new_js_alias: (a: number, b: number) => Array; - readonly accounthash_fromFormattedStr: (a: number, b: number) => Array; - readonly accounthash_fromPublicKey: (a: number) => number; - readonly accounthash_toFormattedString: (a: number) => Array; - readonly accounthash_toHexString: (a: number) => Array; - readonly accounthash_fromUint8Array: (a: number, b: number) => number; - readonly accounthash_toJson: (a: number) => number; - readonly __wbg_addressableentityhash_free: (a: number, b: number) => void; - readonly addressableentityhash_new_js_alias: (a: number, b: number) => Array; - readonly addressableentityhash_fromFormattedStr: (a: number, b: number) => Array; - readonly addressableentityhash_toFormattedString: (a: number) => Array; - readonly addressableentityhash_fromUint8Array: (a: number, b: number) => number; - readonly __wbg_transactionhash_free: (a: number, b: number) => void; - readonly transactionhash_new_js_alias: (a: number, b: number) => Array; - readonly transactionhash_fromRaw: (a: number, b: number) => Array; - readonly transactionhash_digest: (a: number) => Array; - readonly transactionhash_toJson: (a: number) => number; - readonly transactionhash_toString: (a: number) => Array; - readonly __wbg_dictionaryitemidentifier_free: (a: number, b: number) => void; - readonly dictionaryitemidentifier_newFromAccountInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; - readonly dictionaryitemidentifier_newFromContractInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; - readonly dictionaryitemidentifier_newFromEntityInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; - readonly dictionaryitemidentifier_newFromSeedUref: (a: number, b: number, c: number, d: number) => Array; - readonly dictionaryitemidentifier_newFromDictionaryKey: (a: number, b: number) => Array; - readonly dictionaryitemidentifier_toJson: (a: number) => number; - readonly __wbg_recordid_free: (a: number, b: number) => void; - readonly recordid_new_js_alias: (a: number) => Array; - readonly __wbg_transaction_free: (a: number, b: number) => void; - readonly transaction_new: (a: number) => number; - readonly transaction_toJson: (a: number) => number; - readonly transaction_newSession: (a: number, b: number) => Array; - readonly transaction_newTransfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => Array; - readonly transaction_withTTL: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transaction_withTimestamp: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transaction_withChainName: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transaction_withPublicKey: (a: number, b: number, c: number, d: number) => number; - readonly transaction_withAccountHash: (a: number, b: number, c: number, d: number) => number; - readonly transaction_withEntryPoint: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transaction_withEntityHash: (a: number, b: number, c: number, d: number) => number; - readonly transaction_withPackageHash: (a: number, b: number, c: number, d: number) => number; - readonly transaction_withTransactionBytes: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transaction_withSecretKey: (a: number, b: number, c: number) => number; - readonly transaction_verify: (a: number) => number; - readonly transaction_hash: (a: number) => number; - readonly transaction_expired: (a: number) => number; - readonly transaction_expires: (a: number) => number; - readonly transaction_signers: (a: number) => number; - readonly transaction_authorization_keys: (a: number) => number; - readonly transaction_sign: (a: number, b: number, c: number) => number; - readonly transaction_approvalsHash: (a: number) => number; - readonly transaction_approvals: (a: number) => number; - readonly transaction_is_native: (a: number) => number; - readonly transaction_target: (a: number) => number; - readonly transaction_is_standard_payment: (a: number) => number; - readonly transaction_session_args: (a: number) => number; - readonly transaction_addSignature: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transaction_entry_point: (a: number) => Array; - readonly transaction_ttl: (a: number) => Array; - readonly transaction_timestamp: (a: number) => Array; - readonly transaction_size_estimate: (a: number) => number; - readonly transaction_chain_name: (a: number) => Array; - readonly transaction_initiator_addr: (a: number) => Array; - readonly transaction_pricing_mode: (a: number) => number; - readonly transaction_additional_computation_factor: (a: number) => number; - readonly transaction_receipt: (a: number) => number; - readonly transaction_gas_price_tolerance: (a: number) => number; - readonly transaction_account_hash: (a: number) => number; - readonly transaction_addArg: (a: number, b: number, c: number, d: number) => Array; - readonly __wbg_transactionstrparams_free: (a: number, b: number) => void; - readonly transactionstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number) => number; - readonly transactionstrparams_new_with_defaults: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number; - readonly transactionstrparams_secret_key: (a: number) => Array; - readonly transactionstrparams_set_secret_key: (a: number, b: number, c: number) => void; - readonly transactionstrparams_timestamp: (a: number) => Array; - readonly transactionstrparams_set_timestamp: (a: number, b: number, c: number) => void; - readonly transactionstrparams_setDefaultTimestamp: (a: number) => void; - readonly transactionstrparams_ttl: (a: number) => Array; - readonly transactionstrparams_set_ttl: (a: number, b: number, c: number) => void; - readonly transactionstrparams_setDefaultTTL: (a: number) => void; - readonly transactionstrparams_chain_name: (a: number) => Array; - readonly transactionstrparams_set_chain_name: (a: number, b: number, c: number) => void; - readonly transactionstrparams_initiator_addr: (a: number) => Array; - readonly transactionstrparams_set_initiator_addr: (a: number, b: number, c: number) => void; - readonly transactionstrparams_session_args_simple: (a: number) => number; - readonly transactionstrparams_set_session_args_simple: (a: number, b: number, c: number) => void; - readonly transactionstrparams_session_args_json: (a: number) => Array; - readonly transactionstrparams_set_session_args_json: (a: number, b: number, c: number) => void; - readonly transactionstrparams_pricing_mode: (a: number) => number; - readonly transactionstrparams_set_pricing_mode: (a: number, b: number) => void; - readonly transactionstrparams_additional_computation_factor: (a: number) => Array; - readonly transactionstrparams_set_additional_computation_factor: (a: number, b: number, c: number) => void; - readonly transactionstrparams_payment_amount: (a: number) => Array; - readonly transactionstrparams_set_payment_amount: (a: number, b: number, c: number) => void; - readonly transactionstrparams_gas_price_tolerance: (a: number) => Array; - readonly transactionstrparams_set_gas_price_tolerance: (a: number, b: number, c: number) => void; - readonly transactionstrparams_receipt: (a: number) => Array; - readonly transactionstrparams_set_receipt: (a: number, b: number, c: number) => void; - readonly transactionstrparams_standard_payment: (a: number) => number; - readonly transactionstrparams_set_standard_payment: (a: number, b: number) => void; - readonly __wbg_uref_free: (a: number, b: number) => void; - readonly uref_new_js_alias: (a: number, b: number, c: number) => Array; - readonly uref_fromFormattedStr: (a: number, b: number) => Array; - readonly uref_fromUint8Array: (a: number, b: number, c: number) => number; - readonly uref_toFormattedString: (a: number) => Array; - readonly uref_toJson: (a: number) => number; - readonly sdk_put_transaction: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_account_put_transaction: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_speculative_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_call_entrypoint: (a: number, b: number, c: number, d: number, e: number) => number; - readonly __wbg_eraid_free: (a: number, b: number) => void; - readonly eraid_new: (a: number) => number; - readonly eraid_value: (a: number) => number; - readonly sdk_speculative_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly __wbg_casperwallet_free: (a: number, b: number) => void; - readonly casperwallet_new: () => number; - readonly casperwallet_signDeploy: (a: number, b: number, c: number, d: number) => number; - readonly casperwallet_signTransaction: (a: number, b: number, c: number, d: number) => number; - readonly casperwallet_signDeployHash: (a: number, b: number, c: number, d: number, e: number) => number; - readonly casperwallet_signTransactionHash: (a: number, b: number, c: number, d: number, e: number) => number; - readonly casperwallet_signMessage: (a: number, b: number, c: number, d: number, e: number) => number; - readonly casperwallet_connect: (a: number) => number; - readonly casperwallet_disconnect: (a: number) => number; - readonly casperwallet_isConnected: (a: number) => number; - readonly casperwallet_getVersion: (a: number) => number; - readonly casperwallet_getActivePublicKey: (a: number) => number; - readonly casperwallet_switchAccount: (a: number) => number; - readonly __wbg_peerentry_free: (a: number, b: number) => void; - readonly peerentry_node_id: (a: number) => Array; - readonly peerentry_address: (a: number) => Array; - readonly sdk_speculative_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly sdk_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_account_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly sdk_install_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly __wbg_dictionaryitemstrparams_free: (a: number, b: number) => void; - readonly dictionaryitemstrparams_new: () => number; - readonly dictionaryitemstrparams_setAccountNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; - readonly dictionaryitemstrparams_setContractNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; - readonly dictionaryitemstrparams_setEntityNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; - readonly dictionaryitemstrparams_setUref: (a: number, b: number, c: number, d: number, e: number) => void; - readonly dictionaryitemstrparams_setDictionary: (a: number, b: number, c: number) => void; - readonly dictionaryitemstrparams_toJson: (a: number) => number; + readonly __wbg_urefaddr_free: (a: number, b: number) => void; + readonly urefaddr_new: (a: number, b: number) => Array; + readonly __wbg_bytes_free: (a: number, b: number) => void; + readonly bytes_new: () => number; + readonly bytes_fromUint8Array: (a: number) => number; + readonly __wbg_argssimple_free: (a: number, b: number) => void; readonly __wbg_sessionstrparams_free: (a: number, b: number) => void; readonly sessionstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => number; readonly sessionstrparams_session_hash: (a: number) => Array; @@ -4874,29 +4495,238 @@ export interface InitOutput { readonly sessionstrparams_set_session_entry_point: (a: number, b: number, c: number) => void; readonly sessionstrparams_is_session_transfer: (a: number) => number; readonly sessionstrparams_set_is_session_transfer: (a: number, b: number) => void; - readonly __wbg_digest_free: (a: number, b: number) => void; - readonly digest_new_js_alias: (a: number, b: number) => Array; - readonly digest_fromString: (a: number, b: number) => Array; - readonly digest_fromRaw: (a: number, b: number) => Array; - readonly digest_toJson: (a: number) => number; - readonly digest_toString: (a: number) => Array; + readonly __wbg_signatureresponse_free: (a: number, b: number) => void; + readonly signatureresponse_is_cancelled: (a: number) => number; + readonly signatureresponse_get_signature_hex: (a: number) => Array; + readonly signatureresponse_get_signature: (a: number) => Array; + readonly __wbg_putdeployresult_free: (a: number, b: number) => void; + readonly putdeployresult_api_version: (a: number) => number; + readonly putdeployresult_deploy_hash: (a: number) => number; + readonly putdeployresult_toJson: (a: number) => number; + readonly sdk_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbg_getpeersresult_free: (a: number, b: number) => void; + readonly getpeersresult_api_version: (a: number) => number; + readonly getpeersresult_peers: (a: number) => number; + readonly getpeersresult_toJson: (a: number) => number; + readonly sdk_get_peers: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_peers: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_listrpcsresult_free: (a: number, b: number) => void; + readonly listrpcsresult_api_version: (a: number) => number; + readonly listrpcsresult_name: (a: number) => Array; + readonly listrpcsresult_schema: (a: number) => number; + readonly listrpcsresult_toJson: (a: number) => number; + readonly sdk_list_rpcs: (a: number, b: number, c: number, d: number) => number; + readonly sdk_make_deploy: (a: number, b: number, c: number, d: number) => Array; + readonly sdk_sign_deploy: (a: number, b: number, c: number, d: number) => number; + readonly sdk_make_transaction: (a: number, b: number, c: number) => Array; + readonly sdk_sign_transaction: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_querycontractkeyoptions_free: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_entity_identifier: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_entity_identifier: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_entity_identifier_as_string: (a: number) => Array; + readonly __wbg_set_querycontractkeyoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_querycontractkeyoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_path_as_string: (a: number) => Array; + readonly __wbg_set_querycontractkeyoptions_path_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_path: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_path: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_querycontractkeyoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_verbosity: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_contract_key_options: (a: number, b: number) => Array; + readonly sdk_query_contract_key: (a: number, b: number) => number; + readonly __wbg_eraid_free: (a: number, b: number) => void; + readonly eraid_new: (a: number) => number; + readonly eraid_value: (a: number) => number; + readonly __wbg_blockidentifier_free: (a: number, b: number) => void; + readonly blockidentifier_new: (a: number) => number; + readonly blockidentifier_from_hash: (a: number) => number; + readonly blockidentifier_fromHeight: (a: number) => number; + readonly blockidentifier_toJson: (a: number) => number; + readonly sdk_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_account_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_speculative_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly sdk_call_entrypoint_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_install: (a: number, b: number, c: number, d: number, e: number) => number; + readonly __wbg_hashaddr_free: (a: number, b: number) => void; + readonly hashaddr_new: (a: number, b: number) => Array; + readonly hashaddr_toBytes: (a: number) => Array; + readonly hashaddr_toHexString: (a: number) => Array; + readonly __wbg_blockhash_free: (a: number, b: number) => void; + readonly blockhash_new_js_alias: (a: number, b: number) => Array; + readonly blockhash_fromDigest: (a: number) => Array; + readonly blockhash_toJson: (a: number) => number; + readonly blockhash_toString: (a: number) => Array; + readonly __wbg_deployhash_free: (a: number, b: number) => void; + readonly deployhash_new_js_alias: (a: number, b: number) => Array; + readonly deployhash_toJson: (a: number) => number; + readonly deployhash_toString: (a: number) => Array; + readonly __wbg_entityidentifier_free: (a: number, b: number) => void; + readonly entityidentifier_fromFormattedStr: (a: number, b: number) => Array; + readonly entityidentifier_fromPublicKey: (a: number) => number; + readonly entityidentifier_fromAccountHash: (a: number) => number; + readonly entityidentifier_fromEntityAddr: (a: number) => number; + readonly entityidentifier_toJson: (a: number) => number; + readonly __wbg_path_free: (a: number, b: number) => void; + readonly path_new: (a: number) => number; + readonly path_fromArray: (a: number) => number; + readonly path_toJson: (a: number) => number; + readonly path_toString: (a: number) => Array; + readonly path_is_empty: (a: number) => number; + readonly sdk_speculative_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly sdk_put_transaction: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_account_put_transaction: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_watchDeploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_watchTransaction: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_waitDeploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_waitTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbg_watcher_free: (a: number, b: number) => void; + readonly watcher_new: (a: number, b: number, c: number, d: number) => number; + readonly watcher_subscribe: (a: number, b: number, c: number) => Array; + readonly watcher_unsubscribe: (a: number, b: number, c: number) => void; + readonly watcher_start: (a: number) => number; + readonly watcher_stop: (a: number) => void; + readonly __wbg_subscription_free: (a: number, b: number) => void; + readonly __wbg_get_subscription_eventHandlerFn: (a: number) => number; + readonly __wbg_set_subscription_eventHandlerFn: (a: number, b: number) => void; + readonly subscription_new: (a: number, b: number, c: number) => number; + readonly __wbg_failure_free: (a: number, b: number) => void; + readonly __wbg_get_failure_cost: (a: number) => Array; + readonly __wbg_set_failure_cost: (a: number, b: number, c: number) => void; + readonly __wbg_get_failure_error_message: (a: number) => Array; + readonly __wbg_set_failure_error_message: (a: number, b: number, c: number) => void; + readonly __wbg_version2_free: (a: number, b: number) => void; + readonly __wbg_get_version2_error_message: (a: number) => Array; + readonly __wbg_set_version2_error_message: (a: number, b: number, c: number) => void; + readonly __wbg_payment_free: (a: number, b: number) => void; + readonly __wbg_executionresult_free: (a: number, b: number) => void; + readonly __wbg_get_executionresult_Success: (a: number) => number; + readonly __wbg_set_executionresult_Success: (a: number, b: number) => void; + readonly __wbg_get_executionresult_Failure: (a: number) => number; + readonly __wbg_set_executionresult_Failure: (a: number, b: number) => void; + readonly __wbg_hashstring_free: (a: number, b: number) => void; + readonly hashstring_Deploy: (a: number) => Array; + readonly hashstring_toString: (a: number) => Array; + readonly __wbg_publickeystring_free: (a: number, b: number) => void; + readonly __wbg_message_free: (a: number, b: number) => void; + readonly __wbg_messages_free: (a: number, b: number) => void; + readonly __wbg_set_messages_entity_hash: (a: number, b: number, c: number) => void; + readonly __wbg_get_messages_message: (a: number) => number; + readonly __wbg_set_messages_message: (a: number, b: number) => void; + readonly __wbg_get_messages_topic_name: (a: number) => Array; + readonly __wbg_set_messages_topic_name: (a: number, b: number, c: number) => void; + readonly __wbg_get_messages_topic_name_hash: (a: number) => Array; + readonly __wbg_set_messages_topic_name_hash: (a: number, b: number, c: number) => void; + readonly __wbg_get_messages_topic_index: (a: number) => number; + readonly __wbg_set_messages_topic_index: (a: number, b: number) => void; + readonly __wbg_get_messages_block_index: (a: number) => number; + readonly __wbg_set_messages_block_index: (a: number, b: number) => void; + readonly __wbg_transactionprocessed_free: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_hash: (a: number) => number; + readonly __wbg_set_transactionprocessed_hash: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_initiator_addr: (a: number) => number; + readonly __wbg_set_transactionprocessed_initiator_addr: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_timestamp: (a: number) => Array; + readonly __wbg_set_transactionprocessed_timestamp: (a: number, b: number, c: number) => void; + readonly __wbg_set_transactionprocessed_ttl: (a: number, b: number, c: number) => void; + readonly __wbg_get_transactionprocessed_execution_result: (a: number) => number; + readonly __wbg_set_transactionprocessed_execution_result: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_messages: (a: number) => Array; + readonly __wbg_set_transactionprocessed_messages: (a: number, b: number, c: number) => void; + readonly __wbg_body_free: (a: number, b: number) => void; + readonly __wbg_get_body_transaction_processed: (a: number) => number; + readonly __wbg_set_body_transaction_processed: (a: number, b: number) => void; + readonly body_get_deploy_processed: (a: number) => number; + readonly __wbg_eventparseresult_free: (a: number, b: number) => void; + readonly __wbg_get_eventparseresult_err: (a: number) => Array; + readonly __wbg_set_eventparseresult_err: (a: number, b: number, c: number) => void; + readonly __wbg_get_eventparseresult_body: (a: number) => number; + readonly __wbg_set_eventparseresult_body: (a: number, b: number) => void; + readonly sdk_call_entrypoint: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_install_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly deployhash_fromDigest: (a: number) => Array; + readonly __wbg_get_version2_initiator: (a: number) => number; + readonly hashstring_Version1: (a: number) => Array; + readonly __wbg_set_subscription_targetHash: (a: number, b: number, c: number) => void; + readonly __wbg_set_version2_limit: (a: number, b: number, c: number) => void; + readonly __wbg_set_payment_source: (a: number, b: number, c: number) => void; + readonly __wbg_set_hashstring_hash: (a: number, b: number, c: number) => void; + readonly __wbg_set_publickeystring_PublicKey: (a: number, b: number, c: number) => void; + readonly __wbg_set_message_String: (a: number, b: number, c: number) => void; + readonly __wbg_set_version2_consumed: (a: number, b: number, c: number) => void; + readonly __wbg_set_version2_cost: (a: number, b: number, c: number) => void; + readonly __wbg_set_transactionprocessed_block_hash: (a: number, b: number, c: number) => void; + readonly __wbg_set_version2_initiator: (a: number, b: number) => void; + readonly body_get_transaction_processed: (a: number) => number; + readonly __wbg_get_subscription_targetHash: (a: number) => Array; + readonly __wbg_get_version2_limit: (a: number) => Array; + readonly __wbg_get_payment_source: (a: number) => Array; + readonly __wbg_get_hashstring_hash: (a: number) => Array; + readonly __wbg_get_publickeystring_PublicKey: (a: number) => Array; + readonly __wbg_get_message_String: (a: number) => Array; + readonly __wbg_get_messages_entity_hash: (a: number) => Array; + readonly __wbg_get_version2_cost: (a: number) => Array; + readonly __wbg_get_version2_consumed: (a: number) => Array; + readonly __wbg_get_transactionprocessed_ttl: (a: number) => Array; + readonly __wbg_get_transactionprocessed_block_hash: (a: number) => Array; + readonly entityidentifier_new_js_alias: (a: number, b: number) => Array; + readonly __wbg_dictionaryaddr_free: (a: number, b: number) => void; + readonly dictionaryaddr_new: (a: number, b: number) => Array; + readonly __wbg_deploystrparams_free: (a: number, b: number) => void; + readonly deploystrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly deploystrparams_secret_key: (a: number) => Array; + readonly deploystrparams_set_secret_key: (a: number, b: number, c: number) => void; + readonly deploystrparams_timestamp: (a: number) => Array; + readonly deploystrparams_set_timestamp: (a: number, b: number, c: number) => void; + readonly deploystrparams_setDefaultTimestamp: (a: number) => void; + readonly deploystrparams_ttl: (a: number) => Array; + readonly deploystrparams_set_ttl: (a: number, b: number, c: number) => void; + readonly deploystrparams_setDefaultTTL: (a: number) => void; + readonly deploystrparams_chain_name: (a: number) => Array; + readonly deploystrparams_set_chain_name: (a: number, b: number, c: number) => void; + readonly deploystrparams_session_account: (a: number) => Array; + readonly deploystrparams_set_session_account: (a: number, b: number, c: number) => void; + readonly deploystrparams_gas_price_tolerance: (a: number) => Array; + readonly deploystrparams_set_gas_price_tolerance: (a: number, b: number, c: number) => void; + readonly __wbg_accounthash_free: (a: number, b: number) => void; + readonly accounthash_new_js_alias: (a: number, b: number) => Array; + readonly accounthash_fromFormattedStr: (a: number, b: number) => Array; + readonly accounthash_fromPublicKey: (a: number) => number; + readonly accounthash_toFormattedString: (a: number) => Array; + readonly accounthash_toHexString: (a: number) => Array; + readonly accounthash_fromUint8Array: (a: number, b: number) => number; + readonly accounthash_toJson: (a: number) => number; + readonly __wbg_addressableentityhash_free: (a: number, b: number) => void; + readonly addressableentityhash_new_js_alias: (a: number, b: number) => Array; + readonly addressableentityhash_fromFormattedStr: (a: number, b: number) => Array; + readonly addressableentityhash_toFormattedString: (a: number) => Array; + readonly addressableentityhash_fromUint8Array: (a: number, b: number) => number; readonly __wbg_contracthash_free: (a: number, b: number) => void; readonly contracthash_new_js_alias: (a: number, b: number) => Array; readonly contracthash_fromFormattedStr: (a: number, b: number) => Array; readonly contracthash_toFormattedString: (a: number) => Array; readonly contracthash_fromUint8Array: (a: number, b: number) => number; - readonly __wbg_accountidentifier_free: (a: number, b: number) => void; - readonly accountidentifier_fromFormattedStr: (a: number, b: number) => Array; - readonly accountidentifier_fromPublicKey: (a: number) => number; - readonly accountidentifier_fromAccountHash: (a: number) => number; - readonly accountidentifier_toJson: (a: number) => number; - readonly __wbg_entityidentifier_free: (a: number, b: number) => void; - readonly entityidentifier_fromFormattedStr: (a: number, b: number) => Array; - readonly entityidentifier_fromEntityAddr: (a: number) => number; - readonly entityidentifier_toJson: (a: number) => number; - readonly __wbg_purseidentifier_free: (a: number, b: number) => void; - readonly purseidentifier_fromURef: (a: number) => number; - readonly purseidentifier_toJson: (a: number) => number; + readonly __wbg_contractpackagehash_free: (a: number, b: number) => void; + readonly contractpackagehash_new_js_alias: (a: number, b: number) => Array; + readonly contractpackagehash_fromFormattedStr: (a: number, b: number) => Array; + readonly contractpackagehash_toFormattedString: (a: number) => Array; + readonly contractpackagehash_fromUint8Array: (a: number, b: number) => number; + readonly __wbg_packagehash_free: (a: number, b: number) => void; + readonly packagehash_new_js_alias: (a: number, b: number) => Array; + readonly packagehash_fromFormattedStr: (a: number, b: number) => Array; + readonly packagehash_toFormattedString: (a: number) => Array; + readonly packagehash_fromUint8Array: (a: number, b: number) => number; + readonly __wbg_dictionaryitemidentifier_free: (a: number, b: number) => void; + readonly dictionaryitemidentifier_newFromAccountInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; + readonly dictionaryitemidentifier_newFromContractInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; + readonly dictionaryitemidentifier_newFromEntityInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; + readonly dictionaryitemidentifier_newFromSeedUref: (a: number, b: number, c: number, d: number) => Array; + readonly dictionaryitemidentifier_newFromDictionaryKey: (a: number, b: number) => Array; + readonly dictionaryitemidentifier_toJson: (a: number) => number; readonly __wbg_key_free: (a: number, b: number) => void; readonly key_new: (a: number) => Array; readonly key_toJson: (a: number) => number; @@ -4926,27 +4756,15 @@ export interface InitOutput { readonly key_intoURef: (a: number) => number; readonly key_urefToHash: (a: number) => number; readonly key_withdrawToUnbond: (a: number) => number; - readonly __wbg_path_free: (a: number, b: number) => void; - readonly path_new: (a: number) => number; - readonly path_fromArray: (a: number) => number; - readonly path_toJson: (a: number) => number; - readonly path_toString: (a: number) => Array; - readonly path_is_empty: (a: number) => number; - readonly __wbg_publickey_free: (a: number, b: number) => void; - readonly publickey_new_js_alias: (a: number, b: number) => Array; - readonly publickey_fromUint8Array: (a: number, b: number) => Array; - readonly publickey_toAccountHash: (a: number) => number; - readonly publickey_toPurseUref: (a: number) => number; - readonly publickey_toJson: (a: number) => number; readonly __wbg_transfertarget_free: (a: number, b: number) => void; readonly transfertarget_new: (a: number, b: number, c: number, d: number) => number; readonly __wbg_transactionbuilderparams_free: (a: number, b: number) => void; - readonly transactionbuilderparams_newSession: (a: number, b: number) => number; + readonly transactionbuilderparams_newSession: (a: number, b: number, c: number, d: number, e: number) => number; readonly transactionbuilderparams_newTransfer: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly transactionbuilderparams_newInvocableEntity: (a: number, b: number, c: number) => number; - readonly transactionbuilderparams_newInvocableEntityAlias: (a: number, b: number, c: number, d: number) => number; - readonly transactionbuilderparams_newPackage: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transactionbuilderparams_newPackageAlias: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly transactionbuilderparams_newInvocableEntity: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transactionbuilderparams_newInvocableEntityAlias: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly transactionbuilderparams_newPackage: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly transactionbuilderparams_newPackageAlias: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number; readonly transactionbuilderparams_newAddBid: (a: number, b: number, c: number, d: number, e: number, f: number) => number; readonly transactionbuilderparams_newDelegate: (a: number, b: number, c: number, d: number) => number; readonly transactionbuilderparams_newUndelegate: (a: number, b: number, c: number, d: number) => number; @@ -4990,11 +4808,69 @@ export interface InitOutput { readonly transactionbuilderparams_set_maximum_delegation_amount: (a: number, b: number) => void; readonly transactionbuilderparams_is_install_upgrade: (a: number) => number; readonly transactionbuilderparams_set_is_install_upgrade: (a: number, b: number) => void; - readonly __wbg_putdeployresult_free: (a: number, b: number) => void; - readonly putdeployresult_api_version: (a: number) => number; - readonly putdeployresult_deploy_hash: (a: number) => number; - readonly putdeployresult_toJson: (a: number) => number; - readonly sdk_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbg_uref_free: (a: number, b: number) => void; + readonly uref_new_js_alias: (a: number, b: number, c: number) => Array; + readonly uref_fromFormattedStr: (a: number, b: number) => Array; + readonly uref_fromUint8Array: (a: number, b: number, c: number) => number; + readonly uref_toFormattedString: (a: number) => Array; + readonly uref_toJson: (a: number) => number; + readonly __wbg_getblockresult_free: (a: number, b: number) => void; + readonly getblockresult_api_version: (a: number) => number; + readonly getblockresult_block: (a: number) => number; + readonly getblockresult_toJson: (a: number) => number; + readonly __wbg_getblockoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getblockoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getblockoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getblockoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getblockoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getblockoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getblockoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getblockoptions_verbosity: (a: number) => number; + readonly __wbg_set_getblockoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_block_options: (a: number, b: number) => Array; + readonly sdk_get_block: (a: number, b: number) => number; + readonly sdk_chain_get_block: (a: number, b: number) => number; + readonly __wbg_getchainspecresult_free: (a: number, b: number) => void; + readonly getchainspecresult_api_version: (a: number) => number; + readonly getchainspecresult_chainspec_bytes: (a: number) => number; + readonly getchainspecresult_toJson: (a: number) => number; + readonly sdk_get_chainspec: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_chainspec: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_getnodestatusresult_free: (a: number, b: number) => void; + readonly getnodestatusresult_api_version: (a: number) => number; + readonly getnodestatusresult_chainspec_name: (a: number) => Array; + readonly getnodestatusresult_starting_state_root_hash: (a: number) => number; + readonly getnodestatusresult_peers: (a: number) => number; + readonly getnodestatusresult_last_added_block_info: (a: number) => number; + readonly getnodestatusresult_our_public_signing_key: (a: number) => number; + readonly getnodestatusresult_round_length: (a: number) => number; + readonly getnodestatusresult_next_upgrade: (a: number) => number; + readonly getnodestatusresult_build_version: (a: number) => Array; + readonly getnodestatusresult_uptime: (a: number) => number; + readonly getnodestatusresult_reactor_state: (a: number) => number; + readonly getnodestatusresult_last_progress: (a: number) => number; + readonly getnodestatusresult_available_block_range: (a: number) => number; + readonly getnodestatusresult_block_sync: (a: number) => number; + readonly getnodestatusresult_toJson: (a: number) => number; + readonly sdk_get_node_status: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_status: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_getstateroothashresult_free: (a: number, b: number) => void; + readonly getstateroothashresult_api_version: (a: number) => number; + readonly getstateroothashresult_state_root_hash: (a: number) => number; + readonly getstateroothashresult_state_root_hash_as_string: (a: number) => Array; + readonly getstateroothashresult_toString: (a: number) => Array; + readonly getstateroothashresult_toJson: (a: number) => number; + readonly __wbg_getstateroothashoptions_free: (a: number, b: number) => void; + readonly sdk_get_state_root_hash_options: (a: number, b: number) => Array; + readonly sdk_get_state_root_hash: (a: number, b: number) => number; + readonly sdk_chain_get_state_root_hash: (a: number, b: number) => number; + readonly __wbg_querybalanceresult_free: (a: number, b: number) => void; + readonly querybalanceresult_api_version: (a: number) => number; + readonly querybalanceresult_balance: (a: number) => number; + readonly querybalanceresult_toJson: (a: number) => number; + readonly __wbg_querybalanceoptions_free: (a: number, b: number) => void; + readonly sdk_query_balance_options: (a: number, b: number) => Array; + readonly sdk_query_balance: (a: number, b: number) => number; readonly __wbg_querybalancedetailsresult_free: (a: number, b: number) => void; readonly querybalancedetailsresult_api_version: (a: number) => number; readonly querybalancedetailsresult_total_balance: (a: number) => number; @@ -5021,107 +4897,249 @@ export interface InitOutput { readonly __wbg_set_querybalancedetailsoptions_verbosity: (a: number, b: number) => void; readonly sdk_query_balance_details_options: (a: number, b: number) => Array; readonly sdk_query_balance_details: (a: number, b: number) => number; - readonly sdk_speculative_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly sdk_make_transaction: (a: number, b: number, c: number) => Array; - readonly sdk_make_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; - readonly sdk_watchDeploy: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_watchTransaction: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_waitDeploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_waitTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly __wbg_watcher_free: (a: number, b: number) => void; - readonly watcher_new: (a: number, b: number, c: number, d: number) => number; - readonly watcher_subscribe: (a: number, b: number, c: number) => Array; - readonly watcher_unsubscribe: (a: number, b: number, c: number) => void; - readonly watcher_start: (a: number) => number; - readonly watcher_stop: (a: number) => void; - readonly __wbg_subscription_free: (a: number, b: number) => void; - readonly __wbg_get_subscription_eventHandlerFn: (a: number) => number; - readonly __wbg_set_subscription_eventHandlerFn: (a: number, b: number) => void; - readonly subscription_new: (a: number, b: number, c: number) => number; - readonly __wbg_failure_free: (a: number, b: number) => void; - readonly __wbg_get_failure_cost: (a: number) => Array; - readonly __wbg_set_failure_cost: (a: number, b: number, c: number) => void; - readonly __wbg_get_failure_error_message: (a: number) => Array; - readonly __wbg_set_failure_error_message: (a: number, b: number, c: number) => void; - readonly __wbg_version2_free: (a: number, b: number) => void; - readonly __wbg_get_version2_error_message: (a: number) => Array; - readonly __wbg_set_version2_error_message: (a: number, b: number, c: number) => void; - readonly __wbg_payment_free: (a: number, b: number) => void; - readonly __wbg_executionresult_free: (a: number, b: number) => void; - readonly __wbg_get_executionresult_Success: (a: number) => number; - readonly __wbg_set_executionresult_Success: (a: number, b: number) => void; - readonly __wbg_get_executionresult_Failure: (a: number) => number; - readonly __wbg_set_executionresult_Failure: (a: number, b: number) => void; - readonly __wbg_hashstring_free: (a: number, b: number) => void; - readonly hashstring_Deploy: (a: number) => Array; - readonly hashstring_toString: (a: number) => Array; - readonly __wbg_publickeystring_free: (a: number, b: number) => void; - readonly __wbg_message_free: (a: number, b: number) => void; - readonly __wbg_messages_free: (a: number, b: number) => void; - readonly __wbg_set_messages_entity_hash: (a: number, b: number, c: number) => void; - readonly __wbg_get_messages_message: (a: number) => number; - readonly __wbg_set_messages_message: (a: number, b: number) => void; - readonly __wbg_get_messages_topic_name: (a: number) => Array; - readonly __wbg_set_messages_topic_name: (a: number, b: number, c: number) => void; - readonly __wbg_get_messages_topic_name_hash: (a: number) => Array; - readonly __wbg_set_messages_topic_name_hash: (a: number, b: number, c: number) => void; - readonly __wbg_get_messages_topic_index: (a: number) => number; - readonly __wbg_set_messages_topic_index: (a: number, b: number) => void; - readonly __wbg_get_messages_block_index: (a: number) => number; - readonly __wbg_set_messages_block_index: (a: number, b: number) => void; - readonly __wbg_transactionprocessed_free: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_hash: (a: number) => number; - readonly __wbg_set_transactionprocessed_hash: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_initiator_addr: (a: number) => number; - readonly __wbg_set_transactionprocessed_initiator_addr: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_timestamp: (a: number) => Array; - readonly __wbg_set_transactionprocessed_timestamp: (a: number, b: number, c: number) => void; - readonly __wbg_set_transactionprocessed_ttl: (a: number, b: number, c: number) => void; - readonly __wbg_get_transactionprocessed_execution_result: (a: number) => number; - readonly __wbg_set_transactionprocessed_execution_result: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_messages: (a: number) => Array; - readonly __wbg_set_transactionprocessed_messages: (a: number, b: number, c: number) => void; - readonly __wbg_body_free: (a: number, b: number) => void; - readonly __wbg_get_body_transaction_processed: (a: number) => number; - readonly __wbg_set_body_transaction_processed: (a: number, b: number) => void; - readonly body_get_deploy_processed: (a: number) => number; - readonly __wbg_eventparseresult_free: (a: number, b: number) => void; - readonly __wbg_get_eventparseresult_err: (a: number) => Array; - readonly __wbg_set_eventparseresult_err: (a: number, b: number, c: number) => void; - readonly __wbg_get_eventparseresult_body: (a: number) => number; - readonly __wbg_set_eventparseresult_body: (a: number, b: number) => void; - readonly sdk_call_entrypoint_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_install: (a: number, b: number, c: number, d: number, e: number) => number; - readonly __wbg_get_version2_initiator: (a: number) => number; - readonly hashstring_Version1: (a: number) => Array; - readonly accountidentifier_new: (a: number, b: number) => Array; - readonly __wbg_set_subscription_targetHash: (a: number, b: number, c: number) => void; - readonly __wbg_set_version2_limit: (a: number, b: number, c: number) => void; - readonly __wbg_set_payment_source: (a: number, b: number, c: number) => void; - readonly __wbg_set_hashstring_hash: (a: number, b: number, c: number) => void; - readonly __wbg_set_publickeystring_PublicKey: (a: number, b: number, c: number) => void; - readonly __wbg_set_message_String: (a: number, b: number, c: number) => void; - readonly __wbg_set_version2_consumed: (a: number, b: number, c: number) => void; - readonly __wbg_set_version2_cost: (a: number, b: number, c: number) => void; - readonly __wbg_set_transactionprocessed_block_hash: (a: number, b: number, c: number) => void; - readonly __wbg_set_version2_initiator: (a: number, b: number) => void; - readonly body_get_transaction_processed: (a: number) => number; - readonly entityidentifier_fromPublicKey: (a: number) => number; + readonly sdk_speculative_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly __wbg_puttransactionresult_free: (a: number, b: number) => void; + readonly puttransactionresult_api_version: (a: number) => number; + readonly puttransactionresult_transaction_hash: (a: number) => number; + readonly puttransactionresult_toJson: (a: number) => number; + readonly sdk_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly sdk_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly sdk_make_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; + readonly sdk_make_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; + readonly __wbg_sdk_free: (a: number, b: number) => void; + readonly sdk_new: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_getRPCAddress: (a: number, b: number, c: number) => Array; + readonly sdk_setRPCAddress: (a: number, b: number, c: number) => Array; + readonly sdk_getNodeAddress: (a: number, b: number, c: number) => Array; + readonly sdk_setNodeAddress: (a: number, b: number, c: number) => Array; + readonly sdk_getVerbosity: (a: number, b: number) => number; + readonly sdk_setVerbosity: (a: number, b: number) => Array; + readonly __wbg_get_getstateroothashoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_get_querybalanceoptions_global_state_identifier: (a: number) => number; + readonly __wbg_get_querybalanceoptions_purse_identifier: (a: number) => number; + readonly __wbg_set_getstateroothashoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_set_getstateroothashoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_getstateroothashoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_querybalanceoptions_purse_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querybalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querybalanceoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querybalanceoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalanceoptions_state_root_hash: (a: number) => number; + readonly __wbg_get_getstateroothashoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_getstateroothashoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_querybalanceoptions_purse_identifier_as_string: (a: number) => Array; + readonly __wbg_get_querybalanceoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_get_querybalanceoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_querybalanceoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_getstateroothashoptions_verbosity: (a: number) => number; + readonly __wbg_get_querybalanceoptions_verbosity: (a: number) => number; + readonly __wbg_set_getstateroothashoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_purse_identifier: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_global_state_identifier: (a: number, b: number) => void; + readonly sdk_get_binary_latest_switch_block_header: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_latest_block_header: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_block_header_by_height: (a: number, b: number, c: number, d: number) => number; + readonly sdk_get_binary_block_header_by_hash: (a: number, b: number, c: number, d: number) => number; + readonly sdk_get_binary_latest_signed_block: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_signed_block_by_height: (a: number, b: number, c: number, d: number) => number; + readonly sdk_get_binary_signed_block_by_hash: (a: number, b: number, c: number, d: number) => number; + readonly sdk_get_binary_transaction_by_hash: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_get_binary_peers: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_uptime: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_last_progress: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_reactor_state: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_network_name: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_consensus_validator_changes: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_block_synchronizer_status: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_available_block_range: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_next_upgrade: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_consensus_status: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_chainspec_raw_bytes: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_node_status: (a: number, b: number, c: number) => number; + readonly sdk_get_binary_validator_reward_by_era: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_get_binary_validator_reward_by_block_height: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_get_binary_validator_reward_by_block_hash: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_get_binary_delegator_reward_by_era: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly sdk_get_binary_delegator_reward_by_block_height: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly sdk_get_binary_delegator_reward_by_block_hash: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly sdk_get_binary_read_record: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly sdk_get_binary_global_state_item: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly sdk_get_binary_global_state_item_by_state_root_hash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_get_binary_global_state_item_by_block_hash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_get_binary_global_state_item_by_block_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_get_binary_try_accept_transaction: (a: number, b: number, c: number, d: number) => number; + readonly sdk_get_binary_try_speculative_execution: (a: number, b: number, c: number, d: number) => number; + readonly sdk_get_binary_protocol_version: (a: number, b: number, c: number) => number; + readonly __wbg_casperwallet_free: (a: number, b: number) => void; + readonly casperwallet_new: () => number; + readonly casperwallet_signDeploy: (a: number, b: number, c: number, d: number) => number; + readonly casperwallet_signTransaction: (a: number, b: number, c: number, d: number) => number; + readonly casperwallet_signDeployHash: (a: number, b: number, c: number, d: number, e: number) => number; + readonly casperwallet_signTransactionHash: (a: number, b: number, c: number, d: number, e: number) => number; + readonly casperwallet_signMessage: (a: number, b: number, c: number, d: number, e: number) => number; + readonly casperwallet_connect: (a: number) => number; + readonly casperwallet_disconnect: (a: number) => number; + readonly casperwallet_isConnected: (a: number) => number; + readonly casperwallet_getVersion: (a: number) => number; + readonly casperwallet_getActivePublicKey: (a: number) => number; + readonly casperwallet_switchAccount: (a: number) => number; + readonly __wbg_globalstateidentifier_free: (a: number, b: number) => void; + readonly globalstateidentifier_new: (a: number) => number; + readonly globalstateidentifier_fromBlockHash: (a: number) => number; + readonly globalstateidentifier_fromBlockHeight: (a: number) => number; + readonly globalstateidentifier_fromStateRootHash: (a: number) => number; + readonly globalstateidentifier_toJson: (a: number) => number; + readonly __wbg_purseidentifier_free: (a: number, b: number) => void; readonly purseidentifier_fromPublicKey: (a: number) => number; - readonly entityidentifier_fromAccountHash: (a: number) => number; readonly purseidentifier_fromAccountHash: (a: number) => number; - readonly __wbg_get_subscription_targetHash: (a: number) => Array; - readonly __wbg_get_version2_limit: (a: number) => Array; - readonly __wbg_get_payment_source: (a: number) => Array; - readonly __wbg_get_hashstring_hash: (a: number) => Array; - readonly __wbg_get_publickeystring_PublicKey: (a: number) => Array; - readonly __wbg_get_message_String: (a: number) => Array; - readonly __wbg_get_messages_entity_hash: (a: number) => Array; - readonly __wbg_get_version2_cost: (a: number) => Array; - readonly __wbg_get_version2_consumed: (a: number) => Array; - readonly __wbg_get_transactionprocessed_ttl: (a: number) => Array; - readonly __wbg_get_transactionprocessed_block_hash: (a: number) => Array; - readonly entityidentifier_new_js_alias: (a: number, b: number) => Array; + readonly purseidentifier_fromURef: (a: number) => number; + readonly purseidentifier_toJson: (a: number) => number; + readonly sdk_speculative_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly __wbg_getbalanceresult_free: (a: number, b: number) => void; + readonly getbalanceresult_api_version: (a: number) => number; + readonly getbalanceresult_balance_value: (a: number) => number; + readonly getbalanceresult_merkle_proof: (a: number) => Array; + readonly getbalanceresult_toJson: (a: number) => number; + readonly __wbg_getbalanceoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_set_getbalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_getbalanceoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_purse_uref_as_string: (a: number) => Array; + readonly __wbg_set_getbalanceoptions_purse_uref_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_purse_uref: (a: number) => number; + readonly __wbg_set_getbalanceoptions_purse_uref: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getbalanceoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_verbosity: (a: number) => number; + readonly __wbg_set_getbalanceoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_balance_options: (a: number, b: number) => Array; + readonly sdk_get_balance: (a: number, b: number) => number; + readonly sdk_state_get_balance: (a: number, b: number) => number; + readonly __wbg_getblocktransfersresult_free: (a: number, b: number) => void; + readonly getblocktransfersresult_api_version: (a: number) => number; + readonly getblocktransfersresult_block_hash: (a: number) => number; + readonly getblocktransfersresult_transfers: (a: number) => number; + readonly getblocktransfersresult_toJson: (a: number) => number; + readonly __wbg_getblocktransfersoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getblocktransfersoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getblocktransfersoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getblocktransfersoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_verbosity: (a: number) => number; + readonly __wbg_set_getblocktransfersoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getblocktransfersoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly sdk_get_block_transfers_options: (a: number, b: number) => Array; + readonly sdk_get_block_transfers: (a: number, b: number) => number; + readonly sdk_chain_get_block_transfers: (a: number, b: number) => number; + readonly __wbg_getdictionaryitemresult_free: (a: number, b: number) => void; + readonly getdictionaryitemresult_api_version: (a: number) => number; + readonly getdictionaryitemresult_dictionary_key: (a: number) => Array; + readonly getdictionaryitemresult_stored_value: (a: number) => number; + readonly getdictionaryitemresult_merkle_proof: (a: number) => Array; + readonly getdictionaryitemresult_toJson: (a: number) => number; + readonly __wbg_getdictionaryitemoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_set_getdictionaryitemoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdictionaryitemoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_dictionary_item_params: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_dictionary_item_params: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_dictionary_item_identifier: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_dictionary_item_identifier: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getdictionaryitemoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdictionaryitemoptions_verbosity: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_dictionary_item_options: (a: number, b: number) => Array; + readonly sdk_get_dictionary_item: (a: number, b: number) => number; + readonly sdk_state_get_dictionary_item: (a: number, b: number) => number; + readonly __wbg_geterasummaryresult_free: (a: number, b: number) => void; + readonly geterasummaryresult_api_version: (a: number) => number; + readonly geterasummaryresult_era_summary: (a: number) => number; + readonly geterasummaryresult_toJson: (a: number) => number; + readonly __wbg_geterasummaryoptions_free: (a: number, b: number) => void; + readonly sdk_get_era_summary_options: (a: number, b: number) => Array; + readonly sdk_get_era_summary: (a: number, b: number) => number; + readonly sdk_chain_get_era_summary: (a: number, b: number) => number; + readonly __wbg_getvalidatorchangesresult_free: (a: number, b: number) => void; + readonly getvalidatorchangesresult_api_version: (a: number) => number; + readonly getvalidatorchangesresult_changes: (a: number) => number; + readonly getvalidatorchangesresult_toJson: (a: number) => number; + readonly sdk_get_validator_changes: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_validator_change: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_queryglobalstateresult_free: (a: number, b: number) => void; + readonly queryglobalstateresult_api_version: (a: number) => number; + readonly queryglobalstateresult_block_header: (a: number) => number; + readonly queryglobalstateresult_stored_value: (a: number) => number; + readonly queryglobalstateresult_merkle_proof: (a: number) => Array; + readonly queryglobalstateresult_toJson: (a: number) => number; + readonly __wbg_queryglobalstateoptions_free: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_global_state_identifier: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_global_state_identifier: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_key_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_key_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_key: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_key: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_path_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_path_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_path: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_path: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_verbosity: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_global_state_options: (a: number, b: number) => Array; + readonly sdk_query_global_state: (a: number, b: number) => number; + readonly __wbg_speculativeexecresult_free: (a: number, b: number) => void; + readonly speculativeexecresult_api_version: (a: number) => number; + readonly speculativeexecresult_block_hash: (a: number) => number; + readonly speculativeexecresult_execution_result: (a: number) => number; + readonly speculativeexecresult_toJson: (a: number) => number; + readonly __wbg_getspeculativeexecdeployoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_deploy_as_string: (a: number) => Array; + readonly __wbg_set_getspeculativeexecdeployoptions_deploy_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_deploy: (a: number) => number; + readonly __wbg_set_getspeculativeexecdeployoptions_deploy: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getspeculativeexecdeployoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_verbosity: (a: number) => number; + readonly __wbg_set_getspeculativeexecdeployoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_speculative_exec_deploy_options: (a: number, b: number) => Array; + readonly sdk_speculative_exec_deploy: (a: number, b: number) => number; + readonly __wbg_querycontractdictoptions_free: (a: number, b: number) => void; + readonly sdk_query_contract_dict_options: (a: number, b: number) => Array; + readonly sdk_query_contract_dict: (a: number, b: number) => number; + readonly __wbg_get_geterasummaryoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_get_querycontractdictoptions_dictionary_item_params: (a: number) => number; + readonly __wbg_get_querycontractdictoptions_dictionary_item_identifier: (a: number) => number; + readonly __wbg_set_geterasummaryoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_querycontractdictoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_querycontractdictoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_set_geterasummaryoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_geterasummaryoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_querycontractdictoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querycontractdictoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractdictoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_querycontractdictoptions_dictionary_item_params: (a: number, b: number) => void; + readonly __wbg_set_querycontractdictoptions_dictionary_item_identifier: (a: number, b: number) => void; + readonly __wbg_get_geterasummaryoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_geterasummaryoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_querycontractdictoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_get_querycontractdictoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_geterasummaryoptions_verbosity: (a: number) => number; + readonly __wbg_get_querycontractdictoptions_verbosity: (a: number) => number; + readonly __wbg_set_geterasummaryoptions_maybe_block_identifier: (a: number, b: number) => void; readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void; readonly intounderlyingbytesource_type: (a: number) => number; readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number; @@ -5139,16 +5157,16 @@ export interface InitOutput { readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_export_2: WebAssembly.Table; readonly __wbindgen_export_3: WebAssembly.Table; - readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae2e6541fe204983: (a: number, b: number) => void; - readonly closure969_externref_shim: (a: number, b: number, c: number) => void; - readonly closure1166_externref_shim: (a: number, b: number, c: number) => void; - readonly closure1174_externref_shim: (a: number, b: number, c: number) => void; + readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd1bf6ecddece6326: (a: number, b: number) => void; + readonly closure958_externref_shim: (a: number, b: number, c: number) => void; + readonly closure1148_externref_shim: (a: number, b: number, c: number) => void; + readonly closure1160_externref_shim: (a: number, b: number, c: number) => void; readonly __externref_table_dealloc: (a: number) => void; readonly __wbindgen_free: (a: number, b: number, c: number) => void; readonly __externref_table_alloc: () => number; - readonly __wbindgen_exn_store: (a: number) => void; readonly __externref_drop_slice: (a: number, b: number) => void; - readonly closure1724_externref_shim: (a: number, b: number, c: number, d: number) => void; + readonly __wbindgen_exn_store: (a: number) => void; + readonly closure1697_externref_shim: (a: number, b: number, c: number, d: number) => void; readonly __wbindgen_start: () => void; } diff --git a/pkg/casper_rust_wasm_sdk.js b/pkg/casper_rust_wasm_sdk.js index de3d07621..50a5275ff 100644 --- a/pkg/casper_rust_wasm_sdk.js +++ b/pkg/casper_rust_wasm_sdk.js @@ -183,26 +183,19 @@ function makeMutClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_38(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae2e6541fe204983(arg0, arg1); + wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd1bf6ecddece6326(arg0, arg1); } function __wbg_adapter_41(arg0, arg1, arg2) { - wasm.closure969_externref_shim(arg0, arg1, arg2); + wasm.closure958_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_48(arg0, arg1, arg2) { - wasm.closure1166_externref_shim(arg0, arg1, arg2); + wasm.closure1148_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_51(arg0, arg1, arg2) { - wasm.closure1174_externref_shim(arg0, arg1, arg2); -} - -function passArray8ToWasm0(arg, malloc) { - const ptr = malloc(arg.length * 1, 1) >>> 0; - getUint8ArrayMemory0().set(arg, ptr / 1); - WASM_VECTOR_LEN = arg.length; - return ptr; + wasm.closure1160_externref_shim(arg0, arg1, arg2); } function takeFromExternrefTable0(idx) { @@ -211,9 +204,11 @@ function takeFromExternrefTable0(idx) { return value; } -function getArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); +function passArray8ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 1, 1) >>> 0; + getUint8ArrayMemory0().set(arg, ptr / 1); + WASM_VECTOR_LEN = arg.length; + return ptr; } function _assertClass(instance, klass) { @@ -228,6 +223,16 @@ function addToExternrefTable0(obj) { wasm.__wbindgen_export_2.set(idx, obj); return idx; } + +function passArrayJsValueToWasm0(array, malloc) { + const ptr = malloc(array.length * 4, 4) >>> 0; + const mem = getDataViewMemory0(); + for (let i = 0; i < array.length; i++) { + mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); + } + WASM_VECTOR_LEN = array.length; + return ptr; +} /** * Converts a hexadecimal string to a regular string. * @@ -256,6 +261,10 @@ export function hexToString(hex_string) { } } +function getArrayU8FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); +} /** * Converts a hexadecimal string to a Uint8Array. * @@ -525,14 +534,15 @@ export function makeDictionaryItemKey(key, value) { } } -function passArrayJsValueToWasm0(array, malloc) { - const ptr = malloc(array.length * 4, 4) >>> 0; +function getArrayJsValueFromWasm0(ptr, len) { + ptr = ptr >>> 0; const mem = getDataViewMemory0(); - for (let i = 0; i < array.length; i++) { - mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); + const result = []; + for (let i = ptr; i < ptr + 4 * len; i += 4) { + result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); } - WASM_VECTOR_LEN = array.length; - return ptr; + wasm.__externref_drop_slice(ptr, len); + return result; } function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } @@ -545,19 +555,8 @@ function handleError(f, args) { wasm.__wbindgen_exn_store(idx); } } - -function getArrayJsValueFromWasm0(ptr, len) { - ptr = ptr >>> 0; - const mem = getDataViewMemory0(); - const result = []; - for (let i = ptr; i < ptr + 4 * len; i += 4) { - result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); - } - wasm.__externref_drop_slice(ptr, len); - return result; -} -function __wbg_adapter_1205(arg0, arg1, arg2, arg3) { - wasm.closure1724_externref_shim(arg0, arg1, arg2, arg3); +function __wbg_adapter_1211(arg0, arg1, arg2, arg3) { + wasm.closure1697_externref_shim(arg0, arg1, arg2, arg3); } export const PricingMode = Object.freeze({ Fixed:0,"0":"Fixed",Classic:1,"1":"Classic",Reserved:2,"2":"Reserved", }); @@ -2823,7 +2822,7 @@ export class EntityIdentifier { static fromPublicKey(key) { _assertClass(key, PublicKey); var ptr0 = key.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromPublicKey(ptr0); + const ret = wasm.entityidentifier_fromPublicKey(ptr0); return EntityIdentifier.__wrap(ret); } /** @@ -2833,7 +2832,7 @@ export class EntityIdentifier { static fromAccountHash(account_hash) { _assertClass(account_hash, AccountHash); var ptr0 = account_hash.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromAccountHash(ptr0); + const ret = wasm.entityidentifier_fromAccountHash(ptr0); return EntityIdentifier.__wrap(ret); } /** @@ -5713,7 +5712,7 @@ export class PurseIdentifier { constructor(key) { _assertClass(key, PublicKey); var ptr0 = key.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromPublicKey(ptr0); + const ret = wasm.purseidentifier_fromPublicKey(ptr0); this.__wbg_ptr = ret >>> 0; PurseIdentifierFinalization.register(this, this.__wbg_ptr, this); return this; @@ -5725,7 +5724,7 @@ export class PurseIdentifier { static fromAccountHash(account_hash) { _assertClass(account_hash, AccountHash); var ptr0 = account_hash.__destroy_into_raw(); - const ret = wasm.accountidentifier_fromAccountHash(ptr0); + const ret = wasm.purseidentifier_fromAccountHash(ptr0); return PurseIdentifier.__wrap(ret); } /** @@ -6094,6 +6093,96 @@ export class SDK { const ptr = this.__destroy_into_raw(); wasm.__wbg_sdk_free(ptr, 0); } + /** + * Parses transaction options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing transaction options to be parsed. + * + * # Returns + * + * Parsed transaction options as a `GetTransactionOptions` struct. + * @param {any} options + * @returns {getTransactionOptions} + */ + get_transaction_options(options) { + const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getTransactionOptions.__wrap(ret[0]); + } + /** + * Retrieves transaction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + get_transaction(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getTransactionOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + info_get_transaction(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getTransactionOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} + */ + get_speculative_exec_options(options) { + const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getSpeculativeExecTxnOptions.__wrap(ret[0]); + } + /** + * JS function for speculative execution. + * + * # Arguments + * + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecTxnOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + return ret; + } /** * @param {any} options * @returns {getAccountOptions} @@ -6154,566 +6243,615 @@ export class SDK { return ret; } /** - * Parses balance options from a JsValue. + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. * @param {any} options - * @returns {getBalanceOptions} + * @returns {getAuctionInfoOptions} */ - get_balance_options(options) { - const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); + get_auction_info_options(options) { + const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBalanceOptions.__wrap(ret[0]); + return getAuctionInfoOptions.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * Retrieves auction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - get_balance(options) { + get_auction_info(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); + _assertClass(options, getAuctionInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); return ret; } /** - * JavaScript Alias for `get_balance`. - * - * # Arguments - * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - state_get_balance(options) { + state_get_auction_info_js_alias(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); + _assertClass(options, getAuctionInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); return ret; } /** - * Asynchronously retrieves the chainspec. + * Parses deploy options from a JsValue. * * # Arguments * - * * `verbosity` - An optional `Verbosity` parameter. - * * `rpc_address` - An optional rpc address as a string. + * * `options` - A JsValue containing deploy options to be parsed. * * # Returns * - * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} */ - info_get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; + get_deploy_options(options) { + const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getDeployOptions.__wrap(ret[0]); } /** - * Retrieves node status information using the provided options. + * Retrieves deploy information using the provided options. * * # Arguments * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - get_node_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Parses query global state options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query global state options to be parsed. - * - * # Returns - * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. - * @param {any} options - * @returns {queryGlobalStateOptions} - */ - query_global_state_options(options) { - const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); + get_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDeployOptions); + ptr0 = options.__destroy_into_raw(); } - return queryGlobalStateOptions.__wrap(ret[0]); + const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + return ret; } /** - * Retrieves global state information using the provided options. - * - * # Arguments - * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - query_global_state(options) { + info_get_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryGlobalStateOptions); + _assertClass(options, getDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * Parses block transfers options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing block transfers options to be parsed. - * - * # Returns - * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. * @param {any} options - * @returns {getBlockTransfersOptions} + * @returns {getEntityOptions} */ - get_block_transfers_options(options) { - const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); + get_entity_options(options) { + const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBlockTransfersOptions.__wrap(ret[0]); + return getEntityOptions.__wrap(ret[0]); } /** - * Retrieves block transfers information using the provided options. + * Retrieves entity information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: + * - `entity_identifier`: Identifier for the entity. + * - `entity_identifier_as_string`: String representation of the entity identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - get_block_transfers(options) { + get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block_transfers(options) { + state_get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * Parses deploy options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing deploy options to be parsed. - * - * # Returns - * - * Parsed deploy options as a `GetDeployOptions` struct. * @param {any} options - * @returns {getDeployOptions} + * @returns {getEraInfoOptions} */ - get_deploy_options(options) { - const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); + get_era_info_options(options) { + const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getDeployOptions.__wrap(ret[0]); + return getEraInfoOptions.__wrap(ret[0]); } /** - * Retrieves deploy information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} */ - get_deploy(options) { + get_era_info(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getEraInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} */ - info_get_deploy(options) { + chain_get_era_info_by_switch_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getEraInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr, ptr0); return ret; } /** - * Parses state root hash options from a JsValue. + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `options` - A JsValue containing state root hash options to be parsed. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * Parsed state root hash options as a `GetStateRootHashOptions` struct. - * @param {any} options - * @returns {getStateRootHashOptions} + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_state_root_hash_options(options) { - const ret = wasm.sdk_get_state_root_hash_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getStateRootHashOptions.__wrap(ret[0]); + deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return ret; } /** - * Retrieves state root hash information using the provided options. + * Retrieves peers asynchronously. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_state_root_hash(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getStateRootHashOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_state_root_hash(this.__wbg_ptr, ptr0); + get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Lists available RPCs using the provided options. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the listing process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - chain_get_state_root_hash(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getStateRootHashOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr, ptr0); + list_rpcs(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Parses transaction options from a JsValue. + * JS function for `make_deploy`. * * # Arguments * - * * `options` - A JsValue containing transaction options to be parsed. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. * * # Returns * - * Parsed transaction options as a `GetTransactionOptions` struct. - * @param {any} options - * @returns {getTransactionOptions} + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - get_transaction_options(options) { - const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); + make_deploy(deploy_params, session_params, payment_params) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getTransactionOptions.__wrap(ret[0]); + return Deploy.__wrap(ret[0]); } /** - * Retrieves transaction information using the provided options. + * JS function for `sign_deploy`. * * # Arguments * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} - */ - get_transaction(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} */ - info_get_transaction(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); - return ret; + sign_deploy(deploy, secret_key) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); } /** - * Parses query balance options from a JsValue. + * JS function for `make_transaction`. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * Parsed query balance options as a `QueryBalanceOptions` struct. - * @param {any} options - * @returns {queryBalanceOptions} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} */ - query_balance_options(options) { - const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); + make_transaction(builder_params, transaction_params) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryBalanceOptions.__wrap(ret[0]); + return Transaction.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * JS function for `sign_transaction`. * * # Arguments * - * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceOptions | undefined} [options] - * @returns {Promise} + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} */ - query_balance(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryBalanceOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); - return ret; + sign_transaction(transaction, secret_key) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); + return Transaction.__wrap(ret); } /** - * Get options for speculative execution from a JavaScript value. + * Deserialize query_contract_key_options from a JavaScript object. * @param {any} options - * @returns {getSpeculativeExecTxnOptions} + * @returns {queryContractKeyOptions} */ - get_speculative_exec_options(options) { - const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); + query_contract_key_options(options) { + const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getSpeculativeExecTxnOptions.__wrap(ret[0]); + return queryContractKeyOptions.__wrap(ret[0]); } /** - * JS function for speculative execution. + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_key(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractKeyOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Puts a deploy using the provided options. * * # Arguments * - * * `options` - The options for speculative execution. + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - speculative_exec(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecTxnOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); return ret; } /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecDeployOptions} + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_speculative_exec_deploy_options(options) { - const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getSpeculativeExecDeployOptions.__wrap(ret[0]); + account_put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; } /** - * JS function for speculative execution. + * JS function for speculative transfer transaction. * * # Arguments * - * * `options` - The options for speculative execution. + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - speculative_exec_deploy(options) { + speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecDeployOptions); - ptr0 = options.__destroy_into_raw(); + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); } - const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); return ret; } /** - * JS function for `make_transfer`. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `amount` - The transfer amount. - * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. * * `deploy_params` - The deploy parameters. - * * `payment_params` - The payment parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return ret; + } + /** + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + *. + * * `transaction_params` - Transaction parameters. + * * `transaction_bytes` - Transaction Bytes to install + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {TransactionStrParams} transaction_params + * @param {Bytes} transaction_bytes + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + install(transaction_params, transaction_bytes, rpc_address) { + _assertClass(transaction_params, TransactionStrParams); + var ptr0 = transaction_params.__destroy_into_raw(); + _assertClass(transaction_bytes, Bytes); + var ptr1 = transaction_bytes.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + return ret; + } + /** + * JS function for speculative transfer. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id * @param {DeployStrParams} deploy_params * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -6724,305 +6862,321 @@ export class SDK { var ptr3 = deploy_params.__destroy_into_raw(); _assertClass(payment_params, PaymentStrParams); var ptr4 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Deploy.__wrap(ret[0]); + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; } /** - * JS function for `sign_transaction`. + * Puts a transaction using the provided options. * * # Arguments * - * * `transaction` - The transaction to sign. - * * `secret_key` - The secret key for signing. + * * `transaction` - The `Transaction` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * The signed `Transaction`. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the transaction process. * @param {Transaction} transaction - * @param {string} secret_key - * @returns {Transaction} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - sign_transaction(transaction, secret_key) { + put_transaction(transaction, verbosity, rpc_address) { _assertClass(transaction, Transaction); var ptr0 = transaction.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); - return Transaction.__wrap(ret); - } - /** - * @param {string | undefined} [rpc_address] - * @param {string | undefined} [node_address] - * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address, node_address, verbosity) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_new(ptr0, len0, ptr1, len1, isLikeNone(verbosity) ? 3 : verbosity); - this.__wbg_ptr = ret >>> 0; - SDKFinalization.register(this, this.__wbg_ptr, this); - return this; - } - /** - * @param {string | undefined} [rpc_address] - * @returns {string} - */ - getRPCAddress(rpc_address) { - let deferred2_0; - let deferred2_1; - try { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); - deferred2_0 = ret[0]; - deferred2_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); - } - } - /** - * @param {string | undefined} [rpc_address] - */ - setRPCAddress(rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } - } - /** - * @param {string | undefined} [node_address] - * @returns {string} - */ - getNodeAddress(node_address) { - let deferred2_0; - let deferred2_1; - try { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_getNodeAddress(this.__wbg_ptr, ptr0, len0); - deferred2_0 = ret[0]; - deferred2_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); - } - } - /** - * @param {string | undefined} [node_address] - */ - setNodeAddress(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_setNodeAddress(this.__wbg_ptr, ptr0, len0); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } + const ret = wasm.sdk_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; } /** + * JavaScript Alias for `put_transaction`. + * @param {Transaction} transaction * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - getVerbosity(verbosity) { - const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + account_put_transaction(transaction, verbosity, rpc_address) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); return ret; } /** - * @param {Verbosity | undefined} [verbosity] + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - setVerbosity(verbosity) { - const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } + watchDeploy(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); } /** - * Parses auction info options from a JsValue. + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. - * @param {any} options - * @returns {getAuctionInfoOptions} + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - get_auction_info_options(options) { - const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getAuctionInfoOptions.__wrap(ret[0]); + watchTransaction(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); } /** - * Retrieves auction information using the provided options. + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - get_auction_info(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); + waitDeploy(events_url, deploy_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); return ret; } /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - state_get_auction_info_js_alias(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); + waitTransaction(events_url, target_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); return ret; } /** - * @param {any} options - * @returns {getEntityOptions} - */ - get_entity_options(options) { - const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getEntityOptions.__wrap(ret[0]); - } - /** - * Retrieves entity information using the provided options. - * - * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: - * - `entity_identifier`: Identifier for the entity. - * - `entity_identifier_as_string`: String representation of the entity identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Transaction Builder parameters. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_entity(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); + call_entrypoint(builder_params, transaction_params, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); return ret; } /** - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - state_get_entity(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); + install_deploy(deploy_params, session_params, payment_amount, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); return ret; } /** - * Parses era summary options from a JsValue. + * Parses block options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing era summary options to be parsed. + * * `options` - A JsValue containing block options to be parsed. * * # Returns * - * Parsed era summary options as a `GetEraSummaryOptions` struct. + * Parsed block options as a `GetBlockOptions` struct. * @param {any} options - * @returns {getEraSummaryOptions} + * @returns {getBlockOptions} */ - get_era_summary_options(options) { - const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); + get_block_options(options) { + const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getEraSummaryOptions.__wrap(ret[0]); + return getBlockOptions.__wrap(ret[0]); } /** - * Retrieves era summary information using the provided options. + * Retrieves block information using the provided options. * * # Arguments * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary(options) { + get_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); + _assertClass(options, getBlockOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for the `get_block`. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - chain_get_era_summary(options) { + chain_get_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); + _assertClass(options, getBlockOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves validator changes using the provided options. + * Asynchronously retrieves the chainspec. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` parameter. + * * `rpc_address` - An optional rpc address as a string. + * + * # Returns + * + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Retrieves node status information using the provided options. * * # Arguments * @@ -7031,283 +7185,692 @@ export class SDK { * * # Returns * - * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - get_validator_changes(verbosity, rpc_address) { + get_node_status(verbosity, rpc_address) { var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - info_get_validator_change(verbosity, rpc_address) { + info_get_status(verbosity, rpc_address) { var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Deserialize query_contract_key_options from a JavaScript object. + * Parses state root hash options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing state root hash options to be parsed. + * + * # Returns + * + * Parsed state root hash options as a `GetStateRootHashOptions` struct. * @param {any} options - * @returns {queryContractKeyOptions} + * @returns {getStateRootHashOptions} */ - query_contract_key_options(options) { - const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); + get_state_root_hash_options(options) { + const ret = wasm.sdk_get_state_root_hash_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryContractKeyOptions.__wrap(ret[0]); + return getStateRootHashOptions.__wrap(ret[0]); } /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} + * Retrieves state root hash information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - query_contract_key(options) { + get_state_root_hash(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryContractKeyOptions); + _assertClass(options, getStateRootHashOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_latest_switch_block_header(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_latest_switch_block_header(this.__wbg_ptr, ptr0, len0); - return ret; - } - /** - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_latest_block_header(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_latest_block_header(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_state_root_hash(this.__wbg_ptr, ptr0); return ret; } /** - * @param {bigint} height - * @param {string | undefined} [node_address] - * @returns {Promise} + * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - get_binary_block_header_by_height(height, node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_block_header_by_height(this.__wbg_ptr, height, ptr0, len0); + chain_get_state_root_hash(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getStateRootHashOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr, ptr0); return ret; } /** - * @param {BlockHash} block_hash - * @param {string | undefined} [node_address] - * @returns {Promise} + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceOptions` struct. + * @param {any} options + * @returns {queryBalanceOptions} */ - get_binary_block_header_by_hash(block_hash, node_address) { - _assertClass(block_hash, BlockHash); - var ptr0 = block_hash.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_block_header_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); - return ret; + query_balance_options(options) { + const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryBalanceOptions.__wrap(ret[0]); } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_binary_latest_signed_block(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_latest_signed_block(this.__wbg_ptr, ptr0, len0); + query_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); return ret; } /** - * @param {bigint} height - * @param {string | undefined} [node_address] - * @returns {Promise} + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * @param {any} options + * @returns {queryBalanceDetailsOptions} */ - get_binary_signed_block_by_height(height, node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_signed_block_by_height(this.__wbg_ptr, height, ptr0, len0); - return ret; + query_balance_details_options(options) { + const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryBalanceDetailsOptions.__wrap(ret[0]); } /** - * @param {BlockHash} block_hash - * @param {string | undefined} [node_address] - * @returns {Promise} + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} */ - get_binary_signed_block_by_hash(block_hash, node_address) { - _assertClass(block_hash, BlockHash); - var ptr0 = block_hash.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_signed_block_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); + query_balance_details(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryBalanceDetailsOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); return ret; } /** - * @param {TransactionHash} hash - * @param {boolean} with_finalized_approvals - * @param {string | undefined} [node_address] - * @returns {Promise} + * This function allows executing a transaction speculatively. + * + * # Arguments + * + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - Transactionment parameters for the transaction. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. + * + * # Returns + * + * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_binary_transaction_by_hash(hash, with_finalized_approvals, node_address) { - _assertClass(hash, TransactionHash); - var ptr0 = hash.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_transaction_by_hash(this.__wbg_ptr, ptr0, with_finalized_approvals, ptr1, len1); + speculative_transaction(builder_params, transaction_params, verbosity, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); return ret; } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * JavaScript function for transactioning with deserialized parameters. + * + * # Arguments + * + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Session parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. + * + * # Returns + * + * A result containing PutTransactionResult or a JsError. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_binary_peers(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_peers(this.__wbg_ptr, ptr0, len0); + transaction(builder_params, transaction_params, verbosity, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); return ret; } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * JS function for transaction transferring funds. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_binary_uptime(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_uptime(this.__wbg_ptr, ptr0, len0); + transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { + let ptr0 = 0; + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); + } + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); return ret; } /** + * JS function for `make_transfer`. + * + * # Arguments + * + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return Deploy.__wrap(ret[0]); + } + /** + * JS function for `make_transfer_transaction`. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. + * + * # Returns + * + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} + */ + make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { + let ptr0 = 0; + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); + } + const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return Transaction.__wrap(ret[0]); + } + /** + * @param {string | undefined} [rpc_address] * @param {string | undefined} [node_address] - * @returns {Promise} + * @param {Verbosity | undefined} [verbosity] */ - get_binary_last_progress(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + constructor(rpc_address, node_address, verbosity) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_last_progress(this.__wbg_ptr, ptr0, len0); - return ret; + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_new(ptr0, len0, ptr1, len1, isLikeNone(verbosity) ? 3 : verbosity); + this.__wbg_ptr = ret >>> 0; + SDKFinalization.register(this, this.__wbg_ptr, this); + return this; } /** - * @param {string | undefined} [node_address] - * @returns {Promise} + * @param {string | undefined} [rpc_address] + * @returns {string} */ - get_binary_reactor_state(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + getRPCAddress(rpc_address) { + let deferred2_0; + let deferred2_1; + try { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); + deferred2_0 = ret[0]; + deferred2_1 = ret[1]; + return getStringFromWasm0(ret[0], ret[1]); + } finally { + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } + } + /** + * @param {string | undefined} [rpc_address] + */ + setRPCAddress(rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_reactor_state(this.__wbg_ptr, ptr0, len0); - return ret; + const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } } /** * @param {string | undefined} [node_address] - * @returns {Promise} + * @returns {string} */ - get_binary_network_name(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_network_name(this.__wbg_ptr, ptr0, len0); - return ret; + getNodeAddress(node_address) { + let deferred2_0; + let deferred2_1; + try { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_getNodeAddress(this.__wbg_ptr, ptr0, len0); + deferred2_0 = ret[0]; + deferred2_1 = ret[1]; + return getStringFromWasm0(ret[0], ret[1]); + } finally { + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } } /** * @param {string | undefined} [node_address] - * @returns {Promise} */ - get_binary_consensus_validator_changes(node_address) { + setNodeAddress(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_consensus_validator_changes(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_setNodeAddress(this.__wbg_ptr, ptr0, len0); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } + /** + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} + */ + getVerbosity(verbosity) { + const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); return ret; } + /** + * @param {Verbosity | undefined} [verbosity] + */ + setVerbosity(verbosity) { + const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } /** * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_block_synchronizer_status(node_address) { + get_binary_latest_switch_block_header(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_block_synchronizer_status(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_latest_switch_block_header(this.__wbg_ptr, ptr0, len0); return ret; } /** * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_available_block_range(node_address) { + get_binary_latest_block_header(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_available_block_range(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_latest_block_header(this.__wbg_ptr, ptr0, len0); return ret; } /** + * @param {bigint} height * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_next_upgrade(node_address) { + get_binary_block_header_by_height(height, node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_next_upgrade(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_block_header_by_height(this.__wbg_ptr, height, ptr0, len0); return ret; } /** + * @param {BlockHash} block_hash * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_consensus_status(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_consensus_status(this.__wbg_ptr, ptr0, len0); + get_binary_block_header_by_hash(block_hash, node_address) { + _assertClass(block_hash, BlockHash); + var ptr0 = block_hash.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_block_header_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); return ret; } /** * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_chainspec_raw_bytes(node_address) { + get_binary_latest_signed_block(node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_chainspec_raw_bytes(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_latest_signed_block(this.__wbg_ptr, ptr0, len0); return ret; } /** + * @param {bigint} height * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_node_status(node_address) { + get_binary_signed_block_by_height(height, node_address) { var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_node_status(this.__wbg_ptr, ptr0, len0); + const ret = wasm.sdk_get_binary_signed_block_by_height(this.__wbg_ptr, height, ptr0, len0); return ret; } /** - * @param {PublicKey} validator_key - * @param {EraId} era + * @param {BlockHash} block_hash * @param {string | undefined} [node_address] * @returns {Promise} */ - get_binary_validator_reward_by_era(validator_key, era, node_address) { - _assertClass(validator_key, PublicKey); - var ptr0 = validator_key.__destroy_into_raw(); - _assertClass(era, EraId); - var ptr1 = era.__destroy_into_raw(); - var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; + get_binary_signed_block_by_hash(block_hash, node_address) { + _assertClass(block_hash, BlockHash); + var ptr0 = block_hash.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_signed_block_by_hash(this.__wbg_ptr, ptr0, ptr1, len1); + return ret; + } + /** + * @param {TransactionHash} hash + * @param {boolean} with_finalized_approvals + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_transaction_by_hash(hash, with_finalized_approvals, node_address) { + _assertClass(hash, TransactionHash); + var ptr0 = hash.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_transaction_by_hash(this.__wbg_ptr, ptr0, with_finalized_approvals, ptr1, len1); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_peers(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_peers(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_uptime(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_uptime(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_last_progress(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_last_progress(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_reactor_state(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_reactor_state(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_network_name(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_network_name(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_consensus_validator_changes(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_consensus_validator_changes(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_block_synchronizer_status(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_block_synchronizer_status(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_available_block_range(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_available_block_range(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_next_upgrade(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_next_upgrade(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_consensus_status(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_consensus_status(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_chainspec_raw_bytes(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_chainspec_raw_bytes(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_node_status(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_node_status(this.__wbg_ptr, ptr0, len0); + return ret; + } + /** + * @param {PublicKey} validator_key + * @param {EraId} era + * @param {string | undefined} [node_address] + * @returns {Promise} + */ + get_binary_validator_reward_by_era(validator_key, era, node_address) { + _assertClass(validator_key, PublicKey); + var ptr0 = validator_key.__destroy_into_raw(); + _assertClass(era, EraId); + var ptr1 = era.__destroy_into_raw(); + var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; const ret = wasm.sdk_get_binary_validator_reward_by_era(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); return ret; } @@ -7472,489 +8035,51 @@ export class SDK { * @param {(string)[]} path * @param {string | undefined} [node_address] * @returns {Promise} - */ - get_binary_global_state_item_by_block_height(block_height, key, path, node_address) { - _assertClass(key, Key); - var ptr0 = key.__destroy_into_raw(); - const ptr1 = passArrayJsValueToWasm0(path, wasm.__wbindgen_malloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_global_state_item_by_block_height(this.__wbg_ptr, block_height, ptr0, ptr1, len1, ptr2, len2); - return ret; - } - /** - * @param {Transaction} transaction - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_try_accept_transaction(transaction, node_address) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_try_accept_transaction(this.__wbg_ptr, ptr0, ptr1, len1); - return ret; - } - /** - * @param {Transaction} transaction - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_try_speculative_execution(transaction, node_address) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_try_speculative_execution(this.__wbg_ptr, ptr0, ptr1, len1); - return ret; - } - /** - * @param {string | undefined} [node_address] - * @returns {Promise} - */ - get_binary_protocol_version(node_address) { - var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_binary_protocol_version(this.__wbg_ptr, ptr0, len0); - return ret; - } - /** - * Parses block options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing block options to be parsed. - * - * # Returns - * - * Parsed block options as a `GetBlockOptions` struct. - * @param {any} options - * @returns {getBlockOptions} - */ - get_block_options(options) { - const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getBlockOptions.__wrap(ret[0]); - } - /** - * Retrieves block information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} - */ - get_block(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); - return ret; - } - /** - * JavaScript Alias for the `get_block`. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} - */ - chain_get_block(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Parses dictionary item options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing dictionary item options to be parsed. - * - * # Returns - * - * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. - * @param {any} options - * @returns {getDictionaryItemOptions} - */ - get_dictionary_item_options(options) { - const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getDictionaryItemOptions.__wrap(ret[0]); - } - /** - * Retrieves dictionary item information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - get_dictionary_item(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); - return ret; - } - /** - * JavaScript Alias for `get_dictionary_item` - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - state_get_dictionary_item(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {any} options - * @returns {getEraInfoOptions} - */ - get_era_info_options(options) { - const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getEraInfoOptions.__wrap(ret[0]); - } - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_era_info(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEraInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - chain_get_era_info_by_switch_block(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEraInfoOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Retrieves peers asynchronously. - * - * # Arguments - * - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Lists available RPCs using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the listing process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - list_rpcs(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * JavaScript function for transactioning with deserialized parameters. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Session parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. - * - * # Returns - * - * A result containing PutTransactionResult or a JsError. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - transaction(builder_params, transaction_params, verbosity, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); - return ret; - } - /** - * JS function for `make_deploy`. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. - * - * # Returns - * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} - */ - make_deploy(deploy_params, session_params, payment_params) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Deploy.__wrap(ret[0]); - } - /** - * JS function for `sign_deploy`. - * - * # Arguments - * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. - * - * # Returns - * - * The signed `Deploy`. - * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} - */ - sign_deploy(deploy, secret_key) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); - return Deploy.__wrap(ret); - } - /** - * Deserialize query_contract_dict_options from a JavaScript object. - * @param {any} options - * @returns {queryContractDictOptions} - */ - query_contract_dict_options(options) { - const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return queryContractDictOptions.__wrap(ret[0]); - } - /** - * JavaScript function for query_contract_dict with deserialized options. - * @param {queryContractDictOptions | undefined} [options] - * @returns {Promise} - */ - query_contract_dict(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryContractDictOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); + */ + get_binary_global_state_item_by_block_height(block_height, key, path, node_address) { + _assertClass(key, Key); + var ptr0 = key.__destroy_into_raw(); + const ptr1 = passArrayJsValueToWasm0(path, wasm.__wbindgen_malloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_global_state_item_by_block_height(this.__wbg_ptr, block_height, ptr0, ptr1, len1, ptr2, len2); return ret; } /** - * Puts a transaction using the provided options. - * - * # Arguments - * - * * `transaction` - The `Transaction` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the transaction process. * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - put_transaction(transaction, verbosity, rpc_address) { + get_binary_try_accept_transaction(transaction, node_address) { _assertClass(transaction, Transaction); var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + const ret = wasm.sdk_get_binary_try_accept_transaction(this.__wbg_ptr, ptr0, ptr1, len1); return ret; } /** - * JavaScript Alias for `put_transaction`. * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - account_put_transaction(transaction, verbosity, rpc_address) { + get_binary_try_speculative_execution(transaction, node_address) { _assertClass(transaction, Transaction); var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * This function allows executing a transaction speculatively. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - Transactionment parameters for the transaction. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transaction(builder_params, transaction_params, verbosity, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); + const ret = wasm.sdk_get_binary_try_speculative_execution(this.__wbg_ptr, ptr0, ptr1, len1); return ret; } /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {string | undefined} [node_address] + * @returns {Promise} */ - call_entrypoint(builder_params, transaction_params, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + get_binary_protocol_version(node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_binary_protocol_version(this.__wbg_ptr, ptr0, len0); return ret; } /** @@ -8032,517 +8157,391 @@ export class SDK { return ret; } /** - * JS function for speculative transfer. - * - * # Arguments - * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { - const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - _assertClass(deploy_params, DeployStrParams); - var ptr3 = deploy_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr4 = payment_params.__destroy_into_raw(); - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * JS function for transaction transferring funds. + * Parses balance options from a JsValue. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). + * * `options` - A JsValue containing balance options to be parsed. * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} */ - transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { - let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); + get_balance_options(options) { + const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; + return getBalanceOptions.__wrap(ret[0]); } /** - * Installs a smart contract with the specified parameters and returns the result. + * Retrieves balance information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the installation. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - install_deploy(deploy_params, session_params, payment_amount, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * JavaScript function for deploying with deserialized parameters. + * JavaScript Alias for `get_balance`. * * # Arguments * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + state_get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * Parses query balance options from a JsValue. + * Parses block transfers options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `options` - A JsValue containing block transfers options to be parsed. * * # Returns * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. * @param {any} options - * @returns {queryBalanceDetailsOptions} + * @returns {getBlockTransfersOptions} */ - query_balance_details_options(options) { - const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); + get_block_transfers_options(options) { + const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryBalanceDetailsOptions.__wrap(ret[0]); + return getBlockTransfersOptions.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * Retrieves block transfers information using the provided options. * * # Arguments * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - query_balance_details(options) { + get_block_transfers(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryBalanceDetailsOptions); + _assertClass(options, getBlockTransfersOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); return ret; } /** - * JS function for speculative transfer transaction. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { + chain_get_block_transfers(options) { let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); + if (!isLikeNone(options)) { + _assertClass(options, getBlockTransfersOptions); + ptr0 = options.__destroy_into_raw(); } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); return ret; } /** - * JS function for `make_transaction`. + * Parses dictionary item options from a JsValue. * * # Arguments * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. + * * `options` - A JsValue containing dictionary item options to be parsed. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @returns {Transaction} + * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * @param {any} options + * @returns {getDictionaryItemOptions} */ - make_transaction(builder_params, transaction_params) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); + get_dictionary_item_options(options) { + const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Transaction.__wrap(ret[0]); + return getDictionaryItemOptions.__wrap(ret[0]); } /** - * JS function for `make_transfer_transaction`. + * Retrieves dictionary item information using the provided options. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. + * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @returns {Transaction} + * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} */ - make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { + get_dictionary_item(options) { let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); } - const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); + const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); + return ret; + } + /** + * JavaScript Alias for `get_dictionary_item` + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} + */ + state_get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Parses era summary options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing era summary options to be parsed. + * + * # Returns + * + * Parsed era summary options as a `GetEraSummaryOptions` struct. + * @param {any} options + * @returns {getEraSummaryOptions} + */ + get_era_summary_options(options) { + const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Transaction.__wrap(ret[0]); + return getEraSummaryOptions.__wrap(ret[0]); } /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias + * Retrieves era summary information using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} + */ + get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + return ret; + } + /** + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - watchDeploy(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); + chain_get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); + return ret; } /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Retrieves validator changes using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - watchTransaction(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); + get_validator_changes(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; } /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - waitDeploy(events_url, deploy_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + info_get_validator_change(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Parses query global state options from a JsValue. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - A JsValue containing query global state options to be parsed. * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} */ - waitTransaction(events_url, target_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return ret; + query_global_state_options(options) { + const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryGlobalStateOptions.__wrap(ret[0]); } /** - * Calls a smart contract entry point with the specified parameters and returns the result. + * Retrieves global state information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the call. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} */ - call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + query_global_state(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryGlobalStateOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); return ret; } /** - * Installs a smart contract with the specified parameters and returns the result. + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecDeployOptions} + */ + get_speculative_exec_deploy_options(options) { + const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getSpeculativeExecDeployOptions.__wrap(ret[0]); + } + /** + * JS function for speculative execution. * * # Arguments - *. - * * `transaction_params` - Transaction parameters. - * * `transaction_bytes` - Transaction Bytes to install - * * `rpc_address` - An optional rpc address to send the request to. * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * * `options` - The options for speculative execution. * - * # Errors + * # Returns * - * Returns a `JsError` if there is an error during the installation. - * @param {TransactionStrParams} transaction_params - * @param {Bytes} transaction_bytes - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} */ - install(transaction_params, transaction_bytes, rpc_address) { - _assertClass(transaction_params, TransactionStrParams); - var ptr0 = transaction_params.__destroy_into_raw(); - _assertClass(transaction_bytes, Bytes); - var ptr1 = transaction_bytes.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_install(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + speculative_exec_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecDeployOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Deserialize query_contract_dict_options from a JavaScript object. + * @param {any} options + * @returns {queryContractDictOptions} + */ + query_contract_dict_options(options) { + const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return queryContractDictOptions.__wrap(ret[0]); + } + /** + * JavaScript function for query_contract_dict with deserialized options. + * @param {queryContractDictOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_dict(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractDictOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); return ret; } } @@ -8954,7 +8953,7 @@ export class SpeculativeExecTxnResult { * @returns {BlockHash} */ get block_hash() { - const ret = wasm.speculativeexecresult_block_hash(this.__wbg_ptr); + const ret = wasm.speculativeexectxnresult_block_hash(this.__wbg_ptr); return BlockHash.__wrap(ret); } /** @@ -9542,15 +9541,22 @@ export class TransactionBuilderParams { /** * @param {Bytes | undefined} [transaction_bytes] * @param {boolean | undefined} [is_install_upgrade] + * @param {bigint | undefined} [transferred_value] + * @param {Bytes | undefined} [seed] * @returns {TransactionBuilderParams} */ - static newSession(transaction_bytes, is_install_upgrade) { + static newSession(transaction_bytes, is_install_upgrade, transferred_value, seed) { let ptr0 = 0; if (!isLikeNone(transaction_bytes)) { _assertClass(transaction_bytes, Bytes); ptr0 = transaction_bytes.__destroy_into_raw(); } - const ret = wasm.transactionbuilderparams_newSession(ptr0, isLikeNone(is_install_upgrade) ? 0xFFFFFF : is_install_upgrade ? 1 : 0); + let ptr1 = 0; + if (!isLikeNone(seed)) { + _assertClass(seed, Bytes); + ptr1 = seed.__destroy_into_raw(); + } + const ret = wasm.transactionbuilderparams_newSession(ptr0, isLikeNone(is_install_upgrade) ? 0xFFFFFF : is_install_upgrade ? 1 : 0, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value, ptr1); return TransactionBuilderParams.__wrap(ret); } /** @@ -9576,59 +9582,63 @@ export class TransactionBuilderParams { /** * @param {AddressableEntityHash} entity_hash * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntity(entity_hash, entry_point) { + static newInvocableEntity(entity_hash, entry_point, transferred_value) { _assertClass(entity_hash, AddressableEntityHash); var ptr0 = entity_hash.__destroy_into_raw(); const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newInvocableEntity(ptr0, ptr1, len1); + const ret = wasm.transactionbuilderparams_newInvocableEntity(ptr0, ptr1, len1, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** * @param {string} entity_alias * @param {string} entry_point + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newInvocableEntityAlias(entity_alias, entry_point) { + static newInvocableEntityAlias(entity_alias, entry_point, transferred_value) { const ptr0 = passStringToWasm0(entity_alias, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newInvocableEntityAlias(ptr0, len0, ptr1, len1); + const ret = wasm.transactionbuilderparams_newInvocableEntityAlias(ptr0, len0, ptr1, len1, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** * @param {PackageHash} package_hash * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackage(package_hash, entry_point, maybe_entity_version) { + static newPackage(package_hash, entry_point, maybe_entity_version, transferred_value) { _assertClass(package_hash, PackageHash); var ptr0 = package_hash.__destroy_into_raw(); const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; var ptr2 = isLikeNone(maybe_entity_version) ? 0 : passStringToWasm0(maybe_entity_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len2 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newPackage(ptr0, ptr1, len1, ptr2, len2); + const ret = wasm.transactionbuilderparams_newPackage(ptr0, ptr1, len1, ptr2, len2, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** * @param {string} package_alias * @param {string} entry_point * @param {string | undefined} [maybe_entity_version] + * @param {bigint | undefined} [transferred_value] * @returns {TransactionBuilderParams} */ - static newPackageAlias(package_alias, entry_point, maybe_entity_version) { + static newPackageAlias(package_alias, entry_point, maybe_entity_version, transferred_value) { const ptr0 = passStringToWasm0(package_alias, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; var ptr2 = isLikeNone(maybe_entity_version) ? 0 : passStringToWasm0(maybe_entity_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len2 = WASM_VECTOR_LEN; - const ret = wasm.transactionbuilderparams_newPackageAlias(ptr0, len0, ptr1, len1, ptr2, len2); + const ret = wasm.transactionbuilderparams_newPackageAlias(ptr0, len0, ptr1, len1, ptr2, len2, !isLikeNone(transferred_value), isLikeNone(transferred_value) ? BigInt(0) : transferred_value); return TransactionBuilderParams.__wrap(ret); } /** @@ -10293,8 +10303,11 @@ export class TransactionStrParams { * @param {string | undefined} [gas_price_tolerance] * @param {string | undefined} [receipt] * @param {boolean | undefined} [standard_payment] + * @param {string | undefined} [transferred_value] + * @param {string | undefined} [session_entry_point] + * @param {Bytes | undefined} [chunked_args] */ - constructor(chain_name, initiator_addr, secret_key, timestamp, ttl, session_args_simple, session_args_json, pricing_mode, additional_computation_factor, payment_amount, gas_price_tolerance, receipt, standard_payment) { + constructor(chain_name, initiator_addr, secret_key, timestamp, ttl, session_args_simple, session_args_json, pricing_mode, additional_computation_factor, payment_amount, gas_price_tolerance, receipt, standard_payment, transferred_value, session_entry_point, chunked_args) { const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; var ptr1 = isLikeNone(initiator_addr) ? 0 : passStringToWasm0(initiator_addr, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -10317,7 +10330,16 @@ export class TransactionStrParams { var len9 = WASM_VECTOR_LEN; var ptr10 = isLikeNone(receipt) ? 0 : passStringToWasm0(receipt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len10 = WASM_VECTOR_LEN; - const ret = wasm.transactionstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(pricing_mode) ? 3 : pricing_mode, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, isLikeNone(standard_payment) ? 0xFFFFFF : standard_payment ? 1 : 0); + var ptr11 = isLikeNone(transferred_value) ? 0 : passStringToWasm0(transferred_value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len11 = WASM_VECTOR_LEN; + var ptr12 = isLikeNone(session_entry_point) ? 0 : passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len12 = WASM_VECTOR_LEN; + let ptr13 = 0; + if (!isLikeNone(chunked_args)) { + _assertClass(chunked_args, Bytes); + ptr13 = chunked_args.__destroy_into_raw(); + } + const ret = wasm.transactionstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(pricing_mode) ? 3 : pricing_mode, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, isLikeNone(standard_payment) ? 0xFFFFFF : standard_payment ? 1 : 0, ptr11, len11, ptr12, len12, ptr13); this.__wbg_ptr = ret >>> 0; TransactionStrParamsFinalization.register(this, this.__wbg_ptr, this); return this; @@ -10576,17 +10598,72 @@ export class TransactionStrParams { wasm.transactionstrparams_set_receipt(this.__wbg_ptr, ptr0, len0); } /** - * @returns {boolean | undefined} + * @returns {boolean | undefined} + */ + get standard_payment() { + const ret = wasm.transactionstrparams_standard_payment(this.__wbg_ptr); + return ret === 0xFFFFFF ? undefined : ret !== 0; + } + /** + * @param {boolean} standard_payment + */ + set standard_payment(standard_payment) { + wasm.transactionstrparams_set_standard_payment(this.__wbg_ptr, standard_payment); + } + /** + * @returns {string | undefined} + */ + get transferred_value() { + const ret = wasm.transactionstrparams_transferred_value(this.__wbg_ptr); + let v1; + if (ret[0] !== 0) { + v1 = getStringFromWasm0(ret[0], ret[1]).slice(); + wasm.__wbindgen_free(ret[0], ret[1] * 1, 1); + } + return v1; + } + /** + * @param {string} transferred_value + */ + set transferred_value(transferred_value) { + const ptr0 = passStringToWasm0(transferred_value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.transactionstrparams_set_transferred_value(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_entry_point() { + const ret = wasm.transactionstrparams_session_entry_point(this.__wbg_ptr); + let v1; + if (ret[0] !== 0) { + v1 = getStringFromWasm0(ret[0], ret[1]).slice(); + wasm.__wbindgen_free(ret[0], ret[1] * 1, 1); + } + return v1; + } + /** + * @param {string} session_entry_point + */ + set session_entry_point(session_entry_point) { + const ptr0 = passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.transactionstrparams_set_session_entry_point(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Bytes | undefined} */ - get standard_payment() { - const ret = wasm.transactionstrparams_standard_payment(this.__wbg_ptr); - return ret === 0xFFFFFF ? undefined : ret !== 0; + get chunked_args() { + const ret = wasm.transactionstrparams_chunked_args(this.__wbg_ptr); + return ret === 0 ? undefined : Bytes.__wrap(ret); } /** - * @param {boolean} standard_payment + * @param {Bytes} chunked_args */ - set standard_payment(standard_payment) { - wasm.transactionstrparams_set_standard_payment(this.__wbg_ptr, standard_payment); + set chunked_args(chunked_args) { + _assertClass(chunked_args, Bytes); + var ptr0 = chunked_args.__destroy_into_raw(); + wasm.transactionstrparams_set_chunked_args(this.__wbg_ptr, ptr0); } } @@ -11251,7 +11328,7 @@ export class getAuctionInfoOptions { * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -11263,7 +11340,7 @@ export class getAuctionInfoOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -11948,7 +12025,7 @@ export class getEntityOptions { set entity_identifier_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {string | undefined} @@ -11968,13 +12045,13 @@ export class getEntityOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -11986,7 +12063,7 @@ export class getEntityOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12006,20 +12083,20 @@ export class getEntityOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getaccountoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getentityoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getentityoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -12066,13 +12143,13 @@ export class getEraInfoOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12084,7 +12161,7 @@ export class getEraInfoOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12104,20 +12181,20 @@ export class getEraInfoOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -12166,13 +12243,13 @@ export class getEraSummaryOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12184,7 +12261,7 @@ export class getEraSummaryOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12204,20 +12281,20 @@ export class getEraSummaryOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -12376,7 +12453,7 @@ export class getSpeculativeExecTxnOptions { set transaction_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr, ptr0, len0); } /** * The transaction to execute. @@ -12418,14 +12495,14 @@ export class getSpeculativeExecTxnOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * The verbosity level for logging. * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** @@ -12433,7 +12510,7 @@ export class getSpeculativeExecTxnOptions { * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -12482,13 +12559,13 @@ export class getStateRootHashOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12500,7 +12577,7 @@ export class getStateRootHashOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12520,20 +12597,20 @@ export class getStateRootHashOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -12582,7 +12659,7 @@ export class getTransactionOptions { set transaction_hash_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_gettransactionoptions_transaction_hash_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {TransactionHash | undefined} @@ -12606,14 +12683,14 @@ export class getTransactionOptions { * @returns {boolean | undefined} */ get finalized_approvals() { - const ret = wasm.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr); + const ret = wasm.__wbg_get_gettransactionoptions_finalized_approvals(this.__wbg_ptr); return ret === 0xFFFFFF ? undefined : ret !== 0; } /** * @param {boolean | undefined} [arg0] */ set finalized_approvals(arg0) { - wasm.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0); + wasm.__wbg_set_gettransactionoptions_finalized_approvals(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0); } /** * @returns {string | undefined} @@ -12633,20 +12710,20 @@ export class getTransactionOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_gettransactionoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_gettransactionoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_gettransactionoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -12871,13 +12948,13 @@ export class queryBalanceOptions { set purse_identifier_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {PurseIdentifier | undefined} */ get purse_identifier() { - const ret = wasm.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr); return ret === 0 ? undefined : PurseIdentifier.__wrap(ret); } /** @@ -12889,13 +12966,13 @@ export class queryBalanceOptions { _assertClass(arg0, PurseIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr, ptr0); } /** * @returns {GlobalStateIdentifier | undefined} */ get global_state_identifier() { - const ret = wasm.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr); return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); } /** @@ -12907,7 +12984,7 @@ export class queryBalanceOptions { _assertClass(arg0, GlobalStateIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12927,13 +13004,13 @@ export class queryBalanceOptions { set state_root_hash_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {Digest | undefined} */ get state_root_hash() { - const ret = wasm.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr); return ret === 0 ? undefined : Digest.__wrap(ret); } /** @@ -12945,7 +13022,7 @@ export class queryBalanceOptions { _assertClass(arg0, Digest); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12965,7 +13042,7 @@ export class queryBalanceOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {string | undefined} @@ -12985,20 +13062,20 @@ export class queryBalanceOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_querybalanceoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querybalancedetailsoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_querybalancedetailsoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_querybalancedetailsoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -13165,7 +13242,7 @@ export class queryContractKeyOptions { * @returns {EntityIdentifier | undefined} */ get entity_identifier() { - const ret = wasm.__wbg_get_getentityoptions_entity_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querycontractkeyoptions_entity_identifier(this.__wbg_ptr); return ret === 0 ? undefined : EntityIdentifier.__wrap(ret); } /** @@ -13177,7 +13254,7 @@ export class queryContractKeyOptions { _assertClass(arg0, EntityIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getentityoptions_entity_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querycontractkeyoptions_entity_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -13197,13 +13274,13 @@ export class queryContractKeyOptions { set entity_identifier_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querycontractkeyoptions_entity_identifier_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -13215,7 +13292,7 @@ export class queryContractKeyOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -13235,7 +13312,7 @@ export class queryContractKeyOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {string | undefined} @@ -13255,7 +13332,7 @@ export class queryContractKeyOptions { set path_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {Path | undefined} @@ -13558,147 +13635,147 @@ async function __wbg_load(module, imports) { function __wbg_get_imports() { const imports = {}; imports.wbg = {}; - imports.wbg.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { - const ret = arg0.isConnected(); - return ret; - }, arguments) }; imports.wbg.__wbindgen_error_new = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbindgen_boolean_get = function(arg0) { - const v = arg0; - const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; - return ret; - }; imports.wbg.__wbindgen_string_new = function(arg0, arg1) { const ret = getStringFromWasm0(arg0, arg1); return ret; }; - imports.wbg.__wbg_getblockresult_new = function(arg0) { - const ret = GetBlockResult.__wrap(arg0); + imports.wbg.__wbg_getdeployresult_new = function(arg0) { + const ret = GetDeployResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getnodestatusresult_new = function(arg0) { - const ret = GetNodeStatusResult.__wrap(arg0); + imports.wbg.__wbg_puttransactionresult_new = function(arg0) { + const ret = PutTransactionResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getchainspecresult_new = function(arg0) { - const ret = GetChainspecResult.__wrap(arg0); + imports.wbg.__wbg_getdictionaryitemresult_new = function(arg0) { + const ret = GetDictionaryItemResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { - const ret = arg0.getVersion(); + imports.wbg.__wbg_querybalanceresult_new = function(arg0) { + const ret = QueryBalanceResult.__wrap(arg0); return ret; - }, arguments) }; - imports.wbg.__wbindgen_string_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; - imports.wbg.__wbg_puttransactionresult_new = function(arg0) { - const ret = PutTransactionResult.__wrap(arg0); + imports.wbg.__wbg_putdeployresult_new = function(arg0) { + const ret = PutDeployResult.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_getpeersresult_new = function(arg0) { + const ret = GetPeersResult.__wrap(arg0); return ret; }; imports.wbg.__wbg_getbalanceresult_new = function(arg0) { const ret = GetBalanceResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getvalidatorchangesresult_new = function(arg0) { - const ret = GetValidatorChangesResult.__wrap(arg0); + imports.wbg.__wbg_geterasummaryresult_new = function(arg0) { + const ret = GetEraSummaryResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getpeersresult_new = function(arg0) { - const ret = GetPeersResult.__wrap(arg0); + imports.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { + const ret = arg0.requestSwitchAccount(); + return ret; + }, arguments) }; + imports.wbg.__wbindgen_boolean_get = function(arg0) { + const v = arg0; + const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; return ret; }; - imports.wbg.__wbg_putdeployresult_new = function(arg0) { - const ret = PutDeployResult.__wrap(arg0); + imports.wbg.__wbg_querybalancedetailsresult_new = function(arg0) { + const ret = QueryBalanceDetailsResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_listrpcsresult_new = function(arg0) { - const ret = ListRpcsResult.__wrap(arg0); + imports.wbg.__wbg_getchainspecresult_new = function(arg0) { + const ret = GetChainspecResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getauctioninforesult_new = function(arg0) { - const ret = GetAuctionInfoResult.__wrap(arg0); + imports.wbg.__wbg_getblockresult_new = function(arg0) { + const ret = GetBlockResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_geterasummaryresult_new = function(arg0) { - const ret = GetEraSummaryResult.__wrap(arg0); + imports.wbg.__wbg_getvalidatorchangesresult_new = function(arg0) { + const ret = GetValidatorChangesResult.__wrap(arg0); return ret; }; imports.wbg.__wbg_speculativeexecresult_new = function(arg0) { const ret = SpeculativeExecResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getdictionaryitemresult_new = function(arg0) { - const ret = GetDictionaryItemResult.__wrap(arg0); + imports.wbg.__wbg_geterainforesult_new = function(arg0) { + const ret = GetEraInfoResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getaccountresult_new = function(arg0) { - const ret = GetAccountResult.__wrap(arg0); + imports.wbg.__wbg_queryglobalstateresult_new = function(arg0) { + const ret = QueryGlobalStateResult.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_transaction_new = function(arg0) { + const ret = Transaction.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_speculativeexectxnresult_new = function(arg0) { + const ret = SpeculativeExecTxnResult.__wrap(arg0); return ret; }; imports.wbg.__wbg_getaddressableentityresult_new = function(arg0) { const ret = GetAddressableEntityResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_gettransactionresult_new = function(arg0) { - const ret = GetTransactionResult.__wrap(arg0); + imports.wbg.__wbg_deploy_new = function(arg0) { + const ret = Deploy.__wrap(arg0); return ret; }; - imports.wbg.__wbg_speculativeexectxnresult_new = function(arg0) { - const ret = SpeculativeExecTxnResult.__wrap(arg0); + imports.wbg.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { + const ret = arg0.getVersion(); + return ret; + }, arguments) }; + imports.wbg.__wbindgen_string_get = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); + }; + imports.wbg.__wbg_getblocktransfersresult_new = function(arg0) { + const ret = GetBlockTransfersResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getdeployresult_new = function(arg0) { - const ret = GetDeployResult.__wrap(arg0); + imports.wbg.__wbg_getauctioninforesult_new = function(arg0) { + const ret = GetAuctionInfoResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_transaction_new = function(arg0) { - const ret = Transaction.__wrap(arg0); + imports.wbg.__wbg_listrpcsresult_new = function(arg0) { + const ret = ListRpcsResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_queryglobalstateresult_new = function(arg0) { - const ret = QueryGlobalStateResult.__wrap(arg0); + imports.wbg.__wbg_getaccountresult_new = function(arg0) { + const ret = GetAccountResult.__wrap(arg0); return ret; }; imports.wbg.__wbg_getstateroothashresult_new = function(arg0) { const ret = GetStateRootHashResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_querybalancedetailsresult_new = function(arg0) { - const ret = QueryBalanceDetailsResult.__wrap(arg0); + imports.wbg.__wbg_getnodestatusresult_new = function(arg0) { + const ret = GetNodeStatusResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_geterainforesult_new = function(arg0) { - const ret = GetEraInfoResult.__wrap(arg0); + imports.wbg.__wbg_gettransactionresult_new = function(arg0) { + const ret = GetTransactionResult.__wrap(arg0); return ret; }; imports.wbg.__wbg_disconnectFromSite_2d2501f4e00e57c8 = function() { return handleError(function (arg0) { const ret = arg0.disconnectFromSite(); return ret; }, arguments) }; - imports.wbg.__wbg_querybalanceresult_new = function(arg0) { - const ret = QueryBalanceResult.__wrap(arg0); - return ret; - }; - imports.wbg.__wbg_deploy_new = function(arg0) { - const ret = Deploy.__wrap(arg0); - return ret; - }; - imports.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { - const ret = arg0.requestSwitchAccount(); + imports.wbg.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { + const ret = arg0.isConnected(); return ret; }, arguments) }; - imports.wbg.__wbg_getblocktransfersresult_new = function(arg0) { - const ret = GetBlockTransfersResult.__wrap(arg0); - return ret; - }; imports.wbg.__wbg_signMessage_c2bf40612e99c084 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.signMessage(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return ret; @@ -13711,6 +13788,10 @@ function __wbg_get_imports() { const ret = arg0.getActivePublicKey(); return ret; }, arguments) }; + imports.wbg.__wbg_messages_new = function(arg0) { + const ret = Messages.__wrap(arg0); + return ret; + }; imports.wbg.__wbindgen_cb_drop = function(arg0) { const obj = arg0.original; if (obj.cnt-- == 1) { @@ -13720,47 +13801,43 @@ function __wbg_get_imports() { const ret = false; return ret; }; - imports.wbg.__wbg_messages_new = function(arg0) { - const ret = Messages.__wrap(arg0); - return ret; - }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = arg0 === undefined; - return ret; - }; imports.wbg.__wbg_error_d52bf4e1868fa715 = function(arg0, arg1) { console.error(getStringFromWasm0(arg0, arg1)); }; imports.wbg.__wbg_log_5199e4d2d51afa95 = function(arg0, arg1) { console.log(getStringFromWasm0(arg0, arg1)); }; - imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) { - const ret = arg0 === arg1; - return ret; - }; imports.wbg.__wbindgen_number_get = function(arg0, arg1) { const obj = arg1; const ret = typeof(obj) === 'number' ? obj : undefined; getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); }; - imports.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); + imports.wbg.__wbg_subscription_unwrap = function(arg0) { + const ret = Subscription.__unwrap(arg0); + return ret; + }; imports.wbg.__wbg_messages_unwrap = function(arg0) { const ret = Messages.__unwrap(arg0); return ret; }; - imports.wbg.__wbg_subscription_unwrap = function(arg0) { - const ret = Subscription.__unwrap(arg0); + imports.wbg.__wbindgen_is_null = function(arg0) { + const ret = arg0 === null; + return ret; + }; + imports.wbg.__wbindgen_is_undefined = function(arg0) { + const ret = arg0 === undefined; + return ret; + }; + imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) { + const ret = arg0 === arg1; return ret; }; + imports.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); imports.wbg.__wbg_sign_5740ada8ba2ef8c3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.sign(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return ret; }, arguments) }; - imports.wbg.__wbindgen_is_null = function(arg0) { - const ret = arg0 === null; - return ret; - }; imports.wbg.__wbindgen_is_function = function(arg0) { const ret = typeof(arg0) === 'function'; return ret; @@ -14111,7 +14188,7 @@ function __wbg_get_imports() { const a = state0.a; state0.a = 0; try { - return __wbg_adapter_1205(a, state0.b, arg0, arg1); + return __wbg_adapter_1211(a, state0.b, arg0, arg1); } finally { state0.a = a; } @@ -14207,28 +14284,28 @@ function __wbg_get_imports() { const ret = wasm.memory; return ret; }; - imports.wbg.__wbindgen_closure_wrapper1671 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 537, __wbg_adapter_38); + imports.wbg.__wbindgen_closure_wrapper1500 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 536, __wbg_adapter_38); return ret; }; - imports.wbg.__wbindgen_closure_wrapper5370 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 970, __wbg_adapter_41); + imports.wbg.__wbindgen_closure_wrapper5314 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_41); return ret; }; - imports.wbg.__wbindgen_closure_wrapper5372 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 970, __wbg_adapter_41); + imports.wbg.__wbindgen_closure_wrapper5316 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_41); return ret; }; - imports.wbg.__wbindgen_closure_wrapper5374 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 970, __wbg_adapter_41); + imports.wbg.__wbindgen_closure_wrapper5318 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_41); return ret; }; - imports.wbg.__wbindgen_closure_wrapper6066 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1167, __wbg_adapter_48); + imports.wbg.__wbindgen_closure_wrapper5988 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1149, __wbg_adapter_48); return ret; }; - imports.wbg.__wbindgen_closure_wrapper6086 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1175, __wbg_adapter_51); + imports.wbg.__wbindgen_closure_wrapper6025 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1161, __wbg_adapter_51); return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { diff --git a/pkg/casper_rust_wasm_sdk_bg.wasm b/pkg/casper_rust_wasm_sdk_bg.wasm index 6015330a3..dfe55b593 100644 Binary files a/pkg/casper_rust_wasm_sdk_bg.wasm and b/pkg/casper_rust_wasm_sdk_bg.wasm differ diff --git a/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts b/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts index d5f4bed83..6354c6a03 100644 --- a/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts +++ b/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts @@ -1,115 +1,28 @@ /* tslint:disable */ /* eslint-disable */ export const memory: WebAssembly.Memory; -export function __wbg_dictionaryaddr_free(a: number, b: number): void; -export function dictionaryaddr_new(a: number, b: number): Array; -export function __wbg_signatureresponse_free(a: number, b: number): void; -export function signatureresponse_is_cancelled(a: number): number; -export function signatureresponse_get_signature_hex(a: number): Array; -export function signatureresponse_get_signature(a: number): Array; -export function __wbg_getaccountresult_free(a: number, b: number): void; -export function getaccountresult_api_version(a: number): number; -export function getaccountresult_account(a: number): number; -export function getaccountresult_merkle_proof(a: number): Array; -export function getaccountresult_toJson(a: number): number; -export function __wbg_getaccountoptions_free(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier(a: number): number; -export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; -export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_verbosity(a: number): number; -export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; -export function sdk_get_account_options(a: number, b: number): Array; -export function sdk_get_account(a: number, b: number): number; -export function sdk_state_get_account_info(a: number, b: number): number; -export function __wbg_getbalanceresult_free(a: number, b: number): void; -export function getbalanceresult_api_version(a: number): number; -export function getbalanceresult_balance_value(a: number): number; -export function getbalanceresult_merkle_proof(a: number): Array; -export function getbalanceresult_toJson(a: number): number; -export function __wbg_getbalanceoptions_free(a: number, b: number): void; -export function __wbg_get_getbalanceoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_getbalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getbalanceoptions_state_root_hash(a: number): number; -export function __wbg_set_getbalanceoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_getbalanceoptions_purse_uref_as_string(a: number): Array; -export function __wbg_set_getbalanceoptions_purse_uref_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getbalanceoptions_purse_uref(a: number): number; -export function __wbg_set_getbalanceoptions_purse_uref(a: number, b: number): void; -export function __wbg_get_getbalanceoptions_rpc_address(a: number): Array; -export function __wbg_set_getbalanceoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getbalanceoptions_verbosity(a: number): number; -export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): void; -export function sdk_get_balance_options(a: number, b: number): Array; -export function sdk_get_balance(a: number, b: number): number; -export function sdk_state_get_balance(a: number, b: number): number; -export function __wbg_getchainspecresult_free(a: number, b: number): void; -export function getchainspecresult_api_version(a: number): number; -export function getchainspecresult_chainspec_bytes(a: number): number; -export function getchainspecresult_toJson(a: number): number; -export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; -export function __wbg_getnodestatusresult_free(a: number, b: number): void; -export function getnodestatusresult_api_version(a: number): number; -export function getnodestatusresult_chainspec_name(a: number): Array; -export function getnodestatusresult_starting_state_root_hash(a: number): number; -export function getnodestatusresult_peers(a: number): number; -export function getnodestatusresult_last_added_block_info(a: number): number; -export function getnodestatusresult_our_public_signing_key(a: number): number; -export function getnodestatusresult_round_length(a: number): number; -export function getnodestatusresult_next_upgrade(a: number): number; -export function getnodestatusresult_build_version(a: number): Array; -export function getnodestatusresult_uptime(a: number): number; -export function getnodestatusresult_reactor_state(a: number): number; -export function getnodestatusresult_last_progress(a: number): number; -export function getnodestatusresult_available_block_range(a: number): number; -export function getnodestatusresult_block_sync(a: number): number; -export function getnodestatusresult_toJson(a: number): number; -export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; -export function __wbg_queryglobalstateresult_free(a: number, b: number): void; -export function queryglobalstateresult_api_version(a: number): number; -export function queryglobalstateresult_block_header(a: number): number; -export function queryglobalstateresult_stored_value(a: number): number; -export function queryglobalstateresult_merkle_proof(a: number): Array; -export function queryglobalstateresult_toJson(a: number): number; -export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; -export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; -export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key(a: number): number; -export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_path(a: number): number; -export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; -export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; -export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; -export function sdk_query_global_state_options(a: number, b: number): Array; -export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_accessrights_free(a: number, b: number): void; +export function accessrights_NONE(): number; +export function accessrights_READ(): number; +export function accessrights_WRITE(): number; +export function accessrights_ADD(): number; +export function accessrights_READ_ADD(): number; +export function accessrights_READ_WRITE(): number; +export function accessrights_ADD_WRITE(): number; +export function accessrights_READ_ADD_WRITE(): number; +export function accessrights_new(a: number): Array; +export function accessrights_from_bits(a: number, b: number, c: number): number; +export function accessrights_is_readable(a: number): number; +export function accessrights_is_writeable(a: number): number; +export function accessrights_is_addable(a: number): number; +export function accessrights_is_none(a: number): number; export function __wbg_entityaddr_free(a: number, b: number): void; export function entityaddr_fromFormattedStr(a: number, b: number): Array; export function entityaddr_toFormattedString(a: number): Array; export function entityaddr_toHexString(a: number): Array; export function entityaddr_toJson(a: number): number; -export function __wbg_bytes_free(a: number, b: number): void; -export function bytes_new(): number; -export function bytes_fromUint8Array(a: number): number; +export function __wbg_transferaddr_free(a: number, b: number): void; +export function transferaddr_new(a: number, b: number): Array; export function __wbg_deploy_free(a: number, b: number): void; export function deploy_new(a: number): number; export function deploy_toJson(a: number): number; @@ -151,6 +64,14 @@ export function deploy_account(a: number): Array; export function deploy_paymentAmount(a: number, b: number): Array; export function deploy_args(a: number): number; export function deploy_addArg(a: number, b: number, c: number, d: number): Array; +export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; +export function dictionaryitemstrparams_new(): number; +export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; +export function dictionaryitemstrparams_toJson(a: number): number; export function __wbg_paymentstrparams_free(a: number, b: number): void; export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; export function paymentstrparams_payment_amount(a: number): Array; @@ -173,148 +94,147 @@ export function paymentstrparams_payment_version(a: number): Array; export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; export function paymentstrparams_payment_entry_point(a: number): Array; export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; -export function __wbg_blockhash_free(a: number, b: number): void; -export function blockhash_new_js_alias(a: number, b: number): Array; -export function blockhash_fromDigest(a: number): Array; -export function blockhash_toJson(a: number): number; -export function blockhash_toString(a: number): Array; -export function __wbg_contractpackagehash_free(a: number, b: number): void; -export function contractpackagehash_new_js_alias(a: number, b: number): Array; -export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; -export function contractpackagehash_toFormattedString(a: number): Array; -export function contractpackagehash_fromUint8Array(a: number, b: number): number; -export function __wbg_deployhash_free(a: number, b: number): void; -export function deployhash_new_js_alias(a: number, b: number): Array; -export function deployhash_toJson(a: number): number; -export function deployhash_toString(a: number): Array; -export function __wbg_packagehash_free(a: number, b: number): void; -export function packagehash_new_js_alias(a: number, b: number): Array; -export function packagehash_fromFormattedStr(a: number, b: number): Array; -export function packagehash_toFormattedString(a: number): Array; -export function packagehash_fromUint8Array(a: number, b: number): number; -export function __wbg_globalstateidentifier_free(a: number, b: number): void; -export function globalstateidentifier_new(a: number): number; -export function globalstateidentifier_fromBlockHash(a: number): number; -export function globalstateidentifier_fromBlockHeight(a: number): number; -export function globalstateidentifier_fromStateRootHash(a: number): number; -export function globalstateidentifier_toJson(a: number): number; -export function __wbg_getblocktransfersresult_free(a: number, b: number): void; -export function getblocktransfersresult_api_version(a: number): number; -export function getblocktransfersresult_block_hash(a: number): number; -export function getblocktransfersresult_transfers(a: number): number; -export function getblocktransfersresult_toJson(a: number): number; -export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; -export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; -export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; -export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; -export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; -export function sdk_get_block_transfers_options(a: number, b: number): Array; -export function sdk_get_block_transfers(a: number, b: number): number; -export function sdk_chain_get_block_transfers(a: number, b: number): number; -export function __wbg_getdeployresult_free(a: number, b: number): void; -export function getdeployresult_api_version(a: number): number; -export function getdeployresult_deploy(a: number): number; -export function getdeployresult_execution_info(a: number): number; -export function getdeployresult_toJson(a: number): number; -export function __wbg_getdeployoptions_free(a: number, b: number): void; -export function __wbg_get_getdeployoptions_deploy_hash_as_string(a: number): Array; -export function __wbg_set_getdeployoptions_deploy_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getdeployoptions_deploy_hash(a: number): number; -export function __wbg_set_getdeployoptions_deploy_hash(a: number, b: number): void; -export function __wbg_get_getdeployoptions_finalized_approvals(a: number): number; -export function __wbg_set_getdeployoptions_finalized_approvals(a: number, b: number): void; -export function __wbg_get_getdeployoptions_rpc_address(a: number): Array; -export function __wbg_set_getdeployoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getdeployoptions_verbosity(a: number): number; -export function __wbg_set_getdeployoptions_verbosity(a: number, b: number): void; -export function sdk_get_deploy_options(a: number, b: number): Array; -export function sdk_get_deploy(a: number, b: number): number; -export function sdk_info_get_deploy(a: number, b: number): number; -export function __wbg_getstateroothashresult_free(a: number, b: number): void; -export function getstateroothashresult_api_version(a: number): number; -export function getstateroothashresult_state_root_hash(a: number): number; -export function getstateroothashresult_state_root_hash_as_string(a: number): Array; -export function getstateroothashresult_toString(a: number): Array; -export function getstateroothashresult_toJson(a: number): number; -export function __wbg_getstateroothashoptions_free(a: number, b: number): void; -export function sdk_get_state_root_hash_options(a: number, b: number): Array; -export function sdk_get_state_root_hash(a: number, b: number): number; -export function sdk_chain_get_state_root_hash(a: number, b: number): number; -export function __wbg_gettransactionresult_free(a: number, b: number): void; -export function gettransactionresult_api_version(a: number): number; -export function gettransactionresult_transaction(a: number): number; -export function gettransactionresult_execution_info(a: number): number; -export function gettransactionresult_toJson(a: number): number; -export function __wbg_gettransactionoptions_free(a: number, b: number): void; -export function __wbg_get_gettransactionoptions_transaction_hash(a: number): number; -export function __wbg_set_gettransactionoptions_transaction_hash(a: number, b: number): void; -export function sdk_get_transaction_options(a: number, b: number): Array; -export function sdk_get_transaction(a: number, b: number): number; -export function sdk_info_get_transaction(a: number, b: number): number; -export function __wbg_querybalanceresult_free(a: number, b: number): void; -export function querybalanceresult_api_version(a: number): number; -export function querybalanceresult_balance(a: number): number; -export function querybalanceresult_toJson(a: number): number; -export function __wbg_querybalanceoptions_free(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_purse_identifier_as_string(a: number): Array; -export function __wbg_set_querybalanceoptions_purse_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_purse_identifier(a: number): number; -export function __wbg_set_querybalanceoptions_purse_identifier(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_global_state_identifier(a: number): number; -export function __wbg_set_querybalanceoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_querybalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_state_root_hash(a: number): number; -export function __wbg_set_querybalanceoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_querybalanceoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_querybalanceoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_rpc_address(a: number): Array; -export function __wbg_set_querybalanceoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querybalanceoptions_verbosity(a: number): number; -export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; -export function sdk_query_balance_options(a: number, b: number): Array; -export function sdk_query_balance(a: number, b: number): number; -export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; -export function speculativeexectxnresult_api_version(a: number): number; -export function speculativeexectxnresult_execution_result(a: number): number; -export function speculativeexectxnresult_toJson(a: number): number; -export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; -export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; -export function sdk_get_speculative_exec_options(a: number, b: number): Array; -export function sdk_speculative_exec(a: number, b: number): number; -export function __wbg_speculativeexecresult_free(a: number, b: number): void; -export function speculativeexecresult_api_version(a: number): number; -export function speculativeexecresult_block_hash(a: number): number; -export function speculativeexecresult_execution_result(a: number): number; -export function speculativeexecresult_toJson(a: number): number; -export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; -export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; -export function sdk_speculative_exec_deploy(a: number, b: number): number; -export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; -export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; -export function __wbg_sdk_free(a: number, b: number): void; -export function sdk_new(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_getRPCAddress(a: number, b: number, c: number): Array; -export function sdk_setRPCAddress(a: number, b: number, c: number): Array; -export function sdk_getNodeAddress(a: number, b: number, c: number): Array; -export function sdk_setNodeAddress(a: number, b: number, c: number): Array; -export function sdk_getVerbosity(a: number, b: number): number; -export function sdk_setVerbosity(a: number, b: number): Array; +export function __wbg_digest_free(a: number, b: number): void; +export function digest_new_js_alias(a: number, b: number): Array; +export function digest_fromString(a: number, b: number): Array; +export function digest_fromRaw(a: number, b: number): Array; +export function digest_toJson(a: number): number; +export function digest_toString(a: number): Array; +export function __wbg_transactionhash_free(a: number, b: number): void; +export function transactionhash_new_js_alias(a: number, b: number): Array; +export function transactionhash_fromRaw(a: number, b: number): Array; +export function transactionhash_digest(a: number): Array; +export function transactionhash_toJson(a: number): number; +export function transactionhash_toString(a: number): Array; +export function __wbg_accountidentifier_free(a: number, b: number): void; +export function accountidentifier_fromFormattedStr(a: number, b: number): Array; +export function accountidentifier_fromPublicKey(a: number): number; +export function accountidentifier_fromAccountHash(a: number): number; +export function accountidentifier_toJson(a: number): number; +export function __wbg_publickey_free(a: number, b: number): void; +export function publickey_new_js_alias(a: number, b: number): Array; +export function publickey_fromUint8Array(a: number, b: number): Array; +export function publickey_toAccountHash(a: number): number; +export function publickey_toPurseUref(a: number): number; +export function publickey_toJson(a: number): number; +export function __wbg_recordid_free(a: number, b: number): void; +export function recordid_new_js_alias(a: number): Array; +export function __wbg_transaction_free(a: number, b: number): void; +export function transaction_new(a: number): number; +export function transaction_toJson(a: number): number; +export function transaction_newSession(a: number, b: number): Array; +export function transaction_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; +export function transaction_withTTL(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withChainName(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withPublicKey(a: number, b: number, c: number, d: number): number; +export function transaction_withAccountHash(a: number, b: number, c: number, d: number): number; +export function transaction_withEntryPoint(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withEntityHash(a: number, b: number, c: number, d: number): number; +export function transaction_withPackageHash(a: number, b: number, c: number, d: number): number; +export function transaction_withTransactionBytes(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_withSecretKey(a: number, b: number, c: number): number; +export function transaction_verify(a: number): number; +export function transaction_hash(a: number): number; +export function transaction_expired(a: number): number; +export function transaction_expires(a: number): number; +export function transaction_signers(a: number): number; +export function transaction_authorization_keys(a: number): number; +export function transaction_sign(a: number, b: number, c: number): number; +export function transaction_approvalsHash(a: number): number; +export function transaction_approvals(a: number): number; +export function transaction_is_native(a: number): number; +export function transaction_target(a: number): number; +export function transaction_is_standard_payment(a: number): number; +export function transaction_session_args(a: number): number; +export function transaction_addSignature(a: number, b: number, c: number, d: number, e: number): number; +export function transaction_entry_point(a: number): Array; +export function transaction_ttl(a: number): Array; +export function transaction_timestamp(a: number): Array; +export function transaction_size_estimate(a: number): number; +export function transaction_chain_name(a: number): Array; +export function transaction_initiator_addr(a: number): Array; +export function transaction_pricing_mode(a: number): number; +export function transaction_additional_computation_factor(a: number): number; +export function transaction_receipt(a: number): number; +export function transaction_gas_price_tolerance(a: number): number; +export function transaction_account_hash(a: number): number; +export function transaction_addArg(a: number, b: number, c: number, d: number): Array; +export function __wbg_transactionstrparams_free(a: number, b: number): void; +export function transactionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number): number; +export function transactionstrparams_new_with_defaults(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; +export function transactionstrparams_secret_key(a: number): Array; +export function transactionstrparams_set_secret_key(a: number, b: number, c: number): void; +export function transactionstrparams_timestamp(a: number): Array; +export function transactionstrparams_set_timestamp(a: number, b: number, c: number): void; +export function transactionstrparams_setDefaultTimestamp(a: number): void; +export function transactionstrparams_ttl(a: number): Array; +export function transactionstrparams_set_ttl(a: number, b: number, c: number): void; +export function transactionstrparams_setDefaultTTL(a: number): void; +export function transactionstrparams_chain_name(a: number): Array; +export function transactionstrparams_set_chain_name(a: number, b: number, c: number): void; +export function transactionstrparams_initiator_addr(a: number): Array; +export function transactionstrparams_set_initiator_addr(a: number, b: number, c: number): void; +export function transactionstrparams_session_args_simple(a: number): number; +export function transactionstrparams_set_session_args_simple(a: number, b: number, c: number): void; +export function transactionstrparams_session_args_json(a: number): Array; +export function transactionstrparams_set_session_args_json(a: number, b: number, c: number): void; +export function transactionstrparams_pricing_mode(a: number): number; +export function transactionstrparams_set_pricing_mode(a: number, b: number): void; +export function transactionstrparams_additional_computation_factor(a: number): Array; +export function transactionstrparams_set_additional_computation_factor(a: number, b: number, c: number): void; +export function transactionstrparams_payment_amount(a: number): Array; +export function transactionstrparams_set_payment_amount(a: number, b: number, c: number): void; +export function transactionstrparams_gas_price_tolerance(a: number): Array; +export function transactionstrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; +export function transactionstrparams_receipt(a: number): Array; +export function transactionstrparams_set_receipt(a: number, b: number, c: number): void; +export function transactionstrparams_standard_payment(a: number): number; +export function transactionstrparams_set_standard_payment(a: number, b: number): void; +export function transactionstrparams_transferred_value(a: number): Array; +export function transactionstrparams_set_transferred_value(a: number, b: number, c: number): void; +export function transactionstrparams_session_entry_point(a: number): Array; +export function transactionstrparams_set_session_entry_point(a: number, b: number, c: number): void; +export function transactionstrparams_chunked_args(a: number): number; +export function transactionstrparams_set_chunked_args(a: number, b: number): void; +export function __wbg_gettransactionresult_free(a: number, b: number): void; +export function gettransactionresult_api_version(a: number): number; +export function gettransactionresult_transaction(a: number): number; +export function gettransactionresult_execution_info(a: number): number; +export function gettransactionresult_toJson(a: number): number; +export function __wbg_gettransactionoptions_free(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; +export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_gettransactionoptions_transaction_hash(a: number): number; +export function __wbg_set_gettransactionoptions_transaction_hash(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; +export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; +export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_gettransactionoptions_verbosity(a: number): number; +export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; +export function sdk_get_transaction_options(a: number, b: number): Array; +export function sdk_get_transaction(a: number, b: number): number; +export function sdk_info_get_transaction(a: number, b: number): number; +export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; +export function speculativeexectxnresult_api_version(a: number): number; +export function speculativeexectxnresult_block_hash(a: number): number; +export function speculativeexectxnresult_execution_result(a: number): number; +export function speculativeexectxnresult_toJson(a: number): number; +export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; +export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; +export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; +export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; +export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; +export function sdk_get_speculative_exec_options(a: number, b: number): Array; +export function sdk_speculative_exec(a: number, b: number): number; export function hexToString(a: number, b: number): Array; export function hexToUint8Array(a: number, b: number): Array; +export function uint8ArrayToBytes(a: number): number; export function motesToCSPR(a: number, b: number): Array; export function jsonPrettyPrint(a: number, b: number): Array; export function publicKeyFromSecretKey(a: number, b: number): Array; @@ -324,39 +244,31 @@ export function accountHashToBase64Key(a: number, b: number): Array; export function getTimestamp(): number; export function encodeLowerBlake2b(a: number, b: number): number; export function makeDictionaryItemKey(a: number, b: number, c: number): Array; -export function deployhash_fromDigest(a: number): Array; -export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; -export function uint8ArrayToBytes(a: number): number; -export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; -export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; -export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; -export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; -export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; -export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; -export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; -export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; -export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; -export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; -export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; -export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; -export function __wbg_get_gettransactionoptions_verbosity(a: number): number; -export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; -export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; -export function speculativeexectxnresult_block_hash(a: number): number; -export function __wbg_urefaddr_free(a: number, b: number): void; -export function urefaddr_new(a: number, b: number): Array; -export function __wbg_argssimple_free(a: number, b: number): void; -export function __wbg_blockidentifier_free(a: number, b: number): void; -export function blockidentifier_new(a: number): number; -export function blockidentifier_from_hash(a: number): number; -export function blockidentifier_fromHeight(a: number): number; -export function blockidentifier_toJson(a: number): number; +export function accountidentifier_new(a: number, b: number): Array; +export function __wbg_peerentry_free(a: number, b: number): void; +export function peerentry_node_id(a: number): Array; +export function peerentry_address(a: number): Array; +export function __wbg_getaccountresult_free(a: number, b: number): void; +export function getaccountresult_api_version(a: number): number; +export function getaccountresult_account(a: number): number; +export function getaccountresult_merkle_proof(a: number): Array; +export function getaccountresult_toJson(a: number): number; +export function __wbg_getaccountoptions_free(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier(a: number): number; +export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; +export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_verbosity(a: number): number; +export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; +export function sdk_get_account_options(a: number, b: number): Array; +export function sdk_get_account(a: number, b: number): number; +export function sdk_state_get_account_info(a: number, b: number): number; export function __wbg_getauctioninforesult_free(a: number, b: number): void; export function getauctioninforesult_api_version(a: number): number; export function getauctioninforesult_auction_state(a: number): number; @@ -364,8 +276,6 @@ export function getauctioninforesult_toJson(a: number): number; export function __wbg_getauctioninfooptions_free(a: number, b: number): void; export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number): Array; export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; export function __wbg_get_getauctioninfooptions_rpc_address(a: number): Array; export function __wbg_set_getauctioninfooptions_rpc_address(a: number, b: number, c: number): void; export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; @@ -373,371 +283,70 @@ export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): export function sdk_get_auction_info_options(a: number, b: number): Array; export function sdk_get_auction_info(a: number, b: number): number; export function sdk_state_get_auction_info_js_alias(a: number, b: number): number; +export function __wbg_getdeployresult_free(a: number, b: number): void; +export function getdeployresult_api_version(a: number): number; +export function getdeployresult_deploy(a: number): number; +export function getdeployresult_execution_info(a: number): number; +export function getdeployresult_toJson(a: number): number; +export function __wbg_getdeployoptions_free(a: number, b: number): void; +export function __wbg_get_getdeployoptions_deploy_hash_as_string(a: number): Array; +export function __wbg_set_getdeployoptions_deploy_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_deploy_hash(a: number): number; +export function __wbg_set_getdeployoptions_deploy_hash(a: number, b: number): void; +export function __wbg_get_getdeployoptions_finalized_approvals(a: number): number; +export function __wbg_set_getdeployoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_getdeployoptions_rpc_address(a: number): Array; +export function __wbg_set_getdeployoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_verbosity(a: number): number; +export function __wbg_set_getdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_deploy_options(a: number, b: number): Array; +export function sdk_get_deploy(a: number, b: number): number; +export function sdk_info_get_deploy(a: number, b: number): number; export function __wbg_getaddressableentityresult_free(a: number, b: number): void; export function getaddressableentityresult_api_version(a: number): number; export function getaddressableentityresult_entity_result(a: number): number; export function getaddressableentityresult_merkle_proof(a: number): Array; export function getaddressableentityresult_toJson(a: number): number; -export function __wbg_getentityoptions_free(a: number, b: number): void; export function __wbg_get_getentityoptions_entity_identifier(a: number): number; export function __wbg_set_getentityoptions_entity_identifier(a: number, b: number): void; -export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; +export function sdk_get_entity_options(a: number, b: number): Array; +export function sdk_get_entity(a: number, b: number): number; +export function sdk_state_get_entity(a: number, b: number): number; +export function __wbg_geterainforesult_free(a: number, b: number): void; +export function geterainforesult_api_version(a: number): number; +export function geterainforesult_era_summary(a: number): number; +export function geterainforesult_toJson(a: number): number; +export function sdk_get_era_info_options(a: number, b: number): Array; +export function sdk_get_era_info(a: number, b: number): number; +export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; +export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; +export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; +export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; export function __wbg_set_getentityoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; export function __wbg_set_getentityoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_rpc_address(a: number): Array; export function __wbg_set_getentityoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_verbosity(a: number): number; +export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; export function __wbg_set_getentityoptions_verbosity(a: number, b: number): void; -export function sdk_get_entity_options(a: number, b: number): Array; -export function sdk_get_entity(a: number, b: number): number; -export function sdk_state_get_entity(a: number, b: number): number; -export function __wbg_geterasummaryresult_free(a: number, b: number): void; -export function geterasummaryresult_api_version(a: number): number; -export function geterasummaryresult_era_summary(a: number): number; -export function geterasummaryresult_toJson(a: number): number; -export function __wbg_geterasummaryoptions_free(a: number, b: number): void; -export function sdk_get_era_summary_options(a: number, b: number): Array; -export function sdk_get_era_summary(a: number, b: number): number; -export function sdk_chain_get_era_summary(a: number, b: number): number; -export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; -export function getvalidatorchangesresult_api_version(a: number): number; -export function getvalidatorchangesresult_changes(a: number): number; -export function getvalidatorchangesresult_toJson(a: number): number; -export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; -export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_path(a: number): number; -export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; -export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; -export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; -export function sdk_query_contract_key_options(a: number, b: number): Array; -export function sdk_query_contract_key(a: number, b: number): number; -export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; -export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; -export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; -export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; -export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; -export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; -export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; -export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; -export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; -export function sdk_get_binary_latest_switch_block_header(a: number, b: number, c: number): number; -export function sdk_get_binary_latest_block_header(a: number, b: number, c: number): number; -export function sdk_get_binary_block_header_by_height(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_block_header_by_hash(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_latest_signed_block(a: number, b: number, c: number): number; -export function sdk_get_binary_signed_block_by_height(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_signed_block_by_hash(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_transaction_by_hash(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_peers(a: number, b: number, c: number): number; -export function sdk_get_binary_uptime(a: number, b: number, c: number): number; -export function sdk_get_binary_last_progress(a: number, b: number, c: number): number; -export function sdk_get_binary_reactor_state(a: number, b: number, c: number): number; -export function sdk_get_binary_network_name(a: number, b: number, c: number): number; -export function sdk_get_binary_consensus_validator_changes(a: number, b: number, c: number): number; -export function sdk_get_binary_block_synchronizer_status(a: number, b: number, c: number): number; -export function sdk_get_binary_available_block_range(a: number, b: number, c: number): number; -export function sdk_get_binary_next_upgrade(a: number, b: number, c: number): number; -export function sdk_get_binary_consensus_status(a: number, b: number, c: number): number; -export function sdk_get_binary_chainspec_raw_bytes(a: number, b: number, c: number): number; -export function sdk_get_binary_node_status(a: number, b: number, c: number): number; -export function sdk_get_binary_validator_reward_by_era(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_validator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_validator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_get_binary_delegator_reward_by_era(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_delegator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_delegator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_read_record(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_global_state_item(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_get_binary_global_state_item_by_state_root_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_get_binary_global_state_item_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_get_binary_global_state_item_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_get_binary_try_accept_transaction(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_try_speculative_execution(a: number, b: number, c: number, d: number): number; -export function sdk_get_binary_protocol_version(a: number, b: number, c: number): number; -export function __wbg_accessrights_free(a: number, b: number): void; -export function accessrights_NONE(): number; -export function accessrights_READ(): number; -export function accessrights_WRITE(): number; -export function accessrights_ADD(): number; -export function accessrights_READ_ADD(): number; -export function accessrights_READ_WRITE(): number; -export function accessrights_ADD_WRITE(): number; -export function accessrights_READ_ADD_WRITE(): number; -export function accessrights_new(a: number): Array; -export function accessrights_from_bits(a: number, b: number, c: number): number; -export function accessrights_is_readable(a: number): number; -export function accessrights_is_writeable(a: number): number; -export function accessrights_is_addable(a: number): number; -export function accessrights_is_none(a: number): number; -export function __wbg_transferaddr_free(a: number, b: number): void; -export function transferaddr_new(a: number, b: number): Array; -export function __wbg_getblockresult_free(a: number, b: number): void; -export function getblockresult_api_version(a: number): number; -export function getblockresult_block(a: number): number; -export function getblockresult_toJson(a: number): number; -export function __wbg_getblockoptions_free(a: number, b: number): void; -export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getblockoptions_rpc_address(a: number): Array; -export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_verbosity(a: number): number; -export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; -export function sdk_get_block_options(a: number, b: number): Array; -export function sdk_get_block(a: number, b: number): number; -export function sdk_chain_get_block(a: number, b: number): number; -export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; -export function getdictionaryitemresult_api_version(a: number): number; -export function getdictionaryitemresult_dictionary_key(a: number): Array; -export function getdictionaryitemresult_stored_value(a: number): number; -export function getdictionaryitemresult_merkle_proof(a: number): Array; -export function getdictionaryitemresult_toJson(a: number): number; -export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; -export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; -export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; -export function sdk_get_dictionary_item_options(a: number, b: number): Array; -export function sdk_get_dictionary_item(a: number, b: number): number; -export function sdk_state_get_dictionary_item(a: number, b: number): number; -export function __wbg_geterainforesult_free(a: number, b: number): void; -export function geterainforesult_api_version(a: number): number; -export function geterainforesult_era_summary(a: number): number; -export function geterainforesult_toJson(a: number): number; -export function sdk_get_era_info_options(a: number, b: number): Array; -export function sdk_get_era_info(a: number, b: number): number; -export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; -export function __wbg_getpeersresult_free(a: number, b: number): void; -export function getpeersresult_api_version(a: number): number; -export function getpeersresult_peers(a: number): number; -export function getpeersresult_toJson(a: number): number; -export function sdk_get_peers(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; -export function __wbg_listrpcsresult_free(a: number, b: number): void; -export function listrpcsresult_api_version(a: number): number; -export function listrpcsresult_name(a: number): Array; -export function listrpcsresult_schema(a: number): number; -export function listrpcsresult_toJson(a: number): number; -export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; -export function __wbg_puttransactionresult_free(a: number, b: number): void; -export function puttransactionresult_api_version(a: number): number; -export function puttransactionresult_transaction_hash(a: number): number; -export function puttransactionresult_toJson(a: number): number; -export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; -export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; -export function sdk_query_contract_dict_options(a: number, b: number): Array; -export function sdk_query_contract_dict(a: number, b: number): number; -export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; -export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_getentityoptions_rpc_address(a: number): Array; export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number): Array; export function __wbg_get_geterainfooptions_rpc_address(a: number): Array; -export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; +export function __wbg_get_getentityoptions_verbosity(a: number): number; export function __wbg_get_geterainfooptions_verbosity(a: number): number; -export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_getentityoptions_free(a: number, b: number): void; export function __wbg_geterainfooptions_free(a: number, b: number): void; -export function __wbg_querycontractdictoptions_free(a: number, b: number): void; -export function __wbg_hashaddr_free(a: number, b: number): void; -export function hashaddr_new(a: number, b: number): Array; -export function hashaddr_toBytes(a: number): Array; -export function hashaddr_toHexString(a: number): Array; -export function __wbg_deploystrparams_free(a: number, b: number): void; -export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function deploystrparams_secret_key(a: number): Array; -export function deploystrparams_set_secret_key(a: number, b: number, c: number): void; -export function deploystrparams_timestamp(a: number): Array; -export function deploystrparams_set_timestamp(a: number, b: number, c: number): void; -export function deploystrparams_setDefaultTimestamp(a: number): void; -export function deploystrparams_ttl(a: number): Array; -export function deploystrparams_set_ttl(a: number, b: number, c: number): void; -export function deploystrparams_setDefaultTTL(a: number): void; -export function deploystrparams_chain_name(a: number): Array; -export function deploystrparams_set_chain_name(a: number, b: number, c: number): void; -export function deploystrparams_session_account(a: number): Array; -export function deploystrparams_set_session_account(a: number, b: number, c: number): void; -export function deploystrparams_gas_price_tolerance(a: number): Array; -export function deploystrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; -export function __wbg_accounthash_free(a: number, b: number): void; -export function accounthash_new_js_alias(a: number, b: number): Array; -export function accounthash_fromFormattedStr(a: number, b: number): Array; -export function accounthash_fromPublicKey(a: number): number; -export function accounthash_toFormattedString(a: number): Array; -export function accounthash_toHexString(a: number): Array; -export function accounthash_fromUint8Array(a: number, b: number): number; -export function accounthash_toJson(a: number): number; -export function __wbg_addressableentityhash_free(a: number, b: number): void; -export function addressableentityhash_new_js_alias(a: number, b: number): Array; -export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; -export function addressableentityhash_toFormattedString(a: number): Array; -export function addressableentityhash_fromUint8Array(a: number, b: number): number; -export function __wbg_transactionhash_free(a: number, b: number): void; -export function transactionhash_new_js_alias(a: number, b: number): Array; -export function transactionhash_fromRaw(a: number, b: number): Array; -export function transactionhash_digest(a: number): Array; -export function transactionhash_toJson(a: number): number; -export function transactionhash_toString(a: number): Array; -export function __wbg_dictionaryitemidentifier_free(a: number, b: number): void; -export function dictionaryitemidentifier_newFromAccountInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; -export function dictionaryitemidentifier_newFromContractInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; -export function dictionaryitemidentifier_newFromEntityInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; -export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number): Array; -export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number): Array; -export function dictionaryitemidentifier_toJson(a: number): number; -export function __wbg_recordid_free(a: number, b: number): void; -export function recordid_new_js_alias(a: number): Array; -export function __wbg_transaction_free(a: number, b: number): void; -export function transaction_new(a: number): number; -export function transaction_toJson(a: number): number; -export function transaction_newSession(a: number, b: number): Array; -export function transaction_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; -export function transaction_withTTL(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withChainName(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withPublicKey(a: number, b: number, c: number, d: number): number; -export function transaction_withAccountHash(a: number, b: number, c: number, d: number): number; -export function transaction_withEntryPoint(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withEntityHash(a: number, b: number, c: number, d: number): number; -export function transaction_withPackageHash(a: number, b: number, c: number, d: number): number; -export function transaction_withTransactionBytes(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_withSecretKey(a: number, b: number, c: number): number; -export function transaction_verify(a: number): number; -export function transaction_hash(a: number): number; -export function transaction_expired(a: number): number; -export function transaction_expires(a: number): number; -export function transaction_signers(a: number): number; -export function transaction_authorization_keys(a: number): number; -export function transaction_sign(a: number, b: number, c: number): number; -export function transaction_approvalsHash(a: number): number; -export function transaction_approvals(a: number): number; -export function transaction_is_native(a: number): number; -export function transaction_target(a: number): number; -export function transaction_is_standard_payment(a: number): number; -export function transaction_session_args(a: number): number; -export function transaction_addSignature(a: number, b: number, c: number, d: number, e: number): number; -export function transaction_entry_point(a: number): Array; -export function transaction_ttl(a: number): Array; -export function transaction_timestamp(a: number): Array; -export function transaction_size_estimate(a: number): number; -export function transaction_chain_name(a: number): Array; -export function transaction_initiator_addr(a: number): Array; -export function transaction_pricing_mode(a: number): number; -export function transaction_additional_computation_factor(a: number): number; -export function transaction_receipt(a: number): number; -export function transaction_gas_price_tolerance(a: number): number; -export function transaction_account_hash(a: number): number; -export function transaction_addArg(a: number, b: number, c: number, d: number): Array; -export function __wbg_transactionstrparams_free(a: number, b: number): void; -export function transactionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number): number; -export function transactionstrparams_new_with_defaults(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; -export function transactionstrparams_secret_key(a: number): Array; -export function transactionstrparams_set_secret_key(a: number, b: number, c: number): void; -export function transactionstrparams_timestamp(a: number): Array; -export function transactionstrparams_set_timestamp(a: number, b: number, c: number): void; -export function transactionstrparams_setDefaultTimestamp(a: number): void; -export function transactionstrparams_ttl(a: number): Array; -export function transactionstrparams_set_ttl(a: number, b: number, c: number): void; -export function transactionstrparams_setDefaultTTL(a: number): void; -export function transactionstrparams_chain_name(a: number): Array; -export function transactionstrparams_set_chain_name(a: number, b: number, c: number): void; -export function transactionstrparams_initiator_addr(a: number): Array; -export function transactionstrparams_set_initiator_addr(a: number, b: number, c: number): void; -export function transactionstrparams_session_args_simple(a: number): number; -export function transactionstrparams_set_session_args_simple(a: number, b: number, c: number): void; -export function transactionstrparams_session_args_json(a: number): Array; -export function transactionstrparams_set_session_args_json(a: number, b: number, c: number): void; -export function transactionstrparams_pricing_mode(a: number): number; -export function transactionstrparams_set_pricing_mode(a: number, b: number): void; -export function transactionstrparams_additional_computation_factor(a: number): Array; -export function transactionstrparams_set_additional_computation_factor(a: number, b: number, c: number): void; -export function transactionstrparams_payment_amount(a: number): Array; -export function transactionstrparams_set_payment_amount(a: number, b: number, c: number): void; -export function transactionstrparams_gas_price_tolerance(a: number): Array; -export function transactionstrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; -export function transactionstrparams_receipt(a: number): Array; -export function transactionstrparams_set_receipt(a: number, b: number, c: number): void; -export function transactionstrparams_standard_payment(a: number): number; -export function transactionstrparams_set_standard_payment(a: number, b: number): void; -export function __wbg_uref_free(a: number, b: number): void; -export function uref_new_js_alias(a: number, b: number, c: number): Array; -export function uref_fromFormattedStr(a: number, b: number): Array; -export function uref_fromUint8Array(a: number, b: number, c: number): number; -export function uref_toFormattedString(a: number): Array; -export function uref_toJson(a: number): number; -export function sdk_put_transaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_account_put_transaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_speculative_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_eraid_free(a: number, b: number): void; -export function eraid_new(a: number): number; -export function eraid_value(a: number): number; -export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function __wbg_casperwallet_free(a: number, b: number): void; -export function casperwallet_new(): number; -export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; -export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; -export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_connect(a: number): number; -export function casperwallet_disconnect(a: number): number; -export function casperwallet_isConnected(a: number): number; -export function casperwallet_getVersion(a: number): number; -export function casperwallet_getActivePublicKey(a: number): number; -export function casperwallet_switchAccount(a: number): number; -export function __wbg_peerentry_free(a: number, b: number): void; -export function peerentry_node_id(a: number): Array; -export function peerentry_address(a: number): Array; -export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; -export function dictionaryitemstrparams_new(): number; -export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; -export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; -export function dictionaryitemstrparams_toJson(a: number): number; +export function __wbg_urefaddr_free(a: number, b: number): void; +export function urefaddr_new(a: number, b: number): Array; +export function __wbg_bytes_free(a: number, b: number): void; +export function bytes_new(): number; +export function bytes_fromUint8Array(a: number): number; +export function __wbg_argssimple_free(a: number, b: number): void; export function __wbg_sessionstrparams_free(a: number, b: number): void; export function sessionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; export function sessionstrparams_session_hash(a: number): Array; @@ -762,29 +371,238 @@ export function sessionstrparams_session_entry_point(a: number): Array; export function sessionstrparams_set_session_entry_point(a: number, b: number, c: number): void; export function sessionstrparams_is_session_transfer(a: number): number; export function sessionstrparams_set_is_session_transfer(a: number, b: number): void; -export function __wbg_digest_free(a: number, b: number): void; -export function digest_new_js_alias(a: number, b: number): Array; -export function digest_fromString(a: number, b: number): Array; -export function digest_fromRaw(a: number, b: number): Array; -export function digest_toJson(a: number): number; -export function digest_toString(a: number): Array; +export function __wbg_signatureresponse_free(a: number, b: number): void; +export function signatureresponse_is_cancelled(a: number): number; +export function signatureresponse_get_signature_hex(a: number): Array; +export function signatureresponse_get_signature(a: number): Array; +export function __wbg_putdeployresult_free(a: number, b: number): void; +export function putdeployresult_api_version(a: number): number; +export function putdeployresult_deploy_hash(a: number): number; +export function putdeployresult_toJson(a: number): number; +export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_getpeersresult_free(a: number, b: number): void; +export function getpeersresult_api_version(a: number): number; +export function getpeersresult_peers(a: number): number; +export function getpeersresult_toJson(a: number): number; +export function sdk_get_peers(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; +export function __wbg_listrpcsresult_free(a: number, b: number): void; +export function listrpcsresult_api_version(a: number): number; +export function listrpcsresult_name(a: number): Array; +export function listrpcsresult_schema(a: number): number; +export function listrpcsresult_toJson(a: number): number; +export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; +export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; +export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; +export function sdk_make_transaction(a: number, b: number, c: number): Array; +export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; +export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; +export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_path(a: number): number; +export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; +export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; +export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; +export function sdk_query_contract_key_options(a: number, b: number): Array; +export function sdk_query_contract_key(a: number, b: number): number; +export function __wbg_eraid_free(a: number, b: number): void; +export function eraid_new(a: number): number; +export function eraid_value(a: number): number; +export function __wbg_blockidentifier_free(a: number, b: number): void; +export function blockidentifier_new(a: number): number; +export function blockidentifier_from_hash(a: number): number; +export function blockidentifier_fromHeight(a: number): number; +export function blockidentifier_toJson(a: number): number; +export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_install(a: number, b: number, c: number, d: number, e: number): number; +export function __wbg_hashaddr_free(a: number, b: number): void; +export function hashaddr_new(a: number, b: number): Array; +export function hashaddr_toBytes(a: number): Array; +export function hashaddr_toHexString(a: number): Array; +export function __wbg_blockhash_free(a: number, b: number): void; +export function blockhash_new_js_alias(a: number, b: number): Array; +export function blockhash_fromDigest(a: number): Array; +export function blockhash_toJson(a: number): number; +export function blockhash_toString(a: number): Array; +export function __wbg_deployhash_free(a: number, b: number): void; +export function deployhash_new_js_alias(a: number, b: number): Array; +export function deployhash_toJson(a: number): number; +export function deployhash_toString(a: number): Array; +export function __wbg_entityidentifier_free(a: number, b: number): void; +export function entityidentifier_fromFormattedStr(a: number, b: number): Array; +export function entityidentifier_fromPublicKey(a: number): number; +export function entityidentifier_fromAccountHash(a: number): number; +export function entityidentifier_fromEntityAddr(a: number): number; +export function entityidentifier_toJson(a: number): number; +export function __wbg_path_free(a: number, b: number): void; +export function path_new(a: number): number; +export function path_fromArray(a: number): number; +export function path_toJson(a: number): number; +export function path_toString(a: number): Array; +export function path_is_empty(a: number): number; +export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_put_transaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_transaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_watcher_free(a: number, b: number): void; +export function watcher_new(a: number, b: number, c: number, d: number): number; +export function watcher_subscribe(a: number, b: number, c: number): Array; +export function watcher_unsubscribe(a: number, b: number, c: number): void; +export function watcher_start(a: number): number; +export function watcher_stop(a: number): void; +export function __wbg_subscription_free(a: number, b: number): void; +export function __wbg_get_subscription_eventHandlerFn(a: number): number; +export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; +export function subscription_new(a: number, b: number, c: number): number; +export function __wbg_failure_free(a: number, b: number): void; +export function __wbg_get_failure_cost(a: number): Array; +export function __wbg_set_failure_cost(a: number, b: number, c: number): void; +export function __wbg_get_failure_error_message(a: number): Array; +export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; +export function __wbg_version2_free(a: number, b: number): void; +export function __wbg_get_version2_error_message(a: number): Array; +export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; +export function __wbg_payment_free(a: number, b: number): void; +export function __wbg_executionresult_free(a: number, b: number): void; +export function __wbg_get_executionresult_Success(a: number): number; +export function __wbg_set_executionresult_Success(a: number, b: number): void; +export function __wbg_get_executionresult_Failure(a: number): number; +export function __wbg_set_executionresult_Failure(a: number, b: number): void; +export function __wbg_hashstring_free(a: number, b: number): void; +export function hashstring_Deploy(a: number): Array; +export function hashstring_toString(a: number): Array; +export function __wbg_publickeystring_free(a: number, b: number): void; +export function __wbg_message_free(a: number, b: number): void; +export function __wbg_messages_free(a: number, b: number): void; +export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_message(a: number): number; +export function __wbg_set_messages_message(a: number, b: number): void; +export function __wbg_get_messages_topic_name(a: number): Array; +export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_name_hash(a: number): Array; +export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_index(a: number): number; +export function __wbg_set_messages_topic_index(a: number, b: number): void; +export function __wbg_get_messages_block_index(a: number): number; +export function __wbg_set_messages_block_index(a: number, b: number): void; +export function __wbg_transactionprocessed_free(a: number, b: number): void; +export function __wbg_get_transactionprocessed_hash(a: number): number; +export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; +export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; +export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; +export function __wbg_get_transactionprocessed_timestamp(a: number): Array; +export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; +export function __wbg_get_transactionprocessed_execution_result(a: number): number; +export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; +export function __wbg_get_transactionprocessed_messages(a: number): Array; +export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; +export function __wbg_body_free(a: number, b: number): void; +export function __wbg_get_body_transaction_processed(a: number): number; +export function __wbg_set_body_transaction_processed(a: number, b: number): void; +export function body_get_deploy_processed(a: number): number; +export function __wbg_eventparseresult_free(a: number, b: number): void; +export function __wbg_get_eventparseresult_err(a: number): Array; +export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; +export function __wbg_get_eventparseresult_body(a: number): number; +export function __wbg_set_eventparseresult_body(a: number, b: number): void; +export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function deployhash_fromDigest(a: number): Array; +export function __wbg_get_version2_initiator(a: number): number; +export function hashstring_Version1(a: number): Array; +export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; +export function __wbg_set_version2_limit(a: number, b: number, c: number): void; +export function __wbg_set_payment_source(a: number, b: number, c: number): void; +export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; +export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; +export function __wbg_set_message_String(a: number, b: number, c: number): void; +export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; +export function __wbg_set_version2_cost(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; +export function __wbg_set_version2_initiator(a: number, b: number): void; +export function body_get_transaction_processed(a: number): number; +export function __wbg_get_subscription_targetHash(a: number): Array; +export function __wbg_get_version2_limit(a: number): Array; +export function __wbg_get_payment_source(a: number): Array; +export function __wbg_get_hashstring_hash(a: number): Array; +export function __wbg_get_publickeystring_PublicKey(a: number): Array; +export function __wbg_get_message_String(a: number): Array; +export function __wbg_get_messages_entity_hash(a: number): Array; +export function __wbg_get_version2_cost(a: number): Array; +export function __wbg_get_version2_consumed(a: number): Array; +export function __wbg_get_transactionprocessed_ttl(a: number): Array; +export function __wbg_get_transactionprocessed_block_hash(a: number): Array; +export function entityidentifier_new_js_alias(a: number, b: number): Array; +export function __wbg_dictionaryaddr_free(a: number, b: number): void; +export function dictionaryaddr_new(a: number, b: number): Array; +export function __wbg_deploystrparams_free(a: number, b: number): void; +export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function deploystrparams_secret_key(a: number): Array; +export function deploystrparams_set_secret_key(a: number, b: number, c: number): void; +export function deploystrparams_timestamp(a: number): Array; +export function deploystrparams_set_timestamp(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTimestamp(a: number): void; +export function deploystrparams_ttl(a: number): Array; +export function deploystrparams_set_ttl(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTTL(a: number): void; +export function deploystrparams_chain_name(a: number): Array; +export function deploystrparams_set_chain_name(a: number, b: number, c: number): void; +export function deploystrparams_session_account(a: number): Array; +export function deploystrparams_set_session_account(a: number, b: number, c: number): void; +export function deploystrparams_gas_price_tolerance(a: number): Array; +export function deploystrparams_set_gas_price_tolerance(a: number, b: number, c: number): void; +export function __wbg_accounthash_free(a: number, b: number): void; +export function accounthash_new_js_alias(a: number, b: number): Array; +export function accounthash_fromFormattedStr(a: number, b: number): Array; +export function accounthash_fromPublicKey(a: number): number; +export function accounthash_toFormattedString(a: number): Array; +export function accounthash_toHexString(a: number): Array; +export function accounthash_fromUint8Array(a: number, b: number): number; +export function accounthash_toJson(a: number): number; +export function __wbg_addressableentityhash_free(a: number, b: number): void; +export function addressableentityhash_new_js_alias(a: number, b: number): Array; +export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; +export function addressableentityhash_toFormattedString(a: number): Array; +export function addressableentityhash_fromUint8Array(a: number, b: number): number; export function __wbg_contracthash_free(a: number, b: number): void; export function contracthash_new_js_alias(a: number, b: number): Array; export function contracthash_fromFormattedStr(a: number, b: number): Array; export function contracthash_toFormattedString(a: number): Array; export function contracthash_fromUint8Array(a: number, b: number): number; -export function __wbg_accountidentifier_free(a: number, b: number): void; -export function accountidentifier_fromFormattedStr(a: number, b: number): Array; -export function accountidentifier_fromPublicKey(a: number): number; -export function accountidentifier_fromAccountHash(a: number): number; -export function accountidentifier_toJson(a: number): number; -export function __wbg_entityidentifier_free(a: number, b: number): void; -export function entityidentifier_fromFormattedStr(a: number, b: number): Array; -export function entityidentifier_fromEntityAddr(a: number): number; -export function entityidentifier_toJson(a: number): number; -export function __wbg_purseidentifier_free(a: number, b: number): void; -export function purseidentifier_fromURef(a: number): number; -export function purseidentifier_toJson(a: number): number; +export function __wbg_contractpackagehash_free(a: number, b: number): void; +export function contractpackagehash_new_js_alias(a: number, b: number): Array; +export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; +export function contractpackagehash_toFormattedString(a: number): Array; +export function contractpackagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_packagehash_free(a: number, b: number): void; +export function packagehash_new_js_alias(a: number, b: number): Array; +export function packagehash_fromFormattedStr(a: number, b: number): Array; +export function packagehash_toFormattedString(a: number): Array; +export function packagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_dictionaryitemidentifier_free(a: number, b: number): void; +export function dictionaryitemidentifier_newFromAccountInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; +export function dictionaryitemidentifier_newFromContractInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; +export function dictionaryitemidentifier_newFromEntityInfo(a: number, b: number, c: number, d: number, e: number, f: number): Array; +export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number): Array; +export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number): Array; +export function dictionaryitemidentifier_toJson(a: number): number; export function __wbg_key_free(a: number, b: number): void; export function key_new(a: number): Array; export function key_toJson(a: number): number; @@ -814,27 +632,15 @@ export function key_asBalance(a: number): number; export function key_intoURef(a: number): number; export function key_urefToHash(a: number): number; export function key_withdrawToUnbond(a: number): number; -export function __wbg_path_free(a: number, b: number): void; -export function path_new(a: number): number; -export function path_fromArray(a: number): number; -export function path_toJson(a: number): number; -export function path_toString(a: number): Array; -export function path_is_empty(a: number): number; -export function __wbg_publickey_free(a: number, b: number): void; -export function publickey_new_js_alias(a: number, b: number): Array; -export function publickey_fromUint8Array(a: number, b: number): Array; -export function publickey_toAccountHash(a: number): number; -export function publickey_toPurseUref(a: number): number; -export function publickey_toJson(a: number): number; export function __wbg_transfertarget_free(a: number, b: number): void; export function transfertarget_new(a: number, b: number, c: number, d: number): number; export function __wbg_transactionbuilderparams_free(a: number, b: number): void; -export function transactionbuilderparams_newSession(a: number, b: number): number; +export function transactionbuilderparams_newSession(a: number, b: number, c: number, d: number, e: number): number; export function transactionbuilderparams_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number): number; -export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number): number; -export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number, d: number, e: number): number; +export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; export function transactionbuilderparams_newAddBid(a: number, b: number, c: number, d: number, e: number, f: number): number; export function transactionbuilderparams_newDelegate(a: number, b: number, c: number, d: number): number; export function transactionbuilderparams_newUndelegate(a: number, b: number, c: number, d: number): number; @@ -878,11 +684,69 @@ export function transactionbuilderparams_maximum_delegation_amount(a: number): A export function transactionbuilderparams_set_maximum_delegation_amount(a: number, b: number): void; export function transactionbuilderparams_is_install_upgrade(a: number): number; export function transactionbuilderparams_set_is_install_upgrade(a: number, b: number): void; -export function __wbg_putdeployresult_free(a: number, b: number): void; -export function putdeployresult_api_version(a: number): number; -export function putdeployresult_deploy_hash(a: number): number; -export function putdeployresult_toJson(a: number): number; -export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_uref_free(a: number, b: number): void; +export function uref_new_js_alias(a: number, b: number, c: number): Array; +export function uref_fromFormattedStr(a: number, b: number): Array; +export function uref_fromUint8Array(a: number, b: number, c: number): number; +export function uref_toFormattedString(a: number): Array; +export function uref_toJson(a: number): number; +export function __wbg_getblockresult_free(a: number, b: number): void; +export function getblockresult_api_version(a: number): number; +export function getblockresult_block(a: number): number; +export function getblockresult_toJson(a: number): number; +export function __wbg_getblockoptions_free(a: number, b: number): void; +export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblockoptions_rpc_address(a: number): Array; +export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_verbosity(a: number): number; +export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; +export function sdk_get_block_options(a: number, b: number): Array; +export function sdk_get_block(a: number, b: number): number; +export function sdk_chain_get_block(a: number, b: number): number; +export function __wbg_getchainspecresult_free(a: number, b: number): void; +export function getchainspecresult_api_version(a: number): number; +export function getchainspecresult_chainspec_bytes(a: number): number; +export function getchainspecresult_toJson(a: number): number; +export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; +export function __wbg_getnodestatusresult_free(a: number, b: number): void; +export function getnodestatusresult_api_version(a: number): number; +export function getnodestatusresult_chainspec_name(a: number): Array; +export function getnodestatusresult_starting_state_root_hash(a: number): number; +export function getnodestatusresult_peers(a: number): number; +export function getnodestatusresult_last_added_block_info(a: number): number; +export function getnodestatusresult_our_public_signing_key(a: number): number; +export function getnodestatusresult_round_length(a: number): number; +export function getnodestatusresult_next_upgrade(a: number): number; +export function getnodestatusresult_build_version(a: number): Array; +export function getnodestatusresult_uptime(a: number): number; +export function getnodestatusresult_reactor_state(a: number): number; +export function getnodestatusresult_last_progress(a: number): number; +export function getnodestatusresult_available_block_range(a: number): number; +export function getnodestatusresult_block_sync(a: number): number; +export function getnodestatusresult_toJson(a: number): number; +export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; +export function __wbg_getstateroothashresult_free(a: number, b: number): void; +export function getstateroothashresult_api_version(a: number): number; +export function getstateroothashresult_state_root_hash(a: number): number; +export function getstateroothashresult_state_root_hash_as_string(a: number): Array; +export function getstateroothashresult_toString(a: number): Array; +export function getstateroothashresult_toJson(a: number): number; +export function __wbg_getstateroothashoptions_free(a: number, b: number): void; +export function sdk_get_state_root_hash_options(a: number, b: number): Array; +export function sdk_get_state_root_hash(a: number, b: number): number; +export function sdk_chain_get_state_root_hash(a: number, b: number): number; +export function __wbg_querybalanceresult_free(a: number, b: number): void; +export function querybalanceresult_api_version(a: number): number; +export function querybalanceresult_balance(a: number): number; +export function querybalanceresult_toJson(a: number): number; +export function __wbg_querybalanceoptions_free(a: number, b: number): void; +export function sdk_query_balance_options(a: number, b: number): Array; +export function sdk_query_balance(a: number, b: number): number; export function __wbg_querybalancedetailsresult_free(a: number, b: number): void; export function querybalancedetailsresult_api_version(a: number): number; export function querybalancedetailsresult_total_balance(a: number): number; @@ -909,107 +773,249 @@ export function __wbg_get_querybalancedetailsoptions_verbosity(a: number): numbe export function __wbg_set_querybalancedetailsoptions_verbosity(a: number, b: number): void; export function sdk_query_balance_details_options(a: number, b: number): Array; export function sdk_query_balance_details(a: number, b: number): number; -export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_make_transaction(a: number, b: number, c: number): Array; -export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; -export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_watcher_free(a: number, b: number): void; -export function watcher_new(a: number, b: number, c: number, d: number): number; -export function watcher_subscribe(a: number, b: number, c: number): Array; -export function watcher_unsubscribe(a: number, b: number, c: number): void; -export function watcher_start(a: number): number; -export function watcher_stop(a: number): void; -export function __wbg_subscription_free(a: number, b: number): void; -export function __wbg_get_subscription_eventHandlerFn(a: number): number; -export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; -export function subscription_new(a: number, b: number, c: number): number; -export function __wbg_failure_free(a: number, b: number): void; -export function __wbg_get_failure_cost(a: number): Array; -export function __wbg_set_failure_cost(a: number, b: number, c: number): void; -export function __wbg_get_failure_error_message(a: number): Array; -export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; -export function __wbg_version2_free(a: number, b: number): void; -export function __wbg_get_version2_error_message(a: number): Array; -export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; -export function __wbg_payment_free(a: number, b: number): void; -export function __wbg_executionresult_free(a: number, b: number): void; -export function __wbg_get_executionresult_Success(a: number): number; -export function __wbg_set_executionresult_Success(a: number, b: number): void; -export function __wbg_get_executionresult_Failure(a: number): number; -export function __wbg_set_executionresult_Failure(a: number, b: number): void; -export function __wbg_hashstring_free(a: number, b: number): void; -export function hashstring_Deploy(a: number): Array; -export function hashstring_toString(a: number): Array; -export function __wbg_publickeystring_free(a: number, b: number): void; -export function __wbg_message_free(a: number, b: number): void; -export function __wbg_messages_free(a: number, b: number): void; -export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_message(a: number): number; -export function __wbg_set_messages_message(a: number, b: number): void; -export function __wbg_get_messages_topic_name(a: number): Array; -export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_name_hash(a: number): Array; -export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_index(a: number): number; -export function __wbg_set_messages_topic_index(a: number, b: number): void; -export function __wbg_get_messages_block_index(a: number): number; -export function __wbg_set_messages_block_index(a: number, b: number): void; -export function __wbg_transactionprocessed_free(a: number, b: number): void; -export function __wbg_get_transactionprocessed_hash(a: number): number; -export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; -export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; -export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; -export function __wbg_get_transactionprocessed_timestamp(a: number): Array; -export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; -export function __wbg_get_transactionprocessed_execution_result(a: number): number; -export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; -export function __wbg_get_transactionprocessed_messages(a: number): Array; -export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; -export function __wbg_body_free(a: number, b: number): void; -export function __wbg_get_body_transaction_processed(a: number): number; -export function __wbg_set_body_transaction_processed(a: number, b: number): void; -export function body_get_deploy_processed(a: number): number; -export function __wbg_eventparseresult_free(a: number, b: number): void; -export function __wbg_get_eventparseresult_err(a: number): Array; -export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; -export function __wbg_get_eventparseresult_body(a: number): number; -export function __wbg_set_eventparseresult_body(a: number, b: number): void; -export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_install(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_get_version2_initiator(a: number): number; -export function hashstring_Version1(a: number): Array; -export function accountidentifier_new(a: number, b: number): Array; -export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; -export function __wbg_set_version2_limit(a: number, b: number, c: number): void; -export function __wbg_set_payment_source(a: number, b: number, c: number): void; -export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; -export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; -export function __wbg_set_message_String(a: number, b: number, c: number): void; -export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; -export function __wbg_set_version2_cost(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; -export function __wbg_set_version2_initiator(a: number, b: number): void; -export function body_get_transaction_processed(a: number): number; -export function entityidentifier_fromPublicKey(a: number): number; +export function sdk_speculative_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function __wbg_puttransactionresult_free(a: number, b: number): void; +export function puttransactionresult_api_version(a: number): number; +export function puttransactionresult_transaction_hash(a: number): number; +export function puttransactionresult_toJson(a: number): number; +export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function __wbg_sdk_free(a: number, b: number): void; +export function sdk_new(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_getRPCAddress(a: number, b: number, c: number): Array; +export function sdk_setRPCAddress(a: number, b: number, c: number): Array; +export function sdk_getNodeAddress(a: number, b: number, c: number): Array; +export function sdk_setNodeAddress(a: number, b: number, c: number): Array; +export function sdk_getVerbosity(a: number, b: number): number; +export function sdk_setVerbosity(a: number, b: number): Array; +export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; +export function __wbg_get_querybalanceoptions_global_state_identifier(a: number): number; +export function __wbg_get_querybalanceoptions_purse_identifier(a: number): number; +export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_purse_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querybalanceoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_state_root_hash(a: number): number; +export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; +export function __wbg_get_querybalanceoptions_purse_identifier_as_string(a: number): Array; +export function __wbg_get_querybalanceoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_get_querybalanceoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_querybalanceoptions_rpc_address(a: number): Array; +export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; +export function __wbg_get_querybalanceoptions_verbosity(a: number): number; +export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_purse_identifier(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_global_state_identifier(a: number, b: number): void; +export function sdk_get_binary_latest_switch_block_header(a: number, b: number, c: number): number; +export function sdk_get_binary_latest_block_header(a: number, b: number, c: number): number; +export function sdk_get_binary_block_header_by_height(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_block_header_by_hash(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_latest_signed_block(a: number, b: number, c: number): number; +export function sdk_get_binary_signed_block_by_height(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_signed_block_by_hash(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_transaction_by_hash(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_peers(a: number, b: number, c: number): number; +export function sdk_get_binary_uptime(a: number, b: number, c: number): number; +export function sdk_get_binary_last_progress(a: number, b: number, c: number): number; +export function sdk_get_binary_reactor_state(a: number, b: number, c: number): number; +export function sdk_get_binary_network_name(a: number, b: number, c: number): number; +export function sdk_get_binary_consensus_validator_changes(a: number, b: number, c: number): number; +export function sdk_get_binary_block_synchronizer_status(a: number, b: number, c: number): number; +export function sdk_get_binary_available_block_range(a: number, b: number, c: number): number; +export function sdk_get_binary_next_upgrade(a: number, b: number, c: number): number; +export function sdk_get_binary_consensus_status(a: number, b: number, c: number): number; +export function sdk_get_binary_chainspec_raw_bytes(a: number, b: number, c: number): number; +export function sdk_get_binary_node_status(a: number, b: number, c: number): number; +export function sdk_get_binary_validator_reward_by_era(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_validator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_validator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_get_binary_delegator_reward_by_era(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_delegator_reward_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_delegator_reward_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_read_record(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_global_state_item(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function sdk_get_binary_global_state_item_by_state_root_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_get_binary_global_state_item_by_block_hash(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_get_binary_global_state_item_by_block_height(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_get_binary_try_accept_transaction(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_try_speculative_execution(a: number, b: number, c: number, d: number): number; +export function sdk_get_binary_protocol_version(a: number, b: number, c: number): number; +export function __wbg_casperwallet_free(a: number, b: number): void; +export function casperwallet_new(): number; +export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; +export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; +export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_connect(a: number): number; +export function casperwallet_disconnect(a: number): number; +export function casperwallet_isConnected(a: number): number; +export function casperwallet_getVersion(a: number): number; +export function casperwallet_getActivePublicKey(a: number): number; +export function casperwallet_switchAccount(a: number): number; +export function __wbg_globalstateidentifier_free(a: number, b: number): void; +export function globalstateidentifier_new(a: number): number; +export function globalstateidentifier_fromBlockHash(a: number): number; +export function globalstateidentifier_fromBlockHeight(a: number): number; +export function globalstateidentifier_fromStateRootHash(a: number): number; +export function globalstateidentifier_toJson(a: number): number; +export function __wbg_purseidentifier_free(a: number, b: number): void; export function purseidentifier_fromPublicKey(a: number): number; -export function entityidentifier_fromAccountHash(a: number): number; export function purseidentifier_fromAccountHash(a: number): number; -export function __wbg_get_subscription_targetHash(a: number): Array; -export function __wbg_get_version2_limit(a: number): Array; -export function __wbg_get_payment_source(a: number): Array; -export function __wbg_get_hashstring_hash(a: number): Array; -export function __wbg_get_publickeystring_PublicKey(a: number): Array; -export function __wbg_get_message_String(a: number): Array; -export function __wbg_get_messages_entity_hash(a: number): Array; -export function __wbg_get_version2_cost(a: number): Array; -export function __wbg_get_version2_consumed(a: number): Array; -export function __wbg_get_transactionprocessed_ttl(a: number): Array; -export function __wbg_get_transactionprocessed_block_hash(a: number): Array; -export function entityidentifier_new_js_alias(a: number, b: number): Array; +export function purseidentifier_fromURef(a: number): number; +export function purseidentifier_toJson(a: number): number; +export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getbalanceresult_free(a: number, b: number): void; +export function getbalanceresult_api_version(a: number): number; +export function getbalanceresult_balance_value(a: number): number; +export function getbalanceresult_merkle_proof(a: number): Array; +export function getbalanceresult_toJson(a: number): number; +export function __wbg_getbalanceoptions_free(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_getbalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash(a: number): number; +export function __wbg_set_getbalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_purse_uref_as_string(a: number): Array; +export function __wbg_set_getbalanceoptions_purse_uref_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_purse_uref(a: number): number; +export function __wbg_set_getbalanceoptions_purse_uref(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_rpc_address(a: number): Array; +export function __wbg_set_getbalanceoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_verbosity(a: number): number; +export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): void; +export function sdk_get_balance_options(a: number, b: number): Array; +export function sdk_get_balance(a: number, b: number): number; +export function sdk_state_get_balance(a: number, b: number): number; +export function __wbg_getblocktransfersresult_free(a: number, b: number): void; +export function getblocktransfersresult_api_version(a: number): number; +export function getblocktransfersresult_block_hash(a: number): number; +export function getblocktransfersresult_transfers(a: number): number; +export function getblocktransfersresult_toJson(a: number): number; +export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; +export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; +export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; +export function sdk_get_block_transfers_options(a: number, b: number): Array; +export function sdk_get_block_transfers(a: number, b: number): number; +export function sdk_chain_get_block_transfers(a: number, b: number): number; +export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; +export function getdictionaryitemresult_api_version(a: number): number; +export function getdictionaryitemresult_dictionary_key(a: number): Array; +export function getdictionaryitemresult_stored_value(a: number): number; +export function getdictionaryitemresult_merkle_proof(a: number): Array; +export function getdictionaryitemresult_toJson(a: number): number; +export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; +export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; +export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; +export function sdk_get_dictionary_item_options(a: number, b: number): Array; +export function sdk_get_dictionary_item(a: number, b: number): number; +export function sdk_state_get_dictionary_item(a: number, b: number): number; +export function __wbg_geterasummaryresult_free(a: number, b: number): void; +export function geterasummaryresult_api_version(a: number): number; +export function geterasummaryresult_era_summary(a: number): number; +export function geterasummaryresult_toJson(a: number): number; +export function __wbg_geterasummaryoptions_free(a: number, b: number): void; +export function sdk_get_era_summary_options(a: number, b: number): Array; +export function sdk_get_era_summary(a: number, b: number): number; +export function sdk_chain_get_era_summary(a: number, b: number): number; +export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; +export function getvalidatorchangesresult_api_version(a: number): number; +export function getvalidatorchangesresult_changes(a: number): number; +export function getvalidatorchangesresult_toJson(a: number): number; +export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; +export function __wbg_queryglobalstateresult_free(a: number, b: number): void; +export function queryglobalstateresult_api_version(a: number): number; +export function queryglobalstateresult_block_header(a: number): number; +export function queryglobalstateresult_stored_value(a: number): number; +export function queryglobalstateresult_merkle_proof(a: number): Array; +export function queryglobalstateresult_toJson(a: number): number; +export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; +export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; +export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key(a: number): number; +export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_path(a: number): number; +export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; +export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; +export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; +export function sdk_query_global_state_options(a: number, b: number): Array; +export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_speculativeexecresult_free(a: number, b: number): void; +export function speculativeexecresult_api_version(a: number): number; +export function speculativeexecresult_block_hash(a: number): number; +export function speculativeexecresult_execution_result(a: number): number; +export function speculativeexecresult_toJson(a: number): number; +export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; +export function sdk_speculative_exec_deploy(a: number, b: number): number; +export function __wbg_querycontractdictoptions_free(a: number, b: number): void; +export function sdk_query_contract_dict_options(a: number, b: number): Array; +export function sdk_query_contract_dict(a: number, b: number): number; +export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; +export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; +export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; +export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; export function __wbg_intounderlyingbytesource_free(a: number, b: number): void; export function intounderlyingbytesource_type(a: number): number; export function intounderlyingbytesource_autoAllocateChunkSize(a: number): number; @@ -1027,14 +1033,14 @@ export function __wbindgen_malloc(a: number, b: number): number; export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; export const __wbindgen_export_2: WebAssembly.Table; export const __wbindgen_export_3: WebAssembly.Table; -export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae2e6541fe204983(a: number, b: number): void; -export function closure969_externref_shim(a: number, b: number, c: number): void; -export function closure1166_externref_shim(a: number, b: number, c: number): void; -export function closure1174_externref_shim(a: number, b: number, c: number): void; +export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd1bf6ecddece6326(a: number, b: number): void; +export function closure958_externref_shim(a: number, b: number, c: number): void; +export function closure1148_externref_shim(a: number, b: number, c: number): void; +export function closure1160_externref_shim(a: number, b: number, c: number): void; export function __externref_table_dealloc(a: number): void; export function __wbindgen_free(a: number, b: number, c: number): void; export function __externref_table_alloc(): number; -export function __wbindgen_exn_store(a: number): void; export function __externref_drop_slice(a: number, b: number): void; -export function closure1724_externref_shim(a: number, b: number, c: number, d: number): void; +export function __wbindgen_exn_store(a: number): void; +export function closure1697_externref_shim(a: number, b: number, c: number, d: number): void; export function __wbindgen_start(): void; diff --git a/src/sdk/contract/call_entrypoint.rs b/src/sdk/contract/call_entrypoint.rs index 592b64733..2ae4d8679 100644 --- a/src/sdk/contract/call_entrypoint.rs +++ b/src/sdk/contract/call_entrypoint.rs @@ -141,8 +141,14 @@ mod tests { let entity_addr = EntityAddr::from_formatted_str(&get_entity_key().await).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let result = sdk @@ -173,8 +179,14 @@ mod tests { ) .unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let result = sdk @@ -208,8 +220,14 @@ mod tests { ) .unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let result = sdk @@ -242,8 +260,14 @@ mod tests { ) .unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let result = sdk diff --git a/src/sdk/contract/install.rs b/src/sdk/contract/install.rs index 92dcdaa36..a2a178878 100644 --- a/src/sdk/contract/install.rs +++ b/src/sdk/contract/install.rs @@ -81,10 +81,16 @@ impl SDK { rpc_address: Option, ) -> Result, SdkError> { //log("install!"); - // TODO Fix is_install_upgrade let is_install_upgrade = Some(true); - let builder_params = - TransactionBuilderParams::new_session(Some(transaction_bytes), is_install_upgrade); + // TODO Fix transferred_value + seed + let transferred_value = None; + let seed = None; + let builder_params = TransactionBuilderParams::new_session( + Some(transaction_bytes), + is_install_upgrade, + transferred_value, + seed, + ); self.transaction(builder_params, transaction_params, None, rpc_address) .await } diff --git a/src/sdk/transaction/speculative_transaction.rs b/src/sdk/transaction/speculative_transaction.rs index 213a98e6b..e31d6657b 100644 --- a/src/sdk/transaction/speculative_transaction.rs +++ b/src/sdk/transaction/speculative_transaction.rs @@ -127,9 +127,15 @@ mod tests { }; // TODO Fix is_install_upgrade let is_install_upgrade = Some(true); + // TODO Fix transferred_value + let transferred_value = None; + let seed = None; + let new_builder_params = TransactionBuilderParams::new_session( Some(transaction_bytes.into()), is_install_upgrade, + transferred_value, + seed, ); *builder_params = Some(new_builder_params); } diff --git a/src/sdk/transaction/transaction.rs b/src/sdk/transaction/transaction.rs index e0f798435..aa310245d 100644 --- a/src/sdk/transaction/transaction.rs +++ b/src/sdk/transaction/transaction.rs @@ -175,9 +175,14 @@ mod tests { } }; let is_install_upgrade = Some(true); + // TODO Fix transferred_value + let transferred_value = None; + let seed = None; let new_builder_params = TransactionBuilderParams::new_session( Some(transaction_bytes.into()), is_install_upgrade, + transferred_value, + seed, ); *builder_params = Some(new_builder_params); } diff --git a/src/sdk/transaction_utils/make_transaction.rs b/src/sdk/transaction_utils/make_transaction.rs index 92df2ea03..e40eaaa2d 100644 --- a/src/sdk/transaction_utils/make_transaction.rs +++ b/src/sdk/transaction_utils/make_transaction.rs @@ -106,8 +106,15 @@ mod tests { "entity-contract-cfa781f5eb69c3eee952c2944ce9670a049f88c5e46b83fb5881ebe13fb98e6d", ) .unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let result = sdk.make_transaction(builder_params, transaction_params); @@ -133,8 +140,14 @@ mod tests { "entity-contract-cfa781f5eb69c3eee952c2944ce9670a049f88c5e46b83fb5881ebe13fb98e6d", ) .unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + + // TODO Fix transferred_value + let transferred_value = None; + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let result = sdk.make_transaction(builder_params, transaction_params); diff --git a/src/sdk/transaction_utils/sign_transaction.rs b/src/sdk/transaction_utils/sign_transaction.rs index 425ad5ccf..01f78133e 100644 --- a/src/sdk/transaction_utils/sign_transaction.rs +++ b/src/sdk/transaction_utils/sign_transaction.rs @@ -84,8 +84,15 @@ mod tests { "entity-contract-cfa781f5eb69c3eee952c2944ce9670a049f88c5e46b83fb5881ebe13fb98e6d", ) .unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let transaction = sdk @@ -123,8 +130,15 @@ mod tests { "entity-contract-cfa781f5eb69c3eee952c2944ce9670a049f88c5e46b83fb5881ebe13fb98e6d", ) .unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); // Act let transaction = sdk diff --git a/src/types/pricing_mode.rs b/src/types/pricing_mode.rs index 058b497b8..dfe5325c4 100644 --- a/src/types/pricing_mode.rs +++ b/src/types/pricing_mode.rs @@ -33,12 +33,12 @@ impl From<_PricingMode> for PricingMode { additional_computation_factor: _, gas_price_tolerance: _, } => PricingMode::Fixed, - _PricingMode::Classic { + _PricingMode::PaymentLimited { payment_amount: _, gas_price_tolerance: _, standard_payment: _, } => PricingMode::Classic, - _PricingMode::Reserved { receipt: _ } => PricingMode::Reserved, + _PricingMode::Prepaid { receipt: _ } => PricingMode::Reserved, } } } diff --git a/src/types/sdk_error.rs b/src/types/sdk_error.rs index 9336836d0..c030f2dc3 100644 --- a/src/types/sdk_error.rs +++ b/src/types/sdk_error.rs @@ -1,3 +1,4 @@ +use base16::DecodeError; use casper_client::{ cli::JsonArgsError, cli::{CliError, FromDecStrErr}, @@ -162,9 +163,17 @@ pub enum SdkError { #[error("Failed to parse a validator public key")] FailedToParseValidatorPublicKey, + /// Failed to parse base16 bytes. + #[error("Failed to parse base16 bytes: {0}")] + FailedToParseBase16(#[from] DecodeError), + #[error("Conflicting arguments passed '{context}' {args:?}")] ConflictingArguments { context: String, args: Vec }, + /// Unexpected transaction args variant. + #[error("Unexpected transaction args variant")] + UnexpectedTransactionArgsVariant, + #[error("Invalid CLValue error: {0}")] InvalidCLValue(String), @@ -255,6 +264,12 @@ impl From for SdkError { CliError::FailedToParsePackageAddr => SdkError::FailedToParsePackageAddr, CliError::FailedToParseTransferTarget => SdkError::FailedToParseTransferTarget, CliError::FailedToParseValidatorPublicKey => SdkError::FailedToParseValidatorPublicKey, + CliError::FailedToParseBase16(decode_error) => { + SdkError::FailedToParseBase16(decode_error) + } + CliError::UnexpectedTransactionArgsVariant => { + SdkError::UnexpectedTransactionArgsVariant + } } } } diff --git a/src/types/transaction.rs b/src/types/transaction.rs index 4b3f657cd..918c44082 100644 --- a/src/types/transaction.rs +++ b/src/types/transaction.rs @@ -33,7 +33,7 @@ use casper_types::{ account::AccountHash as _AccountHash, bytesrepr::{self, Bytes as _Bytes, ToBytes}, Approval, ApprovalsHash, AsymmetricType, Deploy, GasLimited, InitiatorAddr, - PublicKey as _PublicKey, RuntimeArgs, Timestamp, Transaction as _Transaction, + PublicKey as _PublicKey, RuntimeArgs, Timestamp, Transaction as _Transaction, TransactionArgs, TransactionEntryPoint, TransactionInvocationTarget, TransactionTarget, TransactionV1, URef as _URef, U512, }; @@ -576,9 +576,20 @@ impl Transaction { pub fn session_args(&self) -> RuntimeArgs { match &self.0 { _Transaction::Deploy(deploy) => deploy.session().args().clone(), - _Transaction::V1(transaction_v1) => transaction_v1 - .deserialize_field::(ARGS_MAP_KEY) - .unwrap_or_default(), + _Transaction::V1(transaction_v1) => { + let args = transaction_v1 + .deserialize_field::(ARGS_MAP_KEY) + .map_err(|err| SdkError::FieldDeserialization { + index: TARGET_MAP_KEY, + error: format!("{:?}", err), + }) + .unwrap(); + + match args { + TransactionArgs::Named(runtime_args) => runtime_args, + TransactionArgs::Bytesrepr(_) => unimplemented!(), // TODO Return TransactionArgs for new Bytesrepr + } + } } } @@ -804,6 +815,8 @@ impl Transaction { new_version, new_transaction_bytes, new_is_install_upgrade, + new_transferred_value, + new_seed, }: NewBuilderParams, ) -> TransactionBuilderParams { let target = self @@ -899,17 +912,23 @@ impl Transaction { unimplemented!("unimplemented native entry point: {}", entry_point); } }, - TransactionTarget::Stored { id, runtime: _ } => match id { + TransactionTarget::Stored { + id, + runtime: _, + transferred_value, + } => match id { casper_types::TransactionInvocationTarget::ByHash(hash) => { TransactionBuilderParams::new_invocable_entity( new_hash.unwrap_or(AddressableEntityHash::from_bytes(hash.into())), &entry_point, + new_transferred_value.map_or(Some(transferred_value), Some), ) } TransactionInvocationTarget::ByName(alias) => { TransactionBuilderParams::new_invocable_entity_alias( &new_alias.unwrap_or(alias.clone()), &entry_point, + new_transferred_value.map_or(Some(transferred_value), Some), ) } TransactionInvocationTarget::ByPackageHash { addr, version } => { @@ -917,6 +936,7 @@ impl Transaction { new_package_hash.unwrap_or(PackageHash::from_bytes(addr.into())), &entry_point, Some(new_version.unwrap_or(version.unwrap_or(1)).to_string()), + new_transferred_value.map_or(Some(transferred_value), Some), ) } TransactionInvocationTarget::ByPackageName { name, version } => { @@ -924,6 +944,7 @@ impl Transaction { &new_alias.unwrap_or(name.clone()), &entry_point, Some(new_version.unwrap_or(version.unwrap_or(1)).to_string()), + new_transferred_value.map_or(Some(transferred_value), Some), ) } }, @@ -931,6 +952,8 @@ impl Transaction { is_install_upgrade, module_bytes: transaction_bytes, runtime: _, + transferred_value, + seed, } => { let default: _Bytes = transaction_bytes.clone(); let bytes_default = Bytes::default(); @@ -948,6 +971,11 @@ impl Transaction { TransactionBuilderParams::new_session( Some(new_transaction_bytes.into()), Some(new_is_install_upgrade.unwrap_or(is_install_upgrade)), + new_transferred_value.map_or(Some(transferred_value), Some), + new_seed.map_or( + seed.map(|s| Bytes::from(Vec::from(s))), // Convert [u8; 32] to Vec and then into Bytes + Some, + ), ) } } @@ -963,6 +991,8 @@ struct NewBuilderParams<'a> { new_version: Option, new_transaction_bytes: Option<&'a Bytes>, new_is_install_upgrade: Option, + new_transferred_value: Option, + new_seed: Option, } impl From for _Transaction { diff --git a/src/types/transaction_params/transaction_builder_params.rs b/src/types/transaction_params/transaction_builder_params.rs index dc0231c6d..65c03b47f 100644 --- a/src/types/transaction_params/transaction_builder_params.rs +++ b/src/types/transaction_params/transaction_builder_params.rs @@ -73,6 +73,8 @@ pub struct TransactionBuilderParams { new_validator: Option, minimum_delegation_amount: Option, maximum_delegation_amount: Option, + transferred_value: Option, + seed: Option, } #[wasm_bindgen] @@ -98,6 +100,8 @@ impl TransactionBuilderParams { pub fn new_session( transaction_bytes: Option, is_install_upgrade: Option, + transferred_value: Option, + seed: Option, ) -> TransactionBuilderParams { TransactionBuilderParams { kind: TransactionKind::Session, @@ -120,6 +124,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value, + seed: seed.into(), } } @@ -152,6 +158,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value: None, + seed: None, } } @@ -159,6 +167,7 @@ impl TransactionBuilderParams { pub fn new_invocable_entity( entity_hash: AddressableEntityHash, entry_point: &str, + transferred_value: Option, ) -> TransactionBuilderParams { TransactionBuilderParams { kind: TransactionKind::InvocableEntity, @@ -181,6 +190,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value, + seed: None, } } @@ -188,6 +199,7 @@ impl TransactionBuilderParams { pub fn new_invocable_entity_alias( entity_alias: &str, entry_point: &str, + transferred_value: Option, ) -> TransactionBuilderParams { TransactionBuilderParams { kind: TransactionKind::InvocableEntityAlias, @@ -210,6 +222,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value, + seed: None, } } @@ -218,6 +232,7 @@ impl TransactionBuilderParams { package_hash: PackageHash, entry_point: &str, maybe_entity_version: Option, + transferred_value: Option, ) -> TransactionBuilderParams { let maybe_entity_version_as_u32 = parse_maybe_entity_version(maybe_entity_version); @@ -242,6 +257,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value, + seed: None, } } @@ -250,6 +267,7 @@ impl TransactionBuilderParams { package_alias: &str, entry_point: &str, maybe_entity_version: Option, + transferred_value: Option, ) -> TransactionBuilderParams { let maybe_entity_version_as_u32 = parse_maybe_entity_version(maybe_entity_version); TransactionBuilderParams { @@ -273,6 +291,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value, + seed: None, } } @@ -306,6 +326,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: Some(minimum_delegation_amount), maximum_delegation_amount: Some(maximum_delegation_amount), + transferred_value: None, + seed: None, } } @@ -337,6 +359,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value: None, + seed: None, } } @@ -368,6 +392,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value: None, + seed: None, } } @@ -400,6 +426,8 @@ impl TransactionBuilderParams { new_validator: Some(new_validator), minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value: None, + seed: None, } } @@ -427,6 +455,8 @@ impl TransactionBuilderParams { new_validator: None, minimum_delegation_amount: None, maximum_delegation_amount: None, + transferred_value: None, + seed: None, } } @@ -634,6 +664,17 @@ pub fn transaction_builder_params_to_casper_client( .clone() .unwrap_or_default() .into(), + transferred_value: transaction_params.transferred_value.unwrap_or_default(), + seed: Some( + transaction_params + .seed + .as_ref() // Borrow the Option + .map_or(Bytes::default(), |seed| seed.clone()) // Handle None case manually + .as_ref() // Borrow the inner Bytes + .try_into() // Try to convert &[u8] to [u8; 32] + .unwrap_or_default(), // Default array if conversion fails + ), + runtime: casper_types::TransactionRuntime::VmCasperV1, // TODo FIX Runtime }, TransactionKind::Transfer => _TransactionBuilderParams::Transfer { maybe_source: transaction_params.maybe_source.clone().map(Into::into), @@ -661,6 +702,8 @@ pub fn transaction_builder_params_to_casper_client( .entry_point .as_deref() .unwrap_or_default(), + transferred_value: transaction_params.transferred_value.unwrap_or_default(), + runtime: casper_types::TransactionRuntime::VmCasperV1, // TODo FIX Runtime }, TransactionKind::InvocableEntityAlias => _TransactionBuilderParams::InvocableEntityAlias { entity_alias: transaction_params @@ -671,6 +714,8 @@ pub fn transaction_builder_params_to_casper_client( .entry_point .as_deref() .unwrap_or_default(), + transferred_value: transaction_params.transferred_value.unwrap_or_default(), + runtime: casper_types::TransactionRuntime::VmCasperV1, // TODo FIX Runtime }, TransactionKind::Package => _TransactionBuilderParams::Package { package_hash: transaction_params.package_hash.unwrap().into(), @@ -679,6 +724,8 @@ pub fn transaction_builder_params_to_casper_client( .entry_point .as_deref() .unwrap_or_default(), + transferred_value: transaction_params.transferred_value.unwrap_or_default(), + runtime: casper_types::TransactionRuntime::VmCasperV1, // TODo FIX Runtime }, TransactionKind::PackageAlias => _TransactionBuilderParams::PackageAlias { package_alias: transaction_params @@ -690,6 +737,8 @@ pub fn transaction_builder_params_to_casper_client( .entry_point .as_deref() .unwrap_or_default(), + transferred_value: transaction_params.transferred_value.unwrap_or_default(), + runtime: casper_types::TransactionRuntime::VmCasperV1, // TODo FIX Runtime }, TransactionKind::AddBid => _TransactionBuilderParams::AddBid { public_key: transaction_params.public_key.clone().unwrap().into(), diff --git a/src/types/transaction_params/transaction_str_params.rs b/src/types/transaction_params/transaction_str_params.rs index dc42f78bd..0e71f6554 100644 --- a/src/types/transaction_params/transaction_str_params.rs +++ b/src/types/transaction_params/transaction_str_params.rs @@ -1,6 +1,7 @@ use crate::helpers::get_current_timestamp; use crate::helpers::get_str_or_default; use crate::helpers::get_ttl_or_default; +use crate::types::cl::bytes::Bytes; use crate::types::deploy_params::args_simple::ArgsSimple; use crate::types::pricing_mode::PricingMode; use casper_client::cli::TransactionStrParams as _TransactionStrParams; @@ -24,6 +25,9 @@ pub struct TransactionStrParams { gas_price_tolerance: OnceCell, receipt: OnceCell, standard_payment: OnceCell, + transferred_value: OnceCell, + session_entry_point: OnceCell, + chunked_args: OnceCell, } const DEFAULT_PRICING_MODE: PricingMode = PricingMode::Fixed; @@ -49,6 +53,9 @@ impl TransactionStrParams { gas_price_tolerance: Option, receipt: Option, standard_payment: Option, + transferred_value: Option, + session_entry_point: Option, + chunked_args: Option, ) -> Self { let mut transaction_params = TransactionStrParams::default(); transaction_params.set_chain_name(chain_name); @@ -88,6 +95,15 @@ impl TransactionStrParams { if let Some(standard_payment) = standard_payment { transaction_params.set_standard_payment(standard_payment); } + if let Some(transferred_value) = transferred_value { + transaction_params.set_transferred_value(&transferred_value); + } + if let Some(session_entry_point) = session_entry_point { + transaction_params.set_session_entry_point(&session_entry_point); + } + if let Some(chunked_args) = chunked_args { + transaction_params.set_chunked_args(chunked_args); + } transaction_params } @@ -112,6 +128,9 @@ impl TransactionStrParams { None, // gas_price_tolerance None, // receipt None, // standard_payment + None, // transferred_value + None, // session_entry_point + None, // chunked_args ) } @@ -286,6 +305,40 @@ impl TransactionStrParams { pub fn set_standard_payment(&self, standard_payment: bool) { self.standard_payment.set(standard_payment).unwrap(); } + + #[wasm_bindgen(getter)] + pub fn transferred_value(&self) -> Option { + self.transferred_value.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_transferred_value(&self, transferred_value: &str) { + self.transferred_value + .set(transferred_value.to_string()) + .unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn session_entry_point(&self) -> Option { + self.session_entry_point.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_entry_point(&self, session_entry_point: &str) { + self.session_entry_point + .set(session_entry_point.to_string()) + .unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn chunked_args(&self) -> Option { + self.chunked_args.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_chunked_args(&self, chunked_args: Bytes) { + self.chunked_args.set(chunked_args).unwrap(); + } } // Convert TransactionStrParams to casper_client::cli::TransactionStrParams @@ -352,12 +405,32 @@ pub fn transaction_str_params_to_casper_client( receipt: get_str_or_default(transaction_params.receipt.get()), standard_payment: standard_payment_str, output_path: "", + transferred_value: get_str_or_default(transaction_params.transferred_value.get()), + session_entry_point: { + let entry_point = get_str_or_default(transaction_params.session_entry_point.get()); + if entry_point.is_empty() { + None + } else { + Some(entry_point) + } + }, + chunked_args: { + let chunked = transaction_params.chunked_args.get().map_or_else( + || Vec::new(), // Default empty Vec if None + |bytes| bytes.to_vec(), // Convert &cl::bytes::Bytes to Vec + ); + if chunked.is_empty() { + None // Return None if the Vec is empty + } else { + Some(chunked) // Return Some(Vec) if not empty + } + }, } } #[cfg(test)] mod tests { - use casper_types::Timestamp; + use casper_types::{bytesrepr::ToBytes, Timestamp}; use super::*; @@ -403,6 +476,19 @@ mod tests { let standard_payment = OnceCell::new(); standard_payment.set(true).unwrap(); + let transferred_value = OnceCell::new(); + transferred_value.set("0".to_string()).unwrap(); + + let session_entry_point = OnceCell::new(); + session_entry_point + .set("session_entry_point".to_string()) + .unwrap(); + + let chunked_args = OnceCell::new(); + chunked_args + .set(Bytes::from("json".to_bytes().unwrap())) + .unwrap(); + let transaction_params = TransactionStrParams { secret_key, timestamp, @@ -417,6 +503,9 @@ mod tests { gas_price_tolerance, receipt, standard_payment, + transferred_value, + session_entry_point, + chunked_args, }; let result = transaction_str_params_to_casper_client(&transaction_params); @@ -434,6 +523,10 @@ mod tests { assert_eq!(result.additional_computation_factor, "0"); assert_eq!(result.receipt, "receipt"); assert_eq!(result.standard_payment, "true"); + assert_eq!(result.transferred_value, "0"); + assert_eq!(result.session_entry_point, Some("session_entry_point")); + // TODO FIX + //assert_eq!(result.chunked_args, Some()); } #[test] @@ -478,5 +571,8 @@ mod tests { assert_eq!(result.additional_computation_factor, "1"); assert_eq!(result.receipt, "receipt"); assert_eq!(result.standard_payment, "true"); + assert_eq!(result.transferred_value, ""); + assert_eq!(result.session_entry_point, None); + assert_eq!(result.chunked_args, None); } } diff --git a/tests/integration/rust/src/tests/helpers.rs b/tests/integration/rust/src/tests/helpers.rs index a24bd4095..53418163d 100644 --- a/tests/integration/rust/src/tests/helpers.rs +++ b/tests/integration/rust/src/tests/helpers.rs @@ -267,6 +267,8 @@ pub(crate) mod intern { .unwrap(); assert_eq!(transaction.hash.to_string(), transaction_hash_as_string); + dbg!(&transaction_hash_as_string); + let get_transaction = sdk .get_transaction( transaction_hash, @@ -475,8 +477,13 @@ pub async fn mint_nft( let entity_addr = EntityAddr::from_formatted_str(contract_cep78_key.into()).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let sdk = create_test_sdk(None); let test_call_entrypoint = sdk diff --git a/tests/integration/rust/src/tests/integration/contract/mod.rs b/tests/integration/rust/src/tests/integration/contract/mod.rs index 50829a432..3f2352578 100644 --- a/tests/integration/rust/src/tests/integration/contract/mod.rs +++ b/tests/integration/rust/src/tests/integration/contract/mod.rs @@ -283,8 +283,14 @@ pub mod test_module { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let test_call_entrypoint_transaction = create_test_sdk(Some(config)) .call_entrypoint(builder_params, transaction_params, None) diff --git a/tests/integration/rust/src/tests/integration/params/mod.rs b/tests/integration/rust/src/tests/integration/params/mod.rs index 93530e591..317ad34c5 100644 --- a/tests/integration/rust/src/tests/integration/params/mod.rs +++ b/tests/integration/rust/src/tests/integration/params/mod.rs @@ -125,6 +125,9 @@ pub mod test_module { None, None, None, + None, + None, + None, ); assert_eq!(transaction_params.chain_name().unwrap(), config.chain_name); assert_eq!(transaction_params.ttl().unwrap(), TTL); @@ -200,8 +203,14 @@ pub mod test_module { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); let entity_hash: AddressableEntityHash = entity_addr.into(); - let transaction_builder_params = - TransactionBuilderParams::new_invocable_entity(entity_hash.clone(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let transaction_builder_params = TransactionBuilderParams::new_invocable_entity( + entity_hash.clone(), + ENTRYPOINT_MINT, + transferred_value, + ); assert_eq!( transaction_builder_params.entity_hash().unwrap(), diff --git a/tests/integration/rust/src/tests/integration/rpcs/mod.rs b/tests/integration/rust/src/tests/integration/rpcs/mod.rs index 00457e193..6ea8490a5 100644 --- a/tests/integration/rust/src/tests/integration/rpcs/mod.rs +++ b/tests/integration/rust/src/tests/integration/rpcs/mod.rs @@ -547,8 +547,8 @@ mod tests { tests::helpers::get_enable_addressable_entity, }; use casper_rust_wasm_sdk::types::{ - block_hash::BlockHash, block_identifier::BlockIdentifierInput, - global_state_identifier::GlobalStateIdentifier, + hash::block_hash::BlockHash, identifier::block_identifier::BlockIdentifierInput, + identifier::global_state_identifier::GlobalStateIdentifier, }; use tokio::test; diff --git a/tests/integration/rust/src/tests/integration/transaction/mod.rs b/tests/integration/rust/src/tests/integration/transaction/mod.rs index f8471b1ec..1014b81de 100644 --- a/tests/integration/rust/src/tests/integration/transaction/mod.rs +++ b/tests/integration/rust/src/tests/integration/transaction/mod.rs @@ -22,8 +22,14 @@ pub mod test_module { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let transaction = create_test_sdk(Some(config)) .transaction(builder_params, transaction_params, None, None) @@ -93,8 +99,14 @@ pub mod test_module { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let transaction = create_test_sdk(Some(config.clone())) .speculative_transaction( diff --git a/tests/integration/rust/src/tests/integration/transaction_utils/mod.rs b/tests/integration/rust/src/tests/integration/transaction_utils/mod.rs index 05adefa56..c32de21b4 100644 --- a/tests/integration/rust/src/tests/integration/transaction_utils/mod.rs +++ b/tests/integration/rust/src/tests/integration/transaction_utils/mod.rs @@ -21,8 +21,14 @@ pub mod test_module { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_DECIMALS); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_DECIMALS, + transferred_value, + ); let make_transaction = create_test_sdk(Some(config)) .make_transaction(builder_params, transaction_params) @@ -79,8 +85,14 @@ pub mod test_module { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_DECIMALS); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_DECIMALS, + transferred_value, + ); let make_transaction = create_test_sdk(Some(config.clone())) .make_transaction(builder_params, transaction_params) diff --git a/tests/integration/rust/src/tests/integration/types/transaction.rs b/tests/integration/rust/src/tests/integration/types/transaction.rs index ba5be29d9..c3290beda 100644 --- a/tests/integration/rust/src/tests/integration/types/transaction.rs +++ b/tests/integration/rust/src/tests/integration/types/transaction.rs @@ -39,8 +39,14 @@ pub mod test_module_transaction { "entity-contract-fd5b4bee73d43371afbbd8556d3e289c87affd5691bc1e6ef7472cd066963cf7"; let entity_addr = EntityAddr::from_formatted_str(entity_hash_string).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); assert!(transaction.verify()); @@ -85,8 +91,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); transaction_params.set_payment_amount(PAYMENT_AMOUNT); let mut transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); @@ -192,8 +204,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let mut transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); assert!(transaction.verify()); @@ -214,8 +232,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); transaction_params.set_payment_amount(PAYMENT_AMOUNT); let mut transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); @@ -251,9 +275,13 @@ pub mod test_module_transaction { Some(TTL.to_string()), ); + // TODO Fix transferred_value + let transferred_value = None; + let builder_params = TransactionBuilderParams::new_invocable_entity_alias( CONTRACT_CEP78_KEY, ENTRYPOINT_MINT, + transferred_value, ); transaction_params.set_payment_amount(PAYMENT_AMOUNT); @@ -279,8 +307,15 @@ pub mod test_module_transaction { let package_hash = PackageHash::from_formatted_str(&config.contract_cep78_package_hash).unwrap(); - let builder_params = - TransactionBuilderParams::new_package(package_hash, ENTRYPOINT_MINT, None); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_package( + package_hash, + ENTRYPOINT_MINT, + None, + transferred_value, + ); transaction_params.set_payment_amount(PAYMENT_AMOUNT); let mut transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); @@ -316,7 +351,17 @@ pub mod test_module_transaction { transaction_params.set_payment_amount(PAYMENT_AMOUNT); let transaction_bytes: Bytes = Vec::from([0]).into(); - let builder_params = TransactionBuilderParams::new_session(Some(transaction_bytes), None); + + // TODO Fix transferred_value + let transferred_value = None; + let seed = None; + + let builder_params = TransactionBuilderParams::new_session( + Some(transaction_bytes), + None, + transferred_value, + seed, + ); let mut transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); assert!(transaction.verify()); @@ -475,8 +520,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); transaction_params.set_payment_amount(PAYMENT_AMOUNT); let transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); @@ -501,8 +552,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); assert!(transaction.verify()); @@ -524,8 +581,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); assert!(transaction.verify()); @@ -544,8 +607,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); transaction_params.set_payment_amount(PAYMENT_AMOUNT); let mut transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); @@ -572,8 +641,14 @@ pub mod test_module_transaction { let entity_addr = EntityAddr::from_formatted_str(&config.contract_cep78_key).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); transaction_params.set_payment_amount(PAYMENT_AMOUNT); let transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); diff --git a/tests/integration/rust/src/tests/mod.rs b/tests/integration/rust/src/tests/mod.rs index d3d23a8fd..0e865b775 100644 --- a/tests/integration/rust/src/tests/mod.rs +++ b/tests/integration/rust/src/tests/mod.rs @@ -227,8 +227,15 @@ pub async fn _run_example_7() { transaction_params.set_payment_amount(PAYMENT_AMOUNT); let entity_addr = EntityAddr::from_formatted_str(ENTITY_ADDR).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRY_POINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRY_POINT, + transferred_value, + ); let transaction = sdk .make_transaction(builder_params, transaction_params) @@ -271,8 +278,15 @@ MC4CAQAwBQYDK2VwBCIEII8ULlk1CJ12ZQ+bScjBt/IxMAZNggClWqK56D1/7CbI transaction_params.set_payment_amount(PAYMENT_AMOUNT); let entity_addr = EntityAddr::from_formatted_str(ENTITY_ADDR).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRY_POINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRY_POINT, + transferred_value, + ); let transaction = sdk .transaction(builder_params, transaction_params, None, None) @@ -319,8 +333,15 @@ MC4CAQAwBQYDK2VwBCIEII8ULlk1CJ12ZQ+bScjBt/IxMAZNggClWqK56D1/7CbI transaction_params.set_payment_amount(PAYMENT_AMOUNT); let entity_addr = EntityAddr::from_formatted_str(ENTITY_ADDR).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRY_POINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRY_POINT, + transferred_value, + ); let transaction = Transaction::new_session(builder_params, transaction_params).unwrap(); @@ -514,8 +535,15 @@ MC4CAQAwBQYDK2VwBCIEII8ULlk1CJ12ZQ+bScjBt/IxMAZNggClWqK56D1/7CbI transaction_params.set_session_args_simple(args); let entity_addr = EntityAddr::from_formatted_str(ENTITY_ADDR).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRYPOINT_MINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRYPOINT_MINT, + transferred_value, + ); let call_entrypoint_deploy = sdk .call_entrypoint(builder_params, transaction_params, None) @@ -579,8 +607,15 @@ MC4CAQAwBQYDK2VwBCIEII8ULlk1CJ12ZQ+bScjBt/IxMAZNggClWqK56D1/7CbI transaction_params.set_ttl(Some(TTL.to_string())); let entity_addr = EntityAddr::from_formatted_str(ENTITY_ADDR).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRY_POINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRY_POINT, + transferred_value, + ); let mut transaction = sdk .make_transaction(builder_params, transaction_params) @@ -619,8 +654,15 @@ pub async fn _run_example_14() { transaction_params.set_payment_amount(PAYMENT_AMOUNT); let entity_addr = EntityAddr::from_formatted_str(ENTITY_ADDR).unwrap(); - let builder_params = - TransactionBuilderParams::new_invocable_entity(entity_addr.into(), ENTRY_POINT); + + // TODO Fix transferred_value + let transferred_value = None; + + let builder_params = TransactionBuilderParams::new_invocable_entity( + entity_addr.into(), + ENTRY_POINT, + transferred_value, + ); let transaction = sdk .make_transaction(builder_params, transaction_params)