Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: npm ci && npm install -g @fairdatasociety/fdp-play

- name: Run bee-dev
run: npx bee-dev &
run: npx bee-dev --port 16337 &

- name: Start fdp-play environment
run: npm run bee
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/en/configuration.html
*/
import { Bee } from '@ethersphere/bee-js'
import type { Config } from '@jest/types'
import { Bee } from '@upcoming/bee-js'
import { Dates, System } from 'cafe-utility'
import { getPssAddress } from './test/utility/address'
import { getOrBuyStamp } from './test/utility/stamp'
Expand Down
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"dependencies": {
"@ethereumjs/wallet": "^2.0.4",
"@ethersphere/bee-js": "^9.4.0",
"@upcoming/bee-js": "^9.4.2",
"cafe-utility": "^27.14.0",
"chalk": "^2.4.2",
"cli-progress": "^3.11.2",
Expand Down
2 changes: 1 addition & 1 deletion src/command/addresses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChequebookAddressResponse, NodeAddresses } from '@ethersphere/bee-js'
import { ChequebookAddressResponse, NodeAddresses } from '@upcoming/bee-js'
import { Optional } from 'cafe-utility'
import chalk from 'chalk'
import { LeafCommand } from 'furious-commander'
Expand Down
2 changes: 1 addition & 1 deletion src/command/cheque/cashout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BZZ } from '@ethersphere/bee-js'
import { BZZ } from '@upcoming/bee-js'
import chalk from 'chalk'
import { LeafCommand, Option } from 'furious-commander'
import { createKeyValue } from '../../utils/text'
Expand Down
2 changes: 1 addition & 1 deletion src/command/cheque/cheque-command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BZZ } from '@ethersphere/bee-js'
import { BZZ } from '@upcoming/bee-js'
import { getFieldOrNull } from '../../utils'
import { createKeyValue } from '../../utils/text'
import { RootCommand } from '../root-command'
Expand Down
3 changes: 1 addition & 2 deletions src/command/download.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { MantarayNode } from '@ethersphere/bee-js'
import { Bytes, MantarayNode } from '@upcoming/bee-js'
import fs from 'fs'
import { Aggregation, LeafCommand } from 'furious-commander'
import { Bytes } from '@ethersphere/bee-js'
import { BzzAddress, makeBzzAddress } from '../utils/bzz-address'
import { Download as ManifestDownload } from './manifest/download'
import { RootCommand } from './root-command'
Expand Down
2 changes: 1 addition & 1 deletion src/command/feed/feed-command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Wallet } from '@ethereumjs/wallet'
import { Reference, Topic } from '@ethersphere/bee-js'
import { Reference, Topic } from '@upcoming/bee-js'
import { Option } from 'furious-commander'
import { exit } from 'process'
import { getWalletFromIdentity, pickIdentity } from '../../service/identity'
Expand Down
2 changes: 1 addition & 1 deletion src/command/feed/print.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Wallet } from '@ethereumjs/wallet'
import { MerkleTree, Topic } from '@ethersphere/bee-js'
import { MerkleTree, Topic } from '@upcoming/bee-js'
import { Binary } from 'cafe-utility'
import { LeafCommand, Option } from 'furious-commander'
import { exit } from 'process'
Expand Down Expand Up @@ -80,7 +80,7 @@
const addressString = this.address || (await this.getAddressString())
const reader = this.bee.makeFeedReader(topic, addressString)
const { payload, feedIndex, feedIndexNext } = await reader.download()
// TODO: verify this

Check warning on line 83 in src/command/feed/print.ts

View workflow job for this annotation

GitHub Actions / check (18.x)

