diff --git a/package-lock.json b/package-lock.json index c8a3f875..e4c376c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@faker-js/faker": "^8.3.1", - "@project-serum/anchor": "^0.24.2", + "@project-serum/anchor": "^0.26.0", "@sentry/integrations": "^7.88.0", "@sentry/node": "^7.88.0", "@sentry/tracing": "^7.88.0", @@ -826,6 +826,21 @@ "node": ">=0.1.90" } }, + "node_modules/@coral-xyz/borsh": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.26.0.tgz", + "integrity": "sha512-uCZ0xus0CszQPHYfWAqKS5swS1UxvePu83oOF+TWpUkedsNlg6p2p4azxZNSSqwXb9uXMFgxhuMBX9r3Xoi0vQ==", + "dependencies": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.68.0" + } + }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", @@ -1501,23 +1516,24 @@ } }, "node_modules/@project-serum/anchor": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.24.2.tgz", - "integrity": "sha512-0/718g8/DnEuwAidUwh5wLYphUYXhUbiClkuRNhvNoa+1Y8a4g2tJyxoae+emV+PG/Gikd/QUBNMkIcimiIRTA==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.26.0.tgz", + "integrity": "sha512-Nq+COIjE1135T7qfnOHEn7E0q39bQTgXLFk837/rgFe6Hkew9WML7eHsS+lSYD2p3OJaTiUOHTAq1lHy36oIqQ==", "dependencies": { - "@project-serum/borsh": "^0.2.5", - "@solana/web3.js": "^1.36.0", + "@coral-xyz/borsh": "^0.26.0", + "@solana/web3.js": "^1.68.0", "base64-js": "^1.5.1", "bn.js": "^5.1.2", "bs58": "^4.0.1", "buffer-layout": "^1.2.2", - "camelcase": "^5.3.1", + "camelcase": "^6.3.0", "cross-fetch": "^3.1.5", "crypto-hash": "^1.3.0", "eventemitter3": "^4.0.7", "js-sha256": "^0.9.0", "pako": "^2.0.3", "snake-case": "^3.0.4", + "superstruct": "^0.15.4", "toml": "^3.0.0" }, "engines": { @@ -1532,6 +1548,22 @@ "base-x": "^3.0.2" } }, + "node_modules/@project-serum/anchor/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@project-serum/anchor/node_modules/superstruct": { + "version": "0.15.5", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.15.5.tgz", + "integrity": "sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==" + }, "node_modules/@project-serum/borsh": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/@project-serum/borsh/-/borsh-0.2.5.tgz", @@ -1547,50 +1579,30 @@ "@solana/web3.js": "^1.2.0" } }, - "node_modules/@saberhq/anchor-contrib": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/@saberhq/anchor-contrib/-/anchor-contrib-1.14.9.tgz", - "integrity": "sha512-MbjENmcttA+yLZEGmOFU9CJDRbaWrWF/Ff6xrlrma7RJmXYPZY1n5fpt8Aj//eghebxxIx3U5mK46636c5KEEg==", - "dependencies": { - "@saberhq/solana-contrib": "^1.14.9", - "eventemitter3": "^4.0.7", - "lodash.camelcase": "^4.3.0", - "lodash.mapvalues": "^4.6.0", - "tslib": "^2.4.0" - }, - "funding": { - "url": "https://www.coingecko.com/en/coins/saber" - }, - "peerDependencies": { - "@project-serum/anchor": "^0.22 || ^0.23 || ^0.24", - "@solana/web3.js": "^1.42", - "bn.js": "^4 || ^5" - } - }, "node_modules/@saberhq/option-utils": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/@saberhq/option-utils/-/option-utils-1.14.9.tgz", - "integrity": "sha512-8XnV27PaeVZJO7CoZqjSetIczl8qN1Q/3LGdMidftqo733pXaGF6QACeXAF4Z5h6k9dKTYdoqdErNew3Ah23GA==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@saberhq/option-utils/-/option-utils-1.15.0.tgz", + "integrity": "sha512-XVbS9H4b8PIGXJGaErkOurxV2FKFyvMwYq0pD8Y1iEPoi6HB//+HnpEKAv8tCssIQ5Nn1zQWzmQ9CmGkrwzcsw==", "dependencies": { - "tslib": "^2.4.0" + "tslib": "^2.6.2" }, "funding": { "url": "https://www.coingecko.com/en/coins/saber" } }, "node_modules/@saberhq/solana-contrib": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/@saberhq/solana-contrib/-/solana-contrib-1.14.9.tgz", - "integrity": "sha512-e09v3c62cZ2I7hcS7x4q1am4wd4v0VfiIEBZxWBpvTVCKmdbdpUWUKyecI88VHbyO9exBLGq1yxJZZsz0OPyUA==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@saberhq/solana-contrib/-/solana-contrib-1.15.0.tgz", + "integrity": "sha512-OExL5qGrNMmIKINU7qFUDmY7+xIwVM2s360g99k8CRNHSnjpnqIzwDjr2CnvEFpeQPp22OdGlS63woDp0w0JsQ==", "dependencies": { - "@saberhq/option-utils": "^1.14.9", + "@saberhq/option-utils": "^1.15.0", "@solana/buffer-layout": "^4.0.0", - "@types/promise-retry": "^1.1.3", - "@types/retry": "^0.12.2", + "@types/promise-retry": "^1.1.6", + "@types/retry": "^0.12.5", "promise-retry": "^2.0.1", "retry": "^0.13.1", "tiny-invariant": "^1.3.1", - "tslib": "^2.4.0" + "tslib": "^2.6.2" }, "funding": { "url": "https://www.coingecko.com/en/coins/saber" @@ -1816,6 +1828,58 @@ "mobx-utils": "^6.0.5" } }, + "node_modules/@staratlas/factory/node_modules/@project-serum/anchor": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.24.2.tgz", + "integrity": "sha512-0/718g8/DnEuwAidUwh5wLYphUYXhUbiClkuRNhvNoa+1Y8a4g2tJyxoae+emV+PG/Gikd/QUBNMkIcimiIRTA==", + "dependencies": { + "@project-serum/borsh": "^0.2.5", + "@solana/web3.js": "^1.36.0", + "base64-js": "^1.5.1", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^5.3.1", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "js-sha256": "^0.9.0", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "toml": "^3.0.0" + }, + "engines": { + "node": ">=11" + } + }, + "node_modules/@staratlas/factory/node_modules/@saberhq/anchor-contrib": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@saberhq/anchor-contrib/-/anchor-contrib-1.15.0.tgz", + "integrity": "sha512-RYXcwaEY1xS39KaPLKbnGyewsAfI3y6OXH2V7E0OjIP3GHTlEkoXtN/SEOLvFAfQC+Vx/31fyhopKC/rQ4H/GQ==", + "dependencies": { + "@saberhq/solana-contrib": "^1.15.0", + "eventemitter3": "^4.0.7", + "lodash.camelcase": "^4.3.0", + "lodash.mapvalues": "^4.6.0", + "tslib": "^2.6.2" + }, + "funding": { + "url": "https://www.coingecko.com/en/coins/saber" + }, + "peerDependencies": { + "@project-serum/anchor": "^0.22 || ^0.23 || ^0.24", + "@solana/web3.js": "^1.42", + "bn.js": "^4 || ^5" + } + }, + "node_modules/@staratlas/factory/node_modules/bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "dependencies": { + "base-x": "^3.0.2" + } + }, "node_modules/@telegraf/types": { "version": "6.9.1", "resolved": "https://registry.npmjs.org/@telegraf/types/-/types-6.9.1.tgz", @@ -2051,17 +2115,17 @@ "peer": true }, "node_modules/@types/promise-retry": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@types/promise-retry/-/promise-retry-1.1.3.tgz", - "integrity": "sha512-LxIlEpEX6frE3co3vCO2EUJfHIta1IOmhDlcAsR4GMMv9hev1iTI9VwberVGkePJAuLZs5rMucrV8CziCfuJMw==", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@types/promise-retry/-/promise-retry-1.1.6.tgz", + "integrity": "sha512-EC1+OMXV0PZb0pf+cmyxc43MEP2CDumZe4AfuxWboxxEixztIebknpJPZAX5XlodGF1OY+C1E/RAeNGzxf+bJA==", "dependencies": { "@types/retry": "*" } }, "node_modules/@types/retry": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.2.tgz", - "integrity": "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==" + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.5.tgz", + "integrity": "sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==" }, "node_modules/@types/semver": { "version": "7.5.6", @@ -8597,9 +8661,9 @@ } }, "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/tweetnacl": { "version": "1.0.3", @@ -9836,6 +9900,15 @@ "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==" }, + "@coral-xyz/borsh": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.26.0.tgz", + "integrity": "sha512-uCZ0xus0CszQPHYfWAqKS5swS1UxvePu83oOF+TWpUkedsNlg6p2p4azxZNSSqwXb9uXMFgxhuMBX9r3Xoi0vQ==", + "requires": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + } + }, "@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", @@ -10364,23 +10437,24 @@ } }, "@project-serum/anchor": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.24.2.tgz", - "integrity": "sha512-0/718g8/DnEuwAidUwh5wLYphUYXhUbiClkuRNhvNoa+1Y8a4g2tJyxoae+emV+PG/Gikd/QUBNMkIcimiIRTA==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.26.0.tgz", + "integrity": "sha512-Nq+COIjE1135T7qfnOHEn7E0q39bQTgXLFk837/rgFe6Hkew9WML7eHsS+lSYD2p3OJaTiUOHTAq1lHy36oIqQ==", "requires": { - "@project-serum/borsh": "^0.2.5", - "@solana/web3.js": "^1.36.0", + "@coral-xyz/borsh": "^0.26.0", + "@solana/web3.js": "^1.68.0", "base64-js": "^1.5.1", "bn.js": "^5.1.2", "bs58": "^4.0.1", "buffer-layout": "^1.2.2", - "camelcase": "^5.3.1", + "camelcase": "^6.3.0", "cross-fetch": "^3.1.5", "crypto-hash": "^1.3.0", "eventemitter3": "^4.0.7", "js-sha256": "^0.9.0", "pako": "^2.0.3", "snake-case": "^3.0.4", + "superstruct": "^0.15.4", "toml": "^3.0.0" }, "dependencies": { @@ -10391,6 +10465,16 @@ "requires": { "base-x": "^3.0.2" } + }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==" + }, + "superstruct": { + "version": "0.15.5", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.15.5.tgz", + "integrity": "sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==" } } }, @@ -10403,39 +10487,27 @@ "buffer-layout": "^1.2.0" } }, - "@saberhq/anchor-contrib": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/@saberhq/anchor-contrib/-/anchor-contrib-1.14.9.tgz", - "integrity": "sha512-MbjENmcttA+yLZEGmOFU9CJDRbaWrWF/Ff6xrlrma7RJmXYPZY1n5fpt8Aj//eghebxxIx3U5mK46636c5KEEg==", - "requires": { - "@saberhq/solana-contrib": "^1.14.9", - "eventemitter3": "^4.0.7", - "lodash.camelcase": "^4.3.0", - "lodash.mapvalues": "^4.6.0", - "tslib": "^2.4.0" - } - }, "@saberhq/option-utils": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/@saberhq/option-utils/-/option-utils-1.14.9.tgz", - "integrity": "sha512-8XnV27PaeVZJO7CoZqjSetIczl8qN1Q/3LGdMidftqo733pXaGF6QACeXAF4Z5h6k9dKTYdoqdErNew3Ah23GA==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@saberhq/option-utils/-/option-utils-1.15.0.tgz", + "integrity": "sha512-XVbS9H4b8PIGXJGaErkOurxV2FKFyvMwYq0pD8Y1iEPoi6HB//+HnpEKAv8tCssIQ5Nn1zQWzmQ9CmGkrwzcsw==", "requires": { - "tslib": "^2.4.0" + "tslib": "^2.6.2" } }, "@saberhq/solana-contrib": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/@saberhq/solana-contrib/-/solana-contrib-1.14.9.tgz", - "integrity": "sha512-e09v3c62cZ2I7hcS7x4q1am4wd4v0VfiIEBZxWBpvTVCKmdbdpUWUKyecI88VHbyO9exBLGq1yxJZZsz0OPyUA==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@saberhq/solana-contrib/-/solana-contrib-1.15.0.tgz", + "integrity": "sha512-OExL5qGrNMmIKINU7qFUDmY7+xIwVM2s360g99k8CRNHSnjpnqIzwDjr2CnvEFpeQPp22OdGlS63woDp0w0JsQ==", "requires": { - "@saberhq/option-utils": "^1.14.9", + "@saberhq/option-utils": "^1.15.0", "@solana/buffer-layout": "^4.0.0", - "@types/promise-retry": "^1.1.3", - "@types/retry": "^0.12.2", + "@types/promise-retry": "^1.1.6", + "@types/retry": "^0.12.5", "promise-retry": "^2.0.1", "retry": "^0.13.1", "tiny-invariant": "^1.3.1", - "tslib": "^2.4.0" + "tslib": "^2.6.2" } }, "@sentry-internal/tracing": { @@ -10615,6 +10687,49 @@ "js-sha3": "^0.8.0", "mobx": "^6.3.13", "mobx-utils": "^6.0.5" + }, + "dependencies": { + "@project-serum/anchor": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.24.2.tgz", + "integrity": "sha512-0/718g8/DnEuwAidUwh5wLYphUYXhUbiClkuRNhvNoa+1Y8a4g2tJyxoae+emV+PG/Gikd/QUBNMkIcimiIRTA==", + "requires": { + "@project-serum/borsh": "^0.2.5", + "@solana/web3.js": "^1.36.0", + "base64-js": "^1.5.1", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^5.3.1", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "js-sha256": "^0.9.0", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "toml": "^3.0.0" + } + }, + "@saberhq/anchor-contrib": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@saberhq/anchor-contrib/-/anchor-contrib-1.15.0.tgz", + "integrity": "sha512-RYXcwaEY1xS39KaPLKbnGyewsAfI3y6OXH2V7E0OjIP3GHTlEkoXtN/SEOLvFAfQC+Vx/31fyhopKC/rQ4H/GQ==", + "requires": { + "@saberhq/solana-contrib": "^1.15.0", + "eventemitter3": "^4.0.7", + "lodash.camelcase": "^4.3.0", + "lodash.mapvalues": "^4.6.0", + "tslib": "^2.6.2" + } + }, + "bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "requires": { + "base-x": "^3.0.2" + } + } } }, "@telegraf/types": { @@ -10839,17 +10954,17 @@ "peer": true }, "@types/promise-retry": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@types/promise-retry/-/promise-retry-1.1.3.tgz", - "integrity": "sha512-LxIlEpEX6frE3co3vCO2EUJfHIta1IOmhDlcAsR4GMMv9hev1iTI9VwberVGkePJAuLZs5rMucrV8CziCfuJMw==", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@types/promise-retry/-/promise-retry-1.1.6.tgz", + "integrity": "sha512-EC1+OMXV0PZb0pf+cmyxc43MEP2CDumZe4AfuxWboxxEixztIebknpJPZAX5XlodGF1OY+C1E/RAeNGzxf+bJA==", "requires": { "@types/retry": "*" } }, "@types/retry": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.2.tgz", - "integrity": "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==" + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.5.tgz", + "integrity": "sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==" }, "@types/semver": { "version": "7.5.6", @@ -15665,9 +15780,9 @@ } }, "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "tweetnacl": { "version": "1.0.3", diff --git a/package.json b/package.json index 3b897205..15a9ea27 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/mindrunner/fleetbot#readme", "dependencies": { - "@project-serum/anchor": "^0.24.2", + "@project-serum/anchor": "^0.26.0", "@faker-js/faker": "^8.3.1", "@sentry/integrations": "^7.88.0", "@sentry/node": "^7.88.0",