From 5239bca1c3cbea59f3d3ead6ff1e5226f17dee28 Mon Sep 17 00:00:00 2001 From: homura Date: Fri, 8 Dec 2023 18:15:20 +0800 Subject: [PATCH] chore(examples): example for devnet transferring (#578) --- examples/misc/devnet-transfer.ts | 72 ++++++++ examples/misc/package.json | 3 +- examples/pnpm-lock.yaml | 279 ++++++++++++++----------------- 3 files changed, 203 insertions(+), 151 deletions(-) create mode 100644 examples/misc/devnet-transfer.ts diff --git a/examples/misc/devnet-transfer.ts b/examples/misc/devnet-transfer.ts new file mode 100644 index 000000000..049250c3d --- /dev/null +++ b/examples/misc/devnet-transfer.ts @@ -0,0 +1,72 @@ +// This example shows how to transfer 100 CKB from ALice to Bob on Devnet. +// Note: The ScriptConfig is generated from the genesis block, therefore, +// it does NOT contain all common configs, such as Anyone-can-pay, Omnilock, etc. that are deployed after genesis. + +import { commons, config, hd, helpers, Indexer, RPC } from "@ckb-lumos/lumos"; +import { parseUnit } from "@ckb-lumos/bi"; + +const debug = (...args: unknown[]) => console.log(new Date().toJSON(), "[info]", ...args); + +// let's treat testnet as a devnet +const RPC_URL = "https://testnet.ckb.dev"; +// const RPC_URL = "http://localhost:8114"; +const ALICE_PRIVATE_KEY = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"; +const BOB_PRIVATE_KEY = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + +async function main() { + const rpc = new RPC(RPC_URL); + const indexer = new Indexer(RPC_URL); + + const genesisBlock = await rpc.getBlockByNumber("0x0"); + const scriptConfig = config.generateGenesisScriptConfigs(genesisBlock); + + const txSkeleton = helpers.TransactionSkeleton({ cellProvider: indexer }).asMutable(); + + const secp256k1ScriptConfig = scriptConfig.SECP256K1_BLAKE160; + const managerConfig = { PREFIX: "ckt", SCRIPTS: scriptConfig } as const; + const configParam = { config: managerConfig }; + + const aliceAddr = helpers.encodeToAddress( + { + codeHash: secp256k1ScriptConfig.CODE_HASH, + hashType: secp256k1ScriptConfig.HASH_TYPE, + args: hd.key.privateKeyToBlake160(ALICE_PRIVATE_KEY), + }, + configParam + ); + + const bobAddr = helpers.encodeToAddress( + { + codeHash: secp256k1ScriptConfig.CODE_HASH, + hashType: secp256k1ScriptConfig.HASH_TYPE, + args: hd.key.privateKeyToBlake160(BOB_PRIVATE_KEY), + }, + configParam + ); + + debug(`Alice(${aliceAddr})`, "->", `Bob(${bobAddr})`); + debug(`Please make sure Alice(${aliceAddr}) has enough capacity before continue`); + + await commons.common.transfer( + txSkeleton, + [aliceAddr], + bobAddr, + parseUnit("100", "ckb"), + undefined, + undefined, + configParam + ); + await commons.common.payFeeByFeeRate(txSkeleton, [aliceAddr], 1000, undefined, configParam); + commons.common.prepareSigningEntries(txSkeleton); + + const digest = txSkeleton.get("signingEntries").get(0)!.message; + debug("digest for signing:", digest); + + const signature = hd.key.signRecoverable(digest, ALICE_PRIVATE_KEY); + const tx = helpers.sealTransaction(txSkeleton, [signature]); + + const txHash = await rpc.sendTransaction(tx); + debug("TxHash:", txHash); +} + +main(); diff --git a/examples/misc/package.json b/examples/misc/package.json index 39d92dac5..343ade0f3 100644 --- a/examples/misc/package.json +++ b/examples/misc/package.json @@ -4,6 +4,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@ckb-lumos/lumos": "next" + "@ckb-lumos/bi": "canary", + "@ckb-lumos/lumos": "canary" } } diff --git a/examples/pnpm-lock.yaml b/examples/pnpm-lock.yaml index 6503420a3..0c1763fe2 100644 --- a/examples/pnpm-lock.yaml +++ b/examples/pnpm-lock.yaml @@ -39,13 +39,13 @@ importers: ../packages/base: dependencies: '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit '@types/blake2b': specifier: ^2.1.0 @@ -76,29 +76,29 @@ importers: ../packages/ckb-indexer: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit cross-fetch: specifier: ^3.1.5 - version: 3.1.5 + version: 3.1.8 events: specifier: ^3.3.0 version: 3.3.0 devDependencies: '@ckb-lumos/testkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../testkit '@types/lodash.uniqby': specifier: ^4.7.7 @@ -125,7 +125,7 @@ importers: ../packages/codec: dependencies: '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi devDependencies: escape-string-regexp: @@ -138,35 +138,35 @@ importers: ../packages/common-scripts: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/config-manager': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../config-manager '@ckb-lumos/helpers': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../helpers '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit immutable: specifier: ^4.3.0 version: 4.3.0 devDependencies: '@ckb-lumos/debugger': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../debugger '@ckb-lumos/hd': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../hd '@types/keccak': specifier: ^3.0.1 @@ -178,13 +178,13 @@ importers: ../packages/config-manager: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@types/deep-freeze-strict': specifier: ^1.1.0 @@ -196,22 +196,22 @@ importers: ../packages/debugger: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/config-manager': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../config-manager '@ckb-lumos/helpers': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../helpers '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc '@types/download': specifier: ^8.0.1 @@ -233,55 +233,55 @@ importers: version: 3.0.0 devDependencies: '@ckb-lumos/common-scripts': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../common-scripts '@ckb-lumos/experiment-tx-assembler': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../experiment-tx-assembler '@ckb-lumos/hd': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../hd ../packages/e2e-test: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/ckb-indexer': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../ckb-indexer '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/common-scripts': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../common-scripts '@ckb-lumos/config-manager': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../config-manager '@ckb-lumos/hd': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../hd '@ckb-lumos/helpers': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../helpers '@ckb-lumos/light-client': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../light-client '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc '@ckb-lumos/runner': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../runner '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit '@ckb-lumos/utils': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../utils '@types/kill-port': specifier: ^2.0.0 @@ -294,7 +294,7 @@ importers: version: 2.0.1 devDependencies: '@ckb-lumos/testkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../testkit '@types/request': specifier: ^2.48.8 @@ -315,28 +315,28 @@ importers: ../packages/experiment-tx-assembler: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/config-manager': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../config-manager '@ckb-lumos/helpers': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../helpers '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit ../packages/hd: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi bn.js: specifier: ^5.1.3 @@ -367,22 +367,22 @@ importers: ../packages/hd-cache: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/ckb-indexer': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../ckb-indexer '@ckb-lumos/config-manager': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../config-manager '@ckb-lumos/hd': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../hd '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc immutable: specifier: ^4.3.0 @@ -398,19 +398,19 @@ importers: ../packages/helpers: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/config-manager': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../config-manager '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit bech32: specifier: ^2.0.0 @@ -422,23 +422,23 @@ importers: ../packages/light-client: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/ckb-indexer': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../ckb-indexer '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc cross-fetch: specifier: ^3.1.5 - version: 3.1.5 + version: 3.1.8 events: specifier: ^3.3.0 version: 3.3.0 devDependencies: '@ckb-lumos/testkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../testkit '@types/request': specifier: ^2.48.8 @@ -446,6 +446,9 @@ importers: '@types/sinon': specifier: ^10.0.6 version: 10.0.14 + jest: + specifier: ^28.1.3 + version: 28.1.3 sinon: specifier: ^15.0.4 version: 15.0.4 @@ -453,31 +456,31 @@ importers: ../packages/lumos: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/ckb-indexer': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../ckb-indexer '@ckb-lumos/common-scripts': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../common-scripts '@ckb-lumos/config-manager': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../config-manager '@ckb-lumos/hd': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../hd '@ckb-lumos/helpers': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../helpers '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit devDependencies: buffer: @@ -505,10 +508,10 @@ importers: ../packages/molecule: dependencies: '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@types/nearley': specifier: ^2.11.2 @@ -521,7 +524,7 @@ importers: version: 2.20.1 devDependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base jsbi: specifier: ^4.1.0 @@ -530,20 +533,17 @@ importers: ../packages/rpc: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi - '@vespaiach/axios-fetch-adapter': - specifier: ^0.3.1 - version: 0.3.1(axios@0.27.2) - axios: - specifier: 0.27.2 - version: 0.27.2 - tslib: - specifier: 2.3.1 - version: 2.3.1 + abort-controller: + specifier: ^3.0.0 + version: 3.0.0 + cross-fetch: + specifier: ^3.1.5 + version: 3.1.8 devDependencies: '@types/jest': specifier: ^29.4.0 @@ -564,7 +564,7 @@ importers: ../packages/runner: dependencies: '@ckb-lumos/utils': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../utils '@ltd/j-toml': specifier: ^1.38.0 @@ -600,16 +600,16 @@ importers: ../packages/testkit: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/bi': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../bi '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc '@types/body-parser': specifier: ^1.19.1 @@ -645,9 +645,9 @@ importers: ../packages/toolkit: dependencies: - cross-fetch: - specifier: ^3.1.4 - version: 3.1.5 + '@ckb-lumos/bi': + specifier: 0.21.0 + version: link:../bi devDependencies: '@babel/plugin-proposal-export-namespace-from': specifier: ^7.18.9 @@ -655,26 +655,23 @@ importers: '@babel/plugin-transform-modules-commonjs': specifier: ^7.21.5 version: 7.21.5(@babel/core@7.16.0) - jsbi: - specifier: ^4.1.0 - version: 4.1.0 ../packages/transaction-manager: dependencies: '@ckb-lumos/base': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../base '@ckb-lumos/ckb-indexer': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../ckb-indexer '@ckb-lumos/codec': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../codec '@ckb-lumos/rpc': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../rpc '@ckb-lumos/toolkit': - specifier: 0.21.0-next.0 + specifier: 0.21.0 version: link:../toolkit immutable: specifier: ^4.3.0 @@ -770,8 +767,11 @@ importers: misc: dependencies: + '@ckb-lumos/bi': + specifier: canary + version: link:../../packages/bi '@ckb-lumos/lumos': - specifier: next + specifier: canary version: link:../../packages/lumos omni-lock-metamask: @@ -3582,14 +3582,6 @@ packages: '@types/yargs-parser': 21.0.0 dev: true - /@vespaiach/axios-fetch-adapter@0.3.1(axios@0.27.2): - resolution: {integrity: sha512-+1F52VWXmQHSRFSv4/H0wtnxfvjRMPK5531e880MIjypPdUSX6QZuoDgEVeCE1vjhzDdxCVX7rOqkub7StEUwQ==} - peerDependencies: - axios: '>=0.26.0' - dependencies: - axios: 0.27.2 - dev: false - /@webassemblyjs/ast@1.11.1: resolution: {integrity: sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==} dependencies: @@ -3739,6 +3731,13 @@ packages: resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} dev: true + /abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + dependencies: + event-target-shim: 5.0.1 + dev: false + /abortcontroller-polyfill@1.7.5: resolution: {integrity: sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==} dev: true @@ -3867,6 +3866,7 @@ packages: /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + dev: true /at-least-node@1.0.0: resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} @@ -3881,15 +3881,6 @@ packages: resolution: {integrity: sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==} dev: true - /axios@0.27.2: - resolution: {integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==} - dependencies: - follow-redirects: 1.15.2 - form-data: 4.0.0 - transitivePeerDependencies: - - debug - dev: false - /babel-jest@28.1.3(@babel/core@7.16.0): resolution: {integrity: sha512-epUaPOEWMk3cWX0M/sPvCHHCe9fMFAa/9hXEgKP8nFfNl/jlGkE9ucq9NqkZGXLDduCJYS0UvSlPUwC0S+rH6Q==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} @@ -4365,6 +4356,7 @@ packages: engines: {node: '>= 0.8'} dependencies: delayed-stream: 1.0.0 + dev: true /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -4470,10 +4462,10 @@ packages: sha.js: 2.4.11 dev: true - /cross-fetch@3.1.5: - resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==} + /cross-fetch@3.1.8: + resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==} dependencies: - node-fetch: 2.6.7 + node-fetch: 2.7.0 transitivePeerDependencies: - encoding dev: false @@ -4651,6 +4643,7 @@ packages: /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} + dev: true /depd@1.1.2: resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} @@ -4922,6 +4915,11 @@ packages: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} + /event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + dev: false + /events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} @@ -5152,16 +5150,6 @@ packages: path-exists: 4.0.0 dev: true - /follow-redirects@1.15.2: - resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - dev: false - /forever-agent@0.6.1: resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==} dev: true @@ -5215,15 +5203,6 @@ packages: mime-types: 2.1.35 dev: true - /form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} - engines: {node: '>= 6'} - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - dev: false - /forwarded@0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} engines: {node: '>= 0.6'} @@ -6817,8 +6796,8 @@ packages: resolution: {integrity: sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==} dev: true - /node-fetch@2.6.7: - resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0