Unexpected 'todo' comment: 'TODO: verify this'
const reference = payload
spinner.stop()
this.console.verbose(createKeyValue('Chunk Reference', reference.toHex()))
Expand Down
2 changes: 1 addition & 1 deletion src/command/feed/update.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reference } from '@ethersphere/bee-js'
import { Reference } from '@upcoming/bee-js'
import { LeafCommand, Option } from 'furious-commander'
import { pickStamp } from '../../service/stamp'
import { stampProperties } from '../../utils/option'
Expand Down
2 changes: 1 addition & 1 deletion src/command/feed/upload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reference } from '@ethersphere/bee-js'
import { Reference } from '@upcoming/bee-js'
import { Aggregation, LeafCommand, Option } from 'furious-commander'
import { pickStamp } from '../../service/stamp'
import { stampProperties } from '../../utils/option'
Expand Down
2 changes: 1 addition & 1 deletion src/command/hash.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MerkleTree, Reference } from '@ethersphere/bee-js'
import { MerkleTree, Reference } from '@upcoming/bee-js'
import { readFileSync } from 'fs'
import { Argument, LeafCommand } from 'furious-commander'
import { RootCommand } from './root-command'
Expand Down
2 changes: 1 addition & 1 deletion src/command/manifest/add.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MantarayNode } from '@ethersphere/bee-js'
import { MantarayNode } from '@upcoming/bee-js'
import { Optional } from 'cafe-utility'
import chalk from 'chalk'
import { readFileSync, statSync } from 'fs'
Expand Down
2 changes: 1 addition & 1 deletion src/command/manifest/create.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MantarayNode } from '@ethersphere/bee-js'
import { MantarayNode } from '@upcoming/bee-js'
import { Optional } from 'cafe-utility'
import { LeafCommand, Option } from 'furious-commander'
import { pickStamp } from '../../service/stamp'
Expand Down
2 changes: 1 addition & 1 deletion src/command/manifest/download.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MantarayNode } from '@ethersphere/bee-js'
import { MantarayNode } from '@upcoming/bee-js'
import chalk from 'chalk'
import fs from 'fs'
import { Argument, LeafCommand, Option } from 'furious-commander'
Expand Down
2 changes: 1 addition & 1 deletion src/command/manifest/list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MantarayNode, Reference } from '@ethersphere/bee-js'
import { MantarayNode, Reference } from '@upcoming/bee-js'
import chalk from 'chalk'
import { Argument, LeafCommand, Option } from 'furious-commander'
import { exit } from 'process'
Expand Down
2 changes: 1 addition & 1 deletion src/command/manifest/merge.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MantarayNode } from '@ethersphere/bee-js'
import { MantarayNode } from '@upcoming/bee-js'
import { Optional } from 'cafe-utility'
import { Argument, LeafCommand, Option } from 'furious-commander'
import { pickStamp } from '../../service/stamp'
Expand Down
2 changes: 1 addition & 1 deletion src/command/manifest/remove.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MantarayNode } from '@ethersphere/bee-js'
import { MantarayNode } from '@upcoming/bee-js'
import { Optional } from 'cafe-utility'
import { Argument, LeafCommand, Option } from 'furious-commander'
import { pickStamp } from '../../service/stamp'
Expand Down
2 changes: 1 addition & 1 deletion src/command/manifest/sync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MantarayNode, MerkleTree } from '@ethersphere/bee-js'
import { MantarayNode, MerkleTree } from '@upcoming/bee-js'
import { Binary, Optional } from 'cafe-utility'
import chalk from 'chalk'
import { readFileSync } from 'fs'
Expand Down
2 changes: 1 addition & 1 deletion src/command/pss/pss-command.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Topic } from '@ethersphere/bee-js'
import { Topic } from '@upcoming/bee-js'
import { Option } from 'furious-commander'
import { RootCommand } from '../root-command'

// TODO: https://github.com/ethersphere/bee/issues/2041

Check warning on line 5 in src/command/pss/pss-command.ts

View workflow job for this annotation

GitHub Actions / check (18.x)

