Skip to content

Commit

Permalink
Remove testnet command and eligibility flag (#3591)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther authored Feb 28, 2023
1 parent b97913f commit ee062b9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 275 deletions.
194 changes: 0 additions & 194 deletions ironfish-cli/src/commands/testnet.ts

This file was deleted.

10 changes: 0 additions & 10 deletions ironfish-cli/src/commands/wallet/burn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { IronFlag, RemoteFlags } from '../../flags'
import { selectAsset } from '../../utils/asset'
import { promptCurrency } from '../../utils/currency'
import { selectFee } from '../../utils/fees'
import { doEligibilityCheck } from '../../utils/testnet'
import { watchTransaction } from '../../utils/transaction'

export class Burn extends IronfishCommand {
Expand Down Expand Up @@ -68,11 +67,6 @@ export class Burn extends IronfishCommand {
description:
'The block sequence that the transaction can not be mined after. Set to 0 for no expiration.',
}),
eligibility: Flags.boolean({
default: true,
allowNo: true,
description: 'check testnet eligibility',
}),
offline: Flags.boolean({
default: false,
description: 'Allow offline transaction creation',
Expand All @@ -87,10 +81,6 @@ export class Burn extends IronfishCommand {
const { flags } = await this.parse(Burn)
const client = await this.sdk.connectRpc()

if (flags.eligibility) {
await doEligibilityCheck(client, this.logger)
}

if (!flags.offline) {
const status = await client.getNodeStatus()
if (!status.content.blockchain.synced) {
Expand Down
10 changes: 0 additions & 10 deletions ironfish-cli/src/commands/wallet/mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { IronFlag, RemoteFlags } from '../../flags'
import { selectAsset } from '../../utils/asset'
import { promptCurrency } from '../../utils/currency'
import { selectFee } from '../../utils/fees'
import { doEligibilityCheck } from '../../utils/testnet'
import { watchTransaction } from '../../utils/transaction'

export class Mint extends IronfishCommand {
Expand Down Expand Up @@ -80,11 +79,6 @@ export class Mint extends IronfishCommand {
description:
'The block sequence that the transaction can not be mined after. Set to 0 for no expiration.',
}),
eligibility: Flags.boolean({
default: true,
allowNo: true,
description: 'check testnet eligibility',
}),
offline: Flags.boolean({
default: false,
description: 'Allow offline transaction creation',
Expand All @@ -99,10 +93,6 @@ export class Mint extends IronfishCommand {
const { flags } = await this.parse(Mint)
const client = await this.sdk.connectRpc()

if (flags.eligibility) {
await doEligibilityCheck(client, this.logger)
}

if (!flags.offline) {
const status = await client.getNodeStatus()
if (!status.content.blockchain.synced) {
Expand Down
10 changes: 0 additions & 10 deletions ironfish-cli/src/commands/wallet/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { IronFlag, RemoteFlags } from '../../flags'
import { selectAsset } from '../../utils/asset'
import { promptCurrency } from '../../utils/currency'
import { selectFee } from '../../utils/fees'
import { doEligibilityCheck } from '../../utils/testnet'
import { watchTransaction } from '../../utils/transaction'

export class Send extends IronfishCommand {
Expand Down Expand Up @@ -88,11 +87,6 @@ export class Send extends IronfishCommand {
description:
'Return raw transaction. Use it to create a transaction but not post to the network',
}),
eligibility: Flags.boolean({
default: true,
allowNo: true,
description: 'check testnet eligibility',
}),
offline: Flags.boolean({
default: false,
description: 'Allow offline transaction creation',
Expand All @@ -108,10 +102,6 @@ export class Send extends IronfishCommand {

const client = await this.sdk.connectRpc()

if (flags.eligibility) {
await doEligibilityCheck(client, this.logger)
}

if (!flags.offline) {
const status = await client.getNodeStatus()

Expand Down
51 changes: 0 additions & 51 deletions ironfish-cli/src/utils/testnet.ts

This file was deleted.

0 comments on commit ee062b9

Please sign in to comment.