Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove testnet command and eligibility flag #3591

Merged
merged 1 commit into from
Feb 28, 2023
Merged
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
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.