Unexpected 'todo' comment: 'TODO:...'
export class PssCommand extends RootCommand {
public topic!: string

Expand Down
2 changes: 1 addition & 1 deletion src/command/pss/receive.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Topic } from '@ethersphere/bee-js'
import { Topic } from '@upcoming/bee-js'
import { createWriteStream } from 'fs'
import { LeafCommand, Option } from 'furious-commander'
import { getFieldOrNull } from '../../utils'
Expand Down
2 changes: 1 addition & 1 deletion src/command/pss/send.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Topic } from '@ethersphere/bee-js'
import { Topic } from '@upcoming/bee-js'
import { readFileSync } from 'fs'
import { LeafCommand, Option } from 'furious-commander'
import { exit } from 'process'
Expand Down
2 changes: 1 addition & 1 deletion src/command/pss/subscribe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BeeError, Topic } from '@ethersphere/bee-js'
import { BeeError, Topic } from '@upcoming/bee-js'
import { createWriteStream } from 'fs'
import { LeafCommand, Option } from 'furious-commander'
import { PssCommand } from './pss-command'
Expand Down
2 changes: 1 addition & 1 deletion src/command/root-command/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bee, BeeDev, BeeOptions, Reference } from '@ethersphere/bee-js'
import { Bee, BeeDev, BeeOptions, Reference } from '@upcoming/bee-js'
import { Optional } from 'cafe-utility'
import { ExternalOption, Sourcemap, Utils } from 'furious-commander'
import { printCurlCommand } from '../../curl'
Expand Down
2 changes: 1 addition & 1 deletion src/command/stake.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BZZ } from '@ethersphere/bee-js'
import { BZZ } from '@upcoming/bee-js'
import { LeafCommand, Option } from 'furious-commander'
import { createSpinner } from '../utils/spinner'
import { createKeyValue } from '../utils/text'
Expand Down
2 changes: 1 addition & 1 deletion src/command/stamp/buy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BatchId, Utils } from '@ethersphere/bee-js'
import { BatchId, Utils } from '@upcoming/bee-js'
import { Dates, Numbers } from 'cafe-utility'
import { BigNumber } from 'ethers'
import { LeafCommand, Option } from 'furious-commander'
Expand Down
2 changes: 1 addition & 1 deletion src/command/stamp/create.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BatchId, Duration, Size } from '@ethersphere/bee-js'
import { BatchId, Duration, Size } from '@upcoming/bee-js'
import { Dates, Numbers } from 'cafe-utility'
import { LeafCommand, Option } from 'furious-commander'
import { isChainStateReady } from '../../utils/chainsync'
Expand Down
2 changes: 1 addition & 1 deletion src/command/stamp/extend.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Duration, Size } from '@ethersphere/bee-js'
import { Duration, Size } from '@upcoming/bee-js'
import { Dates, Numbers } from 'cafe-utility'
import { LeafCommand } from 'furious-commander'
import { exit } from 'process'
Expand Down
2 changes: 1 addition & 1 deletion src/command/stamp/list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PostageBatch } from '@ethersphere/bee-js'
import { PostageBatch } from '@upcoming/bee-js'
import { LeafCommand, Option } from 'furious-commander'
import { exit } from 'process'
import { printStamp } from '../../service/stamp'
Expand Down
2 changes: 1 addition & 1 deletion src/command/status.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BeeModes } from '@ethersphere/bee-js'
import { BeeModes } from '@upcoming/bee-js'
import chalk from 'chalk'
import { LeafCommand } from 'furious-commander'
import { exit } from 'process'
Expand Down
2 changes: 1 addition & 1 deletion src/command/upload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RedundancyLevel, Reference, Tag, Utils } from '@ethersphere/bee-js'
import { RedundancyLevel, Reference, Tag, Utils } from '@upcoming/bee-js'
import { Numbers, Optional, System } from 'cafe-utility'
import { Presets, SingleBar } from 'cli-progress'
import * as FS from 'fs'
Expand Down
2 changes: 1 addition & 1 deletion src/command/utility/cid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reference } from '@ethersphere/bee-js'
import { Reference } from '@upcoming/bee-js'
import { Argument, LeafCommand } from 'furious-commander'
import { createKeyValue } from '../../utils/text'
import { RootCommand } from '../root-command'
Expand Down
2 changes: 1 addition & 1 deletion src/command/utility/create-batch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Utils } from '@ethersphere/bee-js'
import { Utils } from '@upcoming/bee-js'
import { Numbers, Strings } from 'cafe-utility'
import { Contract, Event, Wallet } from 'ethers'
import { LeafCommand, Option } from 'furious-commander'
Expand Down
2 changes: 1 addition & 1 deletion src/curl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BeeRequest } from '@ethersphere/bee-js'
import { BeeRequest } from '@upcoming/bee-js'
import chalk from 'chalk'
import { printer } from './printer'

