From 0a6fa1999aea83f027c622e513619534c3c37602 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sat, 8 May 2021 15:09:14 +0800 Subject: [PATCH] explorer: Fix bonfida dependency (#17120) * explorer: Fix bonfida dependency * fix import --- explorer/package-lock.json | 214 +++++++++--------- explorer/package.json | 2 +- .../instruction/bonfida-bot/types.ts | 2 +- 3 files changed, 109 insertions(+), 109 deletions(-) diff --git a/explorer/package-lock.json b/explorer/package-lock.json index c2f6589840..8a95455801 100644 --- a/explorer/package-lock.json +++ b/explorer/package-lock.json @@ -7,6 +7,7 @@ "": { "version": "0.1.0", "dependencies": { + "@bonfida/bot": "^0.5.0", "@metamask/jazzicon": "^2.0.0", "@project-serum/serum": "^0.13.34", "@react-hook/debounce": "^3.0.0", @@ -30,7 +31,6 @@ "@types/socket.io-client": "^1.4.36", "bignumber.js": "^9.0.1", "bn.js": "^5.2.0", - "bonfida-bot": "^0.4.9", "bootstrap": "^4.6.0", "bs58": "^4.0.1", "chai": "^4.3.4", @@ -1306,6 +1306,60 @@ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" }, + "node_modules/@bonfida/bot": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@bonfida/bot/-/bot-0.5.0.tgz", + "integrity": "sha512-zmNRTIujOYPjGuIGSaTV9b/ltSF42yZYkNwGNAnIErdZ9Lv00lFBEfK3BM6iE+tlq9TfOe27QctXd7Rn2Nb6Gw==", + "dependencies": { + "@dr497/awesome-serum-markets": "^1.1.16", + "@project-serum/serum": "^0.13.30", + "@project-serum/sol-wallet-adapter": "^0.1.5", + "@solana/spl-token": "0.0.13", + "@solana/web3.js": "^0.94.2", + "bip32": "^2.0.6", + "bn.js": "^5.1.3", + "bs58": "4.0.1", + "buffer-layout": "^1.2.0", + "tweetnacl": "^1.0.3" + } + }, + "node_modules/@bonfida/bot/node_modules/@babel/runtime": { + "version": "7.14.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.14.0.tgz", + "integrity": "sha512-JELkvo/DlpNdJ7dlyw/eY7E0suy5i5GQH+Vlxaq1nsNJ+H7f4Vtv3jMeCEgRhZZQFXTjldYfQgv2qmM6M1v5wA==", + "dependencies": { + "regenerator-runtime": "^0.13.4" + } + }, + "node_modules/@bonfida/bot/node_modules/@solana/web3.js": { + "version": "0.94.2", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.94.2.tgz", + "integrity": "sha512-enJZ9eVJMvNtpuXdygAZHBlPC+2Q3paLY+KforFhVUpi/bkBADDKJWd90RICyu3sPKiVt8YLAs9cIxriQpQqng==", + "dependencies": { + "@babel/runtime": "^7.12.5", + "bn.js": "^5.0.0", + "bs58": "^4.0.1", + "buffer": "6.0.1", + "buffer-layout": "^1.2.0", + "crypto-hash": "^1.2.2", + "jayson": "^3.4.4", + "js-sha3": "^0.8.0", + "node-fetch": "^2.6.1", + "rpc-websockets": "^7.4.2", + "secp256k1": "^4.0.2", + "superstruct": "^0.14.2", + "tweetnacl": "^1.0.0" + }, + "bin": { + "solana-bpf-sdk-install": "bin/bpf-sdk-install.sh", + "solana-localnet": "bin/localnet.sh" + } + }, + "node_modules/@bonfida/bot/node_modules/superstruct": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", + "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" + }, "node_modules/@cnakazawa/watch": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", @@ -5632,60 +5686,6 @@ "node": ">=0.6" } }, - "node_modules/bonfida-bot": { - "version": "0.4.9", - "resolved": "https://registry.npmjs.org/bonfida-bot/-/bonfida-bot-0.4.9.tgz", - "integrity": "sha512-gPOaQl1rFeazoteSj2PpyrRDlp4A9AuKtg7drRrm7W+DWe73p902KAs76Vs3XlS+aQjF2kWlSLqBGsC79iijgA==", - "dependencies": { - "@dr497/awesome-serum-markets": "^1.1.16", - "@project-serum/serum": "^0.13.30", - "@project-serum/sol-wallet-adapter": "^0.1.5", - "@solana/spl-token": "0.0.13", - "@solana/web3.js": "^0.94.2", - "bip32": "^2.0.6", - "bn.js": "^5.1.3", - "bs58": "4.0.1", - "buffer-layout": "^1.2.0", - "tweetnacl": "^1.0.3" - } - }, - "node_modules/bonfida-bot/node_modules/@babel/runtime": { - "version": "7.13.17", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.17.tgz", - "integrity": "sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA==", - "dependencies": { - "regenerator-runtime": "^0.13.4" - } - }, - "node_modules/bonfida-bot/node_modules/@solana/web3.js": { - "version": "0.94.2", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.94.2.tgz", - "integrity": "sha512-enJZ9eVJMvNtpuXdygAZHBlPC+2Q3paLY+KforFhVUpi/bkBADDKJWd90RICyu3sPKiVt8YLAs9cIxriQpQqng==", - "dependencies": { - "@babel/runtime": "^7.12.5", - "bn.js": "^5.0.0", - "bs58": "^4.0.1", - "buffer": "6.0.1", - "buffer-layout": "^1.2.0", - "crypto-hash": "^1.2.2", - "jayson": "^3.4.4", - "js-sha3": "^0.8.0", - "node-fetch": "^2.6.1", - "rpc-websockets": "^7.4.2", - "secp256k1": "^4.0.2", - "superstruct": "^0.14.2", - "tweetnacl": "^1.0.0" - }, - "bin": { - "solana-bpf-sdk-install": "bin/bpf-sdk-install.sh", - "solana-localnet": "bin/localnet.sh" - } - }, - "node_modules/bonfida-bot/node_modules/superstruct": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", - "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" - }, "node_modules/bonjour": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", @@ -25511,6 +25511,58 @@ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" }, + "@bonfida/bot": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@bonfida/bot/-/bot-0.5.0.tgz", + "integrity": "sha512-zmNRTIujOYPjGuIGSaTV9b/ltSF42yZYkNwGNAnIErdZ9Lv00lFBEfK3BM6iE+tlq9TfOe27QctXd7Rn2Nb6Gw==", + "requires": { + "@dr497/awesome-serum-markets": "^1.1.16", + "@project-serum/serum": "^0.13.30", + "@project-serum/sol-wallet-adapter": "^0.1.5", + "@solana/spl-token": "0.0.13", + "@solana/web3.js": "^0.94.2", + "bip32": "^2.0.6", + "bn.js": "^5.1.3", + "bs58": "4.0.1", + "buffer-layout": "^1.2.0", + "tweetnacl": "^1.0.3" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.14.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.14.0.tgz", + "integrity": "sha512-JELkvo/DlpNdJ7dlyw/eY7E0suy5i5GQH+Vlxaq1nsNJ+H7f4Vtv3jMeCEgRhZZQFXTjldYfQgv2qmM6M1v5wA==", + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "@solana/web3.js": { + "version": "0.94.2", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.94.2.tgz", + "integrity": "sha512-enJZ9eVJMvNtpuXdygAZHBlPC+2Q3paLY+KforFhVUpi/bkBADDKJWd90RICyu3sPKiVt8YLAs9cIxriQpQqng==", + "requires": { + "@babel/runtime": "^7.12.5", + "bn.js": "^5.0.0", + "bs58": "^4.0.1", + "buffer": "6.0.1", + "buffer-layout": "^1.2.0", + "crypto-hash": "^1.2.2", + "jayson": "^3.4.4", + "js-sha3": "^0.8.0", + "node-fetch": "^2.6.1", + "rpc-websockets": "^7.4.2", + "secp256k1": "^4.0.2", + "superstruct": "^0.14.2", + "tweetnacl": "^1.0.0" + } + }, + "superstruct": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", + "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" + } + } + }, "@cnakazawa/watch": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", @@ -29172,58 +29224,6 @@ } } }, - "bonfida-bot": { - "version": "0.4.9", - "resolved": "https://registry.npmjs.org/bonfida-bot/-/bonfida-bot-0.4.9.tgz", - "integrity": "sha512-gPOaQl1rFeazoteSj2PpyrRDlp4A9AuKtg7drRrm7W+DWe73p902KAs76Vs3XlS+aQjF2kWlSLqBGsC79iijgA==", - "requires": { - "@dr497/awesome-serum-markets": "^1.1.16", - "@project-serum/serum": "^0.13.30", - "@project-serum/sol-wallet-adapter": "^0.1.5", - "@solana/spl-token": "0.0.13", - "@solana/web3.js": "^0.94.2", - "bip32": "^2.0.6", - "bn.js": "^5.1.3", - "bs58": "4.0.1", - "buffer-layout": "^1.2.0", - "tweetnacl": "^1.0.3" - }, - "dependencies": { - "@babel/runtime": { - "version": "7.13.17", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.17.tgz", - "integrity": "sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA==", - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "@solana/web3.js": { - "version": "0.94.2", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.94.2.tgz", - "integrity": "sha512-enJZ9eVJMvNtpuXdygAZHBlPC+2Q3paLY+KforFhVUpi/bkBADDKJWd90RICyu3sPKiVt8YLAs9cIxriQpQqng==", - "requires": { - "@babel/runtime": "^7.12.5", - "bn.js": "^5.0.0", - "bs58": "^4.0.1", - "buffer": "6.0.1", - "buffer-layout": "^1.2.0", - "crypto-hash": "^1.2.2", - "jayson": "^3.4.4", - "js-sha3": "^0.8.0", - "node-fetch": "^2.6.1", - "rpc-websockets": "^7.4.2", - "secp256k1": "^4.0.2", - "superstruct": "^0.14.2", - "tweetnacl": "^1.0.0" - } - }, - "superstruct": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", - "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" - } - } - }, "bonjour": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", diff --git a/explorer/package.json b/explorer/package.json index 04b8e9baba..dce486c63e 100644 --- a/explorer/package.json +++ b/explorer/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { + "@bonfida/bot": "^0.5.0", "@metamask/jazzicon": "^2.0.0", "@project-serum/serum": "^0.13.34", "@react-hook/debounce": "^3.0.0", @@ -26,7 +27,6 @@ "@types/socket.io-client": "^1.4.36", "bignumber.js": "^9.0.1", "bn.js": "^5.2.0", - "bonfida-bot": "^0.4.9", "bootstrap": "^4.6.0", "bs58": "^4.0.1", "chai": "^4.3.4", diff --git a/explorer/src/components/instruction/bonfida-bot/types.ts b/explorer/src/components/instruction/bonfida-bot/types.ts index 3bcfb1ff52..6d0ace401f 100644 --- a/explorer/src/components/instruction/bonfida-bot/types.ts +++ b/explorer/src/components/instruction/bonfida-bot/types.ts @@ -16,7 +16,7 @@ import { Instruction, decodeInstruction, BONFIDABOT_PROGRAM_ID, -} from "bonfida-bot"; +} from "@bonfida/bot"; export const SERUM_DECODED_MAX = 6;