Expand Down
2 changes: 1 addition & 1 deletion src/service/stamp/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bee, PostageBatch } from '@ethersphere/bee-js'
import { Bee, PostageBatch } from '@upcoming/bee-js'
import { Dates } from 'cafe-utility'
import { exit } from 'process'
import { CommandLog } from '../../command/root-command/command-log'
Expand Down
2 changes: 1 addition & 1 deletion src/utils/bzz-address.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bee, MantarayNode } from '@ethersphere/bee-js'
import { Bee, MantarayNode } from '@upcoming/bee-js'
import { CommandLineError } from './error'

export class BzzAddress {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/chainsync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bee } from '@ethersphere/bee-js'
import { Bee } from '@upcoming/bee-js'

const THRESHOLD = 10_000

Expand Down
2 changes: 1 addition & 1 deletion test/command/manifest.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reference } from '@ethersphere/bee-js'
import { Reference } from '@upcoming/bee-js'
import { readFileSync, statSync, writeFileSync } from 'fs'
import { Upload as FeedUpload } from '../../src/command/feed/upload'
import { RootCommand } from '../../src/command/root-command'
Expand Down
2 changes: 1 addition & 1 deletion test/command/pinning.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reference } from '@ethersphere/bee-js'
import { Reference } from '@upcoming/bee-js'
import { FORMATTED_ERROR } from '../../src/command/root-command/printer'
import { Upload } from '../../src/command/upload'
import { describeCommand, invokeTestCli } from '../utility'
Expand Down
2 changes: 1 addition & 1 deletion test/http-mock/cheque-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
NumberString,
Topology,
WalletBalance,
} from '@ethersphere/bee-js'
} from '@upcoming/bee-js'
import { createServer, Server } from 'http'

/**
Expand Down Expand Up @@ -172,7 +172,7 @@

const nodeInfo: NodeInfo = { beeMode: BeeModes.LIGHT, chequebookEnabled: true, swapEnabled: true }

function bytesToString(key: string, value: any): any {

Check warning on line 175 in test/http-mock/cheque-mock.ts

View workflow job for this annotation

GitHub Actions / check (18.x)

Unexpected any. Specify a different type

Check warning on line 175 in test/http-mock/cheque-mock.ts

View workflow job for this annotation

GitHub Actions / check (18.x)

Unexpected any. Specify a different type
if (Array.isArray(value)) {
return value.map(v => bytesToString(key, v))
}
Expand All @@ -190,7 +190,7 @@
}

if (typeof value === 'object' && value !== null) {
const newObj: any = {}

Check warning on line 193 in test/http-mock/cheque-mock.ts

View workflow job for this annotation

GitHub Actions / check (18.x)

Unexpected any. Specify a different type
for (const k in value) {
if (value.hasOwnProperty(k)) {
newObj[k] = bytesToString(k, value[k])
Expand Down
2 changes: 1 addition & 1 deletion test/utility/address.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PublicKey } from '@ethersphere/bee-js'
import { PublicKey } from '@upcoming/bee-js'
import { invokeTestCli } from '.'
import { Addresses } from '../../src/command/addresses'

Expand Down
2 changes: 1 addition & 1 deletion test/utility/stamp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import { BatchId, Bee } from '@ethersphere/bee-js'
import { BatchId, Bee } from '@upcoming/bee-js'
import { Numbers } from 'cafe-utility'

export const getOrBuyStamp = async (): Promise<BatchId> => {
Expand Down
Loading